1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 13:44:15 +00:00

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;
}