Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit f7f3609

Browse files
committed
Style callout delimiters in discussion
1 parent cca8547 commit f7f3609

File tree

4 files changed

+65
-11
lines changed

4 files changed

+65
-11
lines changed

Assets/css/all.css

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,61 @@ blockquote {
815815
}
816816
}
817817

818+
.discussion aside {
819+
--link: var(--accent-color);
820+
821+
border: 0.25px var(--separator) solid;
822+
border-left: 6px var(--accent-color) solid;
823+
border-top-left-radius: 8px;
824+
border-bottom-left-radius: 8px;
825+
border-top-right-radius: 8px;
826+
border-bottom-right-radius: 8px;
827+
padding: 0.125em 0 0.125em 1em;
828+
margin-bottom: 1em;
829+
color: var(--accent-color);
830+
831+
&:before {
832+
content: attr(title);
833+
font-variant: small-caps;
834+
text-transform: lowercase;
835+
color: var(--accent-color);
836+
}
837+
838+
& > p {
839+
margin-top: 0.25em;
840+
margin-bottom: 0.25em;
841+
}
842+
843+
& {
844+
--accent-color: var(--system-blue);
845+
--separator: rgba(0, 122, 255, 0.25);
846+
background: rgba(0, 122, 255, 0.025);
847+
}
848+
849+
&.author,
850+
&.authors,
851+
&.copyright,
852+
&.date {
853+
--accent-color: var(--system-fill);
854+
--separator: var(--system-gray);
855+
background: var(--system-background);
856+
}
857+
858+
&.attention,
859+
&.warning,
860+
&.important {
861+
--accent-color: var(--system-orange);
862+
--separator: rgba(255, 149, 0, 0.25);
863+
background: rgba(255, 149, 0, 0.025);
864+
}
865+
866+
&.bug {
867+
--accent-color: var(--system-pink);
868+
--separator: rgba(255, 59, 48, 0.25);
869+
background: rgba(255, 59, 48, 0.025);
870+
}
871+
}
872+
818873
article {
819874
padding: 2em 0 1em 0;
820875

@@ -942,7 +997,6 @@ p code,
942997
dd code,
943998
li code {
944999
font-size: smaller;
945-
color: var(--secondary-label);
9461000
}
9471001

9481002
a code {

Package.resolved

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"repositoryURL": "https://github.com/SwiftDocOrg/GraphViz.git",
1616
"state": {
1717
"branch": null,
18-
"revision": "74b6cbd8c5ecea9f64d84c4e1c88d65604dd033f",
19-
"version": "0.4.1"
18+
"revision": "e9a73a30755c3c5b26ba7c73312b1f2ccb9a1a30",
19+
"version": "0.4.0"
2020
}
2121
},
2222
{
@@ -33,8 +33,8 @@
3333
"repositoryURL": "https://github.com/SwiftDocOrg/Markup.git",
3434
"state": {
3535
"branch": null,
36-
"revision": "80ddbee0048192bcbb814b016dc8ced41110d44d",
37-
"version": "0.1.2"
36+
"revision": "029ad8c1115ab32b7c20ab52eb092fbc030deb17",
37+
"version": "0.0.4"
3838
}
3939
},
4040
{
@@ -77,8 +77,8 @@
7777
"package": "SwiftSyntax",
7878
"repositoryURL": "https://github.com/apple/swift-syntax.git",
7979
"state": {
80-
"branch": "0.50300.0",
81-
"revision": "844574d683f53d0737a9c6d706c3ef31ed2955eb",
80+
"branch": "release/5.4",
81+
"revision": "d81b6a6dc2698a93dcc04304fb15a5446b5278a4",
8282
"version": null
8383
}
8484
},
@@ -95,9 +95,9 @@
9595
"package": "SwiftSemantics",
9696
"repositoryURL": "https://github.com/SwiftDocOrg/SwiftSemantics.git",
9797
"state": {
98-
"branch": null,
98+
"branch": "0.3.0",
9999
"revision": "2f571ccc67e0789d23f8adbccb6a18a6ff3b166c",
100-
"version": "0.3.0"
100+
"version": null
101101
}
102102
},
103103
{

0 commit comments

Comments
 (0)