|
1 | 1 | /** |
2 | 2 | * Reset some basic elements |
3 | 3 | */ |
4 | | -body, h1, h2, h3, h4, h5, h6, |
5 | | -p, blockquote, pre, hr, |
6 | | -dl, dd, ol, ul, figure { |
7 | | - margin: 0; |
8 | | - padding: 0; |
| 4 | +body, |
| 5 | +h1, |
| 6 | +h2, |
| 7 | +h3, |
| 8 | +h4, |
| 9 | +h5, |
| 10 | +h6, |
| 11 | +p, |
| 12 | +blockquote, |
| 13 | +pre, |
| 14 | +hr, |
| 15 | +dl, |
| 16 | +dd, |
| 17 | +ol, |
| 18 | +ul, |
| 19 | +figure { |
| 20 | + margin: 0; |
| 21 | + padding: 0; |
9 | 22 | } |
10 | 23 |
|
11 | | - |
12 | | - |
13 | 24 | /** |
14 | 25 | * Basic styling |
15 | 26 | */ |
16 | 27 | body { |
17 | | - overflow-y: scroll; |
18 | | - font-family: $base-font-family; |
19 | | - font-size: $base-font-size; |
20 | | - line-height: $base-line-height; |
21 | | - font-weight: 300; |
22 | | - color: $text-color; |
23 | | - background-color: $background-color; |
24 | | - -webkit-text-size-adjust: 100%; |
| 28 | + overflow-y: scroll; |
| 29 | + font-family: $base-font-family; |
| 30 | + font-size: $base-font-size; |
| 31 | + line-height: $base-line-height; |
| 32 | + font-weight: 300; |
| 33 | + color: $text-color; |
| 34 | + background-color: $background-color; |
| 35 | + -webkit-text-size-adjust: 100%; |
25 | 36 | } |
26 | 37 |
|
27 | | - |
28 | | - |
29 | 38 | /** |
30 | 39 | * Set `margin-bottom` to maintain vertical rhythm |
31 | 40 | */ |
32 | | -h1, h2, h3, h4, h5, h6, |
33 | | -p, blockquote, pre, |
34 | | -ul, ol, dl, figure, |
| 41 | +h1, |
| 42 | +h2, |
| 43 | +h3, |
| 44 | +h4, |
| 45 | +h5, |
| 46 | +h6, |
| 47 | +p, |
| 48 | +blockquote, |
| 49 | +pre, |
| 50 | +ul, |
| 51 | +ol, |
| 52 | +dl, |
| 53 | +figure, |
35 | 54 | %vertical-rhythm { |
36 | | - margin-bottom: $spacing-unit / 1.5; |
| 55 | + margin-bottom: $spacing-unit / 1.5; |
37 | 56 | } |
38 | 57 |
|
39 | | - |
40 | 58 | /** |
41 | 59 | * Images |
42 | 60 | */ |
43 | 61 | img { |
44 | | - max-width: 100%; |
45 | | - height: auto; |
46 | | - vertical-align: middle; |
| 62 | + max-width: 100%; |
| 63 | + height: auto; |
| 64 | + vertical-align: middle; |
47 | 65 | } |
48 | 66 |
|
49 | | - |
50 | | - |
51 | 67 | /** |
52 | 68 | * Figures |
53 | 69 | */ |
54 | 70 | figure > img { |
55 | | - display: block; |
| 71 | + display: block; |
56 | 72 | } |
57 | 73 |
|
58 | 74 | figcaption { |
59 | | - font-size: $small-font-size; |
| 75 | + font-size: $small-font-size; |
60 | 76 | } |
61 | 77 |
|
62 | | - |
63 | | - |
64 | 78 | /** |
65 | 79 | * Lists |
66 | 80 | */ |
67 | | -ul, ol { |
68 | | - margin-left: $spacing-unit; |
| 81 | +ul, |
| 82 | +ol { |
| 83 | + margin-left: $spacing-unit; |
69 | 84 | } |
70 | 85 |
|
71 | 86 | li { |
72 | | - > ul, |
73 | | - > ol { |
74 | | - margin-bottom: 0; |
75 | | - } |
| 87 | + > ul, |
| 88 | + > ol { |
| 89 | + margin-bottom: 0; |
| 90 | + } |
76 | 91 | } |
77 | 92 |
|
78 | | - |
79 | | - |
80 | 93 | /** |
81 | 94 | * Headings |
82 | 95 | */ |
83 | | -h1, h2, h3, h4, h5, h6 { |
84 | | - font-weight: 300; |
| 96 | +h1, |
| 97 | +h2, |
| 98 | +h3, |
| 99 | +h4, |
| 100 | +h5, |
| 101 | +h6 { |
| 102 | + font-weight: 300; |
85 | 103 | } |
86 | 104 |
|
87 | 105 | h1.post-title { |
88 | | - color: #486391; |
| 106 | + color: #486391; |
89 | 107 | } |
90 | 108 |
|
91 | | - |
92 | 109 | /** |
93 | 110 | * Links |
94 | 111 | */ |
95 | 112 | a { |
96 | | - color: $brand-color; |
97 | | - text-decoration: underline; |
| 113 | + color: $brand-color; |
| 114 | + text-decoration: underline; |
98 | 115 |
|
99 | | - &:visited { |
100 | | - color: darken($brand-color, 15%); |
101 | | - } |
| 116 | + &:visited { |
| 117 | + color: darken($brand-color, 15%); |
| 118 | + } |
102 | 119 |
|
103 | | - &:hover { |
104 | | - color: $text-color; |
105 | | - text-decoration: underline; |
106 | | - } |
| 120 | + &:hover { |
| 121 | + color: $text-color; |
| 122 | + text-decoration: underline; |
| 123 | + } |
107 | 124 | } |
108 | 125 |
|
109 | | - |
110 | | - |
111 | 126 | /** |
112 | 127 | * Blockquotes |
113 | 128 | */ |
114 | 129 | blockquote { |
115 | | - color: $grey-color; |
116 | | - border-left: 4px solid $grey-color-light; |
117 | | - padding-left: $spacing-unit / 2; |
118 | | - font-size: 18px; |
119 | | - letter-spacing: -1px; |
120 | | - font-style: italic; |
| 130 | + color: $grey-color; |
| 131 | + border-left: 4px solid $grey-color-light; |
| 132 | + padding-left: $spacing-unit / 2; |
| 133 | + font-size: 18px; |
| 134 | + letter-spacing: -1px; |
| 135 | + font-style: italic; |
121 | 136 |
|
122 | | - > :last-child { |
123 | | - margin-bottom: 0; |
124 | | - } |
| 137 | + > :last-child { |
| 138 | + margin-bottom: 0; |
| 139 | + } |
125 | 140 | } |
126 | 141 |
|
127 | | - |
128 | | - |
129 | 142 | /** |
130 | 143 | * Code formatting |
131 | 144 | */ |
132 | 145 | pre, |
133 | 146 | code { |
134 | | - font-size: 15px; |
135 | | - border: 1px solid $grey-color-light; |
136 | | - border-radius: 3px; |
137 | | - background-color: #f5f5f5; |
| 147 | + border: 1px solid $grey-color-light; |
| 148 | + border-radius: 8px; |
| 149 | + background-color: #f5f5f5; |
138 | 150 | } |
139 | 151 |
|
140 | 152 | code { |
141 | | - padding: 1px 5px; |
| 153 | + padding: 1px 5px; |
| 154 | + font-size: 0.9em; |
142 | 155 | } |
143 | 156 |
|
144 | 157 | pre { |
145 | | - padding: 8px 12px; |
146 | | - overflow-x: scroll; |
| 158 | + padding: 1em; |
| 159 | + overflow-x: scroll; |
147 | 160 |
|
148 | | - > code { |
149 | | - border: 0; |
150 | | - padding-right: 0; |
151 | | - padding-left: 0; |
152 | | - } |
| 161 | + > code { |
| 162 | + border: 0; |
| 163 | + padding-right: 0; |
| 164 | + padding-left: 0; |
| 165 | + } |
153 | 166 | } |
154 | 167 |
|
155 | | - |
156 | | - |
157 | 168 | /** |
158 | 169 | * Wrapper |
159 | 170 | */ |
160 | 171 | .wrapper { |
161 | | - max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2)); |
162 | | - max-width: calc(#{$content-width} - (#{$spacing-unit} * 2)); |
163 | | - margin-right: auto; |
164 | | - margin-left: auto; |
165 | | - padding-right: $spacing-unit; |
166 | | - padding-left: $spacing-unit; |
167 | | - padding-top: $spacing-unit; |
168 | | - @extend %clearfix; |
169 | | - |
170 | | - @include media-query($on-laptop) { |
171 | | - max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit})); |
172 | | - max-width: calc(#{$content-width} - (#{$spacing-unit})); |
173 | | - padding-right: $spacing-unit / 2; |
174 | | - padding-left: $spacing-unit / 2; |
175 | | - } |
| 172 | + max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2)); |
| 173 | + max-width: calc(#{$content-width} - (#{$spacing-unit} * 2)); |
| 174 | + margin-right: auto; |
| 175 | + margin-left: auto; |
| 176 | + padding-right: $spacing-unit; |
| 177 | + padding-left: $spacing-unit; |
| 178 | + padding-top: $spacing-unit; |
| 179 | + @extend %clearfix; |
| 180 | + |
| 181 | + @include media-query($on-laptop) { |
| 182 | + max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit})); |
| 183 | + max-width: calc(#{$content-width} - (#{$spacing-unit})); |
| 184 | + padding-right: $spacing-unit / 2; |
| 185 | + padding-left: $spacing-unit / 2; |
| 186 | + } |
176 | 187 | } |
177 | 188 |
|
178 | | - |
179 | | - |
180 | 189 | /** |
181 | 190 | * Clearfix |
182 | 191 | */ |
183 | 192 | %clearfix { |
184 | | - |
185 | | - &:after { |
186 | | - content: ""; |
187 | | - display: table; |
188 | | - clear: both; |
189 | | - } |
| 193 | + &:after { |
| 194 | + content: ""; |
| 195 | + display: table; |
| 196 | + clear: both; |
| 197 | + } |
190 | 198 | } |
191 | 199 |
|
192 | | - |
193 | | - |
194 | 200 | /** |
195 | 201 | * Icons |
196 | 202 | */ |
197 | 203 | .icon { |
| 204 | + > svg { |
| 205 | + display: inline-block; |
| 206 | + width: 16px; |
| 207 | + height: 16px; |
| 208 | + vertical-align: middle; |
198 | 209 |
|
199 | | - > svg { |
200 | | - display: inline-block; |
201 | | - width: 16px; |
202 | | - height: 16px; |
203 | | - vertical-align: middle; |
204 | | - |
205 | | - path { |
206 | | - fill: $grey-color; |
207 | | - } |
| 210 | + path { |
| 211 | + fill: $grey-color; |
208 | 212 | } |
| 213 | + } |
209 | 214 | } |
210 | 215 |
|
211 | 216 | .ai-text-block { |
212 | | - background-color: #fff3e6; |
213 | | - padding: 1em; |
214 | | - margin: 1em 0; |
215 | | - border-radius: 4px; |
| 217 | + background-color: #fff3e6; |
| 218 | + padding: 1em; |
| 219 | + margin: 1em 0; |
| 220 | + border-radius: 4px; |
216 | 221 | } |
0 commit comments