Add `filepath` style for code

This commit is contained in:
Cotes Chung 2022-01-22 22:41:23 +08:00
parent 4845f6ef14
commit 756465d621
2 changed files with 9 additions and 1 deletions

View File

@ -110,6 +110,13 @@ code {
background-color: var(--inline-code-bg);
}
&.filepath {
background-color: inherit;
color: var(--filepath-text-color);
font-weight: 600;
padding: 0;
}
a > &.highlighter-rouge {
padding-bottom: 0; // show link's underlinke
color: inherit;
@ -119,7 +126,7 @@ code {
border-bottom: none;
}
blockquote &.highlighter-rouge {
blockquote & {
color: inherit;
}

View File

@ -78,6 +78,7 @@
--code-header-muted-color: rgb(60 60 60);
--code-header-icon-color: rgb(86 86 86);
--clipboard-checked-color: #2bcc2b;
--filepath-text-color: #bdbdbd;
.highlight {
.gp { color: #818c96; }