This repository has been archived by the owner on Jan 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_typography.scss
123 lines (107 loc) · 3.37 KB
/
_typography.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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
@font-face {
font-family: 'TeX Gyre Heros';
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-regular-webfont.eot');
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-regular-webfont.woff') format('woff'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-regular-webfont.ttf') format('truetype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-regular-webfont.svg#texgyreherosregular') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'TeX Gyre Heros';
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-italic-webfont.eot');
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-italic-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-italic-webfont.woff') format('woff'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-italic-webfont.ttf') format('truetype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-italic-webfont.svg#texgyreherositalic') format('svg');
font-weight: normal;
font-style:italic;
}
@font-face {
font-family: 'TeX Gyre Heros';
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-bold-webfont.eot');
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bold-webfont.woff') format('woff'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bold-webfont.ttf') format('truetype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bold-webfont.svg#texgyreherosbold') format('svg');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'TeX Gyre Heros';
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-bolditalic-webfont.eot');
src: url('#{$path-to-fonts}/texgyreheros/texgyreheros-bolditalic-webfont.eot?#iefix') format('embedded-opentype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bolditalic-webfont.woff') format('woff'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bolditalic-webfont.ttf') format('truetype'),
url('#{$path-to-fonts}/texgyreheros/texgyreheros-bolditalic-webfont.svg#texgyreherosbold_italic') format('svg');
font-weight: bold;
font-style: italic;;
}
body {
color: $base-font-color;
font-family: $base-font-family;
font-size: $base-font-size;
line-height: $base-line-height;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $heading-font-family;
font-size: $base-font-size;
line-height: $heading-line-height;
margin: 0 0 $small-spacing;
}
h1,
h2 {
padding-bottom: 0.3em;
border-bottom: solid 1px $medium-gray;
}
h1 {
font-size: em(24);
font-weight: normal;
@include MQ(M) {
font-size: em(36);
}
}
h2 {
font-size: em(20);
margin-top: 1.5em;
@include MQ(M) {
font-size: em(22);
}
}
aside {
h2 {
font-size: em(18);
}
}
p {
margin: 0 0 $small-spacing;
}
a {
color: $action-color;
text-decoration: none;
transition: color $base-duration $base-timing;
font-weight: bold;
&:active,
&:focus,
&:hover {
color: shade($action-color, 25%);
}
}
hr {
border-bottom: $base-border;
border-left: 0;
border-right: 0;
border-top: 0;
margin: $base-spacing 0;
}
img,
picture {
margin: 0;
max-width: 100%;
}