css: move Cascadia weights and shift further

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-07-21 15:14:58 +02:00
parent d14026d3d8
commit 5210ca493e
Signed by: mfocko
GPG key ID: 7C47D46246790496
2 changed files with 18 additions and 9 deletions

View file

@ -8,3 +8,21 @@
font-style: italic; font-style: italic;
src: url("/fonts/CascadiaCodePLItalic.woff2") format("woff2"); src: url("/fonts/CascadiaCodePLItalic.woff2") format("woff2");
} }
[data-theme='light'] pre,
[data-theme='light'] code,
[data-theme='light'] kbd,
[data-theme='light'] var,
[data-theme='light'] tt,
[data-theme='light'] text {
font-weight: 350;
}
[data-theme='dark'] pre,
[data-theme='dark'] code,
[data-theme='dark'] kbd,
[data-theme='dark'] var,
[data-theme='dark'] tt,
[data-theme='dark'] text {
font-weight: 300;
}

View file

@ -35,15 +35,6 @@ text {
font-family: 'Iosevka', 'Cascadia Code PL', 'JetBrains Mono', 'Fira Code', 'Hack', monospace; font-family: 'Iosevka', 'Cascadia Code PL', 'JetBrains Mono', 'Fira Code', 'Hack', monospace;
} }
[data-theme='dark'] pre,
[data-theme='dark'] code,
[data-theme='dark'] kbd,
[data-theme='dark'] var,
[data-theme='dark'] tt,
[data-theme='dark'] text {
font-weight: 350;
}
[data-theme='light'] img[src$='#gh-dark-mode-only'], [data-theme='light'] img[src$='#gh-dark-mode-only'],
[data-theme='dark'] img[src$='#gh-light-mode-only'], [data-theme='dark'] img[src$='#gh-light-mode-only'],
[data-theme="light"] .dark-mode-only, [data-theme="light"] .dark-mode-only,