@dscout/particle 1.0.0-alpha.2 → 1.0.0-alpha.3
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.
- package/lib/components/advanced_options.js +15 -3
- package/lib/components/attribute_input.js +15 -3
- package/lib/components/attribute_selector.js +14 -3
- package/lib/components/button.js +18 -6
- package/lib/components/button_control.js +15 -3
- package/lib/components/button_icon.js +142 -40
- package/lib/components/button_mode.js +18 -6
- package/lib/components/button_plain.js +16 -4
- package/lib/components/card.js +12 -2
- package/lib/components/checkbox_input.js +15 -3
- package/lib/components/collapsing_menu.js +15 -3
- package/lib/components/common_button.js +65 -5
- package/lib/components/common_input.js +15 -3
- package/lib/components/container.js +74 -14
- package/lib/components/container_header.js +2 -2
- package/lib/components/drag_and_drop.js +14 -3
- package/lib/components/dropdown_input_toggle.js +15 -4
- package/lib/components/editing_container.js +2 -3
- package/lib/components/email_input.js +15 -3
- package/lib/components/file_input.js +15 -3
- package/lib/components/link_text.js +283 -0
- package/lib/components/number_input.js +15 -3
- package/lib/components/password_input.js +15 -3
- package/lib/components/radio_input.js +15 -3
- package/lib/components/range_input.js +15 -3
- package/lib/components/search_input.js +15 -3
- package/lib/components/select_input.js +15 -3
- package/lib/components/tags_input.js +16 -3
- package/lib/components/text_input.js +15 -3
- package/lib/components/textarea.js +15 -3
- package/lib/components/togglable_fieldset.js +15 -3
- package/lib/components/toggle.js +15 -3
- package/lib/index.js +8 -16
- package/lib/stylesheets/particle.css +4495 -3192
- package/lib/stylesheets/particle.css.map +1 -0
- package/lib/stylesheets/particle.min.css +1 -1
- package/lib/stylesheets/particle.min.css.gz +0 -0
- package/lib/utils/data_attributes.js +18 -0
- package/lib/utils/markscout.js +2 -2
- package/package.json +29 -27
- package/styles/_base.scss +5 -8
- package/styles/_reset.scss +5 -0
- package/styles/components/_icons.scss +7 -14
- package/styles/components/attribute_selector/_base.scss +3 -3
- package/styles/components/button_icon/_base.scss +22 -0
- package/styles/components/button_icon/themes/_bandit.scss +5 -0
- package/styles/components/button_icon/themes/_researcher.scss +5 -0
- package/styles/components/button_icon/themes/_theme_builder.scss +12 -0
- package/styles/components/buttons/_base.scss +245 -382
- package/styles/components/buttons/themes/_bandit.scss +16 -16
- package/styles/components/buttons/themes/_theme_builder.scss +49 -73
- package/styles/components/card/_base.scss +0 -8
- package/styles/components/container/_base.scss +10 -20
- package/styles/components/container/themes/_theme_builder.scss +15 -14
- package/styles/components/footnote/_base.scss +1 -1
- package/styles/components/input_group/_base.scss +4 -4
- package/styles/components/link_text/_base.scss +52 -0
- package/styles/components/link_text/themes/_bandit.scss +5 -0
- package/styles/components/link_text/themes/_researcher.scss +5 -0
- package/styles/components/link_text/themes/_theme_builder.scss +11 -0
- package/styles/components/menu/_base.scss +2 -3
- package/styles/components/pill/_base.scss +13 -0
- package/styles/components/segmented_controls/_base.scss +1 -1
- package/styles/components/swappable/_base.scss +10 -2
- package/styles/particle.scss +2 -2
- package/styles/themes/_bandit.scss +40 -5
- package/styles/themes/_bandit_colors.scss +9 -0
- package/styles/themes/_researcher.scss +8 -5
- package/styles/themes/_researcher_colors.scss +91 -0
- package/styles/themes/_theme_builder.scss +215 -0
- package/styles/utilities/_alignment.scss +14 -137
- package/styles/utilities/_borders.scss +0 -44
- package/styles/utilities/_colors.scss +76 -605
- package/styles/utilities/_dimensions.scss +51 -265
- package/styles/utilities/_display.scss +1 -64
- package/styles/utilities/_overflow.scss +0 -55
- package/styles/utilities/_radii.scss +102 -30
- package/styles/utilities/_shadows.scss +0 -59
- package/styles/utilities/_spacing.scss +69 -534
- package/styles/utilities/_typography.scss +11 -333
- package/CHANGELOG.md +0 -1548
- package/lib/components/container_inner.js +0 -93
- package/lib/components/controls.js +0 -106
- package/styles/_mixins.scss +0 -134
- package/styles/_tables.scss +0 -138
- package/styles/_theme_builder.scss +0 -356
- package/styles/_variables.scss +0 -248
- package/styles/components/_links.scss +0 -141
- package/styles/css_variables/_bandit.scss +0 -45
- package/styles/css_variables/_researcher.scss +0 -5
|
@@ -1,265 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.height
|
|
46
|
-
.height
|
|
47
|
-
.height
|
|
48
|
-
.
|
|
49
|
-
.
|
|
50
|
-
.
|
|
51
|
-
|
|
52
|
-
.height--12 { height: 12em };
|
|
53
|
-
.height--14 { height: 14em };
|
|
54
|
-
.height--16 { height: 16em };
|
|
55
|
-
.height--18 { height: 18em };
|
|
56
|
-
.height--20 { height: 20em };
|
|
57
|
-
.height--22 { height: 22em };
|
|
58
|
-
.height--24 { height: 24em };
|
|
59
|
-
.height--26 { height: 26em };
|
|
60
|
-
.height--28 { height: 28em };
|
|
61
|
-
.height--30 { height: 30em };
|
|
62
|
-
.height--32 { height: 32em };
|
|
63
|
-
.height--36 { height: 36em };
|
|
64
|
-
.height--40 { height: 40em };
|
|
65
|
-
.height--48 { height: 48em };
|
|
66
|
-
.height--60 { height: 60em };
|
|
67
|
-
|
|
68
|
-
.height--10-pct { height: 10%; }
|
|
69
|
-
.height--20-pct { height: 20%; }
|
|
70
|
-
.height--30-pct { height: 30%; }
|
|
71
|
-
.height--40-pct { height: 40%; }
|
|
72
|
-
.height--50-pct { height: 50%; }
|
|
73
|
-
.height--60-pct { height: 60%; }
|
|
74
|
-
.height--70-pct { height: 70%; }
|
|
75
|
-
.height--80-pct { height: 80%; }
|
|
76
|
-
.height--90-pct { height: 90%; }
|
|
77
|
-
.height--100-pct { height: 100%; }
|
|
78
|
-
|
|
79
|
-
/*
|
|
80
|
-
@styleguide
|
|
81
|
-
@title Max-Heights
|
|
82
|
-
|
|
83
|
-
Max-heights can be set to the same enums as height classes. E.g.:
|
|
84
|
-
|
|
85
|
-
- `max-height--auto`
|
|
86
|
-
- `max-height--12`
|
|
87
|
-
- `max-height--90-pct`
|
|
88
|
-
*/
|
|
89
|
-
// === MAX HEIGHTS === //
|
|
90
|
-
|
|
91
|
-
.max-height--none { max-height: none; }
|
|
92
|
-
.max-height--auto { max-height: auto; }
|
|
93
|
-
|
|
94
|
-
.max-height--10-pct { max-height: 10%; }
|
|
95
|
-
.max-height--20-pct { max-height: 20%; }
|
|
96
|
-
.max-height--30-pct { max-height: 30%; }
|
|
97
|
-
.max-height--40-pct { max-height: 40%; }
|
|
98
|
-
.max-height--50-pct { max-height: 50%; }
|
|
99
|
-
.max-height--60-pct { max-height: 60%; }
|
|
100
|
-
.max-height--70-pct { max-height: 70%; }
|
|
101
|
-
.max-height--80-pct { max-height: 80%; }
|
|
102
|
-
.max-height--90-pct { max-height: 90%; }
|
|
103
|
-
.max-height--100-pct { max-height: 100%; }
|
|
104
|
-
|
|
105
|
-
.max-height--0\.25 { max-height: .25em };
|
|
106
|
-
.max-height--0\.5 { max-height: .5em };
|
|
107
|
-
.max-height--0\.75 { max-height: .75em };
|
|
108
|
-
.max-height--1 { max-height: 1em };
|
|
109
|
-
.max-height--1\.5 { max-height: 1.5em };
|
|
110
|
-
.max-height--2 { max-height: 2em };
|
|
111
|
-
.max-height--3 { max-height: 3em };
|
|
112
|
-
.max-height--4 { max-height: 4em };
|
|
113
|
-
.max-height--5 { max-height: 5em };
|
|
114
|
-
.max-height--6 { max-height: 6em };
|
|
115
|
-
.max-height--8 { max-height: 8em };
|
|
116
|
-
.max-height--10 { max-height: 10em };
|
|
117
|
-
.max-height--12 { max-height: 12em };
|
|
118
|
-
.max-height--14 { max-height: 14em };
|
|
119
|
-
.max-height--16 { max-height: 16em };
|
|
120
|
-
.max-height--18 { max-height: 18em };
|
|
121
|
-
.max-height--20 { max-height: 20em };
|
|
122
|
-
.max-height--22 { max-height: 22em };
|
|
123
|
-
.max-height--24 { max-height: 24em };
|
|
124
|
-
.max-height--26 { max-height: 26em };
|
|
125
|
-
.max-height--28 { max-height: 28em };
|
|
126
|
-
.max-height--30 { max-height: 30em };
|
|
127
|
-
.max-height--32 { max-height: 32em };
|
|
128
|
-
.max-height--36 { max-height: 36em };
|
|
129
|
-
.max-height--40 { max-height: 40em };
|
|
130
|
-
.max-height--48 { max-height: 48em };
|
|
131
|
-
.max-height--60 { max-height: 60em };
|
|
132
|
-
|
|
133
|
-
/*
|
|
134
|
-
@styleguide
|
|
135
|
-
@title Widths
|
|
136
|
-
|
|
137
|
-
**Element widths can be set using enums representing a sliding scale of ems:**
|
|
138
|
-
|
|
139
|
-
`0.25`, `0.5`, `0.75`, `1`, `1.5`, `2`, `3`, `4`, `5`, `6`, `8`, `10`, `12`, `14`, `16`, `18`, `20`, `22`, `24`, `26`, `28`, `30`, `32`, `36`, `40`, `48`, `60`
|
|
140
|
-
|
|
141
|
-
<div class="width--0.75 height--1 border b-color--dscout"></div>
|
|
142
|
-
|
|
143
|
-
```html
|
|
144
|
-
<div class="width--0.75 height--1 border b-color--dscout"></div>
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
<div class="width--4 height--1 border b-color--dscout"></div>
|
|
148
|
-
|
|
149
|
-
```html
|
|
150
|
-
<div class="width--4 height--1 border b-color--dscout"></div>
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Or as percentages in multiples of 10, e.g., `width--40-pct`**
|
|
154
|
-
|
|
155
|
-
<div class="width--100-pct">
|
|
156
|
-
<div class="width--40-pct height--1 border b-color--dscout"></div>
|
|
157
|
-
</div>
|
|
158
|
-
|
|
159
|
-
```html
|
|
160
|
-
<div class="width--100-pct">
|
|
161
|
-
<div class="width--40-pct height--1 border b-color--dscout"></div>
|
|
162
|
-
</div>
|
|
163
|
-
```
|
|
164
|
-
|
|
165
|
-
**Or set to `none` or `auto`.**
|
|
166
|
-
|
|
167
|
-
*/
|
|
168
|
-
// === WIDTHS === //
|
|
169
|
-
|
|
170
|
-
.width--none { width: 0; }
|
|
171
|
-
.width--auto { width: auto; }
|
|
172
|
-
|
|
173
|
-
.width--0\.25 { width: .25em };
|
|
174
|
-
.width--0\.5 { width: .5em };
|
|
175
|
-
.width--0\.75 { width: .75em };
|
|
176
|
-
.width--1 { width: 1em };
|
|
177
|
-
.width--1\.5 { width: 1.5em };
|
|
178
|
-
.width--2 { width: 2em };
|
|
179
|
-
.width--3 { width: 3em };
|
|
180
|
-
.width--4 { width: 4em };
|
|
181
|
-
.width--5 { width: 5em };
|
|
182
|
-
.width--6 { width: 6em };
|
|
183
|
-
.width--8 { width: 8em };
|
|
184
|
-
.width--10 { width: 10em };
|
|
185
|
-
.width--12 { width: 12em };
|
|
186
|
-
.width--14 { width: 14em };
|
|
187
|
-
.width--16 { width: 16em };
|
|
188
|
-
.width--18 { width: 18em };
|
|
189
|
-
.width--20 { width: 20em };
|
|
190
|
-
.width--22 { width: 22em };
|
|
191
|
-
.width--24 { width: 24em };
|
|
192
|
-
.width--26 { width: 26em };
|
|
193
|
-
.width--28 { width: 28em };
|
|
194
|
-
.width--30 { width: 30em };
|
|
195
|
-
.width--32 { width: 32em };
|
|
196
|
-
.width--36 { width: 36em };
|
|
197
|
-
.width--40 { width: 40em };
|
|
198
|
-
.width--48 { width: 48em };
|
|
199
|
-
.width--60 { width: 60em };
|
|
200
|
-
|
|
201
|
-
.width--10-pct { width: 10%; }
|
|
202
|
-
.width--20-pct { width: 20%; }
|
|
203
|
-
.width--30-pct { width: 30%; }
|
|
204
|
-
.width--40-pct { width: 40%; }
|
|
205
|
-
.width--50-pct { width: 50%; }
|
|
206
|
-
.width--60-pct { width: 60%; }
|
|
207
|
-
.width--70-pct { width: 70%; }
|
|
208
|
-
.width--80-pct { width: 80%; }
|
|
209
|
-
.width--90-pct { width: 90%; }
|
|
210
|
-
.width--100-pct { width: 100%; }
|
|
211
|
-
|
|
212
|
-
/*
|
|
213
|
-
@styleguide
|
|
214
|
-
@title Max-Widths
|
|
215
|
-
|
|
216
|
-
Max-widths can be set to the same enums as width classes. E.g.:
|
|
217
|
-
|
|
218
|
-
- `max-width--auto`
|
|
219
|
-
- `max-width--12`
|
|
220
|
-
- `max-width--90-pct`
|
|
221
|
-
|
|
222
|
-
*/
|
|
223
|
-
// === MAX WIDTHS === //
|
|
224
|
-
|
|
225
|
-
.max-width--none { max-width: none; }
|
|
226
|
-
.max-width--auto { max-width: auto; }
|
|
227
|
-
|
|
228
|
-
.max-width--10-pct { max-width: 10%; }
|
|
229
|
-
.max-width--20-pct { max-width: 20%; }
|
|
230
|
-
.max-width--30-pct { max-width: 30%; }
|
|
231
|
-
.max-width--40-pct { max-width: 40%; }
|
|
232
|
-
.max-width--50-pct { max-width: 50%; }
|
|
233
|
-
.max-width--60-pct { max-width: 60%; }
|
|
234
|
-
.max-width--70-pct { max-width: 70%; }
|
|
235
|
-
.max-width--80-pct { max-width: 80%; }
|
|
236
|
-
.max-width--90-pct { max-width: 90%; }
|
|
237
|
-
.max-width--100-pct { max-width: 100%; }
|
|
238
|
-
|
|
239
|
-
.max-width--0\.25 { max-width: .25em };
|
|
240
|
-
.max-width--0\.5 { max-width: .5em };
|
|
241
|
-
.max-width--0\.75 { max-width: .75em };
|
|
242
|
-
.max-width--1 { max-width: 1em };
|
|
243
|
-
.max-width--1\.5 { max-width: 1.5em };
|
|
244
|
-
.max-width--2 { max-width: 2em };
|
|
245
|
-
.max-width--3 { max-width: 3em };
|
|
246
|
-
.max-width--4 { max-width: 4em };
|
|
247
|
-
.max-width--5 { max-width: 5em };
|
|
248
|
-
.max-width--6 { max-width: 6em };
|
|
249
|
-
.max-width--8 { max-width: 8em };
|
|
250
|
-
.max-width--10 { max-width: 10em };
|
|
251
|
-
.max-width--12 { max-width: 12em };
|
|
252
|
-
.max-width--14 { max-width: 14em };
|
|
253
|
-
.max-width--16 { max-width: 16em };
|
|
254
|
-
.max-width--18 { max-width: 18em };
|
|
255
|
-
.max-width--20 { max-width: 20em };
|
|
256
|
-
.max-width--22 { max-width: 22em };
|
|
257
|
-
.max-width--24 { max-width: 24em };
|
|
258
|
-
.max-width--26 { max-width: 26em };
|
|
259
|
-
.max-width--28 { max-width: 28em };
|
|
260
|
-
.max-width--30 { max-width: 30em };
|
|
261
|
-
.max-width--32 { max-width: 32em };
|
|
262
|
-
.max-width--36 { max-width: 36em };
|
|
263
|
-
.max-width--40 { max-width: 40em };
|
|
264
|
-
.max-width--48 { max-width: 48em };
|
|
265
|
-
.max-width--60 { max-width: 60em };
|
|
1
|
+
$enums: (
|
|
2
|
+
'none': 0,
|
|
3
|
+
'0\\.25': .25em,
|
|
4
|
+
'0\\.5': .5em,
|
|
5
|
+
'0\\.75': .75em,
|
|
6
|
+
'1': 1em,
|
|
7
|
+
'1\\.25': 1.25em,
|
|
8
|
+
'1\\.5': 1.5em,
|
|
9
|
+
'2': 2em,
|
|
10
|
+
'3': 3em,
|
|
11
|
+
'4': 4em,
|
|
12
|
+
'5': 5em,
|
|
13
|
+
'6': 6em,
|
|
14
|
+
'8': 8em,
|
|
15
|
+
'10': 10em,
|
|
16
|
+
'12': 12em,
|
|
17
|
+
'14': 14em,
|
|
18
|
+
'16': 16em,
|
|
19
|
+
'18': 18em,
|
|
20
|
+
'20': 20em,
|
|
21
|
+
'22': 22em,
|
|
22
|
+
'24': 24em,
|
|
23
|
+
'26': 26em,
|
|
24
|
+
'28': 28em,
|
|
25
|
+
'30': 30em,
|
|
26
|
+
'32': 32em,
|
|
27
|
+
'36': 36em,
|
|
28
|
+
'40': 40em,
|
|
29
|
+
'48': 48em,
|
|
30
|
+
'60': 60em,
|
|
31
|
+
'10-pct': 10%,
|
|
32
|
+
'20-pct': 20%,
|
|
33
|
+
'30-pct': 30%,
|
|
34
|
+
'40-pct': 40%,
|
|
35
|
+
'50-pct': 50%,
|
|
36
|
+
'60-pct': 60%,
|
|
37
|
+
'70-pct': 70%,
|
|
38
|
+
'80-pct': 80%,
|
|
39
|
+
'90-pct': 90%,
|
|
40
|
+
'100-pct': 100%,
|
|
41
|
+
'auto': auto,
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
@each $enum, $value in $enums {
|
|
45
|
+
.height--#{$enum} { height: $value; }
|
|
46
|
+
.max-height--#{$enum} { max-height: $value; }
|
|
47
|
+
.min-height--#{$enum} { min-height: $value; }
|
|
48
|
+
.width--#{$enum} { width: $value; }
|
|
49
|
+
.max-width--#{$enum} { max-width: $value; }
|
|
50
|
+
.min-width--#{$enum} { min-width: $value; }
|
|
51
|
+
}
|
|
@@ -1,71 +1,8 @@
|
|
|
1
|
-
/*
|
|
2
|
-
@styleguide
|
|
3
|
-
@title Display
|
|
4
|
-
|
|
5
|
-
Control how an element is displayed. Possible display values are:
|
|
6
|
-
- `n` (none)
|
|
7
|
-
- `i` (inline)
|
|
8
|
-
- `b` (block)
|
|
9
|
-
- `ib` (inline-block)
|
|
10
|
-
- `it` (inline-table)
|
|
11
|
-
- `t` (table)
|
|
12
|
-
- `tc` (table-cell)
|
|
13
|
-
- `t-row` (table-row)
|
|
14
|
-
- `t-row-group` (table-row-group)
|
|
15
|
-
- `t-column` (table-column)
|
|
16
|
-
- `t-column-group` (table-column-group)
|
|
17
|
-
- `f` (flex)
|
|
18
|
-
|
|
19
|
-
<div class="display--n">Hidden</div>
|
|
20
|
-
|
|
21
|
-
```html
|
|
22
|
-
<div class="display--n">Hidden</div>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<div class="display--i">Inline</div><div class="display--i">Inline</div>
|
|
26
|
-
|
|
27
|
-
```html
|
|
28
|
-
<div class="display--i">Inline</div><div class="display--i">Inline</div>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
<div>
|
|
32
|
-
<span class="display--b">Block</span>
|
|
33
|
-
<span class="display--b">Block</span>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
```html
|
|
37
|
-
<span class="display--b">Block</span>
|
|
38
|
-
<span class="display--b">Block</span>
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
<div>
|
|
42
|
-
<p class="display--ib">Inline Block</p><p class="display--ib">Inline Block</p>
|
|
43
|
-
</div>
|
|
44
|
-
|
|
45
|
-
```html
|
|
46
|
-
<p class="display--ib">Inline Block</p>
|
|
47
|
-
<p class="display--ib">Inline Block</p>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
<div class="display--f">Flex</div>
|
|
51
|
-
|
|
52
|
-
```html
|
|
53
|
-
<div class="display--f">Flex</div>
|
|
54
|
-
```
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
1
|
// === DISPLAY === //
|
|
58
2
|
|
|
59
|
-
.display--n { display: none; }
|
|
60
3
|
.display--i { display: inline; }
|
|
61
4
|
.display--b { display: block; }
|
|
62
5
|
.display--ib { display: inline-block; }
|
|
63
|
-
.display--it { display: inline-table; }
|
|
64
|
-
.display--t { display: table; }
|
|
65
|
-
.display--tc { display: table-cell; }
|
|
66
|
-
.display--t-row { display: table-row; }
|
|
67
|
-
.display--t-row-group { display: table-row-group; }
|
|
68
|
-
.display--t-column { display: table-column; }
|
|
69
|
-
.display--t-column-group { display: table-column-group; }
|
|
70
6
|
.display--f { display: flex; }
|
|
71
7
|
.display--if { display: inline-flex; }
|
|
8
|
+
.display--n { display: none; }
|
|
@@ -1,58 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
@styleguide
|
|
3
|
-
@title Overflow
|
|
4
|
-
|
|
5
|
-
Use these classes to control an element's overflow
|
|
6
|
-
|
|
7
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow--auto">
|
|
8
|
-
<div class="width--12 height--12 bg-color--marker">overflow auto</div>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow--hidden">
|
|
12
|
-
<div class="width--12 height--12 bg-color--marker">overflow hidden</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow--scroll">
|
|
16
|
-
<div class="width--12 height--12 bg-color--marker">overflow scroll</div>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow--visible">
|
|
20
|
-
<div class="width--12 height--12 bg-color--marker">overflow visible</div>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--auto">
|
|
24
|
-
<div class="width--12 height--12 bg-color--marker">overflow-x auto</div>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
27
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--hidden">
|
|
28
|
-
<div class="width--12 height--12 bg-color--marker">overflow-x hidden</div>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--scroll">
|
|
32
|
-
<div class="width--12 height--12 bg-color--marker">overflow-x scroll</div>
|
|
33
|
-
</div>
|
|
34
|
-
|
|
35
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-x--visible">
|
|
36
|
-
<div class="width--12 height--12 bg-color--marker">overflow-x visible</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--auto">
|
|
40
|
-
<div class="width--12 height--12 bg-color--marker">overflow-y auto</div>
|
|
41
|
-
</div>
|
|
42
|
-
|
|
43
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--hidden">
|
|
44
|
-
<div class="width--12 height--12 bg-color--marker">overflow-y hidden</div>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--scroll">
|
|
48
|
-
<div class="width--12 height--12 bg-color--marker">overflow-y scroll</div>
|
|
49
|
-
</div>
|
|
50
|
-
|
|
51
|
-
<div class="width--10 height--10 padding--2 bg-color--note overflow-y--visible">
|
|
52
|
-
<div class="width--12 height--12 bg-color--marker">overflow-y visible</div>
|
|
53
|
-
</div>
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
1
|
// === OVERFLOW === //
|
|
57
2
|
|
|
58
3
|
.overflow--auto { overflow: auto; }
|
|
@@ -34,37 +34,109 @@ Radii can also be applied to each side of an element individually like so:
|
|
|
34
34
|
|
|
35
35
|
// === RADII === //
|
|
36
36
|
|
|
37
|
-
.rounded--tiny {
|
|
38
|
-
.rounded--small {
|
|
39
|
-
.rounded--med {
|
|
40
|
-
.rounded--large {
|
|
41
|
-
.rounded--circle {
|
|
42
|
-
.rounded--pill {
|
|
37
|
+
.rounded--tiny { border-radius: var(--radius--tiny); }
|
|
38
|
+
.rounded--small { border-radius: var(--radius--small); }
|
|
39
|
+
.rounded--med { border-radius: var(--radius--med); }
|
|
40
|
+
.rounded--large { border-radius: var(--radius--large); }
|
|
41
|
+
.rounded--circle { border-radius: var(--radius--circle); }
|
|
42
|
+
.rounded--pill { border-radius: var(--radius--pill); }
|
|
43
43
|
|
|
44
|
-
.rounded-top--tiny {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.rounded-top--
|
|
49
|
-
|
|
44
|
+
.rounded-top--tiny {
|
|
45
|
+
border-top-left-radius: var(--radius--tiny);
|
|
46
|
+
border-top-right-radius: var(--radius--tiny);
|
|
47
|
+
}
|
|
48
|
+
.rounded-top--small {
|
|
49
|
+
border-top-left-radius: var(--radius--small);
|
|
50
|
+
border-top-right-radius: var(--radius--small);
|
|
51
|
+
}
|
|
52
|
+
.rounded-top--med {
|
|
53
|
+
border-top-left-radius: var(--radius--med);
|
|
54
|
+
border-top-right-radius: var(--radius--med);
|
|
55
|
+
}
|
|
56
|
+
.rounded-top--large {
|
|
57
|
+
border-top-left-radius: var(--radius--large);
|
|
58
|
+
border-top-right-radius: var(--radius--large);
|
|
59
|
+
}
|
|
60
|
+
.rounded-top--circle {
|
|
61
|
+
border-top-left-radius: var(--radius--circle);
|
|
62
|
+
border-top-right-radius: var(--radius--circle);
|
|
63
|
+
}
|
|
64
|
+
.rounded-top--pill {
|
|
65
|
+
border-top-left-radius: var(--radius--pill);
|
|
66
|
+
border-top-right-radius: var(--radius--pill);
|
|
67
|
+
}
|
|
50
68
|
|
|
51
|
-
.rounded-right--tiny {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
.rounded-right--
|
|
56
|
-
|
|
69
|
+
.rounded-right--tiny {
|
|
70
|
+
border-top-right-radius: var(--radius--tiny);
|
|
71
|
+
border-bottom-right-radius: var(--radius--tiny);
|
|
72
|
+
}
|
|
73
|
+
.rounded-right--small {
|
|
74
|
+
border-top-right-radius: var(--radius--small);
|
|
75
|
+
border-bottom-right-radius: var(--radius--small);
|
|
76
|
+
}
|
|
77
|
+
.rounded-right--med {
|
|
78
|
+
border-top-right-radius: var(--radius--med);
|
|
79
|
+
border-bottom-right-radius: var(--radius--med);
|
|
80
|
+
}
|
|
81
|
+
.rounded-right--large {
|
|
82
|
+
border-top-right-radius: var(--radius--large);
|
|
83
|
+
border-bottom-right-radius: var(--radius--large);
|
|
84
|
+
}
|
|
85
|
+
.rounded-right--circle {
|
|
86
|
+
border-top-right-radius: var(--radius--circle);
|
|
87
|
+
border-bottom-right-radius: var(--radius--circle);
|
|
88
|
+
}
|
|
89
|
+
.rounded-right--pill {
|
|
90
|
+
border-top-right-radius: var(--radius--pill);
|
|
91
|
+
border-bottom-right-radius: var(--radius--pill);
|
|
92
|
+
}
|
|
57
93
|
|
|
58
|
-
.rounded-bottom--tiny {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
.rounded-bottom--
|
|
63
|
-
|
|
94
|
+
.rounded-bottom--tiny {
|
|
95
|
+
border-bottom-left-radius: var(--radius--tiny);
|
|
96
|
+
border-bottom-right-radius: var(--radius--tiny);
|
|
97
|
+
}
|
|
98
|
+
.rounded-bottom--small {
|
|
99
|
+
border-bottom-left-radius: var(--radius--small);
|
|
100
|
+
border-bottom-right-radius: var(--radius--small);
|
|
101
|
+
}
|
|
102
|
+
.rounded-bottom--med {
|
|
103
|
+
border-bottom-left-radius: var(--radius--med);
|
|
104
|
+
border-bottom-right-radius: var(--radius--med);
|
|
105
|
+
}
|
|
106
|
+
.rounded-bottom--large {
|
|
107
|
+
border-bottom-left-radius: var(--radius--large);
|
|
108
|
+
border-bottom-right-radius: var(--radius--large);
|
|
109
|
+
}
|
|
110
|
+
.rounded-bottom--circle {
|
|
111
|
+
border-bottom-left-radius: var(--radius--circle);
|
|
112
|
+
border-bottom-right-radius: var(--radius--circle);
|
|
113
|
+
}
|
|
114
|
+
.rounded-bottom--pill {
|
|
115
|
+
border-bottom-left-radius: var(--radius--pill);
|
|
116
|
+
border-bottom-right-radius: var(--radius--pill);
|
|
117
|
+
}
|
|
64
118
|
|
|
65
|
-
.rounded-left--tiny {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
.rounded-left--
|
|
70
|
-
|
|
119
|
+
.rounded-left--tiny {
|
|
120
|
+
border-top-left-radius: var(--radius--tiny);
|
|
121
|
+
border-bottom-left-radius: var(--radius--tiny);
|
|
122
|
+
}
|
|
123
|
+
.rounded-left--small {
|
|
124
|
+
border-top-left-radius: var(--radius--small);
|
|
125
|
+
border-bottom-left-radius: var(--radius--small);
|
|
126
|
+
}
|
|
127
|
+
.rounded-left--med {
|
|
128
|
+
border-top-left-radius: var(--radius--med);
|
|
129
|
+
border-bottom-left-radius: var(--radius--med);
|
|
130
|
+
}
|
|
131
|
+
.rounded-left--large {
|
|
132
|
+
border-top-left-radius: var(--radius--large);
|
|
133
|
+
border-bottom-left-radius: var(--radius--large);
|
|
134
|
+
}
|
|
135
|
+
.rounded-left--circle {
|
|
136
|
+
border-top-left-radius: var(--radius--circle);
|
|
137
|
+
border-bottom-left-radius: var(--radius--circle);
|
|
138
|
+
}
|
|
139
|
+
.rounded-left--pill {
|
|
140
|
+
border-top-left-radius: var(--radius--pill);
|
|
141
|
+
border-bottom-left-radius: var(--radius--pill);
|
|
142
|
+
}
|
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
/*
|
|
2
|
-
@styleguide
|
|
3
|
-
@title Shadows
|
|
4
|
-
|
|
5
|
-
Apply a box shadow.
|
|
6
|
-
|
|
7
|
-
<div class="padding--2 bg-color--gray-5">
|
|
8
|
-
<div class="shadow--s bg-color--invert padding--1">
|
|
9
|
-
Small shadow. Used to indicate that an element is not interactive.
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
```html
|
|
14
|
-
<div class="shadow--s bg-color--invert padding--1">
|
|
15
|
-
Small shadow. Used to indicate that an element is not interactive.
|
|
16
|
-
</div>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
<div class="padding--2 bg-color--gray-5">
|
|
20
|
-
<div class="shadow--m bg-color--invert padding--1">
|
|
21
|
-
Medium shadow. Used to indicate that an element is interactive.
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
|
|
25
|
-
```html
|
|
26
|
-
<div class="shadow--m bg-color--invert padding--1">
|
|
27
|
-
Medium shadow. Used to indicate that an element is interactive.
|
|
28
|
-
</div>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
<div class="padding--2 bg-color--gray-5">
|
|
32
|
-
<div class="shadow--l bg-color--invert padding--1">
|
|
33
|
-
Large shadow. Used to indicate that an element is being interacted with,
|
|
34
|
-
e.g. hovered over.
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
|
|
38
|
-
```html
|
|
39
|
-
<div class="shadow--l bg-color--invert padding--1">
|
|
40
|
-
Large shadow. Used to indicate that an element is being interacted with,
|
|
41
|
-
e.g. hovered over.
|
|
42
|
-
</div>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
<div class="padding--2 bg-color--gray-5">
|
|
46
|
-
<div class="shadow--xl bg-color--invert padding--1">
|
|
47
|
-
Extra large shadow. Used for maximum separation from the background,
|
|
48
|
-
such as when a container is in its edit state.
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
|
|
52
|
-
```html
|
|
53
|
-
<div class="shadow--xl bg-color--invert padding--1">
|
|
54
|
-
Extra large shadow. Used for maximum separation from the background,
|
|
55
|
-
such as when a container is in its edit state.
|
|
56
|
-
</div>
|
|
57
|
-
```
|
|
58
|
-
*/
|
|
59
|
-
|
|
60
1
|
.shadow--s {
|
|
61
2
|
box-shadow: var(--shadow--s);
|
|
62
3
|
}
|