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/_page.scss

80 lines
1.7 KiB
SCSS
Raw Normal View History

// ==========================================================================
// Base / Page
// ==========================================================================
//
// Simple page-level setup.
//
// 1. Set the default `font-size` and `line-height` for the entire project,
// sourced from our default variables.
2020-01-20 15:49:33 -05:00
// 2. Ensure the page always fills at least the entire height of the viewport.
//
html {
2020-01-20 15:49:33 -05:00
min-height: 100%; /* [2] */
2017-04-27 16:00:45 -04:00
color: $color;
font-family: $font-family;
line-height: $line-height; /* [1] */
2020-03-03 08:53:10 -05:00
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: $to-small) {
font-size: 12px;
}
@media (min-width: $from-small) and (max-width: $to-medium) {
font-size: 13px;
}
@media (min-width: $from-medium) and (max-width: $to-large) {
font-size: 14px;
}
@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: 18px;
}
@media (min-width: $from-gigantic) and (max-width: $to-colossal) {
font-size: 21px;
}
@media (min-width: $from-colossal) {
font-size: 24px;
}
2019-06-26 09:32:15 -04:00
&.is-loading {
cursor: wait;
}
&.has-scroll-smooth {
overflow: hidden;
}
&.has-scroll-dragging {
user-select: none;
}
}
body {
.has-scroll-smooth & {
overflow: hidden;
}
}
::selection {
background-color: $selection-background-color;
2017-04-27 16:00:45 -04:00
color: $selection-text-color;
text-shadow: none;
}
a {
color: $link-color;
@include u-hocus {
color: $link-hover-color;
}
}