Optimize the language badge position in code block
This commit is contained in:
parent
1b1fa93cf6
commit
de7d2fab7c
1 changed files with 7 additions and 1 deletions
|
@ -157,7 +157,7 @@ div {
|
||||||
div[class^='language-']::before {
|
div[class^='language-']::before {
|
||||||
content: attr(lang);
|
content: attr(lang);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 1.8rem;
|
right: 2rem;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
font-size: 0.7rem;
|
font-size: 0.7rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
@ -170,3 +170,9 @@ div[class^='language-']::before {
|
||||||
right: 3.1rem;
|
right: 3.1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1650px) {
|
||||||
|
div[class^='language-']::before {
|
||||||
|
right: 3.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue