LoveIt/assets/css/_core/_base.scss

62 lines
1.1 KiB
SCSS
Raw Normal View History

html {
2020-01-31 11:46:28 +01:00
font-family: $global-font-family;
2020-03-03 14:57:30 +01:00
font-weight: $global-font-weight;
2020-03-16 03:59:51 +01:00
font-display: swap;
font-size: $global-font-size;
2020-03-03 14:57:30 +01:00
line-height: $global-line-height;
2020-02-21 04:11:56 +01:00
width:100%;
scroll-behavior: smooth;
main [id] {
scroll-margin-top: $header-height + .5rem;
}
}
/* scrollbar, only support webkit */
::-webkit-scrollbar {
width: .5rem;
height: .5rem;
}
::-webkit-scrollbar-thumb {
background-color: $scrollbar-color;
&:hover {
background-color: $scrollbar-hover-color;
}
}
::selection {
background-color: $selection-color;
2020-04-27 19:38:22 +02:00
[theme=dark] & {
background-color: $selection-color-dark;
}
}
body {
background-color: $global-background-color;
color: $global-font-color;
@include overflow-wrap(break-word);
scrollbar-color: auto;
2020-04-27 19:38:22 +02:00
&[theme=dark] {
color: $global-font-color-dark;
background-color: $global-background-color-dark;
}
}
@include ms;
@include link(true, true);
@import "../_partial/mask";
@import "../_partial/icon";
@import "../_partial/details";
@import "../_partial/fixed-button";
@import "../_partial/cookieconsent";
2020-04-29 17:48:00 +02:00
img {
@include object-fit(contain);
2020-04-29 17:48:00 +02:00
}