1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Covert the language alias on code header

This commit is contained in:
Cotes Chung
2021-09-22 21:20:30 +08:00
parent 4ad0a76789
commit ed93fbdfde
3 changed files with 76 additions and 9 deletions

View File

@@ -172,7 +172,7 @@ div {
align-items: center;
line-height: 1.85rem;
// the label
// the label block
span {
color: var(--lang-badge-color);
padding-left: 0.6rem;
@@ -183,13 +183,7 @@ div {
margin-left: 0.3rem;
font-weight: 600;
// language
@at-root .highlighter-rouge:not([file]) #{&} {
font-size: 0.75rem;
text-transform: uppercase;
}
} // :after
}
@at-root [file] #{&} > i { // center the file icon
position: relative;