Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit a9f3f38

Browse files
committed
Style callout delimiters in discussion
1 parent e21e198 commit a9f3f38

File tree

5 files changed

+65
-12
lines changed

5 files changed

+65
-12
lines changed

‎Assets/css/all.css‎

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

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

@@ -943,7 +998,6 @@ p code,
943998
dd code,
944999
li code {
9451000
font-size: smaller;
946-
color: var(--secondary-label);
9471001
}
9481002

9491003
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)

AltStyle によって変換されたページ (->オリジナル) /