forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_typography.scss
More file actions
70 lines (57 loc) · 1.42 KB
/
_typography.scss
File metadata and controls
70 lines (57 loc) · 1.42 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
* Code distributed by Google as part of the polymer project is also
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
$font-size-display: 40px;
h1, h2, h3, h4, h5 {
font-weight: 300;
letter-spacing: -0.01em;
line-height: 48px;
margin: 0;
}
// The @polyfill rules are kept separate from the general ones to the polyfill
// doesn't process them. Helps mitigate FOUC.
h1 {
font-size: $font-size-display;
}
polyfill-next-selector { content: ':host h1'; }
::content h1 {
font-size: $font-size-display;
}
h2 {
font-size: 24px;
}
polyfill-next-selector { content: ':host h2'; }
::content h2 {
font-size: 24px;
}
h3 {
font-size: 20px;
}
polyfill-next-selector { content: ':host h3'; }
::content h3 {
font-size: 20px;
}
h4 {
font-size: 16px;
font-weight: 500;
}
polyfill-next-selector { content: ':host h4'; }
::content h4 {
font-size: 16px;
font-weight: 500;
}
h5 {
font-size: 12px;
font-weight: 500;
}
polyfill-next-selector { content: ':host h5'; }
::content h5 {
font-size: 12px;
font-weight: 500;
}