uswds-jekyll 5.0.1 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +52 -93
- data/_includes/components/banner.html +11 -9
- data/_sass/uswds/components/_header.scss +1 -1
- data/_sass/uswds/components/_nav-buttons.scss +4 -4
- data/_sass/uswds/src/components/_alerts.scss +8 -9
- data/_sass/uswds/src/components/_banner.scss +102 -31
- data/_sass/uswds/src/components/_breadcrumb.scss +168 -0
- data/_sass/uswds/src/components/_footer.scss +14 -4
- data/_sass/uswds/src/components/_header.scss +1 -1
- data/_sass/uswds/src/components/_identifier.scss +146 -0
- data/_sass/uswds/src/components/_media-block.scss +6 -1
- data/_sass/uswds/src/components/_megamenu.scss +4 -1
- data/_sass/uswds/src/components/_section.scss +6 -2
- data/_sass/uswds/src/components/_skipnav.scss +2 -2
- data/_sass/uswds/src/components/_step-indicator.scss +444 -0
- data/_sass/uswds/src/components/_tooltip.scss +114 -0
- data/_sass/uswds/src/core/_functions.scss +631 -0
- data/_sass/uswds/src/core/_notifications.scss +14 -0
- data/_sass/uswds/src/core/_properties.scss +120 -108
- data/_sass/uswds/src/core/_system-tokens.scss +140 -155
- data/_sass/uswds/src/core/_variables.scss +134 -32
- data/_sass/uswds/src/core/mixins/_add-link-styles.scss +20 -0
- data/_sass/uswds/src/core/mixins/_all.scss +4 -0
- data/_sass/uswds/src/core/mixins/_font-face.scss +1 -1
- data/_sass/uswds/src/core/mixins/_icon.scss +119 -0
- data/_sass/uswds/src/core/mixins/_media-block-img.scss +1 -1
- data/_sass/uswds/src/core/mixins/_set-link-from-bg.scss +30 -0
- data/_sass/uswds/src/core/mixins/_set-text-from-bg.scss +28 -0
- data/_sass/uswds/src/core/mixins/utilities/_align-self.scss +11 -0
- data/_sass/uswds/src/core/mixins/utilities/_border.scss +1 -1
- data/_sass/uswds/src/core/mixins/utilities/_flex.scss +6 -1
- data/_sass/uswds/src/core/mixins/utilities/_text.scss +6 -1
- data/_sass/uswds/src/core/placeholders/_list.scss +5 -0
- data/_sass/uswds/src/core/system-tokens/_blue-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_blue.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_cyan.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gold.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_gray-cool.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray-warm.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_gray.scss +2 -2
- data/_sass/uswds/src/core/system-tokens/_green-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_green.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo-cool.scss +6 -6
- data/_sass/uswds/src/core/system-tokens/_indigo-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_indigo.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_magenta.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_mint.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_orange.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-cool.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_red.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet-warm.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_violet.scss +3 -3
- data/_sass/uswds/src/core/system-tokens/_yellow.scss +3 -3
- data/_sass/uswds/src/elements/_buttons.scss +31 -24
- data/_sass/uswds/src/elements/form-controls/_all.scss +2 -0
- data/_sass/uswds/src/elements/form-controls/_checkbox-and-radio.scss +4 -2
- data/_sass/uswds/src/elements/form-controls/_combo-box.scss +80 -9
- data/_sass/uswds/src/elements/form-controls/_date-picker.scss +325 -0
- data/_sass/uswds/src/elements/form-controls/_file-input.scss +195 -0
- data/_sass/uswds/src/elements/form-controls/_global.scss +10 -3
- data/_sass/uswds/src/elements/form-controls/_time-picker.scss +3 -0
- data/_sass/uswds/src/packages/_usa-breadcrumb.scss +4 -0
- data/_sass/uswds/src/packages/_usa-identifier.scss +1 -0
- data/_sass/uswds/src/packages/_usa-step-indicator.scss +2 -0
- data/_sass/uswds/src/packages/_usa-tooltip.scss +2 -0
- data/_sass/uswds/src/packages/_uswds-components.scss +4 -0
- data/_sass/uswds/src/settings/_settings-color.scss +6 -1
- data/_sass/uswds/src/settings/_settings-components.scss +45 -1
- data/_sass/uswds/src/settings/_settings-general.scss +4 -4
- data/_sass/uswds/src/settings/_settings-typography.scss +5 -5
- data/_sass/uswds/src/settings/_settings-utilities.scss +89 -75
- data/_sass/uswds/src/theme/_uswds-theme-color.scss +4 -1
- data/_sass/uswds/src/theme/_uswds-theme-components.scss +45 -1
- data/_sass/uswds/src/theme/_uswds-theme-general.scss +4 -4
- data/_sass/uswds/src/theme/_uswds-theme-typography.scss +5 -5
- data/_sass/uswds/src/theme/_uswds-theme-utilities.scss +90 -77
- data/_sass/uswds/src/theme/styles.scss +5 -1
- data/_sass/uswds/src/utilities/palettes/_default-palettes.scss +2 -1
- data/_sass/uswds/src/utilities/palettes/_font-palettes.scss +478 -478
- data/_sass/uswds/src/utilities/palettes/_spacing-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_all-colors-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_black-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_blue-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_blue-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_cyan-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gold-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_gray-cool-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_gray-warm-palettes.scss +5 -5
- data/_sass/uswds/src/utilities/palettes/colors/_green-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_green-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_indigo-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_magenta-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_mint-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_orange-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-cool-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_red-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_violet-warm-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/palettes/colors/_white-transparent-palettes.scss +2 -2
- data/_sass/uswds/src/utilities/palettes/colors/_yellow-palettes.scss +7 -7
- data/_sass/uswds/src/utilities/rules/_all.scss +1 -0
- data/_sass/uswds/src/utilities/rules/_package.scss +1 -0
- data/_sass/uswds/src/utilities/rules/add-aspect.scss +13 -13
- data/_sass/uswds/src/utilities/rules/add-list-reset.scss +5 -5
- data/_sass/uswds/src/utilities/rules/align-items.scss +2 -2
- data/_sass/uswds/src/utilities/rules/align-self.scss +27 -0
- data/_sass/uswds/src/utilities/rules/background-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-radius.scss +7 -7
- data/_sass/uswds/src/utilities/rules/border-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/border-width.scss +5 -5
- data/_sass/uswds/src/utilities/rules/border.scss +5 -5
- data/_sass/uswds/src/utilities/rules/bottom.scss +2 -2
- data/_sass/uswds/src/utilities/rules/box-shadow.scss +2 -2
- data/_sass/uswds/src/utilities/rules/circle.scss +4 -4
- data/_sass/uswds/src/utilities/rules/clearfix.scss +5 -5
- data/_sass/uswds/src/utilities/rules/color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/cursor.scss +2 -2
- data/_sass/uswds/src/utilities/rules/display.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-direction.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex-wrap.scss +2 -2
- data/_sass/uswds/src/utilities/rules/flex.scss +2 -2
- data/_sass/uswds/src/utilities/rules/float.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-family.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-feature.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-style.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font-weight.scss +2 -2
- data/_sass/uswds/src/utilities/rules/font.scss +2 -2
- data/_sass/uswds/src/utilities/rules/height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/justify-content.scss +2 -2
- data/_sass/uswds/src/utilities/rules/left.scss +2 -2
- data/_sass/uswds/src/utilities/rules/letter-spacing.scss +2 -2
- data/_sass/uswds/src/utilities/rules/line-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/margin.scss +9 -9
- data/_sass/uswds/src/utilities/rules/max-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/max-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/measure.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-height.scss +2 -2
- data/_sass/uswds/src/utilities/rules/min-width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/opacity.scss +3 -5
- data/_sass/uswds/src/utilities/rules/order.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/outline.scss +2 -2
- data/_sass/uswds/src/utilities/rules/overflow.scss +3 -3
- data/_sass/uswds/src/utilities/rules/padding.scss +5 -5
- data/_sass/uswds/src/utilities/rules/pin.scss +19 -19
- data/_sass/uswds/src/utilities/rules/position.scss +2 -2
- data/_sass/uswds/src/utilities/rules/right.scss +2 -2
- data/_sass/uswds/src/utilities/rules/square.scss +4 -4
- data/_sass/uswds/src/utilities/rules/text-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration-color.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-decoration.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-indent.scss +2 -2
- data/_sass/uswds/src/utilities/rules/text-transform.scss +2 -2
- data/_sass/uswds/src/utilities/rules/top.scss +2 -2
- data/_sass/uswds/src/utilities/rules/vertical-align.scss +2 -2
- data/_sass/uswds/src/utilities/rules/whitespace.scss +2 -2
- data/_sass/uswds/src/utilities/rules/width.scss +2 -2
- data/_sass/uswds/src/utilities/rules/z-index.scss +2 -2
- data/assets/uswds/img/angle-arrow-down-gray-90.svg +1 -0
- data/assets/uswds/img/angle-arrow-right-white.svg +1 -0
- data/assets/uswds/img/angle-arrow-right.svg +1 -0
- data/assets/uswds/img/angle-double-left-solid.svg +1 -0
- data/assets/uswds/img/angle-double-right-solid.svg +1 -0
- data/assets/uswds/img/angle-left-solid.svg +1 -0
- data/assets/uswds/img/angle-right-solid.svg +1 -0
- data/assets/uswds/img/arrow-down-gray-60.svg +1 -0
- data/assets/uswds/img/arrow-left-indigo-cool-50v.svg +1 -0
- data/assets/uswds/img/arrow-left-white.svg +1 -0
- data/assets/uswds/img/arrow-left.svg +1 -0
- data/assets/uswds/img/calendar-alt-solid.svg +1 -0
- data/assets/uswds/img/chevron-right-white.svg +1 -0
- data/assets/uswds/img/chevron-right.svg +1 -0
- data/assets/uswds/img/chevron-white.svg +1 -0
- data/assets/uswds/img/chevron.svg +1 -0
- data/assets/uswds/img/circle-gray-20.svg +1 -0
- data/assets/uswds/img/close-alt-blue-60v.svg +3 -0
- data/assets/uswds/img/close-alt.svg +3 -0
- data/assets/uswds/img/close-gray-60.svg +1 -0
- data/assets/uswds/img/file-excel.svg +1 -0
- data/assets/uswds/img/file-pdf.svg +1 -0
- data/assets/uswds/img/file-video.svg +1 -0
- data/assets/uswds/img/file-word.svg +1 -0
- data/assets/uswds/img/file.svg +1 -0
- data/assets/uswds/img/loader.gif +0 -0
- data/assets/uswds/img/loader.svg +1 -0
- data/assets/uswds/img/lock.svg +1 -0
- data/assets/uswds/js/uswds.js +3570 -216
- data/assets/uswds/js/uswds.min.js +1 -1
- data/assets/uswds/js/uswds.min.js.map +1 -1
- metadata +59 -2
@@ -74,7 +74,7 @@ $spacing-to-token: (
|
|
74
74
|
"48": 6,
|
75
75
|
"56": 7,
|
76
76
|
"64": 8,
|
77
|
-
"72": 9
|
77
|
+
"72": 9,
|
78
78
|
);
|
79
79
|
|
80
80
|
$spacing-to-value: (
|
@@ -90,7 +90,7 @@ $spacing-to-value: (
|
|
90
90
|
6: 48,
|
91
91
|
7: 56,
|
92
92
|
8: 64,
|
93
|
-
9: 72
|
93
|
+
9: 72,
|
94
94
|
);
|
95
95
|
|
96
96
|
$number-to-value: (
|
@@ -126,7 +126,7 @@ $number-to-value: (
|
|
126
126
|
"-6": "neg-6",
|
127
127
|
"-7": "neg-7",
|
128
128
|
"-8": "neg-8",
|
129
|
-
"-9": "neg-9"
|
129
|
+
"-9": "neg-9",
|
130
130
|
);
|
131
131
|
|
132
132
|
/*
|
@@ -142,33 +142,33 @@ $project-font-type-tokens: (
|
|
142
142
|
"cond": (
|
143
143
|
"typeface-token": $theme-font-type-cond,
|
144
144
|
"custom-stack": $theme-font-cond-custom-stack,
|
145
|
-
"src": $theme-font-cond-custom-src
|
145
|
+
"src": $theme-font-cond-custom-src,
|
146
146
|
),
|
147
147
|
"icon": (
|
148
148
|
"typeface-token": $theme-font-type-icon,
|
149
149
|
"custom-stack": $theme-font-icon-custom-stack,
|
150
|
-
"src": $theme-font-icon-custom-src
|
150
|
+
"src": $theme-font-icon-custom-src,
|
151
151
|
),
|
152
152
|
"lang": (
|
153
153
|
"typeface-token": $theme-font-type-lang,
|
154
154
|
"custom-stack": $theme-font-lang-custom-stack,
|
155
|
-
"src": $theme-font-lang-custom-src
|
155
|
+
"src": $theme-font-lang-custom-src,
|
156
156
|
),
|
157
157
|
"mono": (
|
158
158
|
"typeface-token": $theme-font-type-mono,
|
159
159
|
"custom-stack": $theme-font-mono-custom-stack,
|
160
|
-
"src": $theme-font-mono-custom-src
|
160
|
+
"src": $theme-font-mono-custom-src,
|
161
161
|
),
|
162
162
|
"sans": (
|
163
163
|
"typeface-token": $theme-font-type-sans,
|
164
164
|
"custom-stack": $theme-font-sans-custom-stack,
|
165
|
-
"src": $theme-font-sans-custom-src
|
165
|
+
"src": $theme-font-sans-custom-src,
|
166
166
|
),
|
167
167
|
"serif": (
|
168
168
|
"typeface-token": $theme-font-type-serif,
|
169
169
|
"custom-stack": $theme-font-serif-custom-stack,
|
170
|
-
"src": $theme-font-serif-custom-src
|
171
|
-
)
|
170
|
+
"src": $theme-font-serif-custom-src,
|
171
|
+
),
|
172
172
|
);
|
173
173
|
|
174
174
|
$project-font-role-tokens: (
|
@@ -176,7 +176,7 @@ $project-font-role-tokens: (
|
|
176
176
|
"heading": $theme-font-role-heading,
|
177
177
|
"body": $theme-font-role-body,
|
178
178
|
"code": $theme-font-role-code,
|
179
|
-
"alt": $theme-font-role-alt
|
179
|
+
"alt": $theme-font-role-alt,
|
180
180
|
);
|
181
181
|
|
182
182
|
/*
|
@@ -201,7 +201,7 @@ $project-font-stacks: (
|
|
201
201
|
"heading": get-font-stack("heading"),
|
202
202
|
"body": get-font-stack("body"),
|
203
203
|
"code": get-font-stack("code"),
|
204
|
-
"alt": get-font-stack("alt")
|
204
|
+
"alt": get-font-stack("alt"),
|
205
205
|
);
|
206
206
|
|
207
207
|
$project-font-stack-cond: get-font-stack("cond");
|
@@ -248,7 +248,7 @@ $project-cap-heights: (
|
|
248
248
|
"heading": cap-height($project-font-heading),
|
249
249
|
"body": cap-height($project-font-body),
|
250
250
|
"code": cap-height($project-font-code),
|
251
|
-
"alt": cap-height($project-font-alt)
|
251
|
+
"alt": cap-height($project-font-alt),
|
252
252
|
);
|
253
253
|
|
254
254
|
$project-font-weights: (
|
@@ -258,7 +258,34 @@ $project-font-weights: (
|
|
258
258
|
"medium": $theme-font-weight-medium,
|
259
259
|
"semibold": $theme-font-weight-semibold,
|
260
260
|
"bold": $theme-font-weight-bold,
|
261
|
-
"heavy": $theme-font-weight-heavy
|
261
|
+
"heavy": $theme-font-weight-heavy,
|
262
|
+
);
|
263
|
+
|
264
|
+
/*
|
265
|
+
----------------------------------------
|
266
|
+
Theme color families and grades
|
267
|
+
----------------------------------------
|
268
|
+
*/
|
269
|
+
|
270
|
+
$uswds-color-families: (
|
271
|
+
"primary",
|
272
|
+
"secondary",
|
273
|
+
"accent",
|
274
|
+
"base",
|
275
|
+
"warning",
|
276
|
+
"error",
|
277
|
+
"success",
|
278
|
+
"info"
|
279
|
+
);
|
280
|
+
|
281
|
+
$uswds-color-theme-grades: (
|
282
|
+
"lightest",
|
283
|
+
"lighter",
|
284
|
+
"light",
|
285
|
+
"default",
|
286
|
+
"dark",
|
287
|
+
"darker",
|
288
|
+
"darkest"
|
262
289
|
);
|
263
290
|
|
264
291
|
/*
|
@@ -275,7 +302,7 @@ $project-colors: (
|
|
275
302
|
"default": color($theme-color-base, set-theme),
|
276
303
|
"dark": color($theme-color-base-dark, set-theme),
|
277
304
|
"darker": color($theme-color-base-darker, set-theme),
|
278
|
-
"darkest": color($theme-color-base-darkest, set-theme)
|
305
|
+
"darkest": color($theme-color-base-darkest, set-theme),
|
279
306
|
),
|
280
307
|
"primary": (
|
281
308
|
"lightest": color($theme-color-primary-lightest, set-theme),
|
@@ -285,7 +312,7 @@ $project-colors: (
|
|
285
312
|
"vivid": color($theme-color-primary-vivid, set-theme),
|
286
313
|
"dark": color($theme-color-primary-dark, set-theme),
|
287
314
|
"darker": color($theme-color-primary-darker, set-theme),
|
288
|
-
"darkest": color($theme-color-primary-darkest, set-theme)
|
315
|
+
"darkest": color($theme-color-primary-darkest, set-theme),
|
289
316
|
),
|
290
317
|
"secondary": (
|
291
318
|
"lightest": color($theme-color-secondary-lightest, set-theme),
|
@@ -295,7 +322,7 @@ $project-colors: (
|
|
295
322
|
"vivid": color($theme-color-secondary-vivid, set-theme),
|
296
323
|
"dark": color($theme-color-secondary-dark, set-theme),
|
297
324
|
"darker": color($theme-color-secondary-darker, set-theme),
|
298
|
-
"darkest": color($theme-color-secondary-darkest, set-theme)
|
325
|
+
"darkest": color($theme-color-secondary-darkest, set-theme),
|
299
326
|
),
|
300
327
|
"accent-warm": (
|
301
328
|
"lightest": color($theme-color-accent-warm-lightest, set-theme),
|
@@ -304,7 +331,7 @@ $project-colors: (
|
|
304
331
|
"default": color($theme-color-accent-warm, set-theme),
|
305
332
|
"dark": color($theme-color-accent-warm-dark, set-theme),
|
306
333
|
"darker": color($theme-color-accent-warm-darker, set-theme),
|
307
|
-
"darkest": color($theme-color-accent-warm-darkest, set-theme)
|
334
|
+
"darkest": color($theme-color-accent-warm-darkest, set-theme),
|
308
335
|
),
|
309
336
|
"accent-cool": (
|
310
337
|
"lightest": color($theme-color-accent-cool-lightest, set-theme),
|
@@ -313,8 +340,8 @@ $project-colors: (
|
|
313
340
|
"default": color($theme-color-accent-cool, set-theme),
|
314
341
|
"dark": color($theme-color-accent-cool-dark, set-theme),
|
315
342
|
"darker": color($theme-color-accent-cool-darker, set-theme),
|
316
|
-
"darkest": color($theme-color-accent-cool-darkest, set-theme)
|
317
|
-
)
|
343
|
+
"darkest": color($theme-color-accent-cool-darkest, set-theme),
|
344
|
+
),
|
318
345
|
);
|
319
346
|
|
320
347
|
$project-state-colors: (
|
@@ -323,34 +350,34 @@ $project-state-colors: (
|
|
323
350
|
"light": color($theme-color-error-light, set-theme),
|
324
351
|
"default": color($theme-color-error, set-theme),
|
325
352
|
"dark": color($theme-color-error-dark, set-theme),
|
326
|
-
"darker": color($theme-color-error-darker, set-theme)
|
353
|
+
"darker": color($theme-color-error-darker, set-theme),
|
327
354
|
),
|
328
355
|
"warning": (
|
329
356
|
"lighter": color($theme-color-warning-lighter, set-theme),
|
330
357
|
"light": color($theme-color-warning-light, set-theme),
|
331
358
|
"default": color($theme-color-warning, set-theme),
|
332
359
|
"dark": color($theme-color-warning-dark, set-theme),
|
333
|
-
"darker": color($theme-color-warning-darker, set-theme)
|
360
|
+
"darker": color($theme-color-warning-darker, set-theme),
|
334
361
|
),
|
335
362
|
"success": (
|
336
363
|
"lighter": color($theme-color-success-lighter, set-theme),
|
337
364
|
"light": color($theme-color-success-light, set-theme),
|
338
365
|
"default": color($theme-color-success, set-theme),
|
339
366
|
"dark": color($theme-color-success-dark, set-theme),
|
340
|
-
"darker": color($theme-color-success-darker, set-theme)
|
367
|
+
"darker": color($theme-color-success-darker, set-theme),
|
341
368
|
),
|
342
369
|
"info": (
|
343
370
|
"lighter": color($theme-color-info-lighter, set-theme),
|
344
371
|
"light": color($theme-color-info-light, set-theme),
|
345
372
|
"default": color($theme-color-info, set-theme),
|
346
373
|
"dark": color($theme-color-info-dark, set-theme),
|
347
|
-
"darker": color($theme-color-info-darker, set-theme)
|
374
|
+
"darker": color($theme-color-info-darker, set-theme),
|
348
375
|
),
|
349
376
|
"disabled": (
|
350
377
|
"light": color($theme-color-disabled-light, set-theme),
|
351
378
|
"default": color($theme-color-disabled, set-theme),
|
352
|
-
"dark": color($theme-color-disabled-dark, set-theme)
|
353
|
-
)
|
379
|
+
"dark": color($theme-color-disabled-dark, set-theme),
|
380
|
+
),
|
354
381
|
);
|
355
382
|
|
356
383
|
$all-project-colors: map-collect($project-colors, $project-state-colors);
|
@@ -367,6 +394,70 @@ Theme color shortcodes
|
|
367
394
|
----------------------------------------
|
368
395
|
*/
|
369
396
|
|
397
|
+
$assignments-theme-color: (
|
398
|
+
"base-lightest": $theme-color-base-lightest,
|
399
|
+
"base-lighter": $theme-color-base-lighter,
|
400
|
+
"base-light": $theme-color-base-light,
|
401
|
+
"base": $theme-color-base,
|
402
|
+
"base-dark": $theme-color-base-dark,
|
403
|
+
"base-darker": $theme-color-base-darker,
|
404
|
+
"base-darkest": $theme-color-base-darkest,
|
405
|
+
"ink": $theme-color-base-darkest,
|
406
|
+
"primary-lightest": $theme-color-primary-lightest,
|
407
|
+
"primary-lighter": $theme-color-primary-lighter,
|
408
|
+
"primary-light": $theme-color-primary-light,
|
409
|
+
"primary": $theme-color-primary,
|
410
|
+
"primary-vivid": $theme-color-primary-vivid,
|
411
|
+
"primary-dark": $theme-color-primary-dark,
|
412
|
+
"primary-darker": $theme-color-primary-darker,
|
413
|
+
"primary-darkest": $theme-color-primary-darkest,
|
414
|
+
"secondary-lightest": $theme-color-secondary-lightest,
|
415
|
+
"secondary-lighter": $theme-color-secondary-lighter,
|
416
|
+
"secondary-light": $theme-color-secondary-light,
|
417
|
+
"secondary": $theme-color-secondary,
|
418
|
+
"secondary-vivid": $theme-color-secondary-vivid,
|
419
|
+
"secondary-dark": $theme-color-secondary-dark,
|
420
|
+
"secondary-darker": $theme-color-secondary-darker,
|
421
|
+
"secondary-darkest": $theme-color-secondary-darkest,
|
422
|
+
"accent-warm-darkest": $theme-color-accent-warm-darkest,
|
423
|
+
"accent-warm-darker": $theme-color-accent-warm-darker,
|
424
|
+
"accent-warm-dark": $theme-color-accent-warm-dark,
|
425
|
+
"accent-warm": $theme-color-accent-warm,
|
426
|
+
"accent-warm-light": $theme-color-accent-warm-light,
|
427
|
+
"accent-warm-lighter": $theme-color-accent-warm-lighter,
|
428
|
+
"accent-warm-lightest": $theme-color-accent-warm-lightest,
|
429
|
+
"accent-cool-darkest": $theme-color-accent-cool-darkest,
|
430
|
+
"accent-cool-darker": $theme-color-accent-cool-darker,
|
431
|
+
"accent-cool-dark": $theme-color-accent-cool-dark,
|
432
|
+
"accent-cool": $theme-color-accent-cool,
|
433
|
+
"accent-cool-light": $theme-color-accent-cool-light,
|
434
|
+
"accent-cool-lighter": $theme-color-accent-cool-lighter,
|
435
|
+
"accent-cool-lightest": $theme-color-accent-cool-lightest,
|
436
|
+
"error-lighter": $theme-color-error-lighter,
|
437
|
+
"error-light": $theme-color-error-light,
|
438
|
+
"error": $theme-color-error,
|
439
|
+
"error-dark": $theme-color-error-dark,
|
440
|
+
"error-darker": $theme-color-error-darker,
|
441
|
+
"warning-lighter": $theme-color-warning-lighter,
|
442
|
+
"warning-light": $theme-color-warning-light,
|
443
|
+
"warning": $theme-color-warning,
|
444
|
+
"warning-dark": $theme-color-warning-dark,
|
445
|
+
"warning-darker": $theme-color-warning-darker,
|
446
|
+
"success-lighter": $theme-color-success-lighter,
|
447
|
+
"success-light": $theme-color-success-light,
|
448
|
+
"success": $theme-color-success,
|
449
|
+
"success-dark": $theme-color-success-dark,
|
450
|
+
"success-darker": $theme-color-success-darker,
|
451
|
+
"info-lighter": $theme-color-info-lighter,
|
452
|
+
"info-light": $theme-color-info-light,
|
453
|
+
"info": $theme-color-info,
|
454
|
+
"info-dark": $theme-color-info-dark,
|
455
|
+
"info-darker": $theme-color-info-darker,
|
456
|
+
"disabled-light": $theme-color-disabled-light,
|
457
|
+
"disabled": $theme-color-disabled,
|
458
|
+
"disabled-dark": $theme-color-disabled-dark,
|
459
|
+
);
|
460
|
+
|
370
461
|
$tokens-color-theme: (
|
371
462
|
"base-lightest": color($theme-color-base-lightest, set-theme, no-warn),
|
372
463
|
"base-lighter": color($theme-color-base-lighter, set-theme, no-warn),
|
@@ -414,7 +505,7 @@ $tokens-color-theme: (
|
|
414
505
|
"accent-cool-lighter":
|
415
506
|
color($theme-color-accent-cool-lighter, set-theme, no-warn),
|
416
507
|
"accent-cool-lightest":
|
417
|
-
color($theme-color-accent-cool-lightest, set-theme, no-warn)
|
508
|
+
color($theme-color-accent-cool-lightest, set-theme, no-warn),
|
418
509
|
);
|
419
510
|
|
420
511
|
$tokens-color-state: (
|
@@ -440,7 +531,7 @@ $tokens-color-state: (
|
|
440
531
|
"info-darker": color($theme-color-info-darker, set-theme, no-warn),
|
441
532
|
"disabled-light": color($theme-color-disabled-light, set-theme, no-warn),
|
442
533
|
"disabled": color($theme-color-disabled, set-theme, no-warn),
|
443
|
-
"disabled-dark": color($theme-color-disabled-dark, set-theme, no-warn)
|
534
|
+
"disabled-dark": color($theme-color-disabled-dark, set-theme, no-warn),
|
444
535
|
);
|
445
536
|
|
446
537
|
$project-color-shortcodes: map-collect(
|
@@ -471,7 +562,7 @@ $project-type-scale: (
|
|
471
562
|
"lg": system-type-scale($theme-type-scale-lg),
|
472
563
|
"xl": system-type-scale($theme-type-scale-xl),
|
473
564
|
"2xl": system-type-scale($theme-type-scale-2xl),
|
474
|
-
"3xl": system-type-scale($theme-type-scale-3xl)
|
565
|
+
"3xl": system-type-scale($theme-type-scale-3xl),
|
475
566
|
);
|
476
567
|
|
477
568
|
$all-type-scale: map-collect($system-type-scale, $project-type-scale);
|
@@ -487,7 +578,7 @@ $project-border-radius: (
|
|
487
578
|
"sm": units($theme-border-radius-sm),
|
488
579
|
"md": units($theme-border-radius-md),
|
489
580
|
"lg": units($theme-border-radius-lg),
|
490
|
-
"pill": 99rem
|
581
|
+
"pill": 99rem,
|
491
582
|
);
|
492
583
|
|
493
584
|
$all-border-radius: map-collect(
|
@@ -505,7 +596,7 @@ Column gaps
|
|
505
596
|
$project-column-gaps: (
|
506
597
|
"sm": $theme-column-gap-sm,
|
507
598
|
"md": $theme-column-gap-md,
|
508
|
-
"lg": $theme-column-gap-lg
|
599
|
+
"lg": $theme-column-gap-lg,
|
509
600
|
);
|
510
601
|
|
511
602
|
/*
|
@@ -530,5 +621,16 @@ $project-aspect-ratios: (
|
|
530
621
|
"16x9": 56.25%,
|
531
622
|
"1x1": 100%,
|
532
623
|
"4x3": 75%,
|
533
|
-
"2x1": 50
|
624
|
+
"2x1": 50%,
|
534
625
|
);
|
626
|
+
|
627
|
+
@if $test-system-color-tokens {
|
628
|
+
$color-test: test-colors($system-color-shortcodes);
|
629
|
+
}
|
630
|
+
|
631
|
+
/*
|
632
|
+
----------------------------------------
|
633
|
+
Easing
|
634
|
+
----------------------------------------
|
635
|
+
*/
|
636
|
+
$project-easing: 0.2s ease-in-out;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@mixin add-link-styles($color, $hover: null, $active: null) {
|
2
|
+
@if type-of($color) == "list" {
|
3
|
+
$active: nth($color, 3);
|
4
|
+
$hover: nth($color, 2);
|
5
|
+
$color: nth($color, 1);
|
6
|
+
}
|
7
|
+
|
8
|
+
&:link {
|
9
|
+
color: color($color);
|
10
|
+
}
|
11
|
+
&:visited {
|
12
|
+
color: color($color);
|
13
|
+
}
|
14
|
+
&:hover {
|
15
|
+
color: color($hover);
|
16
|
+
}
|
17
|
+
&:active {
|
18
|
+
color: color($active);
|
19
|
+
}
|
20
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
// utility mixins
|
2
2
|
@import "utilities/align-items";
|
3
|
+
@import "utilities/align-self";
|
3
4
|
@import "utilities/background-color";
|
4
5
|
@import "utilities/border";
|
5
6
|
@import "utilities/border-color";
|
@@ -62,6 +63,7 @@
|
|
62
63
|
@import "add-success-mark";
|
63
64
|
@import "add-kerning";
|
64
65
|
@import "add-knockout-font-smoothing";
|
66
|
+
@import "add-link-styles";
|
65
67
|
@import "add-list-reset";
|
66
68
|
@import "add-responsive-site-margins";
|
67
69
|
@import "at-media";
|
@@ -77,6 +79,8 @@
|
|
77
79
|
@import "media-block-img";
|
78
80
|
@import "media-link";
|
79
81
|
@import "nav-list";
|
82
|
+
@import "set-text-from-bg";
|
83
|
+
@import "set-link-from-bg";
|
80
84
|
@import "screen-reader";
|
81
85
|
@import "typography";
|
82
86
|
@import "unstyled-list";
|
@@ -62,3 +62,122 @@
|
|
62
62
|
}
|
63
63
|
}
|
64
64
|
}
|
65
|
+
|
66
|
+
// New icon mixins using SVG mask technique
|
67
|
+
//
|
68
|
+
// $image may be a specific SVG or a list in the form
|
69
|
+
// ($base, $variant, $variant-alt, $bg)
|
70
|
+
// the mixin will pick IE11-compatible svgs named
|
71
|
+
// [base]-[variant].svg based on the specified background-color
|
72
|
+
|
73
|
+
@mixin add-color-icon($icon-object, $contrast-bg) {
|
74
|
+
$filename-base: map-get($icon-object, "name");
|
75
|
+
$svg-height: map-get($icon-object, "svg-height");
|
76
|
+
$svg-width: map-get($icon-object, "svg-width");
|
77
|
+
$aspect: $svg-width / $svg-height;
|
78
|
+
$height: if(
|
79
|
+
unitless(map-get($icon-object, "height")),
|
80
|
+
units(map-get($icon-object, "height")),
|
81
|
+
map-get($icon-object, "height")
|
82
|
+
);
|
83
|
+
$width: $height * $aspect;
|
84
|
+
$container-height: if(
|
85
|
+
map-has-key($icon-object, "container-height"),
|
86
|
+
units(map-get($icon-object, "container-height")),
|
87
|
+
null
|
88
|
+
);
|
89
|
+
$container-width: if(
|
90
|
+
map-has-key($icon-object, "container-width"),
|
91
|
+
units(map-get($icon-object, "container-width")),
|
92
|
+
null
|
93
|
+
);
|
94
|
+
$color: if(
|
95
|
+
map-has-key($icon-object, "color"),
|
96
|
+
map-get($icon-object, "color"),
|
97
|
+
"ink"
|
98
|
+
);
|
99
|
+
$color-variant: if(
|
100
|
+
map-has-key($icon-object, "color-variant"),
|
101
|
+
map-get($icon-object, "color-variant"),
|
102
|
+
"white"
|
103
|
+
);
|
104
|
+
$color-hover: if(
|
105
|
+
map-has-key($icon-object, "color-hover"),
|
106
|
+
map-get($icon-object, "color-hover"),
|
107
|
+
null
|
108
|
+
);
|
109
|
+
$rotate: if(
|
110
|
+
map-has-key($icon-object, "rotate"),
|
111
|
+
map-get($icon-object, "rotate"),
|
112
|
+
null
|
113
|
+
);
|
114
|
+
$path: if(
|
115
|
+
map-has-key($icon-object, "path"),
|
116
|
+
map-get($icon-object, "path"),
|
117
|
+
$theme-image-path
|
118
|
+
);
|
119
|
+
$ie11-variant: get-token-from-bg($contrast-bg, $color-variant, "black");
|
120
|
+
$filename-ie11-variant: if($ie11-variant == "black", null, $ie11-variant);
|
121
|
+
$filename: if(
|
122
|
+
$filename-ie11-variant,
|
123
|
+
"#{$filename-base}-#{$filename-ie11-variant}.svg",
|
124
|
+
"#{$filename-base}.svg"
|
125
|
+
);
|
126
|
+
|
127
|
+
$image-props: url("#{$path}/#{$filename}") no-repeat center / #{$width} #{$height};
|
128
|
+
|
129
|
+
// Default background shorthand for browsers that don't support mask or supports.
|
130
|
+
background: $image-props;
|
131
|
+
display: inline-block;
|
132
|
+
height: if($container-height, $container-height, $height);
|
133
|
+
width: if($container-width, $container-width, $width);
|
134
|
+
@if $rotate {
|
135
|
+
transform: rotate($rotate);
|
136
|
+
}
|
137
|
+
|
138
|
+
// Mask supportered styles
|
139
|
+
@supports (mask: url("")) or (-webkit-mask: url("")) {
|
140
|
+
background: none;
|
141
|
+
background-color: color($color);
|
142
|
+
mask: $image-props;
|
143
|
+
@if $color-hover {
|
144
|
+
&:hover {
|
145
|
+
background-color: color($color-hover);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
// Places an icon before or after an element as an inline-block,
|
152
|
+
// using the `:before` or `:after` pseudoelements.
|
153
|
+
@mixin place-icon(
|
154
|
+
$icon-object,
|
155
|
+
$direction,
|
156
|
+
$margin,
|
157
|
+
$vertical-align,
|
158
|
+
$contrast-bg
|
159
|
+
) {
|
160
|
+
$color-hover: if(
|
161
|
+
map-has-key($icon-object, "color-hover"),
|
162
|
+
map-get($icon-object, "color-hover"),
|
163
|
+
null
|
164
|
+
);
|
165
|
+
&::#{$direction} {
|
166
|
+
@include add-color-icon($icon-object, $contrast-bg);
|
167
|
+
content: "";
|
168
|
+
vertical-align: $vertical-align;
|
169
|
+
|
170
|
+
@if $direction == "after" {
|
171
|
+
margin-left: units($margin);
|
172
|
+
} @else {
|
173
|
+
margin-right: units($margin);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
@if $color-hover {
|
178
|
+
&:hover::#{$direction} {
|
179
|
+
content: ""; // Added to address a weird display bug
|
180
|
+
background-color: color($color-hover);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|