bitstyles 0.8.0 → 0.9.1
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/.github/PULL_REQUEST_TEMPLATE.md +6 -10
- data/.nvmrc +1 -1
- data/.stylelintrc +1 -164
- data/.travis.yml +19 -0
- data/README.md +66 -33
- data/bitstyles.gemspec +1 -1
- data/lib/bitstyles/version.rb +1 -1
- data/package.json +21 -17
- data/scss/bitstyles.scss +53 -45
- data/scss/bitstyles/base/_all.scss +7 -0
- data/scss/bitstyles/base/_figure.scss +1 -1
- data/scss/bitstyles/base/_forms.scss +31 -26
- data/scss/bitstyles/base/_hr.scss +1 -1
- data/scss/bitstyles/base/_images.scss +1 -1
- data/scss/bitstyles/base/_link.scss +2 -14
- data/scss/bitstyles/base/_media.scss +2 -2
- data/scss/bitstyles/base/_typography.scss +37 -89
- data/scss/bitstyles/components/_expander.scss +8 -5
- data/scss/bitstyles/components/_modal.scss +41 -26
- data/scss/bitstyles/generic/_all.scss +2 -0
- data/scss/bitstyles/layout/_content.scss +7 -3
- data/scss/bitstyles/layout/_grid.scss +46 -23
- data/scss/bitstyles/layout/_topbar.scss +19 -4
- data/scss/bitstyles/layout/_width.scss +18 -11
- data/scss/bitstyles/objects/_absolute-center.scss +8 -2
- data/scss/bitstyles/objects/_absolute-cover.scss +11 -2
- data/scss/bitstyles/objects/_block.scss +5 -2
- data/scss/bitstyles/objects/_bordered-header.scss +8 -3
- data/scss/bitstyles/objects/_break-long-words.scss +6 -3
- data/scss/bitstyles/objects/_button--icon.scss +8 -4
- data/scss/bitstyles/objects/_button.scss +22 -13
- data/scss/bitstyles/objects/_clearfix.scss +7 -4
- data/scss/bitstyles/objects/_fixed-ratio.scss +24 -9
- data/scss/bitstyles/objects/_flex.scss +12 -8
- data/scss/bitstyles/objects/_hidden.scss +10 -7
- data/scss/bitstyles/objects/_icon.scss +19 -11
- data/scss/bitstyles/objects/_input.scss +16 -9
- data/scss/bitstyles/objects/_label.scss +2 -2
- data/scss/bitstyles/objects/_link.scss +18 -15
- data/scss/bitstyles/objects/_list-inline.scss +26 -0
- data/scss/bitstyles/objects/_list-reset.scss +5 -3
- data/scss/bitstyles/objects/_media.scss +9 -2
- data/scss/bitstyles/objects/_object-cover.scss +20 -0
- data/scss/bitstyles/objects/_overflow.scss +20 -0
- data/scss/bitstyles/objects/_truncate-with-ellipsis.scss +4 -3
- data/scss/bitstyles/objects/_typography.scss +8 -62
- data/scss/bitstyles/objects/_vertical-center.scss +5 -2
- data/scss/bitstyles/objects/_visuallyhidden.scss +10 -6
- data/scss/bitstyles/settings/_button.scss +1 -1
- data/scss/bitstyles/settings/_content.scss +2 -3
- data/scss/bitstyles/settings/_fixed-ratio.scss +3 -0
- data/scss/bitstyles/settings/_global.breakpoints.scss +5 -5
- data/scss/bitstyles/settings/_global.color-palette.scss +47 -0
- data/scss/bitstyles/settings/_global.layout.scss +7 -5
- data/scss/bitstyles/settings/_global.typography.scss +25 -17
- data/scss/bitstyles/settings/_grid.scss +1 -1
- data/scss/bitstyles/settings/_hidden.scss +1 -1
- data/scss/bitstyles/settings/_icon.scss +3 -3
- data/scss/bitstyles/settings/_input.scss +4 -4
- data/scss/bitstyles/settings/_link.scss +4 -0
- data/scss/bitstyles/settings/_modal.scss +2 -1
- data/scss/bitstyles/settings/_topbar.scss +4 -2
- data/scss/bitstyles/settings/_visuallyhidden.scss +1 -1
- data/scss/bitstyles/settings/_width.scss +1 -1
- data/scss/bitstyles/tools/_absolute-center.scss +8 -3
- data/scss/bitstyles/tools/_absolute-cover.scss +8 -2
- data/scss/bitstyles/tools/_all.scss +23 -0
- data/scss/bitstyles/tools/_block.scss +5 -2
- data/scss/bitstyles/tools/_break-long-words.scss +6 -2
- data/scss/bitstyles/tools/_clearfix.scss +7 -2
- data/scss/bitstyles/tools/_fixed-ratio.scss +41 -4
- data/scss/bitstyles/tools/_flex.scss +7 -3
- data/scss/bitstyles/tools/_font-face.scss +11 -2
- data/scss/bitstyles/tools/_hidden.scss +5 -2
- data/scss/bitstyles/tools/_link.scss +25 -0
- data/scss/bitstyles/tools/_list-reset.scss +7 -3
- data/scss/bitstyles/tools/_media-query.scss +14 -7
- data/scss/bitstyles/tools/_media.scss +10 -3
- data/scss/bitstyles/tools/_overflow.scss +19 -0
- data/scss/bitstyles/tools/_palette.scss +28 -0
- data/scss/bitstyles/tools/_spacing.scss +22 -0
- data/scss/bitstyles/tools/_truncate-with-ellipsis.scss +7 -3
- data/scss/bitstyles/tools/_typography-conversions.scss +20 -7
- data/scss/bitstyles/tools/_typography.scss +124 -5
- data/scss/bitstyles/tools/_vertical-center.scss +5 -2
- data/scss/bitstyles/tools/_visuallyhidden.scss +9 -6
- data/scss/bitstyles/tools/_width.scss +10 -1
- data/scss/bitstyles/tools/_zindex.scss +34 -14
- data/scss/bitstyles/trumps/_background-color.scss +8 -3
- data/scss/bitstyles/trumps/_color.scss +8 -3
- data/scss/bitstyles/trumps/_margin.scss +5 -5
- data/scss/bitstyles/trumps/_no-margin.scss +5 -5
- data/scss/bitstyles/trumps/_no-padding.scss +5 -5
- data/scss/bitstyles/trumps/_padding.scss +5 -5
- data/scss/bitstyles/trumps/_text-align.scss +3 -4
- data/scss/bitstyles/trumps/_text-style.scss +4 -2
- data/scss/bitstyles/trumps/_text-weight.scss +6 -3
- data/yarn.lock +6511 -0
- metadata +16 -14
- data/build/.gitignore +0 -4
- data/scripts/styleguide.sh +0 -16
- data/scss/bitstyles/objects/_expander.scss +0 -45
- data/scss/bitstyles/settings/_global.color-theme.scss +0 -11
|
@@ -11,22 +11,10 @@
|
|
|
11
11
|
// :focus - Focus state
|
|
12
12
|
// :visited - Visited state
|
|
13
13
|
//
|
|
14
|
-
// Styleguide
|
|
14
|
+
// Styleguide 2.5
|
|
15
15
|
|
|
16
16
|
@import '../settings/link';
|
|
17
17
|
|
|
18
18
|
a {
|
|
19
|
-
|
|
20
|
-
text-decoration: none;
|
|
21
|
-
transition: $bitstyles-link-transition;
|
|
22
|
-
|
|
23
|
-
&:visited {
|
|
24
|
-
color: $bitstyles-color-link-visited;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&:hover,
|
|
28
|
-
&:focus {
|
|
29
|
-
color: $bitstyles-color-link-hover;
|
|
30
|
-
text-decoration: underline;
|
|
31
|
-
}
|
|
19
|
+
@include link;
|
|
32
20
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
// <source src="http://hpr.dogphilosophy.net/test/flac.flac">
|
|
11
11
|
// </audio>
|
|
12
12
|
//
|
|
13
|
-
// Styleguide
|
|
13
|
+
// Styleguide 2.6
|
|
14
14
|
|
|
15
15
|
// Video
|
|
16
16
|
//
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
// <source src="http://clips.vorwaerts-gmbh.de/VfE.ogv" type="video/ogg">
|
|
22
22
|
// </video>
|
|
23
23
|
//
|
|
24
|
-
// Styleguide
|
|
24
|
+
// Styleguide 2.7
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/* stylelint-disable selector-no-type */
|
|
2
2
|
html {
|
|
3
3
|
font-family: $bitstyles-font-family-body;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
background: map-get($bitstyles-colors-theme, 'background');
|
|
4
|
+
line-height: $bitstyles-line-height-base;
|
|
5
|
+
color: palette('text');
|
|
6
|
+
background: palette('background');
|
|
8
7
|
|
|
9
8
|
&.fonts-loaded {
|
|
10
9
|
font-family: $bitstyles-font-family-body-loaded;
|
|
@@ -23,7 +22,7 @@ html {
|
|
|
23
22
|
// <h5>Header 5</h5>
|
|
24
23
|
// <h6>Header 6</h6>
|
|
25
24
|
//
|
|
26
|
-
// Styleguide
|
|
25
|
+
// Styleguide 2.8
|
|
27
26
|
|
|
28
27
|
h1,
|
|
29
28
|
h2,
|
|
@@ -34,59 +33,7 @@ h6 {
|
|
|
34
33
|
@include generic-heading;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
h1
|
|
38
|
-
@include font-size($bitstyles-font-size-h1-small);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
h2 {
|
|
42
|
-
@include font-size($bitstyles-font-size-h2-small);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
h3 {
|
|
46
|
-
@include font-size($bitstyles-font-size-h3-small);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
h4 {
|
|
50
|
-
@include font-size($bitstyles-font-size-h4-small);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
h5 {
|
|
54
|
-
@include font-size($bitstyles-font-size-h5-small);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
h6 {
|
|
58
|
-
@include font-size($bitstyles-font-size-h6-small);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@include media-query($bitstyles-typography-breakpoint) {
|
|
62
|
-
html {
|
|
63
|
-
font-size: px-to-em($bitstyles-font-size-base, $bitstyles-font-size-base);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
h1 {
|
|
67
|
-
@include font-size($bitstyles-font-size-h1, $bitstyles-font-size-base);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
h2 {
|
|
71
|
-
@include font-size($bitstyles-font-size-h2, $bitstyles-font-size-base);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
h3 {
|
|
75
|
-
@include font-size($bitstyles-font-size-h3, $bitstyles-font-size-base);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
h4 {
|
|
79
|
-
@include font-size($bitstyles-font-size-h4, $bitstyles-font-size-base);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
h5 {
|
|
83
|
-
@include font-size($bitstyles-font-size-h5, $bitstyles-font-size-base);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
h6 {
|
|
87
|
-
@include font-size($bitstyles-font-size-h6, $bitstyles-font-size-base);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
36
|
+
@include generate-font-sizes('', (html, h1, h2, h3, h4, h5, h6));
|
|
90
37
|
|
|
91
38
|
// Paragraphs
|
|
92
39
|
//
|
|
@@ -95,10 +42,10 @@ h6 {
|
|
|
95
42
|
// markup:
|
|
96
43
|
// <p>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer. Gummies cheesecake oat cake sugar plum icing cupcake tiramisu bonbon. Cotton candy chupa chups tootsie roll chupa chups cotton candy liquorice jelly gingerbread. Pastry gummi bears liquorice tart cotton candy marshmallow. Ice cream cotton candy chocolate cake cookie. Bonbon candy jelly-o sugar plum cotton candy carrot cake icing ice cream. Sweet chocolate marzipan. Candy canes danish cake carrot cake bonbon. Gummi bears sesame snaps tart bear claw pie chocolate bar. Ice cream candy canes sugar plum cookie. Macaroon biscuit biscuit carrot cake liquorice. Muffin pudding gingerbread powder jelly-o chocolate bar powder jelly beans toffee.</p>
|
|
97
44
|
//
|
|
98
|
-
// Styleguide
|
|
45
|
+
// Styleguide 2.9
|
|
99
46
|
|
|
100
47
|
p {
|
|
101
|
-
margin: 0 0
|
|
48
|
+
margin: 0 0 spacing('base');
|
|
102
49
|
}
|
|
103
50
|
|
|
104
51
|
// Address
|
|
@@ -108,7 +55,8 @@ p {
|
|
|
108
55
|
// markup:
|
|
109
56
|
// <address>Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</address
|
|
110
57
|
//
|
|
111
|
-
// Styleguide
|
|
58
|
+
// Styleguide 2.10
|
|
59
|
+
|
|
112
60
|
address {
|
|
113
61
|
font-style: normal;
|
|
114
62
|
}
|
|
@@ -123,7 +71,7 @@ address {
|
|
|
123
71
|
// <dd>Gummies cheesecake oat cake sugar plum icing cupcake tiramisu bonbon.</dd>
|
|
124
72
|
// </dl>
|
|
125
73
|
//
|
|
126
|
-
// Styleguide
|
|
74
|
+
// Styleguide 2.11
|
|
127
75
|
|
|
128
76
|
dt {
|
|
129
77
|
font-weight: $bitstyles-font-weight-bold;
|
|
@@ -140,7 +88,7 @@ dt {
|
|
|
140
88
|
// <li>Gummies cheesecake oat cake sugar.</li>
|
|
141
89
|
// </ul>
|
|
142
90
|
//
|
|
143
|
-
// Styleguide
|
|
91
|
+
// Styleguide 2.12
|
|
144
92
|
|
|
145
93
|
// List - Ordered
|
|
146
94
|
//
|
|
@@ -153,7 +101,7 @@ dt {
|
|
|
153
101
|
// <li>Gummies cheesecake oat cake sugar.</li>
|
|
154
102
|
// </ol>
|
|
155
103
|
//
|
|
156
|
-
// Styleguide
|
|
104
|
+
// Styleguide 2.13
|
|
157
105
|
|
|
158
106
|
// Blockquote
|
|
159
107
|
//
|
|
@@ -162,167 +110,167 @@ dt {
|
|
|
162
110
|
// markup:
|
|
163
111
|
// <blockquote>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer. Gummies cheesecake oat cake sugar plum icing cupcake tiramisu bonbon. Cotton candy chupa chups tootsie roll chupa chups cotton candy liquorice jelly</blockquote>
|
|
164
112
|
//
|
|
165
|
-
// Styleguide
|
|
113
|
+
// Styleguide 2.14
|
|
166
114
|
|
|
167
115
|
// Typographic styles
|
|
168
116
|
//
|
|
169
117
|
// Inline elements that have a default typographic representation in a browser.
|
|
170
118
|
//
|
|
171
|
-
// Styleguide
|
|
119
|
+
// Styleguide 2.15
|
|
172
120
|
|
|
173
121
|
// strong
|
|
174
122
|
//
|
|
175
123
|
// markup:
|
|
176
124
|
// <strong>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer. Gummies cheesecake oat cake sugar plum icing cupcake tiramisu bonbon. Cotton candy chupa chups tootsie roll chupa chups cotton candy liquorice jelly</strong>
|
|
177
125
|
//
|
|
178
|
-
// Styleguide
|
|
126
|
+
// Styleguide 2.15.1
|
|
179
127
|
|
|
180
128
|
// em
|
|
181
129
|
//
|
|
182
130
|
// markup:
|
|
183
131
|
// <em>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</em>
|
|
184
132
|
//
|
|
185
|
-
// Styleguide
|
|
133
|
+
// Styleguide 2.15.2
|
|
186
134
|
|
|
187
135
|
// pre
|
|
188
136
|
//
|
|
189
137
|
// markup:
|
|
190
138
|
// <pre>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</pre>
|
|
191
139
|
//
|
|
192
|
-
// Styleguide
|
|
140
|
+
// Styleguide 2.15.3
|
|
193
141
|
|
|
194
142
|
// code
|
|
195
143
|
//
|
|
196
144
|
// markup:
|
|
197
145
|
// <code>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</code>
|
|
198
146
|
//
|
|
199
|
-
// Styleguide
|
|
147
|
+
// Styleguide 2.15.4
|
|
200
148
|
|
|
201
149
|
// kbd
|
|
202
150
|
//
|
|
203
151
|
// markup:
|
|
204
152
|
// <kbd>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</kbd>
|
|
205
153
|
//
|
|
206
|
-
// Styleguide
|
|
154
|
+
// Styleguide 2.15.5
|
|
207
155
|
|
|
208
156
|
// samp
|
|
209
157
|
//
|
|
210
158
|
// markup:
|
|
211
159
|
// <samp>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</samp>
|
|
212
160
|
//
|
|
213
|
-
// Styleguide
|
|
161
|
+
// Styleguide 2.15.6
|
|
214
162
|
|
|
215
163
|
// var
|
|
216
164
|
//
|
|
217
165
|
// markup:
|
|
218
166
|
// <var>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</var>
|
|
219
167
|
//
|
|
220
|
-
// Styleguide
|
|
168
|
+
// Styleguide 2.15.7
|
|
221
169
|
|
|
222
170
|
// cite
|
|
223
171
|
//
|
|
224
172
|
// markup:
|
|
225
173
|
// <cite>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</cite>
|
|
226
174
|
//
|
|
227
|
-
// Styleguide
|
|
175
|
+
// Styleguide 2.15.8
|
|
228
176
|
|
|
229
177
|
// del
|
|
230
178
|
//
|
|
231
179
|
// markup:
|
|
232
180
|
// <del>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</del>
|
|
233
181
|
//
|
|
234
|
-
// Styleguide
|
|
182
|
+
// Styleguide 2.15.9
|
|
235
183
|
|
|
236
184
|
// abbr
|
|
237
185
|
//
|
|
238
186
|
// markup:
|
|
239
187
|
// <abbr>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</abbr>
|
|
240
188
|
//
|
|
241
|
-
// Styleguide
|
|
189
|
+
// Styleguide 2.15.10
|
|
242
190
|
|
|
243
191
|
// i
|
|
244
192
|
//
|
|
245
193
|
// markup:
|
|
246
194
|
// <i>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</i>
|
|
247
195
|
//
|
|
248
|
-
// Styleguide
|
|
196
|
+
// Styleguide 2.15.11
|
|
249
197
|
|
|
250
198
|
// b
|
|
251
199
|
//
|
|
252
200
|
// markup:
|
|
253
201
|
// <b>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</b>
|
|
254
202
|
//
|
|
255
|
-
// Styleguide
|
|
203
|
+
// Styleguide 2.15.12
|
|
256
204
|
|
|
257
205
|
// ins
|
|
258
206
|
//
|
|
259
207
|
// markup:
|
|
260
208
|
// <ins>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</ins>
|
|
261
209
|
//
|
|
262
|
-
// Styleguide
|
|
210
|
+
// Styleguide 2.15.13
|
|
263
211
|
|
|
264
212
|
// dfn
|
|
265
213
|
//
|
|
266
214
|
// markup:
|
|
267
215
|
// <dfn>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</dfn>
|
|
268
216
|
//
|
|
269
|
-
// Styleguide
|
|
217
|
+
// Styleguide 2.15.14
|
|
270
218
|
|
|
271
219
|
// small
|
|
272
220
|
//
|
|
273
221
|
// markup:
|
|
274
222
|
// <small>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</small>
|
|
275
223
|
//
|
|
276
|
-
// Styleguide
|
|
224
|
+
// Styleguide 2.15.15
|
|
277
225
|
|
|
278
226
|
// sub
|
|
279
227
|
//
|
|
280
228
|
// markup:
|
|
281
229
|
// <sub>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</sub>
|
|
282
230
|
//
|
|
283
|
-
// Styleguide
|
|
231
|
+
// Styleguide 2.15.16
|
|
284
232
|
|
|
285
233
|
// sup
|
|
286
234
|
//
|
|
287
235
|
// markup:
|
|
288
236
|
// <sup>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</sup>
|
|
289
237
|
//
|
|
290
|
-
// Styleguide
|
|
238
|
+
// Styleguide 2.15.17
|
|
291
239
|
|
|
292
240
|
// big
|
|
293
241
|
//
|
|
294
242
|
// markup:
|
|
295
243
|
// <big>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</big>
|
|
296
244
|
//
|
|
297
|
-
// Styleguide
|
|
245
|
+
// Styleguide 2.15.18
|
|
298
246
|
|
|
299
247
|
// s
|
|
300
248
|
//
|
|
301
249
|
// markup:
|
|
302
250
|
// <s>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</s>
|
|
303
251
|
//
|
|
304
|
-
// Styleguide
|
|
252
|
+
// Styleguide 2.15.19
|
|
305
253
|
|
|
306
254
|
// strike
|
|
307
255
|
//
|
|
308
256
|
// markup:
|
|
309
257
|
// <strike>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</strike>
|
|
310
258
|
//
|
|
311
|
-
// Styleguide
|
|
259
|
+
// Styleguide 2.15.20
|
|
312
260
|
|
|
313
261
|
// q
|
|
314
262
|
//
|
|
315
263
|
// markup:
|
|
316
264
|
// <q>Jelly cake marshmallow. Pie cotton candy chupa chups marzipan liquorice cheesecake wafer.</q>
|
|
317
265
|
//
|
|
318
|
-
// Styleguide
|
|
266
|
+
// Styleguide 2.15.21
|
|
319
267
|
|
|
320
268
|
// time
|
|
321
269
|
//
|
|
322
270
|
// markup:
|
|
323
271
|
// <time>20:57</time>
|
|
324
272
|
//
|
|
325
|
-
// Styleguide
|
|
273
|
+
// Styleguide 2.15.22
|
|
326
274
|
|
|
327
275
|
// Table
|
|
328
276
|
//
|
|
@@ -349,6 +297,6 @@ dt {
|
|
|
349
297
|
// </tbody>
|
|
350
298
|
// </table>
|
|
351
299
|
//
|
|
352
|
-
// Styleguide
|
|
300
|
+
// Styleguide 2.16
|
|
353
301
|
|
|
354
302
|
/* stylelint-enable selector-no-type */
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
// Expander
|
|
2
2
|
//
|
|
3
|
-
//
|
|
4
|
-
// the body is the content you want to be revealed — it starts at zero height,
|
|
5
|
-
// expands to size of content once active.
|
|
3
|
+
// **Expand or contract to show or hide a longer piece of text**
|
|
6
4
|
//
|
|
7
|
-
//
|
|
5
|
+
// This needs JS to function. The `toggle` should be a button element with some meaningful text,
|
|
6
|
+
// the `body` is the content you want to be revealed — it starts at zero height,
|
|
7
|
+
// expanding to the size of its content once active.
|
|
8
|
+
//
|
|
9
|
+
// Use the `.o-button` classes on the `.c-expander-toggle` to ensure consistency
|
|
10
|
+
// with other button elements.
|
|
8
11
|
//
|
|
9
12
|
// markup:
|
|
10
13
|
// <p>
|
|
@@ -21,7 +24,7 @@
|
|
|
21
24
|
// <p>Powder sweet roll sesame snaps. Sweet roll fruitcake ice cream cheesecake croissant. Candy cupcake cake brownie muffin oat cake gummi bears bear claw. Chupa chups liquorice jelly cotton candy gummies gummies. Jujubes lemon drops candy gummi bears cake cake fruitcake tart pastry. Cake topping candy canes. Lollipop dragée icing chocolate cake sugar plum. Jujubes halvah tootsie roll chocolate gingerbread sweet roll danish. Biscuit bonbon sweet.</p>
|
|
22
25
|
// </div>
|
|
23
26
|
//
|
|
24
|
-
// Styleguide
|
|
27
|
+
// Styleguide 5.1
|
|
25
28
|
|
|
26
29
|
.#{$bitstyles-namespace}c-expander-toggle__indicator {
|
|
27
30
|
transform: rotate(180deg);
|
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
/* @define modal */
|
|
2
2
|
// Modal
|
|
3
3
|
//
|
|
4
|
-
//
|
|
4
|
+
// **An accessible modal overlay which animates in & out**
|
|
5
5
|
//
|
|
6
|
-
//
|
|
7
|
-
// it requires semantic markup, landmark roles and aria attributes in order to function, and keeps
|
|
8
|
-
// those all updated with the component’s current state.
|
|
6
|
+
// This needs JS to function.
|
|
9
7
|
//
|
|
10
|
-
//
|
|
8
|
+
// Set modal size using the usual layout classes e.g. `.l-content`. At smaller screensizes
|
|
9
|
+
// the modal becomes fullwidth.
|
|
11
10
|
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
11
|
+
// The example here uses [A11y-dialog.js](https://github.com/edenspiekermann/a11y-dialog)
|
|
12
|
+
// so it’s really accessible — it requires semantic markup, landmark roles and aria
|
|
13
|
+
// attributes in order to function, and keeps those all updated with the component’s
|
|
14
|
+
// current state. The basic layout & appearance styles should still function even if you’re using
|
|
15
|
+
// a different JS modal component.
|
|
14
16
|
//
|
|
15
|
-
//
|
|
16
|
-
//
|
|
17
|
+
// If you’re using A11y-dialog:
|
|
18
|
+
// - Add `data-a11y-dialog-show="dialog_ID"` to a button to make that the trigger
|
|
19
|
+
// to open a modal (change the id attribute to be unique!).
|
|
20
|
+
// - Closed the modal by clicking the darkened overlay, the close button in the top right (or any button
|
|
21
|
+
// in the modal’s content which you give the `data-a11y-dialog-hide` attribute), or hitting the escape key.
|
|
17
22
|
//
|
|
18
23
|
// markup:
|
|
19
24
|
// <main aria-label="Content" id="main" class="l-content">
|
|
@@ -35,7 +40,7 @@
|
|
|
35
40
|
// </div>
|
|
36
41
|
// </div>
|
|
37
42
|
//
|
|
38
|
-
// Styleguide
|
|
43
|
+
// Styleguide 5.2
|
|
39
44
|
|
|
40
45
|
@import '../settings/modal';
|
|
41
46
|
|
|
@@ -51,12 +56,12 @@
|
|
|
51
56
|
bottom: 0;
|
|
52
57
|
left: 0;
|
|
53
58
|
z-index: 10;
|
|
59
|
+
cursor: pointer;
|
|
54
60
|
background: $bitstyles-modal-overlay-color;
|
|
55
61
|
transition: all $bitstyles-modal-transition-duration $bitstyles-modal-transition-easing;
|
|
56
62
|
-webkit-backface-visibility: hidden; // stylelint-disable-line property-no-vendor-prefix
|
|
57
63
|
backface-visibility: hidden;
|
|
58
64
|
will-change: $bitstyles-modal-will-change;
|
|
59
|
-
cursor: pointer;
|
|
60
65
|
|
|
61
66
|
[aria-hidden="true"] & {
|
|
62
67
|
@include modal-is-hidden;
|
|
@@ -73,8 +78,8 @@
|
|
|
73
78
|
width: 100%;
|
|
74
79
|
height: 100%;
|
|
75
80
|
max-height: 100vh;
|
|
76
|
-
padding-top: $bitstyles-
|
|
77
|
-
padding-bottom: $bitstyles-
|
|
81
|
+
padding-top: $bitstyles-modal-padding;
|
|
82
|
+
padding-bottom: $bitstyles-modal-padding;
|
|
78
83
|
overflow: scroll;
|
|
79
84
|
-webkit-overflow-scrolling: touch;
|
|
80
85
|
background-color: $bitstyles-modal-background-color;
|
|
@@ -96,7 +101,7 @@
|
|
|
96
101
|
|
|
97
102
|
@include media-query($bitstyles-modal-breakpoint) {
|
|
98
103
|
.#{$bitstyles-namespace}c-modal__content {
|
|
99
|
-
width: calc(100% - 2 * #{$bitstyles-
|
|
104
|
+
width: calc(100% - 2 * #{$bitstyles-modal-padding});
|
|
100
105
|
height: auto;
|
|
101
106
|
transition: all $bitstyles-modal-transition-duration $bitstyles-modal-transition-easing, visibility 0 $bitstyles-modal-transition-easing;
|
|
102
107
|
|
|
@@ -109,25 +114,35 @@
|
|
|
109
114
|
|
|
110
115
|
.#{$bitstyles-namespace}c-modal__close {
|
|
111
116
|
position: absolute;
|
|
112
|
-
top: $bitstyles-
|
|
113
|
-
right: $bitstyles-
|
|
117
|
+
top: $bitstyles-modal-padding;
|
|
118
|
+
right: $bitstyles-modal-padding;
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
// Modal dialog
|
|
117
122
|
//
|
|
118
|
-
//
|
|
123
|
+
// **An accessible modal overlay which animates in & out**
|
|
124
|
+
//
|
|
125
|
+
// This needs JS to function.
|
|
119
126
|
//
|
|
120
|
-
//
|
|
121
|
-
//
|
|
122
|
-
// those all updated with the component’s current state.
|
|
127
|
+
// Set modal size using the usual layout classes e.g. `.l-content`. At smaller screensizes
|
|
128
|
+
// the modal becomes fullwidth.
|
|
123
129
|
//
|
|
124
|
-
//
|
|
130
|
+
// As with the standard modal we’re using [A11y-dialog.js](https://github.com/edenspiekermann/a11y-dialog)
|
|
131
|
+
// so it’s really accessible — it requires semantic markup, landmark roles and aria
|
|
132
|
+
// attributes in order to function, and keeps those all updated with the component’s
|
|
133
|
+
// current state. The basic layout & appearance styles should still function even if you’re using
|
|
134
|
+
// a different JS modal component.
|
|
125
135
|
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
136
|
+
// Using the `modal-variation` mixin we can provide different animations depending
|
|
137
|
+
// on which of several buttons in the modal content the user clicks. Here we have
|
|
138
|
+
// ‘cancel’ and ‘ok’ buttons, with animations to emphasise the meaning of the chosen action
|
|
139
|
+
// (use JS to add the correct class to the modal element based on which button is clicked).
|
|
128
140
|
//
|
|
129
|
-
//
|
|
130
|
-
//
|
|
141
|
+
// If you’re using A11y-dialog:
|
|
142
|
+
// - Add `data-a11y-dialog-show="dialog_ID"` to a button to make that the trigger
|
|
143
|
+
// to open a modal (change the id attribute to be unique!).
|
|
144
|
+
// - Closed the modal by clicking the darkened overlay, the close button in the top right (or any button
|
|
145
|
+
// in the modal’s content which you give the `data-a11y-dialog-hide` attribute), or hitting the escape key.
|
|
131
146
|
//
|
|
132
147
|
// markup:
|
|
133
148
|
// <main aria-label="Content" id="main" class="l-content">
|
|
@@ -148,7 +163,7 @@
|
|
|
148
163
|
// </div>
|
|
149
164
|
// </div>
|
|
150
165
|
//
|
|
151
|
-
// Styleguide
|
|
166
|
+
// Styleguide 5.3
|
|
152
167
|
|
|
153
168
|
@mixin modal-variation($state) {
|
|
154
169
|
.#{$bitstyles-namespace}c-modal--animation-#{$state} {
|