mirror of
https://github.com/locomotivemtl/locomotive-boilerplate.git
synced 2026-01-15 00:55:08 +08:00
56 lines
1.3 KiB
SCSS
56 lines
1.3 KiB
SCSS
// ==========================================================================
|
|
// Elements / Document
|
|
// ==========================================================================
|
|
|
|
//
|
|
// Simple page-level setup.
|
|
//
|
|
// 1. Includes fonts
|
|
// 2. Ensure the page always fills at least the entire height of the viewport.
|
|
// 3. Set the default `font-size` and `line-height` for the entire project,
|
|
// sourced from our default variables.
|
|
|
|
@include font-faces($font-faces, $font-dir); // [1]
|
|
|
|
html {
|
|
min-height: 100%; // [2]
|
|
line-height: $line-height; // [3]
|
|
font-family: ff("sans");
|
|
color: $font-color;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
@media (max-width: $to-sm) {
|
|
font-size: $font-size - 2px;
|
|
}
|
|
|
|
@media (min-width: $from-sm) and (max-width: $to-lg) {
|
|
font-size: $font-size - 1px;
|
|
}
|
|
|
|
@media (min-width: $from-lg) and (max-width: $to-2xl) {
|
|
font-size: $font-size;
|
|
}
|
|
|
|
@media (min-width: $from-2xl) and (max-width: $to-3xl) {
|
|
font-size: $font-size + 1px;
|
|
}
|
|
|
|
@media (min-width: $from-3xl) {
|
|
font-size: $font-size + 2px;
|
|
}
|
|
|
|
&.is-loading {
|
|
cursor: wait;
|
|
}
|
|
}
|
|
|
|
body {
|
|
}
|
|
|
|
::selection {
|
|
background-color: $color-selection-background;
|
|
color: $color-selection-text;
|
|
text-shadow: none;
|
|
}
|