Optimize the language badge position in code block

This commit is contained in:
Cotes Chung 2021-02-08 03:46:20 +08:00
parent 1b1fa93cf6
commit de7d2fab7c

View file

@ -157,7 +157,7 @@ div {
div[class^='language-']::before {
content: attr(lang);
position: absolute;
right: 1.8rem;
right: 2rem;
margin-top: 3px;
font-size: 0.7rem;
font-weight: 600;
@ -170,3 +170,9 @@ div[class^='language-']::before {
right: 3.1rem;
}
}
@media (min-width: 1650px) {
div[class^='language-']::before {
right: 3.5rem;
}
}