1414 * limitations under the License.
1515 */
1616
17- @import ' bourbon/bourbon' ;
17+ @use " sass:color" ;
18+ @use " sass:meta" ;
19+ @use ' bourbon/bourbon' ;
1820
19- @import ' colors' ;
21+ @use ' colors' ;
2022
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' ;
2426
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 ;
2733
2834* {
29- @include box-sizing (border-box );
35+ @include box-sizing . box-sizing (border-box );
3036}
3137
3238body ,
@@ -37,17 +43,17 @@ html {
3743}
3844
3945body {
40- padding-top : $header-height ;
41- background-color : $gray-01 ;
46+ padding-top : header . $header-height ;
47+ background-color : colors . $gray-01 ;
4248}
4349
4450.anchor [id ],
4551.anchor [name ] {
4652 & ::before {
4753 content : ' ' ;
4854 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 ;
5157 visibility : hidden ;
5258 }
5359}
@@ -57,17 +63,17 @@ body {
5763}
5864
5965code {
60- background-color : $white ;
66+ background-color : colors . $white ;
6167 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 ;
6571 padding : 2px 4px ;
6672 box-shadow : inset 0 0 2px #bbb ;
6773}
6874
6975a code {
70- color : darken ( $base-link-color , 10 );
76+ color : color . adjust ( variables . $base-link-color , $lightness : -10 % );
7177}
7278
7379.container {
@@ -105,7 +111,7 @@ a code {
105111 line-height : 1.1 ;
106112
107113 a {
108- color : $base-text-color ;
114+ color : utilities-variables . $base-text-color ;
109115
110116 & :hover {
111117 text-decoration : underline ;
@@ -155,48 +161,48 @@ a code {
155161 overflow : hidden ;
156162}
157163
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' ) ;
169175// @import 'elements/terminal';
170- @import ' elements/toc' ;
176+ @include meta . load-css ( ' elements/toc' ) ;
171177// @import 'elements/typeahead';
172178// @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' ) ;
200206
201207.mm-page {
202208 height : 100% ;
@@ -214,11 +220,11 @@ a code {
214220.mm-opened ,
215221.mm-opening {
216222 .mm-page {
217- margin-top : -1 * $header-height ;
223+ margin-top : -1 * header . $header-height ;
218224 }
219225
220226 .content {
221- padding-top : $header-height ;
227+ padding-top : header . $header-height ;
222228 }
223229}
224230
@@ -236,7 +242,7 @@ a code {
236242}
237243
238244.modal-content {
239- background-color : $gray-01 ;
245+ background-color : colors . $gray-01 ;
240246}
241247
242248.header--skinny {
0 commit comments