-
Notifications
You must be signed in to change notification settings - Fork 6
/
_base.page.scss
38 lines (34 loc) · 1.39 KB
/
_base.page.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*------------------------------------*\
#PAGE
\*------------------------------------*/
/**
* High-, page-level styling.
*
* 1. Set the default `font-size` and `line-height` for the entire project,
* sourced from our default variables. The `font-size` is calculated to exist
* in ems, the `line-height` is calculated to exist unitlessly.
* 2. Force scrollbars to always be visible to prevent awkward ‘jumps’ when
* navigating between pages that do/do not have enough content to produce
* scrollbars naturally.
* 3. Ensure the page always fills at least the entire height of the viewport.
* 4. Prevent certain mobile browsers from automatically zooming fonts.
* 5. Fonts on OSX will look more consistent with other systems that do not
* render text using sub-pixel anti-aliasing (use with care!).
*/
/**
* Usage: `@extend %pixel-antialiasing;` in a target selector
*/
%pixel-antialiasing {
-moz-osx-font-smoothing: grayscale; /* [5] */
-webkit-font-smoothing: antialiased; /* [5] */
}
html {
font-size: ($inuit-base-font-size / 16px) * 1em; /* [1] */
line-height: $inuit-base-line-height / $inuit-base-font-size; /* [1] */
background-color: $inuit-base-background-color;
color: $inuit-base-text-color;
overflow-y: scroll; /* [2] */
min-height: 100%; /* [3] */
-webkit-text-size-adjust: 100%; /* [4] */
-ms-text-size-adjust: 100%; /* [4] */
}