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
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)