form-jekyll 0.6.1 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_sass/sf-design-system/design-tokens/_base.scss +14 -0
- data/_sass/sf-design-system/design-tokens/_breakpoints.scss +5 -0
- data/_sass/sf-design-system/design-tokens/_colors.scss +34 -0
- data/_sass/sf-design-system/design-tokens/_mixins.scss +22 -0
- data/_sass/sf-design-system/design-tokens/_typography-mixins.scss +151 -0
- data/_sass/sf-design-system/design-tokens/_typography.scss +19 -0
- data/_sass/sf-design-system/design-tokens/_variables.scss +3 -0
- data/_sass/sf-design-system/forms/_form-fields.scss +511 -0
- data/_sass/sf-design-system/forms/_pagination.scss +43 -0
- data/_sass/sf-design-system/layout/_containers.scss +37 -0
- data/_sass/sf-design-system/layout/_hero-banner.scss +129 -0
- data/assets/css/main.scss +10 -10
- data/assets/js/script.js +1 -9
- metadata +12 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b146596aaf34bbe8be4ac93672fa3da4e70beb4dd2ced790e803c37a8920025d
|
4
|
+
data.tar.gz: 0c842901946361b9f83b7611d56ded318e1a0f98723aac4e9ce7d1d419ab0f9e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 482a30b6f14ae9b10e4eddf3ca721e2a896336e6930035d66d7512e3b9fa92b475dcbf4d4fbf537095a813cf63d95b476545f313b1011593b671fbe296b113b2
|
7
|
+
data.tar.gz: 452c1aa4ab556c7deeac7ba5fe522e2430c30e521ca2c3d26ead9ae474fb83e9b5a06bb482f32ccdfbf7b0b8e390d84ba901027013e35da2c41a53f2aa5ac7f7
|
@@ -0,0 +1,34 @@
|
|
1
|
+
$white: #fff;
|
2
|
+
$black: #212123;
|
3
|
+
$slate: #1c3e57; // rgb(28, 62, 87)
|
4
|
+
$dark-blue: #0c1464;
|
5
|
+
$bright-blue: #4f66ee;
|
6
|
+
$blue-1: #edf4f7;
|
7
|
+
$blue-2: #a9d6ea;
|
8
|
+
$blue-3: #e1f3f8;
|
9
|
+
|
10
|
+
$yellow-1: #f8f1df;
|
11
|
+
$yellow-2: #f9e3a3;
|
12
|
+
$yellow-3: #f4c435;
|
13
|
+
$yellow-4: #e7b22e;
|
14
|
+
|
15
|
+
$green-1: #e9f7ec;
|
16
|
+
$green-2: #c0e2c5;
|
17
|
+
$green-3: #00896d;
|
18
|
+
$green-4: #1b674d;
|
19
|
+
|
20
|
+
$red-1: #f5e9e5;
|
21
|
+
$red-2: #efcabb;
|
22
|
+
$red-3: #c9563a;
|
23
|
+
$red-4: #bc4427;
|
24
|
+
|
25
|
+
$purple-1: #edebf6;
|
26
|
+
$purple-2: #cccced;
|
27
|
+
$purple-3: #7d61b3;
|
28
|
+
$purple-4: #5a3e94;
|
29
|
+
|
30
|
+
$grey-1: #f8f8f8;
|
31
|
+
$grey-2: #f1f1f1;
|
32
|
+
$grey-3: #e9e9e9;
|
33
|
+
$grey-4: #d3d3d3;
|
34
|
+
$grey-5: #323a45;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@mixin contain-1090 { // Most contents.
|
2
|
+
margin: 0 auto;
|
3
|
+
max-width: 1090px;
|
4
|
+
padding-left: 20px;
|
5
|
+
padding-right: 20px;
|
6
|
+
width: 100%;
|
7
|
+
|
8
|
+
@media screen and (min-width: $mq-wide) {
|
9
|
+
padding: 0;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin clearfix {
|
14
|
+
&::after,
|
15
|
+
&::before {
|
16
|
+
content: '';
|
17
|
+
display: table;
|
18
|
+
}
|
19
|
+
&::after {
|
20
|
+
clear: both;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
$base-font-size: 17;
|
2
|
+
|
3
|
+
$fw-light: 300;
|
4
|
+
$fw-regular: 400;
|
5
|
+
$fw-medium: 500;
|
6
|
+
$fw-bold: 700;
|
7
|
+
$fw-black: 900;
|
8
|
+
|
9
|
+
@mixin antialiasing($type:antialiased) {
|
10
|
+
/* antialiased, none, subpixel-antialiased*/
|
11
|
+
@if $type == antialiased {
|
12
|
+
-webkit-font-smoothing: antialiased;
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
14
|
+
} @else if $type == none {
|
15
|
+
-webkit-font-smoothing: none;
|
16
|
+
-moz-osx-font-smoothing: auto;
|
17
|
+
} @else {
|
18
|
+
-moz-osx-font-smoothing: auto;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
@mixin rubik {
|
23
|
+
font-family: "Rubik", sans-serif;
|
24
|
+
}
|
25
|
+
|
26
|
+
@mixin noto-sans-tc {
|
27
|
+
font-family: "Noto Sans TC", sans-serif;
|
28
|
+
}
|
29
|
+
|
30
|
+
@mixin font-size-to-rem($number) {
|
31
|
+
font-size: ($number * 1rem) / $base-font-size;
|
32
|
+
}
|
33
|
+
|
34
|
+
@mixin line-height-to-rem($number) {
|
35
|
+
line-height: $number * 1rem / $base-font-size;
|
36
|
+
}
|
37
|
+
|
38
|
+
@mixin h1 {
|
39
|
+
color: $slate;
|
40
|
+
font-weight: $fw-medium;
|
41
|
+
margin: 1.75rem 0 0;
|
42
|
+
@include font-size-to-rem(33);
|
43
|
+
@include line-height-to-rem(44);
|
44
|
+
&.title {
|
45
|
+
line-height: normal;
|
46
|
+
font-weight: $fw-light;
|
47
|
+
}
|
48
|
+
@media screen and (min-width: 40rem) {
|
49
|
+
@include font-size-to-rem(62);
|
50
|
+
line-height: normal;
|
51
|
+
letter-spacing: -0.3px;
|
52
|
+
&.title {
|
53
|
+
@include font-size-to-rem(50);
|
54
|
+
letter-spacing: 0;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin h2 {
|
60
|
+
color: $slate;
|
61
|
+
font-weight: $fw-medium;
|
62
|
+
margin: 1.25rem 0 0.875rem;
|
63
|
+
@include font-size-to-rem(40);
|
64
|
+
line-height: normal;
|
65
|
+
}
|
66
|
+
|
67
|
+
@mixin h3 {
|
68
|
+
color: $slate;
|
69
|
+
font-weight: $fw-medium;
|
70
|
+
margin: 1.25rem 0 0.875rem;
|
71
|
+
@include font-size-to-rem(30);
|
72
|
+
@include line-height-to-rem(42);
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin h4 {
|
76
|
+
font-weight: $fw-regular;
|
77
|
+
margin: 1.25rem 0 0.875rem;
|
78
|
+
@include font-size-to-rem(24);
|
79
|
+
@include line-height-to-rem(34);
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin h5 {
|
83
|
+
margin: 1rem 0 0.875rem;
|
84
|
+
font-weight: $fw-medium;
|
85
|
+
@include font-size-to-rem(20);
|
86
|
+
@include line-height-to-rem(27);
|
87
|
+
}
|
88
|
+
|
89
|
+
@mixin display-1 {
|
90
|
+
@include font-size-to-rem(33);
|
91
|
+
@include line-height-to-rem(39);
|
92
|
+
font-weight: $fw-light;
|
93
|
+
letter-spacing: 0;
|
94
|
+
|
95
|
+
@media screen and (min-width: $mq-medium) {
|
96
|
+
@include font-size-to-rem(72);
|
97
|
+
@include line-height-to-rem(80.2);
|
98
|
+
letter-spacing: 0.12rem;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
@mixin title-5 {
|
103
|
+
@include font-size-to-rem(20);
|
104
|
+
@include line-height-to-rem(27);
|
105
|
+
font-weight: $fw-medium;
|
106
|
+
&.zh-TW {
|
107
|
+
@include line-height-to-rem(30);
|
108
|
+
@include antialiasing;
|
109
|
+
font-weight: $fw-bold;
|
110
|
+
letter-spacing: 0.12rem;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
@mixin body-short {
|
115
|
+
font-size: 1rem;
|
116
|
+
font-weight: $fw-regular;
|
117
|
+
@include line-height-to-rem(24);
|
118
|
+
&.zh-TW {
|
119
|
+
@include font-size-to-rem(18);
|
120
|
+
@include line-height-to-rem(30);
|
121
|
+
letter-spacing: 0.06rem;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
@mixin small-text {
|
126
|
+
@include font-size-to-rem(14);
|
127
|
+
@include line-height-to-rem(18);
|
128
|
+
font-weight: $fw-regular;
|
129
|
+
}
|
130
|
+
|
131
|
+
@mixin big-description {
|
132
|
+
@include font-size-to-rem(20);
|
133
|
+
@include line-height-to-rem(29);
|
134
|
+
font-weight: $fw-regular;
|
135
|
+
|
136
|
+
&.sfgov-translate-lang-zh-TW {
|
137
|
+
@include line-height-to-rem(36);
|
138
|
+
letter-spacing: 0.12rem;
|
139
|
+
}
|
140
|
+
|
141
|
+
@media screen and (min-width: $mq-medium) {
|
142
|
+
@include font-size-to-rem(24);
|
143
|
+
@include line-height-to-rem(36);
|
144
|
+
|
145
|
+
&.sfgov-translate-lang-zh-TW {
|
146
|
+
@include font-size-to-rem(26);
|
147
|
+
@include line-height-to-rem(42);
|
148
|
+
letter-spacing: 0.12rem;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
@@ -0,0 +1,511 @@
|
|
1
|
+
// Mixins
|
2
|
+
|
3
|
+
@mixin input-border {
|
4
|
+
border-color: $slate;
|
5
|
+
border-width: 2px;
|
6
|
+
border-style: solid;
|
7
|
+
border-radius: 8px;
|
8
|
+
background-color: $white;
|
9
|
+
}
|
10
|
+
|
11
|
+
@mixin input-border-focus {
|
12
|
+
border-color: $bright-blue;
|
13
|
+
box-shadow: inset 0 0 0 2px $bright-blue;
|
14
|
+
outline: none;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Cross-browser consistency / bug fixes
|
18
|
+
|
19
|
+
input::-webkit-outer-spin-button,
|
20
|
+
input::-webkit-inner-spin-button,
|
21
|
+
input::-webkit-calendar-picker-indicator {
|
22
|
+
-webkit-appearance: none;
|
23
|
+
margin: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
input[type=number] {
|
27
|
+
-moz-appearance: textfield;
|
28
|
+
}
|
29
|
+
|
30
|
+
input[type='search'] {
|
31
|
+
-webkit-appearance: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
35
|
+
color: rgba($slate, 0.6);
|
36
|
+
}
|
37
|
+
::-moz-placeholder { /* Firefox 19+ */
|
38
|
+
color: rgba($slate, 0.6);
|
39
|
+
}
|
40
|
+
:-ms-input-placeholder { /* IE 10+ */
|
41
|
+
color: rgba($slate, 0.6);
|
42
|
+
}
|
43
|
+
:-moz-placeholder { /* Firefox 18- */
|
44
|
+
color: rgba($slate, 0.6);
|
45
|
+
}
|
46
|
+
|
47
|
+
button,
|
48
|
+
input[type='submit'] {
|
49
|
+
-webkit-appearance: none;
|
50
|
+
-moz-appearance: none;
|
51
|
+
}
|
52
|
+
|
53
|
+
input[type='date'],
|
54
|
+
input[type='time'] {
|
55
|
+
// Fix styling inconsistencies with
|
56
|
+
// date and time inputs on iOS
|
57
|
+
-webkit-appearance: textfield;
|
58
|
+
-moz-appearance: textfield;
|
59
|
+
min-height: 3rem;
|
60
|
+
}
|
61
|
+
|
62
|
+
input[type='file'] {
|
63
|
+
border: none;
|
64
|
+
padding: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
fieldset {
|
68
|
+
border: 0;
|
69
|
+
margin: 0;
|
70
|
+
padding: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
select:-moz-focusring {
|
74
|
+
color: transparent;
|
75
|
+
text-shadow: 0 0 0 $bright-blue;
|
76
|
+
}
|
77
|
+
|
78
|
+
select::-ms-expand {
|
79
|
+
// Hide browser-standard chevron on IE
|
80
|
+
display: none;
|
81
|
+
}
|
82
|
+
|
83
|
+
option:not(:checked) {
|
84
|
+
color: $black;
|
85
|
+
}
|
86
|
+
|
87
|
+
// Layout
|
88
|
+
|
89
|
+
form {
|
90
|
+
max-width: 38rem;
|
91
|
+
}
|
92
|
+
|
93
|
+
legend {
|
94
|
+
margin-bottom: 0.75rem;
|
95
|
+
}
|
96
|
+
|
97
|
+
.form-group {
|
98
|
+
position: relative;
|
99
|
+
margin-bottom: 2.5rem;
|
100
|
+
|
101
|
+
p + &,
|
102
|
+
ul + &,
|
103
|
+
h1 + &,
|
104
|
+
h2 + &,
|
105
|
+
h3 + & {
|
106
|
+
margin-top: 2rem;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.form-section {
|
111
|
+
@include contain-1090;
|
112
|
+
}
|
113
|
+
|
114
|
+
// Base styles
|
115
|
+
|
116
|
+
input,
|
117
|
+
textarea,
|
118
|
+
select,
|
119
|
+
button {
|
120
|
+
@include rubik;
|
121
|
+
@include body-short;
|
122
|
+
color: $slate;
|
123
|
+
font-weight: $fw-regular;
|
124
|
+
}
|
125
|
+
|
126
|
+
input,
|
127
|
+
textarea,
|
128
|
+
select {
|
129
|
+
width: 100%;
|
130
|
+
@include input-border;
|
131
|
+
border-radius: 8px;
|
132
|
+
&:focus {
|
133
|
+
@include input-border-focus;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
input[type="checkbox"],
|
138
|
+
input[type="radio"],
|
139
|
+
input[type="checkbox"] + label,
|
140
|
+
input[type="radio"] + label {
|
141
|
+
margin: 0 0 1rem;
|
142
|
+
}
|
143
|
+
|
144
|
+
input[type="checkbox"],
|
145
|
+
input[type="radio"] {
|
146
|
+
margin-right: 1rem;
|
147
|
+
}
|
148
|
+
|
149
|
+
input[type="text"],
|
150
|
+
input[type="email"],
|
151
|
+
input[type="url"],
|
152
|
+
input[type="tel"],
|
153
|
+
input[type="number"],
|
154
|
+
input[type="password"],
|
155
|
+
input[type="date"],
|
156
|
+
input[type="time"],
|
157
|
+
input[type="search"],
|
158
|
+
textarea {
|
159
|
+
display: block;
|
160
|
+
padding: 0.64rem 1rem;
|
161
|
+
}
|
162
|
+
|
163
|
+
select {
|
164
|
+
padding: 0.64rem 1rem;
|
165
|
+
}
|
166
|
+
|
167
|
+
|
168
|
+
label,
|
169
|
+
legend {
|
170
|
+
@include rubik;
|
171
|
+
color: $slate;
|
172
|
+
font-weight: $fw-regular;
|
173
|
+
@include font-size-to-rem(24);
|
174
|
+
letter-spacing: -0.016em;
|
175
|
+
line-height: 1.5;
|
176
|
+
@include antialiasing;
|
177
|
+
margin-bottom: 0.5rem;
|
178
|
+
display: block;
|
179
|
+
}
|
180
|
+
|
181
|
+
// Field-specific styles
|
182
|
+
|
183
|
+
// Number
|
184
|
+
.field-d06 {
|
185
|
+
input, .units {
|
186
|
+
display: inline-block;
|
187
|
+
}
|
188
|
+
|
189
|
+
.units {
|
190
|
+
margin-left: 0.5rem;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
|
194
|
+
// Price
|
195
|
+
.field-d08 {
|
196
|
+
input {
|
197
|
+
width: 10rem;
|
198
|
+
}
|
199
|
+
|
200
|
+
input, .dollar {
|
201
|
+
display: inline-block;
|
202
|
+
}
|
203
|
+
|
204
|
+
.dollar {
|
205
|
+
font-weight: $fw-light;
|
206
|
+
@include font-size-to-rem(51);
|
207
|
+
line-height: 1;
|
208
|
+
position: relative;
|
209
|
+
top: 0.75rem;
|
210
|
+
margin-right: 0.5rem;
|
211
|
+
color: $slate;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.field-address {
|
216
|
+
.form-group {
|
217
|
+
margin-bottom: 0;
|
218
|
+
}
|
219
|
+
|
220
|
+
label {
|
221
|
+
@include small-text;
|
222
|
+
margin: 0 0 0.25rem;
|
223
|
+
}
|
224
|
+
|
225
|
+
input {
|
226
|
+
margin-bottom: 0.75rem;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
|
230
|
+
@media screen and (min-width: 48rem) {
|
231
|
+
.field-address-state,
|
232
|
+
.field-address-zip {
|
233
|
+
float: left;
|
234
|
+
}
|
235
|
+
|
236
|
+
.field-address fieldset {
|
237
|
+
@include clearfix;
|
238
|
+
}
|
239
|
+
|
240
|
+
.field-address-state {
|
241
|
+
margin-right: 0.75rem;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
.field-m13 {
|
246
|
+
label {
|
247
|
+
position: relative;
|
248
|
+
cursor: pointer;
|
249
|
+
height: 6.5rem;
|
250
|
+
}
|
251
|
+
|
252
|
+
input {
|
253
|
+
min-width: 14rem;
|
254
|
+
margin: 0;
|
255
|
+
filter: alpha(opacity=0);
|
256
|
+
opacity: 0;
|
257
|
+
}
|
258
|
+
|
259
|
+
.file-custom {
|
260
|
+
font-size: 1rem;
|
261
|
+
position: absolute;
|
262
|
+
padding-top: 2.75rem;
|
263
|
+
top: 0;
|
264
|
+
right: 0;
|
265
|
+
left: 0;
|
266
|
+
z-index: 5;
|
267
|
+
white-space: nowrap;
|
268
|
+
overflow: hidden;
|
269
|
+
text-overflow: ellipsis;
|
270
|
+
-webkit-user-select: none;
|
271
|
+
-moz-user-select: none;
|
272
|
+
-ms-user-select: none;
|
273
|
+
user-select: none;
|
274
|
+
|
275
|
+
&::after {
|
276
|
+
content: attr(data-filename);
|
277
|
+
}
|
278
|
+
|
279
|
+
&::before {
|
280
|
+
@extend button;
|
281
|
+
z-index: 6;
|
282
|
+
content: "Choose a file";
|
283
|
+
background-color: $white;
|
284
|
+
color: $bright-blue;
|
285
|
+
font-weight: $fw-medium;
|
286
|
+
}
|
287
|
+
|
288
|
+
&:hover, &:focus, &:active {
|
289
|
+
&::before {
|
290
|
+
box-shadow: inset 0 0 0 2px darken($bright-blue, 10%);
|
291
|
+
color: darken($bright-blue, 10%);
|
292
|
+
background-color: rgba($bright-blue, 0.05);
|
293
|
+
color: $bright-blue;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
}
|
297
|
+
}
|
298
|
+
|
299
|
+
// Form field length
|
300
|
+
|
301
|
+
@for $i from 1 to 16 {
|
302
|
+
.length-#{$i} {
|
303
|
+
width: 2.5rem + (0.65rem * $i);
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
// Checkbox and radio button styles
|
308
|
+
|
309
|
+
$rc-size: 3rem;
|
310
|
+
|
311
|
+
.field-s06,
|
312
|
+
.field-s08 {
|
313
|
+
label {
|
314
|
+
position: relative;
|
315
|
+
padding-left: $rc-size + 0.75rem;
|
316
|
+
margin-bottom: 1rem;
|
317
|
+
min-height: $rc-size;
|
318
|
+
}
|
319
|
+
|
320
|
+
input,
|
321
|
+
.inline-label::before {
|
322
|
+
position: absolute;
|
323
|
+
top: 0;
|
324
|
+
left: 0;
|
325
|
+
width: $rc-size;
|
326
|
+
height: $rc-size;
|
327
|
+
}
|
328
|
+
|
329
|
+
input {
|
330
|
+
-webkit-appearance: none;
|
331
|
+
-moz-appearance: none;
|
332
|
+
opacity: 0;
|
333
|
+
padding: 0;
|
334
|
+
margin: 0;
|
335
|
+
&:focus + .inline-label:before {
|
336
|
+
@include input-border-focus;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
|
340
|
+
.inline-label {
|
341
|
+
display: block;
|
342
|
+
font-size: initial;
|
343
|
+
padding-top: 0.75rem;
|
344
|
+
&::before {
|
345
|
+
content: '';
|
346
|
+
@include input-border;
|
347
|
+
}
|
348
|
+
}
|
349
|
+
}
|
350
|
+
|
351
|
+
// Radio buttons
|
352
|
+
.field-s08 {
|
353
|
+
.inline-label::before,
|
354
|
+
.inline-label::after {
|
355
|
+
border-radius: 50%;
|
356
|
+
}
|
357
|
+
|
358
|
+
.inline-label::after {
|
359
|
+
content: '';
|
360
|
+
width: $rc-size * 0.625;
|
361
|
+
height: $rc-size * 0.625;
|
362
|
+
top: $rc-size * 0.1875;
|
363
|
+
left: $rc-size * 0.1875;
|
364
|
+
z-index: 2;
|
365
|
+
position: absolute;
|
366
|
+
}
|
367
|
+
|
368
|
+
input:checked {
|
369
|
+
+ .inline-label::after {
|
370
|
+
background: $slate;
|
371
|
+
}
|
372
|
+
|
373
|
+
&:focus + .inline-label:after {
|
374
|
+
background: $bright-blue;
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
input:focus + .inline-label:before {
|
379
|
+
background: $white;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
|
384
|
+
// Checkboxes
|
385
|
+
.field-s06 input:checked {
|
386
|
+
+ .inline-label::before {
|
387
|
+
background-size: 50% 40%;
|
388
|
+
background-repeat: no-repeat;
|
389
|
+
background-position: center;
|
390
|
+
background-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS43NTAwOSAxNi43NTVDNS41ODU3OSAxNi43NTU2IDUuNDIzIDE2LjcyMzYgNS4yNzExMSAxNi42NjFDNS4xMTkyMSAxNi41OTg0IDQuOTgxMjIgMTYuNTA2MyA0Ljg2NTA5IDE2LjM5TDAuMzY1MDkgMTEuODlDMC4yNDU4NzYgMTEuNzc0NiAwLjE1MDg1NCAxMS42MzY1IDAuMDg1NTY3OCAxMS40ODM5QzAuMDIwMjgxMyAxMS4zMzEzIC0wLjAxMzk2MjMgMTEuMTY3MiAtMC4wMTUxNjQ5IDExLjAwMTNDLTAuMDE2MzY3NiAxMC44MzUzIDAuMDE1NDk0NyAxMC42NzA3IDAuMDc4NTYyOSAxMC41MTcyQzAuMTQxNjMxIDEwLjM2MzcgMC4yMzQ2NDIgMTAuMjI0MyAwLjM1MjE3IDEwLjEwNzFDMC40Njk2OTcgOS45ODk4OCAwLjYwOTM4OCA5Ljg5NzI2IDAuNzYzMDkgOS44MzQ2M0MwLjkxNjc5MyA5Ljc3MiAxLjA4MTQzIDkuNzQwNiAxLjI0NzQgOS43NDIyN0MxLjQxMzM2IDkuNzQzOTQgMS41NzczMyA5Ljc3ODY1IDEuNzI5NzQgOS44NDQzN0MxLjg4MjE1IDkuOTEwMDkgMi4wMTk5NSAxMC4wMDU1IDIuMTM1MDkgMTAuMTI1TDUuNzUwMDkgMTMuNzRMMTcuODcwMSAxLjYyMDA0QzE4LjEwNjIgMS4zOTI2NSAxOC40MjIxIDEuMjY3MDkgMTguNzQ5OSAxLjI3MDM5QzE5LjA3NzYgMS4yNzM2OSAxOS4zOTA5IDEuNDA1NiAxOS42MjI0IDEuNjM3NjlDMTkuODUzOCAxLjg2OTc5IDE5Ljk4NDkgMi4xODM1MSAxOS45ODcyIDIuNTExMjdDMTkuOTg5NiAyLjgzOTAzIDE5Ljg2MzEgMy4xNTQ2MSAxOS42MzUxIDMuMzkwMDRMNi42MzUwOSAxNi4zOUM2LjUxODk2IDE2LjUwNjMgNi4zODA5NyAxNi41OTg0IDYuMjI5MDcgMTYuNjYxQzYuMDc3MTggMTYuNzIzNiA1LjkxNDM5IDE2Ljc1NTYgNS43NTAwOSAxNi43NTVaIiBmaWxsPSIjMUMzRTU3Ii8+Cjwvc3ZnPg==');
|
391
|
+
}
|
392
|
+
|
393
|
+
&:focus + .inline-label::before {
|
394
|
+
background-color: $bright-blue;
|
395
|
+
background-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS43NTAwOSAxNi43NTVDNS41ODU3OSAxNi43NTU2IDUuNDIzIDE2LjcyMzYgNS4yNzExMSAxNi42NjFDNS4xMTkyMSAxNi41OTg0IDQuOTgxMjIgMTYuNTA2MyA0Ljg2NTA5IDE2LjM5TDAuMzY1MDkgMTEuODlDMC4yNDU4NzYgMTEuNzc0NiAwLjE1MDg1NCAxMS42MzY1IDAuMDg1NTY3OCAxMS40ODM5QzAuMDIwMjgxMyAxMS4zMzEzIC0wLjAxMzk2MjMgMTEuMTY3MiAtMC4wMTUxNjQ5IDExLjAwMTNDLTAuMDE2MzY3NiAxMC44MzUzIDAuMDE1NDk0NyAxMC42NzA3IDAuMDc4NTYyOSAxMC41MTcyQzAuMTQxNjMxIDEwLjM2MzcgMC4yMzQ2NDIgMTAuMjI0MyAwLjM1MjE3IDEwLjEwNzFDMC40Njk2OTcgOS45ODk4OCAwLjYwOTM4OCA5Ljg5NzI2IDAuNzYzMDkgOS44MzQ2M0MwLjkxNjc5MyA5Ljc3MiAxLjA4MTQzIDkuNzQwNiAxLjI0NzQgOS43NDIyN0MxLjQxMzM2IDkuNzQzOTQgMS41NzczMyA5Ljc3ODY1IDEuNzI5NzQgOS44NDQzN0MxLjg4MjE1IDkuOTEwMDkgMi4wMTk5NSAxMC4wMDU1IDIuMTM1MDkgMTAuMTI1TDUuNzUwMDkgMTMuNzRMMTcuODcwMSAxLjYyMDA0QzE4LjEwNjIgMS4zOTI2NSAxOC40MjIxIDEuMjY3MDkgMTguNzQ5OSAxLjI3MDM5QzE5LjA3NzYgMS4yNzM2OSAxOS4zOTA5IDEuNDA1NiAxOS42MjI0IDEuNjM3NjlDMTkuODUzOCAxLjg2OTc5IDE5Ljk4NDkgMi4xODM1MSAxOS45ODcyIDIuNTExMjdDMTkuOTg5NiAyLjgzOTAzIDE5Ljg2MzEgMy4xNTQ2MSAxOS42MzUxIDMuMzkwMDRMNi42MzUwOSAxNi4zOUM2LjUxODk2IDE2LjUwNjMgNi4zODA5NyAxNi41OTg0IDYuMjI5MDcgMTYuNjYxQzYuMDc3MTggMTYuNzIzNiA1LjkxNDM5IDE2Ljc1NTYgNS43NTAwOSAxNi43NTVaIiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPg==');
|
396
|
+
}
|
397
|
+
}
|
398
|
+
|
399
|
+
// Buttons
|
400
|
+
|
401
|
+
button,
|
402
|
+
input[type='submit'],
|
403
|
+
.btn {
|
404
|
+
border-radius: $radius;
|
405
|
+
font-weight: $fw-medium;
|
406
|
+
padding: 0.75rem 1.5rem;
|
407
|
+
display: inline-block;
|
408
|
+
text-decoration: none;
|
409
|
+
margin: 0 0.4375rem 0.875rem 0;
|
410
|
+
cursor: pointer;
|
411
|
+
}
|
412
|
+
|
413
|
+
button,
|
414
|
+
input[type='submit'] {
|
415
|
+
border: 3px solid $bright-blue;
|
416
|
+
background-color: $bright-blue;
|
417
|
+
color: $white;
|
418
|
+
line-height: 1.75;
|
419
|
+
&:hover, &:focus {
|
420
|
+
background-color: darken($bright-blue, 10%);
|
421
|
+
border-color: darken($bright-blue, 10%);
|
422
|
+
}
|
423
|
+
|
424
|
+
&:active {
|
425
|
+
background-color: darken($bright-blue, 15%);
|
426
|
+
border-color: darken($bright-blue, 15%);
|
427
|
+
}
|
428
|
+
|
429
|
+
&:hover, &:active, &:focus, &:visited {
|
430
|
+
color: $white;
|
431
|
+
text-decoration: none;
|
432
|
+
}
|
433
|
+
}
|
434
|
+
|
435
|
+
// Dropdowns
|
436
|
+
|
437
|
+
select {
|
438
|
+
display: block;
|
439
|
+
background-repeat: no-repeat;
|
440
|
+
-moz-appearance: none;
|
441
|
+
-webkit-appearance: none;
|
442
|
+
// Background gradient needed for <= IE9
|
443
|
+
// See https://www.filamentgroup.com/lab/select-css.html
|
444
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxOCAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguOTYwMDggMTAuNzU1QzguNzk1NzcgMTAuNzU1NiA4LjYzMjk4IDEwLjcyMzYgOC40ODEwOSAxMC42NjFDOC4zMjkyIDEwLjU5ODMgOC4xOTEyMSAxMC41MDYyIDguMDc1MDggMTAuMzlMMC41NzUwNzUgMi44OUMwLjM0MDM1OSAyLjY1NTI4IDAuMjA4NDk2IDIuMzM2OTQgMC4yMDg0OTYgMi4wMDVDMC4yMDg0OTYgMS42NzMwNiAwLjM0MDM1OSAxLjM1NDcxIDAuNTc1MDc1IDEuMTJDMC44MDk3OTIgMC44ODUyOCAxLjEyODE0IDAuNzUzNDE4IDEuNDYwMDggMC43NTM0MThDMS43OTIwMSAwLjc1MzQxOCAyLjExMDM2IDAuODg1MjggMi4zNDUwOCAxLjEyTDguOTYwMDggNy43NEwxNS41NzUxIDEuMTJDMTUuODA5OCAwLjg4NTI4IDE2LjEyODEgMC43NTM0MTggMTYuNDYwMSAwLjc1MzQxOEMxNi43OTIgMC43NTM0MTggMTcuMTEwNCAwLjg4NTI4IDE3LjM0NTEgMS4xMkMxNy41Nzk4IDEuMzU0NzEgMTcuNzExNyAxLjY3MzA2IDE3LjcxMTcgMi4wMDVDMTcuNzExNyAyLjMzNjk0IDE3LjU3OTggMi42NTUyOCAxNy4zNDUxIDIuODlMOS44NDUwOCAxMC4zOUM5LjcyODk0IDEwLjUwNjIgOS41OTA5NSAxMC41OTgzIDkuNDM5MDYgMTAuNjYxQzkuMjg3MTcgMTAuNzIzNiA5LjEyNDM4IDEwLjc1NTYgOC45NjAwOCAxMC43NTVaIiBmaWxsPSIjMUMzRTU3Ii8+Cjwvc3ZnPgo='), linear-gradient(#fff, #fff);
|
445
|
+
&:focus {
|
446
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTEiIHZpZXdCb3g9IjAgMCAxOCAxMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguOTYwMDggMTAuNzU1QzguNzk1NzcgMTAuNzU1NiA4LjYzMjk4IDEwLjcyMzYgOC40ODEwOSAxMC42NjFDOC4zMjkyIDEwLjU5ODMgOC4xOTEyMSAxMC41MDYyIDguMDc1MDggMTAuMzlMMC41NzUwNzUgMi44OUMwLjM0MDM1OSAyLjY1NTI4IDAuMjA4NDk2IDIuMzM2OTQgMC4yMDg0OTYgMi4wMDVDMC4yMDg0OTYgMS42NzMwNiAwLjM0MDM1OSAxLjM1NDcxIDAuNTc1MDc1IDEuMTJDMC44MDk3OTIgMC44ODUyOCAxLjEyODE0IDAuNzUzNDE4IDEuNDYwMDggMC43NTM0MThDMS43OTIwMSAwLjc1MzQxOCAyLjExMDM2IDAuODg1MjggMi4zNDUwOCAxLjEyTDguOTYwMDggNy43NEwxNS41NzUxIDEuMTJDMTUuODA5OCAwLjg4NTI4IDE2LjEyODEgMC43NTM0MTggMTYuNDYwMSAwLjc1MzQxOEMxNi43OTIgMC43NTM0MTggMTcuMTEwNCAwLjg4NTI4IDE3LjM0NTEgMS4xMkMxNy41Nzk4IDEuMzU0NzEgMTcuNzExNyAxLjY3MzA2IDE3LjcxMTcgMi4wMDVDMTcuNzExNyAyLjMzNjk0IDE3LjU3OTggMi42NTUyOCAxNy4zNDUxIDIuODlMOS44NDUwOCAxMC4zOUM5LjcyODk0IDEwLjUwNjIgOS41OTA5NSAxMC41OTgzIDkuNDM5MDYgMTAuNjYxQzkuMjg3MTcgMTAuNzIzNiA5LjEyNDM4IDEwLjc1NTYgOC45NjAwOCAxMC43NTVaIiBmaWxsPSIjNEY2NkVFIi8+Cjwvc3ZnPgo='), linear-gradient(#fff, #fff);
|
447
|
+
}
|
448
|
+
background-size: 18px 11px;
|
449
|
+
background-position: right 1rem top 50%;
|
450
|
+
padding-right: 3rem;
|
451
|
+
border: 2px solid $slate;
|
452
|
+
|
453
|
+
option {
|
454
|
+
font-weight: normal;
|
455
|
+
font-size: 100%;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
|
459
|
+
// Optional label
|
460
|
+
|
461
|
+
.optional {
|
462
|
+
opacity: 0.8;
|
463
|
+
}
|
464
|
+
|
465
|
+
// Help text
|
466
|
+
|
467
|
+
.help-text {
|
468
|
+
margin: 0.5rem 0 0;
|
469
|
+
}
|
470
|
+
|
471
|
+
// Error messages
|
472
|
+
// (The formbuilder uses 1000hz-bootstrap-validator,
|
473
|
+
// which requires the .help-block class)
|
474
|
+
|
475
|
+
.help-block {
|
476
|
+
margin-top: 0.5rem;
|
477
|
+
|
478
|
+
&:empty {
|
479
|
+
margin-top: 0;
|
480
|
+
}
|
481
|
+
|
482
|
+
&.with-errors {
|
483
|
+
display: block;
|
484
|
+
color: $white;
|
485
|
+
|
486
|
+
ul {
|
487
|
+
font-size: 1rem;
|
488
|
+
background: $red-4;
|
489
|
+
color: $white;
|
490
|
+
padding: 0.25rem 0.75rem;
|
491
|
+
border-radius: $radius;
|
492
|
+
display: inline-block;
|
493
|
+
@include antialiasing;
|
494
|
+
margin: 0;
|
495
|
+
}
|
496
|
+
|
497
|
+
li {
|
498
|
+
list-style-type: none;
|
499
|
+
}
|
500
|
+
}
|
501
|
+
|
502
|
+
&.with-errors-inline ul {
|
503
|
+
@include small-text;
|
504
|
+
padding: 0;
|
505
|
+
background: transparent;
|
506
|
+
color: $red-4;
|
507
|
+
position: relative;
|
508
|
+
top: -0.25rem;
|
509
|
+
margin: 0;
|
510
|
+
}
|
511
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
.form-section-prev,
|
2
|
+
.form-section-next {
|
3
|
+
border: 3px solid $bright-blue;
|
4
|
+
color: $bright-blue;
|
5
|
+
background-size: 20px 16px;
|
6
|
+
background-repeat: no-repeat;
|
7
|
+
font-weight: $fw-medium;
|
8
|
+
background-color: $white;
|
9
|
+
|
10
|
+
&:hover, &:focus, &:active {
|
11
|
+
box-shadow: 0 0 0 1px $bright-blue;
|
12
|
+
background-color: rgba($bright-blue, 0.05);
|
13
|
+
color: $bright-blue;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.form-section-prev {
|
18
|
+
padding-left: 3rem;
|
19
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuMzY0NjggOC44ODQ5M0w2LjcyOTY4IDE1LjI0OTlDNi44Mzk5MiAxNS4zODQ2IDYuOTc3MDUgMTUuNDk0NyA3LjEzMjI5IDE1LjU3MzNDNy4yODc1NCAxNS42NTE5IDcuNDU3NDkgMTUuNjk3MiA3LjYzMTI1IDE1LjcwNjNDNy44MDUwMSAxNS43MTU0IDcuOTc4NzcgMTUuNjg4MiA4LjE0MTM5IDE1LjYyNjNDOC4zMDQwMiAxNS41NjQ0IDguNDUxOTMgMTUuNDY5MiA4LjU3NTY3IDE1LjM0NjlDOC42OTk0MSAxNS4yMjQ2IDguNzk2MjQgMTUuMDc3NyA4Ljg1OTk3IDE0LjkxNThDOC45MjM3IDE0Ljc1MzkgOC45NTI5MiAxNC41ODA1IDguOTQ1NzcgMTQuNDA2NkM4LjkzODYxIDE0LjIzMjggOC44OTUyNCAxNC4wNjIzIDguODE4NDMgMTMuOTA2MkM4Ljc0MTYxIDEzLjc1MDEgOC42MzMwNSAxMy42MTE3IDguNDk5NjggMTMuNDk5OUw0LjI2OTY4IDkuMjQ5OTNIMTguNzY5N0MxOS4xMDEyIDkuMjQ5OTMgMTkuNDE5MSA5LjExODIzIDE5LjY1MzYgOC44ODM4MUMxOS44ODggOC42NDkzOSAyMC4wMTk3IDguMzMxNDUgMjAuMDE5NyA3Ljk5OTkzQzIwLjAxOTcgNy42Njg0MSAxOS44ODggNy4zNTA0NiAxOS42NTM2IDcuMTE2MDRDMTkuNDE5MSA2Ljg4MTYyIDE5LjEwMTIgNi43NDk5MyAxOC43Njk3IDYuNzQ5OTNINC4yNjk2OEw4LjQ5OTY4IDIuNDk5OTNDOC42OTY5IDIuMjU5MDcgOC43OTcxNSAxLjk1MzMgOC43ODA4MiAxLjY0MjQzQzguNzY0NDkgMS4zMzE1NyA4LjYzMjc1IDEuMDM3OTggOC40MTEzOCAwLjgxOTExOEM4LjE5MDAyIDAuNjAwMjUzIDcuODk0OTUgMC40NzE4NjIgNy41ODM5MiAwLjQ1OTA2NUM3LjI3Mjg5IDAuNDQ2MjY5IDYuOTY4MjggMC41NDk5ODcgNi43Mjk2OCAwLjc0OTkyN0wwLjM2NDY4IDcuMTE0OTNDMC4xMzA3OTggNy4zNTAwOSAtMC4wMDA0ODgyODEgNy42NjgyNiAtMC4wMDA0ODgyODEgNy45OTk5M0MtMC4wMDA0ODgyODEgOC4zMzE1OSAwLjEzMDc5OCA4LjY0OTc3IDAuMzY0NjggOC44ODQ5M1oiIGZpbGw9IiM0RjY2RUUiLz4KPC9zdmc+Cg==');
|
20
|
+
background-position: left 1rem top 50%;
|
21
|
+
}
|
22
|
+
|
23
|
+
.form-section-next {
|
24
|
+
padding-right: 3rem;
|
25
|
+
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5LjYzNSA3LjExNDkzTDEzLjI3IDAuNzQ5OTI3QzEzLjAzMTQgMC41NDk5ODcgMTIuNzI2OCAwLjQ0NjI2OSAxMi40MTU4IDAuNDU5MDY1QzEyLjEwNDcgMC40NzE4NjIgMTEuODA5NyAwLjYwMDI1MyAxMS41ODgzIDAuODE5MTE4QzExLjM2NjkgMS4wMzc5OCAxMS4yMzUyIDEuMzMxNTcgMTEuMjE4OSAxLjY0MjQzQzExLjIwMjUgMS45NTMzIDExLjMwMjggMi4yNTkwNyAxMS41IDIuNDk5OTNMMTUuNzMgNi43Mjk5M0gxLjI1QzAuOTE4NDc5IDYuNzI5OTMgMC42MDA1MzcgNi44NjE2MiAwLjM2NjExNyA3LjA5NjA0QzAuMTMxNjk2IDcuMzMwNDYgMCA3LjY0ODQxIDAgNy45Nzk5M0MwIDguMzExNDUgMC4xMzE2OTYgOC42MjkzOSAwLjM2NjExNyA4Ljg2MzgxQzAuNjAwNTM3IDkuMDk4MjMgMC45MTg0NzkgOS4yMjk5MyAxLjI1IDkuMjI5OTNIMTUuNzVMMTEuNSAxMy40OTk5QzExLjI2NTMgMTMuNzM0NiAxMS4xMzM0IDE0LjA1MyAxMS4xMzM0IDE0LjM4NDlDMTEuMTMzNCAxNC43MTY5IDExLjI2NTMgMTUuMDM1MiAxMS41IDE1LjI2OTlDMTEuNzM0NyAxNS41MDQ2IDEyLjA1MzEgMTUuNjM2NSAxMi4zODUgMTUuNjM2NUMxMi43MTY5IDE1LjYzNjUgMTMuMDM1MyAxNS41MDQ2IDEzLjI3IDE1LjI2OTlMMTkuNjM1IDguODg0OTNDMTkuODY4OSA4LjY0OTc3IDIwLjAwMDIgOC4zMzE1OSAyMC4wMDAyIDcuOTk5OTNDMjAuMDAwMiA3LjY2ODI2IDE5Ljg2ODkgNy4zNTAwOSAxOS42MzUgNy4xMTQ5M1oiIGZpbGw9IiM0RjY2RUUiLz4KPC9zdmc+Cg==');
|
26
|
+
background-position: right 1rem top 50%;
|
27
|
+
}
|
28
|
+
|
29
|
+
.form-section-prev,
|
30
|
+
.form-section-next,
|
31
|
+
.form-section-submit {
|
32
|
+
margin-top: 1.5rem;
|
33
|
+
cursor: pointer;
|
34
|
+
}
|
35
|
+
|
36
|
+
.form-section-prev {
|
37
|
+
float: left;
|
38
|
+
}
|
39
|
+
|
40
|
+
.form-section-next,
|
41
|
+
.form-section-submit {
|
42
|
+
float: right;
|
43
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
.sfgov-container-two-column,
|
2
|
+
.sfgov-container-three-column {
|
3
|
+
flex-direction: column;
|
4
|
+
display: flex;
|
5
|
+
flex-wrap: wrap;
|
6
|
+
@media screen and (min-width: $mq-narrow) {
|
7
|
+
flex-direction: row;
|
8
|
+
}
|
9
|
+
> div {
|
10
|
+
width: 100%;
|
11
|
+
margin-bottom: $rhythm;
|
12
|
+
@media screen and (min-width: $mq-narrow) {
|
13
|
+
display: flex;
|
14
|
+
align-items: stretch;
|
15
|
+
> * {
|
16
|
+
margin-right: $rhythm * 2;
|
17
|
+
width: 100%;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
@media screen and (min-width: $mq-narrow) {
|
24
|
+
.sfgov-container-two-column > div {
|
25
|
+
width: 50%;
|
26
|
+
&:nth-child(2n+2) > * {
|
27
|
+
margin-right: 0;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.sfgov-container-three-column > div {
|
32
|
+
width: 33.33%;
|
33
|
+
&:nth-child(3n+3) > * {
|
34
|
+
margin-right: 0;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
@@ -0,0 +1,129 @@
|
|
1
|
+
.hero-banner--border {
|
2
|
+
display: block;
|
3
|
+
height: 3px;
|
4
|
+
margin: 0 auto;
|
5
|
+
max-width: 1090px;
|
6
|
+
width: 100%;
|
7
|
+
|
8
|
+
.hero-banner--border-contain {
|
9
|
+
background: rgba($slate, 0.1);
|
10
|
+
display: block;
|
11
|
+
height: 3px;
|
12
|
+
margin-left: 20px;
|
13
|
+
margin-right: 20px;
|
14
|
+
|
15
|
+
@media screen and (min-width: $mq-wide) {
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.hero-banner.default {
|
22
|
+
@include contain-1090;
|
23
|
+
padding-top: 40px;
|
24
|
+
|
25
|
+
@media screen and (min-width: $mq-medium) {
|
26
|
+
padding-top: 60px;
|
27
|
+
}
|
28
|
+
|
29
|
+
h1 {
|
30
|
+
@include display-1;
|
31
|
+
margin-top: 0;
|
32
|
+
color: $black;
|
33
|
+
margin-bottom: 20px;
|
34
|
+
|
35
|
+
@media screen and (min-width: $mq-medium) {
|
36
|
+
margin-left: -5px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.lead-paragraph {
|
41
|
+
@include big-description;
|
42
|
+
color: $black;
|
43
|
+
margin-bottom: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
.path-frontpage & {
|
47
|
+
h1 {
|
48
|
+
@include h1;
|
49
|
+
margin-bottom: 27px;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.form-header-meta {
|
55
|
+
position: relative;
|
56
|
+
h2 {
|
57
|
+
font-size: 1rem;
|
58
|
+
font-weight: $fw-regular;
|
59
|
+
margin-bottom: 0.25rem;
|
60
|
+
@media screen and (min-width: $mq-medium) {
|
61
|
+
width: 70%;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
// Progress
|
67
|
+
|
68
|
+
.form-progress {
|
69
|
+
position: relative;
|
70
|
+
@media screen and (min-width: $mq-medium) {
|
71
|
+
position: absolute;
|
72
|
+
top: 0;
|
73
|
+
right: 0;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.form-progress-bubble {
|
78
|
+
background: $purple-1;
|
79
|
+
padding: 0.25rem 1rem;
|
80
|
+
border-radius: 1.5rem;
|
81
|
+
display: inline-block;
|
82
|
+
margin: 0.5rem 0;
|
83
|
+
@media screen and (min-width: $mq-medium) {
|
84
|
+
position: relative;
|
85
|
+
top: -0.25rem;
|
86
|
+
margin: 0;
|
87
|
+
}
|
88
|
+
font-size: 1rem;
|
89
|
+
}
|
90
|
+
|
91
|
+
.form-progress-bar {
|
92
|
+
font-size: 0;
|
93
|
+
color: transparent;
|
94
|
+
background: $purple-1;
|
95
|
+
height: 0.75rem;
|
96
|
+
display: inline-block;
|
97
|
+
width: 10rem;
|
98
|
+
position: relative;
|
99
|
+
top: -0.125rem;
|
100
|
+
border-radius: 0.375rem;
|
101
|
+
&::before {
|
102
|
+
content: '';
|
103
|
+
background: #6b8292;
|
104
|
+
height: 0.75rem;
|
105
|
+
border-radius: 0.375rem 0 0 0.375rem;
|
106
|
+
position: absolute;
|
107
|
+
top: 0;
|
108
|
+
left: 0;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
@for $i from 1 to 90 {
|
113
|
+
.form-progress-bar-#{$i}::before {
|
114
|
+
width: $i * 1%;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
@for $i from 91 to 99 {
|
119
|
+
.form-progress-bar-#{$i} {
|
120
|
+
background: #6b8292;
|
121
|
+
&::before {
|
122
|
+
background: $purple-1;
|
123
|
+
left: auto;
|
124
|
+
right: 0;
|
125
|
+
border-radius: 0 0.375rem 0.375rem 0;
|
126
|
+
width: (100% - ($i * 1%));
|
127
|
+
}
|
128
|
+
}
|
129
|
+
}
|
data/assets/css/main.scss
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
4
|
@import url('https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500&display=swap');
|
5
5
|
|
6
|
-
@import '
|
7
|
-
@import '
|
8
|
-
@import '
|
9
|
-
@import '
|
10
|
-
@import '
|
11
|
-
@import '
|
12
|
-
@import '
|
6
|
+
@import 'sf-design-system/design-tokens/colors';
|
7
|
+
@import 'sf-design-system/design-tokens/breakpoints';
|
8
|
+
@import 'sf-design-system/design-tokens/typography-mixins';
|
9
|
+
@import 'sf-design-system/design-tokens/typography';
|
10
|
+
@import 'sf-design-system/design-tokens/mixins';
|
11
|
+
@import 'sf-design-system/design-tokens/variables';
|
12
|
+
@import 'sf-design-system/design-tokens/base';
|
13
13
|
|
14
|
-
@import '
|
15
|
-
@import '
|
16
|
-
@import '
|
14
|
+
@import 'sf-design-system/layout/hero-banner';
|
15
|
+
@import 'sf-design-system/forms/form-fields';
|
16
|
+
@import 'sf-design-system/forms/pagination';
|
17
17
|
|
18
18
|
@import 'sfgov';
|
19
19
|
|
data/assets/js/script.js
CHANGED
@@ -90,12 +90,6 @@ $(document).ready(function(){
|
|
90
90
|
event.preventDefault();
|
91
91
|
}
|
92
92
|
|
93
|
-
function validPage() {
|
94
|
-
var activePage = $('.form-section.active');
|
95
|
-
$('.form-section.active').validator('validate');
|
96
|
-
return activePage.children('.has-error').length === 0 ? true : false;
|
97
|
-
}
|
98
|
-
|
99
93
|
// Previous page
|
100
94
|
$('.form-section-prev').click(function() {
|
101
95
|
paginate(-1);
|
@@ -103,9 +97,7 @@ $(document).ready(function(){
|
|
103
97
|
|
104
98
|
// Next page
|
105
99
|
$('.form-section-next').click(function() {
|
106
|
-
|
107
|
-
paginate(1);
|
108
|
-
}
|
100
|
+
paginate(1);
|
109
101
|
});
|
110
102
|
|
111
103
|
// ---- Conditionals ----
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: form-jekyll
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Rubenoff
|
@@ -94,6 +94,17 @@ files:
|
|
94
94
|
- _layouts/base.html
|
95
95
|
- _layouts/choose.html
|
96
96
|
- _layouts/default.html
|
97
|
+
- _sass/sf-design-system/design-tokens/_base.scss
|
98
|
+
- _sass/sf-design-system/design-tokens/_breakpoints.scss
|
99
|
+
- _sass/sf-design-system/design-tokens/_colors.scss
|
100
|
+
- _sass/sf-design-system/design-tokens/_mixins.scss
|
101
|
+
- _sass/sf-design-system/design-tokens/_typography-mixins.scss
|
102
|
+
- _sass/sf-design-system/design-tokens/_typography.scss
|
103
|
+
- _sass/sf-design-system/design-tokens/_variables.scss
|
104
|
+
- _sass/sf-design-system/forms/_form-fields.scss
|
105
|
+
- _sass/sf-design-system/forms/_pagination.scss
|
106
|
+
- _sass/sf-design-system/layout/_containers.scss
|
107
|
+
- _sass/sf-design-system/layout/_hero-banner.scss
|
97
108
|
- _sass/sfgov.scss
|
98
109
|
- _sass/variables.scss
|
99
110
|
- assets/css/main.scss
|