libremdb/src/styles/base/_root.scss
zyachel 81eaf2fd5e fix: couple css improvements for webkit-based browsers
introduces a new mixin to handle webkit-based shenanigans.
also adds a mixin to make keyboard navigation easier.
and other small tweaks to css(like accent color and color scheme).
2022-12-31 22:10:31 +05:30

33 lines
816 B
SCSS

@use '../abstracts' as helper;
:root {
@include helper.typography;
@include helper.typescale('desktop');
@include helper.spacers;
@include helper.colors('light');
// dark themed vars when root has an attribute of theme set to 'dark'
&[data-theme='dark'] {
@include helper.colors('dark');
}
// styles to be applied when js is disabled
&:not([data-js]) {
// if the user prefers dark theme
@media (prefers-color-scheme: dark) {
// using dark theme instead of default one
@include helper.colors('dark');
}
}
// change typescale for small screens
@include helper.bp('bp-700') {
@include helper.typescale('mobile');
}
// not using any external fonts on webkit because of many issues
@include helper.fix-for-safari {
--ff-accent: var(--ff-base);
}
}