Skip to content

Commit 0fc1276

Browse files
committed
SCSS compiles. Doesn't... work, but it compiles
1 parent 4bc7b3e commit 0fc1276

File tree

142 files changed

+3138
-2784
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+3138
-2784
lines changed

source/_sass/app.scss

Lines changed: 66 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,25 @@
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

3238
body,
@@ -37,17 +43,17 @@ html {
3743
}
3844

3945
body {
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

5965
code {
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

6975
a 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 {

source/_sass/base/_base.scss

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818
// http://bitters.bourbon.io
1919

2020
// Variables
21-
@import 'variables';
21+
@use 'variables';
2222

2323
// Neat Settings -- uncomment if using Neat -- must be imported before Neat
2424
// @import 'grid-settings';
2525

2626
// Mixins
27-
@import 'mixins/flash';
27+
@use 'mixins/flash';
2828

2929
// Extends
30-
@import 'extends/button';
31-
@import 'extends/clearfix';
32-
@import 'extends/hide-text';
30+
@use 'extends/button';
31+
@use 'extends/clearfix';
32+
@use 'extends/hide-text';
3333

3434
// Typography and Elements
35-
@import 'typography';
35+
@use 'typography';
3636
// @import 'forms';
37-
@import 'tables';
38-
@import 'lists';
39-
@import 'flashes';
37+
@use 'tables';
38+
@use 'lists';
39+
@use 'flashes';
4040
// @import 'buttons';

source/_sass/base/_flashes.scss

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@use "mixins/flash";
2+
@use "variables";
3+
14
/**
25
* Copyright 2025 Google LLC
36
*
@@ -15,17 +18,17 @@
1518
*/
1619

1720
%flash-alert {
18-
@include flash($alert-color);
21+
@include flash.flash(variables.$alert-color);
1922
}
2023

2124
%flash-error {
22-
@include flash($error-color);
25+
@include flash.flash(variables.$error-color);
2326
}
2427

2528
%flash-notice {
26-
@include flash($notice-color);
29+
@include flash.flash(variables.$notice-color);
2730
}
2831

2932
%flash-success {
30-
@include flash($success-color);
33+
@include flash.flash(variables.$success-color);
3134
}

source/_sass/base/_forms.scss

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
fieldset {
1818
background: lighten($base-border-color, 10);
1919
border: 1px solid $base-border-color;
20-
margin: 0 0 ($base-line-height / 2) 0;
20+
margin: 0 0 (calc($base-line-height / 2)) 0;
2121
padding: $base-line-height;
2222
}
2323

@@ -31,7 +31,7 @@ select {
3131

3232
label {
3333
font-weight: bold;
34-
margin-bottom: $base-line-height / 4;
34+
margin-bottom: calc($base-line-height / 4);
3535

3636
&.required:after {
3737
content: "*";
@@ -53,7 +53,7 @@ select[multiple=multiple] {
5353
box-shadow: $form-box-shadow;
5454
font-family: $form-font-family;
5555
font-size: $form-font-size;
56-
margin-bottom: $base-line-height / 2;
56+
margin-bottom: calc($base-line-height / 2);
5757
padding: ($base-line-height / 3) ($base-line-height / 3);
5858
width: 100%;
5959

@@ -76,14 +76,15 @@ input[type="search"] {
7676
@include appearance(none);
7777
}
7878

79-
input[type="checkbox"], input[type="radio"] {
79+
input[type="checkbox"],
80+
input[type="radio"] {
8081
display: inline;
81-
margin-right: $base-line-height / 4;
82+
margin-right: calc($base-line-height / 4);
8283
}
8384

8485
input[type="file"] {
85-
margin-bottom: $base-line-height / 2;
86-
padding-bottom: ($base-line-height / 3);
86+
margin-bottom: calc($base-line-height / 2);
87+
padding-bottom: calc($base-line-height / 3);
8788
width: 100%;
8889
}
8990

source/_sass/base/_lists.scss

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "variables";
2+
13
/**
24
* Copyright 2025 Google LLC
35
*
@@ -14,30 +16,31 @@
1416
* limitations under the License.
1517
*/
1618

17-
ul, ol {
19+
ul,
20+
ol {
1821
margin: 0;
1922
padding: 0;
2023
list-style-type: none;
2124

2225
&%default-ul {
2326
list-style-type: disc;
24-
margin-bottom: $base-line-height / 2;
25-
padding-left: $base-line-height;
27+
margin-bottom: calc(variables.$base-line-height / 2);
28+
padding-left: variables.$base-line-height;
2629
}
2730

2831
&%default-ol {
2932
list-style-type: decimal;
30-
margin-bottom: $base-line-height / 2;
31-
padding-left: $base-line-height;
33+
margin-bottom: calc(variables.$base-line-height / 2);
34+
padding-left: variables.$base-line-height;
3235
}
3336
}
3437

3538
dl {
36-
margin-bottom: $base-line-height / 2;
39+
margin-bottom: calc(variables.$base-line-height / 2);
3740

3841
dt {
3942
font-weight: bold;
40-
margin-top: $base-line-height / 2;
43+
margin-top: calc(variables.$base-line-height / 2);
4144
}
4245

4346
dd {

source/_sass/base/_tables.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "variables";
2+
13
/**
24
* Copyright 2025 Google LLC
35
*
@@ -20,14 +22,16 @@ table {
2022

2123
th {
2224
font-weight: bold;
23-
padding: ($base-line-height / 2) 0;
25+
padding: calc(variables.$base-line-height / 2) 0;
2426
text-align: left;
2527
}
2628

2729
td {
28-
padding: ($base-line-height / 2) 0;
30+
padding: calc(variables.$base-line-height / 2) 0;
2931
}
3032

31-
tr, td, th {
33+
tr,
34+
td,
35+
th {
3236
vertical-align: middle;
3337
}

0 commit comments

Comments
 (0)