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
@@ -0,0 +1,168 @@
|
|
1
|
+
//
|
2
|
+
// General Settings
|
3
|
+
// =====================================
|
4
|
+
|
5
|
+
// This helps balance spacing around inline-block elements
|
6
|
+
$gap-inline-spacer: -0.25em;
|
7
|
+
|
8
|
+
$breadcrumb-gap: 1.5;
|
9
|
+
$breadcrumb-icon-height: 1.35ex;
|
10
|
+
$breadcrumb-icon-spacing: calc(
|
11
|
+
#{units($breadcrumb-gap)} + #{$gap-inline-spacer}
|
12
|
+
);
|
13
|
+
|
14
|
+
$icon-breadcrumb-separator: (
|
15
|
+
"name": "angle-arrow-right",
|
16
|
+
"svg-height": 64,
|
17
|
+
"svg-width": 40,
|
18
|
+
"height": $breadcrumb-icon-height,
|
19
|
+
"color": $theme-breadcrumb-separator-color,
|
20
|
+
);
|
21
|
+
|
22
|
+
$icon-breadcrumb-back: (
|
23
|
+
"name": "arrow-left",
|
24
|
+
"svg-height": 64,
|
25
|
+
"svg-width": 64,
|
26
|
+
"height": $breadcrumb-icon-height,
|
27
|
+
"color": $theme-breadcrumb-separator-color,
|
28
|
+
);
|
29
|
+
|
30
|
+
// Set default value for custom mixin exdent-icon()
|
31
|
+
$breadcrumb-back-icon-aspect: (
|
32
|
+
map-get($icon-breadcrumb-back, "svg-width"),
|
33
|
+
map-get($icon-breadcrumb-back, "svg-height")
|
34
|
+
);
|
35
|
+
|
36
|
+
// Defines spacing so back icon is optically placed
|
37
|
+
@mixin exdent-icon($dim: $breadcrumb-back-icon-aspect) {
|
38
|
+
$aspect: nth($dim, 1) / nth($dim, 2);
|
39
|
+
$icon-width: $breadcrumb-icon-height * $aspect;
|
40
|
+
padding-left: calc(#{$icon-width} + #{$breadcrumb-icon-spacing});
|
41
|
+
text-indent: calc((#{$icon-width} + #{$breadcrumb-icon-spacing}) * -1);
|
42
|
+
}
|
43
|
+
|
44
|
+
.usa-breadcrumb {
|
45
|
+
@include typeset(
|
46
|
+
$theme-breadcrumb-font-family,
|
47
|
+
$theme-breadcrumb-font-size,
|
48
|
+
3
|
49
|
+
);
|
50
|
+
@include set-text-and-bg($theme-breadcrumb-background-color);
|
51
|
+
@include u-padding-x($theme-breadcrumb-padding-x);
|
52
|
+
|
53
|
+
@include at-media($theme-breadcrumb-min-width) {
|
54
|
+
@include u-padding-bottom($theme-breadcrumb-padding-bottom);
|
55
|
+
@include u-padding-top($theme-breadcrumb-padding-top);
|
56
|
+
}
|
57
|
+
|
58
|
+
&.usa-breadcrumb--wrap {
|
59
|
+
@include at-media($theme-breadcrumb-min-width) {
|
60
|
+
@include u-line-height($theme-breadcrumb-font-family, 4);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
&:not(.usa-breadcrumb--wrap) {
|
65
|
+
.usa-breadcrumb__list {
|
66
|
+
@include at-media($theme-breadcrumb-min-width) {
|
67
|
+
@include u-white-space("no-wrap");
|
68
|
+
text-overflow: ellipsis;
|
69
|
+
overflow: hidden;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.usa-breadcrumb__list {
|
76
|
+
@include unstyled-list;
|
77
|
+
@include u-display("block");
|
78
|
+
@include u-margin(-$theme-focus-width);
|
79
|
+
@include u-padding($theme-focus-width);
|
80
|
+
}
|
81
|
+
|
82
|
+
.usa-breadcrumb__list-item {
|
83
|
+
@include sr-only;
|
84
|
+
@include u-display("inline");
|
85
|
+
@include u-white-space("no-wrap");
|
86
|
+
|
87
|
+
@include at-media-max($theme-breadcrumb-min-width) {
|
88
|
+
@include u-white-space("wrap");
|
89
|
+
|
90
|
+
// If parent link only (mobile), only show parent of current link
|
91
|
+
&:nth-last-child(2) {
|
92
|
+
@include not-sr-only;
|
93
|
+
|
94
|
+
.usa-breadcrumb__link {
|
95
|
+
@include button-unstyled;
|
96
|
+
@include exdent-icon;
|
97
|
+
@include place-icon(
|
98
|
+
$icon-breadcrumb-back,
|
99
|
+
"before",
|
100
|
+
0,
|
101
|
+
baseline,
|
102
|
+
$theme-breadcrumb-background-color
|
103
|
+
);
|
104
|
+
|
105
|
+
// Override link colors from button-unstyled()
|
106
|
+
@include set-link-from-bg(
|
107
|
+
$theme-breadcrumb-background-color,
|
108
|
+
$theme-breadcrumb-link-color
|
109
|
+
);
|
110
|
+
|
111
|
+
@include u-display("inline-block");
|
112
|
+
@include u-padding-bottom($theme-breadcrumb-padding-bottom);
|
113
|
+
@include u-padding-top($theme-breadcrumb-padding-top);
|
114
|
+
|
115
|
+
// Prevent underline that extends beyond text
|
116
|
+
&,
|
117
|
+
&:hover,
|
118
|
+
&:active {
|
119
|
+
@include u-text("no-underline");
|
120
|
+
}
|
121
|
+
span {
|
122
|
+
@include u-text("underline");
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
// Override icon spacing from place-icon() with non-token value
|
127
|
+
.usa-breadcrumb__link::before {
|
128
|
+
margin-right: $breadcrumb-icon-spacing;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
@include at-media($theme-breadcrumb-min-width) {
|
134
|
+
@include not-sr-only;
|
135
|
+
|
136
|
+
// Breadcrumb separator ›
|
137
|
+
&:not(:last-child) {
|
138
|
+
@include place-icon(
|
139
|
+
$icon-breadcrumb-separator,
|
140
|
+
"after",
|
141
|
+
0,
|
142
|
+
baseline,
|
143
|
+
$theme-breadcrumb-background-color
|
144
|
+
);
|
145
|
+
}
|
146
|
+
|
147
|
+
// Style overrides for separator using non-token values
|
148
|
+
&:not(:last-child)::after {
|
149
|
+
margin-left: $breadcrumb-icon-spacing;
|
150
|
+
margin-right: $breadcrumb-icon-spacing;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
.usa-breadcrumb__link {
|
156
|
+
@include set-link-from-bg(
|
157
|
+
$theme-breadcrumb-background-color,
|
158
|
+
$theme-breadcrumb-link-color
|
159
|
+
);
|
160
|
+
@include u-display("inline");
|
161
|
+
|
162
|
+
// Prevent underline that extends beyond text
|
163
|
+
@include u-text("no-underline");
|
164
|
+
|
165
|
+
span {
|
166
|
+
@include u-text("underline");
|
167
|
+
}
|
168
|
+
}
|
@@ -4,6 +4,10 @@
|
|
4
4
|
@include border-box-sizing;
|
5
5
|
@include typeset($theme-footer-font-family);
|
6
6
|
overflow: hidden;
|
7
|
+
|
8
|
+
> .grid-container {
|
9
|
+
@include grid-container($theme-footer-max-width);
|
10
|
+
}
|
7
11
|
}
|
8
12
|
|
9
13
|
.usa-footer__return-to-top {
|
@@ -16,10 +20,9 @@
|
|
16
20
|
}
|
17
21
|
|
18
22
|
.usa-footer__nav {
|
19
|
-
@include
|
23
|
+
@include grid-container($theme-footer-max-width);
|
20
24
|
@include u-padding-x(0);
|
21
25
|
border-bottom: 1px solid color("base-light");
|
22
|
-
max-width: units("desktop");
|
23
26
|
|
24
27
|
@include at-media("mobile-lg") {
|
25
28
|
@include add-responsive-site-margins;
|
@@ -33,11 +36,14 @@
|
|
33
36
|
|
34
37
|
.usa-footer__primary-section {
|
35
38
|
background-color: color("base-lightest");
|
39
|
+
|
40
|
+
> .grid-container {
|
41
|
+
@include grid-container($theme-footer-max-width);
|
42
|
+
}
|
36
43
|
}
|
37
44
|
|
38
45
|
.usa-footer__primary-container {
|
39
|
-
@include
|
40
|
-
max-width: units("desktop");
|
46
|
+
@include grid-container($theme-footer-max-width);
|
41
47
|
|
42
48
|
@include at-media("desktop") {
|
43
49
|
@include u-padding-x(4);
|
@@ -133,6 +139,10 @@
|
|
133
139
|
@include u-padding-y(2.5);
|
134
140
|
background-color: color("base-lighter");
|
135
141
|
|
142
|
+
> .grid-container {
|
143
|
+
@include grid-container($theme-footer-max-width);
|
144
|
+
}
|
145
|
+
|
136
146
|
a {
|
137
147
|
color: color("ink");
|
138
148
|
}
|
@@ -0,0 +1,146 @@
|
|
1
|
+
$identifier-logo-height: 6;
|
2
|
+
$identifier-section-margin-y: 2;
|
3
|
+
$identifier-section-margin-y-small: 1;
|
4
|
+
$identifier-link-gap: 1.5;
|
5
|
+
$identifier-link-gap-desktop: 1;
|
6
|
+
$identifier-links-gap: 4 !default;
|
7
|
+
|
8
|
+
@mixin identifier-secondary-link {
|
9
|
+
@include set-link-from-bg(
|
10
|
+
$theme-identifier-background-color,
|
11
|
+
$theme-identifier-secondary-link-color
|
12
|
+
);
|
13
|
+
}
|
14
|
+
|
15
|
+
//
|
16
|
+
// General Styles
|
17
|
+
// =====================================
|
18
|
+
.usa-identifier {
|
19
|
+
@include typeset($theme-identifier-font-family, "sm", 3);
|
20
|
+
@include set-text-and-bg($theme-identifier-background-color);
|
21
|
+
padding-bottom: units(2);
|
22
|
+
}
|
23
|
+
|
24
|
+
.usa-identifier__container {
|
25
|
+
@include grid-container;
|
26
|
+
@include u-maxw($theme-identifier-max-width);
|
27
|
+
}
|
28
|
+
|
29
|
+
.usa-identifier__section {
|
30
|
+
@include u-padding-y($identifier-section-margin-y);
|
31
|
+
}
|
32
|
+
|
33
|
+
.usa-identifier__section--masthead {
|
34
|
+
.usa-identifier__container {
|
35
|
+
@include at-media("tablet") {
|
36
|
+
@include u-align-items("align-center");
|
37
|
+
@include u-display("flex");
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.usa-identifier__logos {
|
43
|
+
display: flex;
|
44
|
+
margin-right: units(2);
|
45
|
+
}
|
46
|
+
|
47
|
+
.usa-identifier__logo {
|
48
|
+
@include u-text-decoration("no-underline");
|
49
|
+
height: units($identifier-logo-height);
|
50
|
+
display: block;
|
51
|
+
|
52
|
+
& + .usa-identifier__logo {
|
53
|
+
margin-left: units(1);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.usa-identifier__logo-img {
|
58
|
+
height: 100%;
|
59
|
+
width: auto;
|
60
|
+
}
|
61
|
+
|
62
|
+
.usa-identifier__identity {
|
63
|
+
@include u-flex("fill");
|
64
|
+
margin-top: units(2);
|
65
|
+
|
66
|
+
@include at-media("tablet") {
|
67
|
+
margin-top: units(0);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.usa-identifier__identity-domain,
|
72
|
+
.usa-identifier__identity-disclaimer {
|
73
|
+
margin: 0;
|
74
|
+
padding: 0;
|
75
|
+
}
|
76
|
+
|
77
|
+
.usa-identifier__identity-domain {
|
78
|
+
@include u-text("light", $theme-identifier-identity-domain-color);
|
79
|
+
}
|
80
|
+
|
81
|
+
.usa-identifier__identity-disclaimer {
|
82
|
+
@include u-text("bold");
|
83
|
+
|
84
|
+
a {
|
85
|
+
@include set-link-from-bg($theme-identifier-background-color);
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.usa-identifier__section--required-links {
|
90
|
+
@include at-media("tablet") {
|
91
|
+
@include u-padding-y($identifier-section-margin-y-small);
|
92
|
+
}
|
93
|
+
@include at-media("desktop") {
|
94
|
+
@include u-font-size($theme-identifier-font-family, "xs");
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.usa-identifier__required-links-list {
|
99
|
+
@include add-list-reset;
|
100
|
+
@include u-margin-y(0);
|
101
|
+
|
102
|
+
@include at-media("tablet") {
|
103
|
+
column-count: 2;
|
104
|
+
column-gap: units($identifier-links-gap);
|
105
|
+
column-fill: balance;
|
106
|
+
}
|
107
|
+
|
108
|
+
@include at-media("desktop") {
|
109
|
+
column-count: 4;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.usa-identifier__required-links-item {
|
114
|
+
break-inside: avoid;
|
115
|
+
margin-bottom: units($identifier-link-gap);
|
116
|
+
|
117
|
+
&:last-child {
|
118
|
+
margin-bottom: units(0);
|
119
|
+
}
|
120
|
+
|
121
|
+
@include at-media("desktop") {
|
122
|
+
margin-bottom: units($identifier-link-gap-desktop);
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
.usa-identifier__required-link {
|
127
|
+
@include identifier-secondary-link;
|
128
|
+
display: inline-block;
|
129
|
+
}
|
130
|
+
|
131
|
+
.usa-identifier__section--usagov a {
|
132
|
+
@include set-link-from-bg($theme-identifier-background-color);
|
133
|
+
@include u-text("bold");
|
134
|
+
display: inline-block;
|
135
|
+
margin-top: units(1);
|
136
|
+
|
137
|
+
@include at-media("tablet") {
|
138
|
+
margin-top: 0;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.usa-identifier__usagov-description {
|
143
|
+
@include at-media("tablet") {
|
144
|
+
display: inline-flex;
|
145
|
+
}
|
146
|
+
}
|
@@ -9,7 +9,10 @@
|
|
9
9
|
|
10
10
|
.usa-megamenu {
|
11
11
|
.usa-col {
|
12
|
-
|
12
|
+
// Flex grow to take up available width.
|
13
|
+
// Flex shrink so long nav lines don't extend beyond viewport.
|
14
|
+
// Finally `flex-basis: auto` for IE11.
|
15
|
+
flex: 1 1 auto;
|
13
16
|
@include at-media($theme-header-min-width) {
|
14
17
|
// needs this round() to avoid a compile bug
|
15
18
|
@include u-flex(round(12 / $theme-megamenu-columns));
|
@@ -29,10 +29,14 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
a {
|
32
|
-
color: color(
|
32
|
+
color: color($theme-link-reverse-color);
|
33
33
|
|
34
34
|
&:hover {
|
35
|
-
color: color(
|
35
|
+
color: color($theme-link-reverse-hover-color);
|
36
|
+
}
|
37
|
+
|
38
|
+
&:active {
|
39
|
+
color: color($theme-link-reverse-active-color);
|
36
40
|
}
|
37
41
|
}
|
38
42
|
}
|
@@ -7,7 +7,7 @@
|
|
7
7
|
padding: units(1) units(2);
|
8
8
|
position: absolute;
|
9
9
|
top: -3.8rem; // skipnav link height
|
10
|
-
transition:
|
10
|
+
transition: $project-easing;
|
11
11
|
z-index: z-index(100);
|
12
12
|
|
13
13
|
&:focus {
|
@@ -15,6 +15,6 @@
|
|
15
15
|
left: 0;
|
16
16
|
position: absolute;
|
17
17
|
top: 0;
|
18
|
-
transition:
|
18
|
+
transition: $project-easing;
|
19
19
|
}
|
20
20
|
}
|
@@ -0,0 +1,444 @@
|
|
1
|
+
$step-indicator-label-margin-top: 1;
|
2
|
+
$step-indicator-margin-bottom: 4;
|
3
|
+
$step-indicator-header-margin-top: 4;
|
4
|
+
$step-indicator-header-margin-top-sm: 2;
|
5
|
+
$step-indicator-segment-height-mobile: 1;
|
6
|
+
$step-indicator-counter-size: 5;
|
7
|
+
$step-indicator-counter-size-sm: 3;
|
8
|
+
|
9
|
+
.usa-step-indicator {
|
10
|
+
@include typeset(
|
11
|
+
$theme-step-indicator-font-family,
|
12
|
+
$theme-step-indicator-label-font-size,
|
13
|
+
2
|
14
|
+
);
|
15
|
+
background-color: color($step-indicator-background-color);
|
16
|
+
margin-bottom: units($step-indicator-margin-bottom);
|
17
|
+
margin-left: units($theme-step-indicator-segment-gap) / -2;
|
18
|
+
margin-right: units($theme-step-indicator-segment-gap) / -2;
|
19
|
+
|
20
|
+
@include at-media($theme-step-indicator-min-width) {
|
21
|
+
@include u-margin-x(0);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.usa-step-indicator__segments {
|
26
|
+
counter-reset: usa-step-indicator;
|
27
|
+
display: flex;
|
28
|
+
list-style: none;
|
29
|
+
margin: 0;
|
30
|
+
padding: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
.usa-step-indicator__segment {
|
34
|
+
@include u-flex("fill");
|
35
|
+
counter-increment: usa-step-indicator;
|
36
|
+
margin-left: units($theme-step-indicator-segment-gap) / 2;
|
37
|
+
margin-right: units($theme-step-indicator-segment-gap) / 2;
|
38
|
+
max-width: units("card-lg");
|
39
|
+
min-height: units($theme-step-indicator-segment-height);
|
40
|
+
position: relative;
|
41
|
+
|
42
|
+
// Add segment
|
43
|
+
&:after {
|
44
|
+
background-color: color($theme-step-indicator-segment-color-pending);
|
45
|
+
content: "";
|
46
|
+
display: block;
|
47
|
+
// Use a fixed segment height for mobile regardless of settings
|
48
|
+
height: units($step-indicator-segment-height-mobile);
|
49
|
+
left: 0;
|
50
|
+
position: absolute;
|
51
|
+
right: 0;
|
52
|
+
top: 0;
|
53
|
+
|
54
|
+
@include at-media($theme-step-indicator-min-width) {
|
55
|
+
height: units($theme-step-indicator-segment-height);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.usa-step-indicator__segment--complete {
|
61
|
+
&::after {
|
62
|
+
background-color: color($theme-step-indicator-segment-color-complete);
|
63
|
+
}
|
64
|
+
.usa-step-indicator__segment-label {
|
65
|
+
color: color($theme-step-indicator-segment-color-complete);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.usa-step-indicator__segment--current {
|
70
|
+
&::after {
|
71
|
+
background-color: color($theme-step-indicator-segment-color-current);
|
72
|
+
}
|
73
|
+
.usa-step-indicator__segment-label {
|
74
|
+
color: color($theme-step-indicator-segment-color-current);
|
75
|
+
font-weight: fw("bold");
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
.usa-step-indicator__segment-label {
|
80
|
+
display: none;
|
81
|
+
// Show labels only at the min-width
|
82
|
+
@include at-media($theme-step-indicator-min-width) {
|
83
|
+
color: color($theme-step-indicator-text-pending-color);
|
84
|
+
display: block;
|
85
|
+
font-size: size(
|
86
|
+
$theme-step-indicator-font-family,
|
87
|
+
$theme-step-indicator-label-font-size
|
88
|
+
);
|
89
|
+
// Add margin based on segment size
|
90
|
+
margin-top: calc(
|
91
|
+
#{units($theme-step-indicator-segment-height)} + #{units(
|
92
|
+
$step-indicator-label-margin-top
|
93
|
+
)}
|
94
|
+
);
|
95
|
+
padding-right: units(4);
|
96
|
+
text-align: left;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.usa-step-indicator__header {
|
101
|
+
align-items: baseline;
|
102
|
+
display: flex;
|
103
|
+
}
|
104
|
+
|
105
|
+
.usa-step-indicator__heading {
|
106
|
+
color: color($theme-step-indicator-heading-color);
|
107
|
+
font-family: family($theme-step-indicator-heading-font-family);
|
108
|
+
font-size: size(
|
109
|
+
$theme-step-indicator-heading-font-family,
|
110
|
+
$theme-step-indicator-heading-font-size-small
|
111
|
+
);
|
112
|
+
font-weight: font-weight("bold");
|
113
|
+
margin: units($step-indicator-header-margin-top-sm) 0 0;
|
114
|
+
@include at-media($theme-step-indicator-min-width) {
|
115
|
+
font-size: size(
|
116
|
+
$theme-step-indicator-heading-font-family,
|
117
|
+
$theme-step-indicator-heading-font-size
|
118
|
+
);
|
119
|
+
margin-top: units($step-indicator-header-margin-top);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.usa-step-indicator__current-step {
|
124
|
+
$step-lh: lh($theme-step-indicator-heading-font-family, 2);
|
125
|
+
@include u-circle($step-indicator-counter-size);
|
126
|
+
@include u-text("normal", "tabular");
|
127
|
+
background-color: color($theme-step-indicator-segment-color-current);
|
128
|
+
color: color($step-indicator-background-color);
|
129
|
+
display: inline-block;
|
130
|
+
// Magic number circle centering
|
131
|
+
padding: calc(
|
132
|
+
(#{units($step-indicator-counter-size)} - (2ex * #{$step-lh})) * 0.5
|
133
|
+
);
|
134
|
+
text-align: center;
|
135
|
+
}
|
136
|
+
|
137
|
+
.usa-step-indicator__total-steps {
|
138
|
+
@include u-text("normal", "tabular");
|
139
|
+
color: color($theme-step-indicator-segment-color-current);
|
140
|
+
margin-right: units(1);
|
141
|
+
}
|
142
|
+
|
143
|
+
.usa-step-indicator--counters,
|
144
|
+
.usa-step-indicator--counters-sm {
|
145
|
+
.usa-step-indicator__segment {
|
146
|
+
@include at-media($theme-step-indicator-min-width) {
|
147
|
+
$counter-lh: lh($theme-step-indicator-font-family, 1);
|
148
|
+
// Remove segment gaps
|
149
|
+
@include u-margin-x(0);
|
150
|
+
|
151
|
+
// Add extra margin for counter
|
152
|
+
@if $theme-step-indicator-counter-gap == 0 {
|
153
|
+
margin-top: calc(
|
154
|
+
(
|
155
|
+
(
|
156
|
+
#{units($step-indicator-counter-size)} -
|
157
|
+
#{units($theme-step-indicator-segment-height)}
|
158
|
+
) /
|
159
|
+
2
|
160
|
+
)
|
161
|
+
);
|
162
|
+
} @else {
|
163
|
+
margin-top: calc(
|
164
|
+
(
|
165
|
+
(
|
166
|
+
#{units($step-indicator-counter-size)} -
|
167
|
+
#{units($theme-step-indicator-segment-height)}
|
168
|
+
) /
|
169
|
+
2
|
170
|
+
) +
|
171
|
+
#{units($theme-step-indicator-counter-gap)}
|
172
|
+
);
|
173
|
+
}
|
174
|
+
|
175
|
+
// Add counter
|
176
|
+
&:before {
|
177
|
+
@include u-circle($step-indicator-counter-size);
|
178
|
+
@include u-text("tabular");
|
179
|
+
background-color: color($step-indicator-background-color);
|
180
|
+
box-shadow: inset 0 0 0
|
181
|
+
units($theme-step-indicator-counter-border-width)
|
182
|
+
color($theme-step-indicator-segment-color-pending),
|
183
|
+
0 0 0 units($theme-step-indicator-counter-gap)
|
184
|
+
color($step-indicator-background-color);
|
185
|
+
color: color($theme-step-indicator-text-pending-color);
|
186
|
+
content: counter(usa-step-indicator);
|
187
|
+
display: block;
|
188
|
+
font-weight: fw("bold");
|
189
|
+
left: 0;
|
190
|
+
line-height: lh($theme-step-indicator-font-family, 1);
|
191
|
+
// Magic number circle centering
|
192
|
+
padding: calc(
|
193
|
+
(#{units($step-indicator-counter-size)} - (2ex * #{$counter-lh})) *
|
194
|
+
0.5
|
195
|
+
);
|
196
|
+
// padding: 1.5ex;
|
197
|
+
position: absolute;
|
198
|
+
text-align: center;
|
199
|
+
top: calc(
|
200
|
+
(
|
201
|
+
#{units($step-indicator-counter-size)} - #{units(
|
202
|
+
$theme-step-indicator-segment-height
|
203
|
+
)}
|
204
|
+
) / -2
|
205
|
+
);
|
206
|
+
z-index: z(100);
|
207
|
+
}
|
208
|
+
|
209
|
+
&:last-child {
|
210
|
+
// Don't show the last segment when counters appear
|
211
|
+
&:after {
|
212
|
+
display: none;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
217
|
+
|
218
|
+
.usa-step-indicator__segment--complete {
|
219
|
+
&::before {
|
220
|
+
background-color: color($theme-step-indicator-segment-color-complete);
|
221
|
+
box-shadow: 0 0 0 units($theme-step-indicator-counter-gap)
|
222
|
+
color($step-indicator-background-color);
|
223
|
+
color: color($step-indicator-background-color);
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
.usa-step-indicator__segment--current {
|
228
|
+
&::before {
|
229
|
+
background-color: color($theme-step-indicator-segment-color-current);
|
230
|
+
box-shadow: 0 0 0 units($theme-step-indicator-counter-gap)
|
231
|
+
color($step-indicator-background-color);
|
232
|
+
color: color($step-indicator-background-color);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
.usa-step-indicator__segment-label {
|
237
|
+
@include at-media($theme-step-indicator-min-width) {
|
238
|
+
// Add counter margin
|
239
|
+
margin-top: calc(
|
240
|
+
(
|
241
|
+
(
|
242
|
+
#{units($step-indicator-counter-size)} + #{units(
|
243
|
+
$theme-step-indicator-segment-height
|
244
|
+
)}
|
245
|
+
) / 2
|
246
|
+
) + #{units($step-indicator-label-margin-top)}
|
247
|
+
);
|
248
|
+
}
|
249
|
+
}
|
250
|
+
|
251
|
+
// Adjust segments with centered variant
|
252
|
+
&.usa-step-indicator--center {
|
253
|
+
@include at-media($theme-step-indicator-min-width) {
|
254
|
+
.usa-step-indicator__segment {
|
255
|
+
&:first-child {
|
256
|
+
&:after {
|
257
|
+
left: 50%;
|
258
|
+
right: 0;
|
259
|
+
width: auto;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
&:last-child {
|
263
|
+
&:after {
|
264
|
+
display: block;
|
265
|
+
left: 0;
|
266
|
+
right: 50%;
|
267
|
+
width: auto;
|
268
|
+
}
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
.usa-step-indicator--counters-sm {
|
276
|
+
.usa-step-indicator__segment {
|
277
|
+
@include at-media($theme-step-indicator-min-width) {
|
278
|
+
$counter-lh: lh($theme-step-indicator-font-family, 1);
|
279
|
+
// Add extra margin for counter
|
280
|
+
@if $theme-step-indicator-counter-gap == 0 {
|
281
|
+
margin-top: calc(
|
282
|
+
(
|
283
|
+
(
|
284
|
+
#{units($step-indicator-counter-size-sm)} -
|
285
|
+
#{units($theme-step-indicator-segment-height)}
|
286
|
+
) /
|
287
|
+
2
|
288
|
+
)
|
289
|
+
);
|
290
|
+
} @else {
|
291
|
+
margin-top: calc(
|
292
|
+
(
|
293
|
+
(
|
294
|
+
#{units($step-indicator-counter-size-sm)} -
|
295
|
+
#{units($theme-step-indicator-segment-height)}
|
296
|
+
) /
|
297
|
+
2
|
298
|
+
) +
|
299
|
+
#{units($theme-step-indicator-counter-gap)}
|
300
|
+
);
|
301
|
+
}
|
302
|
+
|
303
|
+
// Add counter
|
304
|
+
&:before {
|
305
|
+
@include u-circle($step-indicator-counter-size-sm);
|
306
|
+
@include u-font-size($theme-step-indicator-font-family, 3);
|
307
|
+
padding: calc(#{units(0.5)} + 1px);
|
308
|
+
top: calc(
|
309
|
+
(
|
310
|
+
#{units($step-indicator-counter-size-sm)} - #{units(
|
311
|
+
$theme-step-indicator-segment-height
|
312
|
+
)}
|
313
|
+
) / -2
|
314
|
+
);
|
315
|
+
}
|
316
|
+
|
317
|
+
&:last-child {
|
318
|
+
// Don't show the last segment when counters appear
|
319
|
+
&:after {
|
320
|
+
display: none;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
.usa-step-indicator__segment-label {
|
327
|
+
@include at-media($theme-step-indicator-min-width) {
|
328
|
+
// Add counter margin
|
329
|
+
margin-top: calc(
|
330
|
+
(
|
331
|
+
(
|
332
|
+
#{units($step-indicator-counter-size-sm)} + #{units(
|
333
|
+
$theme-step-indicator-segment-height
|
334
|
+
)}
|
335
|
+
) / 2
|
336
|
+
) + #{units($step-indicator-label-margin-top)}
|
337
|
+
);
|
338
|
+
}
|
339
|
+
}
|
340
|
+
}
|
341
|
+
|
342
|
+
.usa-step-indicator--no-labels {
|
343
|
+
margin-left: units($theme-step-indicator-segment-gap) / -2;
|
344
|
+
margin-right: units($theme-step-indicator-segment-gap) / -2;
|
345
|
+
|
346
|
+
.usa-step-indicator__segment {
|
347
|
+
// Remove extra counter margin
|
348
|
+
margin-top: 0;
|
349
|
+
// Add gap between segments
|
350
|
+
margin-left: units($theme-step-indicator-segment-gap) / 2;
|
351
|
+
margin-right: units($theme-step-indicator-segment-gap) / 2;
|
352
|
+
&:before {
|
353
|
+
// Don't show counters
|
354
|
+
display: none;
|
355
|
+
}
|
356
|
+
&:last-child {
|
357
|
+
// Show last segment
|
358
|
+
&:after {
|
359
|
+
display: block;
|
360
|
+
}
|
361
|
+
}
|
362
|
+
}
|
363
|
+
.usa-step-indicator__heading {
|
364
|
+
margin-top: units($step-indicator-header-margin-top-sm);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
.usa-step-indicator--no-labels {
|
369
|
+
.usa-step-indicator__segment-label {
|
370
|
+
// Don't show labels, even if they exist
|
371
|
+
display: none;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
|
375
|
+
.usa-step-indicator--center {
|
376
|
+
margin-left: units($theme-step-indicator-segment-gap) / -2;
|
377
|
+
margin-right: units($theme-step-indicator-segment-gap) / -2;
|
378
|
+
|
379
|
+
.usa-step-indicator__segment {
|
380
|
+
margin-left: units($theme-step-indicator-segment-gap) / 2;
|
381
|
+
margin-right: units($theme-step-indicator-segment-gap) / 2;
|
382
|
+
|
383
|
+
&:before {
|
384
|
+
@if $theme-step-indicator-counter-gap == 0 {
|
385
|
+
left: calc(50% - ((#{units($step-indicator-counter-size)}) / 2));
|
386
|
+
} @else {
|
387
|
+
left: calc(
|
388
|
+
50% -
|
389
|
+
(
|
390
|
+
(
|
391
|
+
#{units($step-indicator-counter-size)} +
|
392
|
+
#{units($theme-step-indicator-counter-gap)}
|
393
|
+
) /
|
394
|
+
2
|
395
|
+
)
|
396
|
+
);
|
397
|
+
}
|
398
|
+
}
|
399
|
+
}
|
400
|
+
|
401
|
+
.usa-step-indicator__segment-label {
|
402
|
+
// Balance label padding
|
403
|
+
@include u-padding-x(1);
|
404
|
+
// Center labels
|
405
|
+
text-align: center;
|
406
|
+
}
|
407
|
+
|
408
|
+
&.usa-step-indicator--no-labels {
|
409
|
+
.usa-step-indicator__segment {
|
410
|
+
// Use full-width segments
|
411
|
+
&:first-child {
|
412
|
+
&:after {
|
413
|
+
left: 0;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
&:last-child {
|
417
|
+
&:after {
|
418
|
+
right: 0;
|
419
|
+
}
|
420
|
+
}
|
421
|
+
}
|
422
|
+
}
|
423
|
+
|
424
|
+
&.usa-step-indicator--counters-sm {
|
425
|
+
.usa-step-indicator__segment {
|
426
|
+
&:before {
|
427
|
+
@if $theme-step-indicator-counter-gap == 0 {
|
428
|
+
left: calc(50% - ((#{units($step-indicator-counter-size-sm)}) / 2));
|
429
|
+
} @else {
|
430
|
+
left: calc(
|
431
|
+
50% -
|
432
|
+
(
|
433
|
+
(
|
434
|
+
#{units($step-indicator-counter-size-sm)} +
|
435
|
+
#{units($theme-step-indicator-counter-gap)}
|
436
|
+
) /
|
437
|
+
2
|
438
|
+
)
|
439
|
+
);
|
440
|
+
}
|
441
|
+
}
|
442
|
+
}
|
443
|
+
}
|
444
|
+
}
|