1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

Prettified the inline-code code style.

This commit is contained in:
Cotes Chung
2020-06-22 21:08:36 +08:00
parent edeb08aa28
commit 42e0617bde
3 changed files with 10 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ html[mode=dark] {
}
.highlighter-rouge {
background: var(--highlight-bg-color);
background-color: var(--highlight-bg-color);
@extend %code-snippet-radius;
color: var(--highlighter-rouge-color);
margin-bottom: 1.2em; /* Override BS Inline-code style */
@@ -94,16 +94,21 @@ code {
-moz-hyphens: none;
hyphens: none;
&.highlighter-rouge {
padding: 2px 4px;
padding: 3px 5px;
margin: 0 .15rem;
border-radius: 4px;
background-color: var(--inline-code-bg);
}
@at-root a>&.highlighter-rouge {
padding-bottom: 0; // show link's underlinke
color: inherit;
}
@at-root a:hover>&.highlighter-rouge {
border-bottom: none;
}
blockquote &.highlighter-rouge {
color: inherit;
}
}
td.rouge-code {