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

Optimize code snippet background color

This commit is contained in:
Cotes Chung
2020-12-18 20:24:14 +08:00
parent 5ffbfaec26
commit 260a906b11
2 changed files with 11 additions and 12 deletions

View File

@@ -36,11 +36,11 @@ html[mode=dark] {
}
%code-snippet-radius {
border-radius: 5px;
border-radius: 6px;
}
%code-snippet-padding {
padding: 0.8rem 1rem;
padding: 1.5rem;
}
$code-font-size: 0.85rem;
@@ -69,8 +69,8 @@ div > pre {
overflow: auto;
.lineno {
margin: 0.8rem 0;
padding: 0 0.5rem;
margin-left: .2rem;
padding-right: .5rem;
min-width: 2.2rem;
text-align: right;
color: var(--highlight-lineno-color);
@@ -131,8 +131,7 @@ code {
}
td.rouge-code {
padding-left: 1rem;
padding-right: 1rem;
padding: 1.5rem 1.5rem 1.5rem 1rem;
}
/* Hide line numbers for default, console, and terminal code snippets */