1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00
Files
locomotive-boilerplate/assets/styles/elements/_document.scss

86 lines
1.9 KiB
SCSS
Raw Normal View History

// ==========================================================================
2022-05-12 16:15:44 +02:00
// Elements / Document
// ==========================================================================
//
// Simple page-level setup.
//
2023-06-08 11:48:00 +02:00
// 1. Ensure the page always fills at least the entire height of the viewport.
// 2. Set the default `font-size` and `line-height` for the entire project,
// sourced from our default variables.
html {
2023-06-08 11:48:00 +02:00
min-height: 100%; // [1]
line-height: $line-height; // [2]
font-family: ff("sans");
color: $font-color;
2020-03-03 08:53:10 -05:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: $to-small) {
font-size: $font-size - 2px;
}
@media (min-width: $from-small) and (max-width: $to-medium) {
font-size: $font-size - 2px;
}
@media (min-width: $from-medium) and (max-width: $to-large) {
font-size: $font-size - 1px;
}
@media (min-width: $from-large) and (max-width: $to-huge) {
font-size: $font-size; // [1]
}
@media (min-width: $from-huge) and (max-width: $to-gigantic) {
font-size: $font-size + 1px;
}
@media (min-width: $from-gigantic) and (max-width: $to-colossal) {
font-size: $font-size + 2px;
}
@media (min-width: $from-colossal) {
font-size: $font-size + 4px;
}
2019-06-26 09:32:15 -04:00
&.is-loading {
cursor: wait;
}
&.has-scroll-smooth {
overflow: hidden;
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
}
&.has-scroll-dragging {
user-select: none;
}
}
body {
.has-scroll-smooth & {
overflow: hidden;
}
}
::selection {
2023-04-19 15:37:52 +02:00
background-color: $color-selection-background;
color: $color-selection-text;
2017-04-27 16:00:45 -04:00
text-shadow: none;
}
a {
color: $color-link;
@include u-hocus {
color: $color-link-hover;
}
}