14
14
* limitations under the License.
15
15
*/
16
16
17
- @import ' bourbon/bourbon' ;
17
+ @use " sass:color" ;
18
+ @use " sass:meta" ;
19
+ @use ' bourbon/bourbon' ;
18
20
19
- @import ' colors' ;
21
+ @use ' colors' ;
20
22
21
- @import ' base/base' ;
22
- @import ' responsive/responsive' ;
23
- @import ' font-awesome/font-awesome' ;
23
+ @use ' base/base' ;
24
+ @use ' responsive/responsive' ;
25
+ @use ' font-awesome/font-awesome' ;
24
26
25
- @import ' header' ;
26
- @import ' footer' ;
27
+ @use ' header' ;
28
+ @use ' footer' ;
29
+ @use " base/variables" ;
30
+ @use " bourbon/addons/font-family" ;
31
+ @use " bourbon/css3/box-sizing" ;
32
+ @use " responsive/utilities/variables" as utilities-variables ;
27
33
28
34
* {
29
- @include box-sizing (border-box );
35
+ @include box-sizing . box-sizing (border-box );
30
36
}
31
37
32
38
body ,
@@ -37,17 +43,17 @@ html {
37
43
}
38
44
39
45
body {
40
- padding-top : $header-height ;
41
- background-color : $gray-01 ;
46
+ padding-top : header . $header-height ;
47
+ background-color : colors . $gray-01 ;
42
48
}
43
49
44
50
.anchor [id ],
45
51
.anchor [name ] {
46
52
& ::before {
47
53
content : ' ' ;
48
54
display : block ;
49
- height : $header-height ;
50
- margin-top : -0.7 * $header-height ;
55
+ height : header . $header-height ;
56
+ margin-top : -0.7 * header . $header-height ;
51
57
visibility : hidden ;
52
58
}
53
59
}
@@ -57,17 +63,17 @@ body {
57
63
}
58
64
59
65
code {
60
- background-color : $white ;
66
+ background-color : colors . $white ;
61
67
border-radius : 2px ;
62
- color : darken ( $base-font-color , 20 );
63
- font-family : $monospace ;
64
- font-size : $base-font-size ;
68
+ color : color . adjust ( variables . $base-font-color , $lightness : -20 % );
69
+ font-family : font-family . $monospace ;
70
+ font-size : utilities-variables . $base-font-size ;
65
71
padding : 2px 4px ;
66
72
box-shadow : inset 0 0 2px #bbb ;
67
73
}
68
74
69
75
a code {
70
- color : darken ( $base-link-color , 10 );
76
+ color : color . adjust ( variables . $base-link-color , $lightness : -10 % );
71
77
}
72
78
73
79
.container {
@@ -105,7 +111,7 @@ a code {
105
111
line-height : 1.1 ;
106
112
107
113
a {
108
- color : $base-text-color ;
114
+ color : utilities-variables . $base-text-color ;
109
115
110
116
& :hover {
111
117
text-decoration : underline ;
@@ -155,48 +161,48 @@ a code {
155
161
overflow : hidden ;
156
162
}
157
163
158
- @import ' elements/alert' ;
159
- @import ' elements/buttons' ;
160
- @import ' elements/form' ;
161
- @import ' elements/mobile-nav' ;
162
- @import ' elements/highlight' ;
163
- @import ' elements/inline-list' ;
164
- @import ' elements/markdown' ;
165
- @import ' elements/screenshot' ;
166
- @import ' elements/sidebar' ;
167
- @import ' elements/spinner' ;
168
- @import ' elements/table' ;
164
+ @include meta . load-css ( ' elements/alert' ) ;
165
+ @include meta . load-css ( ' elements/buttons' ) ;
166
+ @include meta . load-css ( ' elements/form' ) ;
167
+ @include meta . load-css ( ' elements/mobile-nav' ) ;
168
+ @include meta . load-css ( ' elements/highlight' ) ;
169
+ @include meta . load-css ( ' elements/inline-list' ) ;
170
+ @include meta . load-css ( ' elements/markdown' ) ;
171
+ @include meta . load-css ( ' elements/screenshot' ) ;
172
+ @include meta . load-css ( ' elements/sidebar' ) ;
173
+ @include meta . load-css ( ' elements/spinner' ) ;
174
+ @include meta . load-css ( ' elements/table' ) ;
169
175
// @import 'elements/terminal';
170
- @import ' elements/toc' ;
176
+ @include meta . load-css ( ' elements/toc' ) ;
171
177
// @import 'elements/typeahead';
172
178
// @import 'elements/video';
173
- @import ' elements/bigbox' ;
174
- @import ' elements/full-height' ;
175
- @import ' elements/sectionmenu' ;
176
- @import ' elements/search' ;
177
- @import ' elements/gray-box' ;
178
- @import ' elements/ribbon' ;
179
- @import ' elements/pagination' ;
180
- @import ' elements/landing-slider' ;
181
- @import ' elements/platform-choice' ;
182
- @import ' elements/dual-image' ;
183
-
184
- @import ' sections/getting-started' ;
185
-
186
- @import ' libs/slick' ;
187
- @import ' mmenu/jquery.mmenu.all.scss' ;
188
-
189
- @import ' sections/events' ;
190
- @import ' sections/blog' ;
191
- @import ' sections/documentation' ;
192
- @import ' sections/examples' ;
193
- @import ' sections/guides' ;
194
- @import ' sections/retreat' ;
195
- @import ' sections/inspiration' ;
196
- @import ' sections/round' ;
197
- @import ' sections/sdk' ;
198
-
199
- @import ' debug' ;
179
+ @include meta . load-css ( ' elements/bigbox' ) ;
180
+ @include meta . load-css ( ' elements/full-height' ) ;
181
+ @include meta . load-css ( ' elements/sectionmenu' ) ;
182
+ @include meta . load-css ( ' elements/search' ) ;
183
+ @include meta . load-css ( ' elements/gray-box' ) ;
184
+ @include meta . load-css ( ' elements/ribbon' ) ;
185
+ @include meta . load-css ( ' elements/pagination' ) ;
186
+ @include meta . load-css ( ' elements/landing-slider' ) ;
187
+ @include meta . load-css ( ' elements/platform-choice' ) ;
188
+ @include meta . load-css ( ' elements/dual-image' ) ;
189
+
190
+ @include meta . load-css ( ' sections/getting-started' ) ;
191
+
192
+ @include meta . load-css ( ' libs/slick' ) ;
193
+ @include meta . load-css ( ' mmenu/jquery.mmenu.all.scss' ) ;
194
+
195
+ @include meta . load-css ( ' sections/events' ) ;
196
+ @include meta . load-css ( ' sections/blog' ) ;
197
+ @include meta . load-css ( ' sections/documentation' ) ;
198
+ @include meta . load-css ( ' sections/examples' ) ;
199
+ @include meta . load-css ( ' sections/guides' ) ;
200
+ @include meta . load-css ( ' sections/retreat' ) ;
201
+ @include meta . load-css ( ' sections/inspiration' ) ;
202
+ @include meta . load-css ( ' sections/round' ) ;
203
+ @include meta . load-css ( ' sections/sdk' ) ;
204
+
205
+ @include meta . load-css ( ' debug' ) ;
200
206
201
207
.mm-page {
202
208
height : 100% ;
@@ -214,11 +220,11 @@ a code {
214
220
.mm-opened ,
215
221
.mm-opening {
216
222
.mm-page {
217
- margin-top : -1 * $header-height ;
223
+ margin-top : -1 * header . $header-height ;
218
224
}
219
225
220
226
.content {
221
- padding-top : $header-height ;
227
+ padding-top : header . $header-height ;
222
228
}
223
229
}
224
230
@@ -236,7 +242,7 @@ a code {
236
242
}
237
243
238
244
.modal-content {
239
- background-color : $gray-01 ;
245
+ background-color : colors . $gray-01 ;
240
246
}
241
247
242
248
.header--skinny {
0 commit comments