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

Commit

Permalink
Style callout delimiters in discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Jun 1, 2021
1 parent e21e198 commit a9f3f38
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 12 deletions.
56 changes: 55 additions & 1 deletion Assets/css/all.css
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,61 @@ blockquote {
}
}

.discussion aside {
--link: var(--accent-color);

border: 0.25px var(--separator) solid;
border-left: 6px var(--accent-color) solid;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
padding: 0.125em 0 0.125em 1em;
margin-bottom: 1em;
color: var(--accent-color);

&:before {
content: attr(title);
font-variant: small-caps;
text-transform: lowercase;
color: var(--accent-color);
}

& > p {
margin-top: 0.25em;
margin-bottom: 0.25em;
}

& {
--accent-color: var(--system-blue);
--separator: rgba(0, 122, 255, 0.25);
background: rgba(0, 122, 255, 0.025);
}

&.author,
&.authors,
&.copyright,
&.date {
--accent-color: var(--system-fill);
--separator: var(--system-gray);
background: var(--system-background);
}

&.attention,
&.warning,
&.important {
--accent-color: var(--system-orange);
--separator: rgba(255, 149, 0, 0.25);
background: rgba(255, 149, 0, 0.025);
}

&.bug {
--accent-color: var(--system-pink);
--separator: rgba(255, 59, 48, 0.25);
background: rgba(255, 59, 48, 0.025);
}
}

article {
padding: 2em 0 1em 0;

Expand Down Expand Up @@ -943,7 +998,6 @@ p code,
dd code,
li code {
font-size: smaller;
color: var(--secondary-label);
}

a code {
Expand Down
16 changes: 8 additions & 8 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/SwiftDocOrg/GraphViz.git",
"state": {
"branch": null,
"revision": "74b6cbd8c5ecea9f64d84c4e1c88d65604dd033f",
"version": "0.4.1"
"revision": "e9a73a30755c3c5b26ba7c73312b1f2ccb9a1a30",
"version": "0.4.0"
}
},
{
Expand All @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/SwiftDocOrg/Markup.git",
"state": {
"branch": null,
"revision": "80ddbee0048192bcbb814b016dc8ced41110d44d",
"version": "0.1.2"
"revision": "029ad8c1115ab32b7c20ab52eb092fbc030deb17",
"version": "0.0.4"
}
},
{
Expand Down Expand Up @@ -77,8 +77,8 @@
"package": "SwiftSyntax",
"repositoryURL": "https://github.com/apple/swift-syntax.git",
"state": {
"branch": "0.50300.0",
"revision": "844574d683f53d0737a9c6d706c3ef31ed2955eb",
"branch": "release/5.4",
"revision": "d81b6a6dc2698a93dcc04304fb15a5446b5278a4",
"version": null
}
},
Expand All @@ -95,9 +95,9 @@
"package": "SwiftSemantics",
"repositoryURL": "https://github.com/SwiftDocOrg/SwiftSemantics.git",
"state": {
"branch": null,
"branch": "0.3.0",
"revision": "2f571ccc67e0789d23f8adbccb6a18a6ff3b166c",
"version": "0.3.0"
"version": null
}
},
{
Expand Down
Loading

0 comments on commit a9f3f38

Please sign in to comment.