mirror of
https://github.com/sendevia/website.git
synced 2026-03-05 23:32:45 +08:00
feat(theme): enhance code block language label styling
This commit is contained in:
@@ -51,7 +51,7 @@ export default defineConfig({
|
||||
["link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }],
|
||||
["link", { href: "https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@200..800&display=swap", rel: "stylesheet" }],
|
||||
["link", { href: "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200..800&display=swap", rel: "stylesheet" }],
|
||||
["link", { href: "https://fonts.googleapis.com/css2?family=Source+Code+Pro&display=swap", rel: "stylesheet" }],
|
||||
["link", { href: "https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap", rel: "stylesheet" }],
|
||||
[
|
||||
"link",
|
||||
{ href: "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200", rel: "stylesheet" },
|
||||
|
||||
@@ -158,6 +158,8 @@ section {
|
||||
}
|
||||
|
||||
span.lang {
|
||||
@include mixin.typescale-style("body-medium", $font-family: Source Code Pro, $font-variation-settings: "wght" 700);
|
||||
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
@@ -165,7 +167,7 @@ section {
|
||||
margin-block-start: 6px;
|
||||
margin-inline-end: 9px;
|
||||
|
||||
color: var(--md-ref-palette-neutral90);
|
||||
color: var(--md-ref-palette-neutral50);
|
||||
text-transform: uppercase;
|
||||
|
||||
transition: color var(--md-sys-motion-spring-default-effect-duration) var(--md-sys-motion-spring-default-effect);
|
||||
|
||||
Reference in New Issue
Block a user