noctemyth 0.0.36
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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/css/noctemyth-skelton.css +11880 -0
- package/dist/css/noctemyth-skelton.css.map +1 -0
- package/dist/css/noctemyth-skelton.min.css +11880 -0
- package/dist/css/noctemyth-skelton.min.css.map +1 -0
- package/dist/css/noctemyth-utilities.css +142390 -0
- package/dist/css/noctemyth-utilities.css.map +1 -0
- package/dist/css/noctemyth-utilities.min.css +142390 -0
- package/dist/css/noctemyth-utilities.min.css.map +1 -0
- package/dist/css/noctemyth.css +51864 -0
- package/dist/css/noctemyth.css.map +1 -0
- package/dist/css/noctemyth.min.css +26439 -0
- package/dist/css/noctemyth.min.css.map +1 -0
- package/package.json +61 -0
- package/src/animations/fade.scss +41 -0
- package/src/animations/index.scss +1 -0
- package/src/backgrounds/dot.scss +55 -0
- package/src/backgrounds/gingham.scss +56 -0
- package/src/backgrounds/index.scss +5 -0
- package/src/backgrounds/rhombus.scss +49 -0
- package/src/backgrounds/stripe.scss +45 -0
- package/src/backgrounds/zigzag.scss +71 -0
- package/src/base/dub.scss +9 -0
- package/src/base/element.scss +5 -0
- package/src/base/index.scss +3 -0
- package/src/base/normalize.scss +394 -0
- package/src/components/accordion.scss +179 -0
- package/src/components/badge.scss +109 -0
- package/src/components/blockquote.scss +92 -0
- package/src/components/breadcrumbs.scss +47 -0
- package/src/components/button.scss +157 -0
- package/src/components/card.scss +89 -0
- package/src/components/dialogue.scss +452 -0
- package/src/components/div.scss +7 -0
- package/src/components/footer.scss +21 -0
- package/src/components/hamburger.scss +157 -0
- package/src/components/header.scss +36 -0
- package/src/components/heading.scss +40 -0
- package/src/components/image.scss +10 -0
- package/src/components/index.scss +26 -0
- package/src/components/input.scss +338 -0
- package/src/components/label.scss +17 -0
- package/src/components/link.scss +29 -0
- package/src/components/list.scss +16 -0
- package/src/components/loader.scss +72 -0
- package/src/components/main.scss +8 -0
- package/src/components/message.scss +53 -0
- package/src/components/modal.scss +41 -0
- package/src/components/nav.scss +387 -0
- package/src/components/paragraph.scss +12 -0
- package/src/components/progress.scss +43 -0
- package/src/components/section.scss +7 -0
- package/src/components/span.scss +7 -0
- package/src/css-variables/animation.scss +11 -0
- package/src/css-variables/border.scss +16 -0
- package/src/css-variables/color.scss +604 -0
- package/src/css-variables/components/breadcrumbs.scss +5 -0
- package/src/css-variables/components/button.scss +6 -0
- package/src/css-variables/components/dialogue.scss +15 -0
- package/src/css-variables/components/header.scss +7 -0
- package/src/css-variables/components/heading.scss +5 -0
- package/src/css-variables/components/index.scss +5 -0
- package/src/css-variables/index.scss +7 -0
- package/src/css-variables/miscellaneous.scss +8 -0
- package/src/css-variables/typography.scss +24 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +31 -0
- package/src/icons/check.scss +21 -0
- package/src/icons/chevron.scss +30 -0
- package/src/icons/index.scss +2 -0
- package/src/layouts/centering.scss +13 -0
- package/src/layouts/columns.scss +97 -0
- package/src/layouts/container.scss +59 -0
- package/src/layouts/index.scss +3 -0
- package/src/mixins/animation.scss +80 -0
- package/src/mixins/color.scss +33 -0
- package/src/mixins/element.scss +5 -0
- package/src/mixins/index.scss +5 -0
- package/src/mixins/responsive.scss +222 -0
- package/src/noctemyth-skelton.scss +12 -0
- package/src/noctemyth-utilities.scss +3 -0
- package/src/noctemyth.scss +9 -0
- package/src/utilities/border.scss +46 -0
- package/src/utilities/color.scss +327 -0
- package/src/utilities/decoration.scss +16 -0
- package/src/utilities/index.scss +7 -0
- package/src/utilities/positioning.scss +90 -0
- package/src/utilities/sizing.scss +142 -0
- package/src/utilities/spacing.scss +154 -0
- package/src/utilities/typography.scss +109 -0
- package/src/variables/animation.scss +8 -0
- package/src/variables/border.scss +81 -0
- package/src/variables/color.scss +1371 -0
- package/src/variables/components/breadcrumbs.scss +3 -0
- package/src/variables/components/button.scss +3 -0
- package/src/variables/components/dialogue.scss +12 -0
- package/src/variables/components/header.scss +3 -0
- package/src/variables/components/heading.scss +3 -0
- package/src/variables/components/index.scss +5 -0
- package/src/variables/index.scss +8 -0
- package/src/variables/layout.scss +28 -0
- package/src/variables/miscellaneous.scss +14 -0
- package/src/variables/typography.scss +26 -0
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
@if variables.$enable-smooth-scroll {
|
|
5
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
6
|
+
scroll-behavior: smooth;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
13
|
+
|
|
14
|
+
/* Document
|
|
15
|
+
========================================================================== */
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 1. Correct the line height in all browsers.
|
|
19
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
html {
|
|
23
|
+
line-height: 1.15; /* 1 */
|
|
24
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Sections
|
|
28
|
+
========================================================================== */
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Remove the margin in all browsers.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-family: var(--#{variables.$prefix}font-family-main);
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Render the `main` element consistently in IE.
|
|
41
|
+
*/
|
|
42
|
+
|
|
43
|
+
main {
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
49
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
h1 {
|
|
53
|
+
font-size: var(--#{variables.$prefix}font-size-xxxlarge);
|
|
54
|
+
margin: 0.5rem 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
h2 {
|
|
58
|
+
font-size: var(--#{variables.$prefix}font-size-xxlarge);
|
|
59
|
+
margin: 0.5rem 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
h3 {
|
|
63
|
+
font-size: var(--#{variables.$prefix}font-size-xlarge);
|
|
64
|
+
margin: 0.5rem 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
h4 {
|
|
68
|
+
font-size: var(--#{variables.$prefix}font-size-large);
|
|
69
|
+
margin: 0.5rem 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
h5 {
|
|
73
|
+
font-size: var(--#{variables.$prefix}font-size-medium);
|
|
74
|
+
margin: 0.5rem 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
h6 {
|
|
78
|
+
font-size: var(--#{variables.$prefix}font-size-normal);
|
|
79
|
+
margin: 0.5rem 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Grouping content
|
|
83
|
+
========================================================================== */
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 1. Add the correct box sizing in Firefox.
|
|
87
|
+
* 2. Show the overflow in Edge and IE.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
hr {
|
|
91
|
+
box-sizing: content-box; /* 1 */
|
|
92
|
+
height: 0; /* 1 */
|
|
93
|
+
overflow: visible; /* 2 */
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
98
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
pre {
|
|
102
|
+
font-family: var(--#{variables.$prefix}font-family-code);
|
|
103
|
+
font-size: var(--#{variables.$prefix}font-size-normal); /* 2 */
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Text-level semantics
|
|
107
|
+
========================================================================== */
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Remove the gray background on active links in IE 10.
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
a {
|
|
114
|
+
background-color: transparent;
|
|
115
|
+
cursor: pointer;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* 1. Remove the bottom border in Chrome 57-
|
|
120
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
abbr[title] {
|
|
124
|
+
border-bottom: none; /* 1 */
|
|
125
|
+
text-decoration: underline; /* 2 */
|
|
126
|
+
text-decoration: underline dotted; /* 2 */
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
b,
|
|
134
|
+
strong {
|
|
135
|
+
font-weight: bolder;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
140
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
141
|
+
*/
|
|
142
|
+
|
|
143
|
+
code,
|
|
144
|
+
kbd,
|
|
145
|
+
samp {
|
|
146
|
+
font-family: var(--#{variables.$prefix}font-family-code); /* 1 */
|
|
147
|
+
font-size: 1em; /* 2 */
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Add the correct font size in all browsers.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
small {
|
|
155
|
+
font-size: var(--#{variables.$prefix}font-size-small);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
160
|
+
* all browsers.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
sub,
|
|
164
|
+
sup {
|
|
165
|
+
font-size: var(--#{variables.$prefix}font-size-small);
|
|
166
|
+
line-height: 0;
|
|
167
|
+
position: relative;
|
|
168
|
+
vertical-align: baseline;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
sub {
|
|
172
|
+
bottom: -0.25em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
sup {
|
|
176
|
+
top: -0.5em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/* Embedded content
|
|
180
|
+
========================================================================== */
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Remove the border on images inside links in IE 10.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
img {
|
|
187
|
+
border-style: none;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Forms
|
|
191
|
+
========================================================================== */
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* 1. Change the font styles in all browsers.
|
|
195
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
button,
|
|
199
|
+
input,
|
|
200
|
+
optgroup,
|
|
201
|
+
select,
|
|
202
|
+
textarea {
|
|
203
|
+
font-family: inherit; /* 1 */
|
|
204
|
+
font-size: 100%; /* 1 */
|
|
205
|
+
line-height: 1.15; /* 1 */
|
|
206
|
+
margin: 0; /* 2 */
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Show the overflow in IE.
|
|
211
|
+
* 1. Show the overflow in Edge.
|
|
212
|
+
*/
|
|
213
|
+
|
|
214
|
+
button,
|
|
215
|
+
input {
|
|
216
|
+
/* 1 */
|
|
217
|
+
overflow: visible;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
222
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
223
|
+
*/
|
|
224
|
+
|
|
225
|
+
button,
|
|
226
|
+
select {
|
|
227
|
+
/* 1 */
|
|
228
|
+
text-transform: none;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
button,
|
|
236
|
+
[type="button"],
|
|
237
|
+
[type="reset"],
|
|
238
|
+
[type="submit"] {
|
|
239
|
+
-webkit-appearance: button;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Remove the inner border and padding in Firefox.
|
|
244
|
+
*/
|
|
245
|
+
|
|
246
|
+
button::-moz-focus-inner,
|
|
247
|
+
[type="button"]::-moz-focus-inner,
|
|
248
|
+
[type="reset"]::-moz-focus-inner,
|
|
249
|
+
[type="submit"]::-moz-focus-inner {
|
|
250
|
+
border-style: none;
|
|
251
|
+
padding: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Restore the focus styles unset by the previous rule.
|
|
256
|
+
*/
|
|
257
|
+
|
|
258
|
+
button:-moz-focusring,
|
|
259
|
+
[type="button"]:-moz-focusring,
|
|
260
|
+
[type="reset"]:-moz-focusring,
|
|
261
|
+
[type="submit"]:-moz-focusring {
|
|
262
|
+
outline: 1px dotted ButtonText;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Correct the padding in Firefox.
|
|
267
|
+
*/
|
|
268
|
+
|
|
269
|
+
fieldset {
|
|
270
|
+
padding: 0.35em 0.75em 0.625em;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
275
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
276
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
277
|
+
* `fieldset` elements in all browsers.
|
|
278
|
+
*/
|
|
279
|
+
|
|
280
|
+
legend {
|
|
281
|
+
box-sizing: border-box; /* 1 */
|
|
282
|
+
color: inherit; /* 2 */
|
|
283
|
+
display: table; /* 1 */
|
|
284
|
+
max-width: 100%; /* 1 */
|
|
285
|
+
padding: 0; /* 3 */
|
|
286
|
+
white-space: normal; /* 1 */
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
291
|
+
*/
|
|
292
|
+
|
|
293
|
+
progress {
|
|
294
|
+
vertical-align: baseline;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Remove the default vertical scrollbar in IE 10+.
|
|
299
|
+
*/
|
|
300
|
+
|
|
301
|
+
textarea {
|
|
302
|
+
overflow: auto;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 1. Add the correct box sizing in IE 10.
|
|
307
|
+
* 2. Remove the padding in IE 10.
|
|
308
|
+
*/
|
|
309
|
+
|
|
310
|
+
[type="checkbox"],
|
|
311
|
+
[type="radio"] {
|
|
312
|
+
box-sizing: border-box; /* 1 */
|
|
313
|
+
padding: 0; /* 2 */
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
[type="number"]::-webkit-inner-spin-button,
|
|
321
|
+
[type="number"]::-webkit-outer-spin-button {
|
|
322
|
+
height: auto;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
|
327
|
+
* 2. Correct the outline style in Safari.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
[type="search"] {
|
|
331
|
+
-webkit-appearance: textfield; /* 1 */
|
|
332
|
+
outline-offset: -2px; /* 2 */
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
|
337
|
+
*/
|
|
338
|
+
|
|
339
|
+
[type="search"]::-webkit-search-decoration {
|
|
340
|
+
-webkit-appearance: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
345
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
::-webkit-file-upload-button {
|
|
349
|
+
-webkit-appearance: button; /* 1 */
|
|
350
|
+
font: inherit; /* 2 */
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* Interactive
|
|
354
|
+
========================================================================== */
|
|
355
|
+
|
|
356
|
+
/*
|
|
357
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
358
|
+
*/
|
|
359
|
+
|
|
360
|
+
details {
|
|
361
|
+
display: block;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/*
|
|
365
|
+
* Add the correct display in all browsers.
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
summary {
|
|
369
|
+
display: list-item;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
/* Misc
|
|
373
|
+
========================================================================== */
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Add the correct display in IE 10+.
|
|
377
|
+
*/
|
|
378
|
+
|
|
379
|
+
template {
|
|
380
|
+
display: none;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Add the correct display in IE 10.
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
[hidden] {
|
|
388
|
+
display: none;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
figure {
|
|
392
|
+
display: block;
|
|
393
|
+
margin: 0;
|
|
394
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../icons/index.scss" as icons;
|
|
4
|
+
@use "../mixins/index.scss" as mixins;
|
|
5
|
+
|
|
6
|
+
.accordion {
|
|
7
|
+
@include mixins.element();
|
|
8
|
+
color: var(--#{variables.$prefix}color-default-accordion-fore);
|
|
9
|
+
background-color: var(--#{variables.$prefix}color-default-accordion-back);
|
|
10
|
+
border-color: var(--#{variables.$prefix}color-default-accordion-border);
|
|
11
|
+
border-radius: calc(
|
|
12
|
+
var(--#{variables.$prefix}border-radius-medium) +
|
|
13
|
+
var(--#{variables.$prefix}border-width-thin)
|
|
14
|
+
);
|
|
15
|
+
border-style: solid;
|
|
16
|
+
border-width: var(--#{variables.$prefix}border-width-thin);
|
|
17
|
+
border-collapse: collapse;
|
|
18
|
+
>.accordion-summary {
|
|
19
|
+
@include mixins.element();
|
|
20
|
+
background-color: var(
|
|
21
|
+
--#{variables.$prefix}color-default-accordion-summary-back
|
|
22
|
+
);
|
|
23
|
+
border-color: var(
|
|
24
|
+
--#{variables.$prefix}color-default-accordion-summary-border
|
|
25
|
+
);
|
|
26
|
+
border-radius: calc(
|
|
27
|
+
var(--#{variables.$prefix}border-radius-medium)
|
|
28
|
+
);
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
display: block;
|
|
31
|
+
padding: 1rem;
|
|
32
|
+
position: relative;
|
|
33
|
+
touch-action: manipulation;
|
|
34
|
+
list-style: none;
|
|
35
|
+
&::marker,
|
|
36
|
+
&::-webkit-details-marker {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
&::after {
|
|
40
|
+
@include icons.chevron() {
|
|
41
|
+
content: "";
|
|
42
|
+
right: 1rem;
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: calc(50% - 0.25rem);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&:focus,
|
|
48
|
+
&.is-focus,
|
|
49
|
+
&.is-focused {
|
|
50
|
+
background-color: var(
|
|
51
|
+
--#{variables.$prefix}color-default-accordion-summary-focus-back
|
|
52
|
+
);
|
|
53
|
+
border-color: var(
|
|
54
|
+
--#{variables.$prefix}color-default-accordion-summary-focus-border
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
&:hover,
|
|
58
|
+
&.is-hovered,
|
|
59
|
+
&.is-hovered {
|
|
60
|
+
background-color: var(
|
|
61
|
+
--#{variables.$prefix}color-default-accordion-summary-hover-back
|
|
62
|
+
);
|
|
63
|
+
border-color: var(
|
|
64
|
+
--#{variables.$prefix}color-default-accordion-summary-hover-border
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
&:active,
|
|
68
|
+
&.is-active {
|
|
69
|
+
background-color: var(
|
|
70
|
+
--#{variables.$prefix}color-default-accordion-summary-active-back
|
|
71
|
+
);
|
|
72
|
+
border-color: var(
|
|
73
|
+
--#{variables.$prefix}color-default-accordion-summary-active-border
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
&[disabled],
|
|
77
|
+
fieldset[disabled],
|
|
78
|
+
&.is-disabled {
|
|
79
|
+
background-color: var(
|
|
80
|
+
--#{variables.$prefix}color-default-accordion-summary-disabled-back
|
|
81
|
+
);
|
|
82
|
+
border-color: var(
|
|
83
|
+
--#{variables.$prefix}color-default-accordion-summary-disabled-border
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
>.accordion-details {
|
|
88
|
+
@include mixins.element();
|
|
89
|
+
border-color: var(--#{variables.$prefix}color-gray-border);
|
|
90
|
+
height: 0;
|
|
91
|
+
display: none;
|
|
92
|
+
padding: 1rem;
|
|
93
|
+
border-radius: 0 0 var(--#{variables.$prefix}border-radius-medium) var(--#{variables.$prefix}border-radius-medium);
|
|
94
|
+
}
|
|
95
|
+
&[open],
|
|
96
|
+
is-open {
|
|
97
|
+
>.accordion-summary {
|
|
98
|
+
border-radius: var(--#{variables.$prefix}border-radius-medium) var(--#{variables.$prefix}border-radius-medium) 0 0;
|
|
99
|
+
&::after {
|
|
100
|
+
transform: rotate(180deg);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
>.accordion-details {
|
|
104
|
+
display: block;
|
|
105
|
+
height: auto;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@if (not variables.$is-skelton) {
|
|
109
|
+
@each $color in variables.$colors {
|
|
110
|
+
$colorName: map.get($color, "name");
|
|
111
|
+
&.is-#{$colorName} {
|
|
112
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-accordion-fore);
|
|
113
|
+
background-color: var(
|
|
114
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-back
|
|
115
|
+
);
|
|
116
|
+
border-color: var(
|
|
117
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-border
|
|
118
|
+
);
|
|
119
|
+
>.accordion-summary {
|
|
120
|
+
background-color: var(
|
|
121
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-back
|
|
122
|
+
);
|
|
123
|
+
border-color: var(
|
|
124
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-border
|
|
125
|
+
);
|
|
126
|
+
&::after {
|
|
127
|
+
background: var(
|
|
128
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-fore
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
&:focus,
|
|
132
|
+
&.is-focus,
|
|
133
|
+
&.is-focused {
|
|
134
|
+
background-color: var(
|
|
135
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-focus-back
|
|
136
|
+
);
|
|
137
|
+
border-color: var(
|
|
138
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-focus-border
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
&:hover,
|
|
142
|
+
&.is-hovered,
|
|
143
|
+
&.is-hovered {
|
|
144
|
+
background-color: var(
|
|
145
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-hover-back
|
|
146
|
+
);
|
|
147
|
+
border-color: var(
|
|
148
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-hover-border
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
&:active,
|
|
152
|
+
&.is-active {
|
|
153
|
+
background-color: var(
|
|
154
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-active-back
|
|
155
|
+
);
|
|
156
|
+
border-color: var(
|
|
157
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-active-border
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
&[disabled],
|
|
161
|
+
fieldset[disabled],
|
|
162
|
+
&.is-disabled {
|
|
163
|
+
background-color: var(
|
|
164
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-disabled-back
|
|
165
|
+
);
|
|
166
|
+
border-color: var(
|
|
167
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-disabled-border
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
>.accordion-details {
|
|
172
|
+
border-color: var(
|
|
173
|
+
--#{variables.$prefix}color-#{$colorName}-accordion-summary-border
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
4
|
+
|
|
5
|
+
.badge {
|
|
6
|
+
@include mixins.element();
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: var(--#{variables.$prefix}color-default-badge-back);
|
|
9
|
+
border-color: var(--#{variables.$prefix}color-default-badge-border);
|
|
10
|
+
border-radius: var(--#{variables.$prefix}border-radius-medium);
|
|
11
|
+
border-style: solid;
|
|
12
|
+
border-width: var(--#{variables.$prefix}border-width-thin);
|
|
13
|
+
color: var(--#{variables.$prefix}color-default-badge-fore);
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
font-size: var(--#{variables.$prefix}font-size-small);
|
|
16
|
+
justify-content: center;
|
|
17
|
+
padding: 0.25rem 0.5rem;
|
|
18
|
+
white-space: nowrap;
|
|
19
|
+
|
|
20
|
+
&.is-small {
|
|
21
|
+
font-size: var(--#{variables.$prefix}font-size-xsmall);
|
|
22
|
+
border-width: var(--#{variables.$prefix}border-width-xthin);
|
|
23
|
+
padding: 0.125rem 0.25rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@if (not variables.$is-skelton) {
|
|
27
|
+
@each $color in variables.$colors {
|
|
28
|
+
$colorName: map.get($color, "name");
|
|
29
|
+
&.is-#{$colorName} {
|
|
30
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-back);
|
|
31
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-border);
|
|
32
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-fore);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.is-clickable {
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
touch-action: manipulation;
|
|
40
|
+
user-select: none;
|
|
41
|
+
&:focus,
|
|
42
|
+
&.is-focus,
|
|
43
|
+
&.is-focused {
|
|
44
|
+
background-color: var(--#{variables.$prefix}color-default-badge-focus-back);
|
|
45
|
+
border-color: var(--#{variables.$prefix}color-default-badge-focus-border);
|
|
46
|
+
color: var(--#{variables.$prefix}color-default-badge-focus-fore);
|
|
47
|
+
}
|
|
48
|
+
&:hover,
|
|
49
|
+
&.is-hovered,
|
|
50
|
+
&.is-hovered {
|
|
51
|
+
background-color: var(--#{variables.$prefix}color-default-badge-hover-back);
|
|
52
|
+
border-color: var(--#{variables.$prefix}color-default-badge-hover-border);
|
|
53
|
+
color: var(--#{variables.$prefix}color-default-badge-hover-fore);
|
|
54
|
+
}
|
|
55
|
+
&:active,
|
|
56
|
+
&.is-active {
|
|
57
|
+
background-color: var(--#{variables.$prefix}color-default-badge-active-back);
|
|
58
|
+
border-color: var(--#{variables.$prefix}color-default-badge-active-border);
|
|
59
|
+
color: var(--#{variables.$prefix}color-default-badge-active-fore);
|
|
60
|
+
}
|
|
61
|
+
&[disabled],
|
|
62
|
+
fieldset[disabled],
|
|
63
|
+
&.is-disabled {
|
|
64
|
+
background-color: var(--#{variables.$prefix}color-default-badge-disabled-back);
|
|
65
|
+
border-color: var(--#{variables.$prefix}color-default-badge-disabled-border);
|
|
66
|
+
color: var(--#{variables.$prefix}color-default-badge-disabled-fore);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@if (not variables.$is-skelton) {
|
|
70
|
+
@each $color in variables.$colors {
|
|
71
|
+
$colorName: map.get($color, "name");
|
|
72
|
+
&.is-#{$colorName} {
|
|
73
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-back);
|
|
74
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-border);
|
|
75
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-fore);
|
|
76
|
+
&.is-clickable {
|
|
77
|
+
&:focus,
|
|
78
|
+
&.is-focus,
|
|
79
|
+
&.is-focused {
|
|
80
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-focus-back);
|
|
81
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-focus-border);
|
|
82
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-focus-fore);
|
|
83
|
+
}
|
|
84
|
+
&:hover,
|
|
85
|
+
&.is-hover,
|
|
86
|
+
&.is-hovered {
|
|
87
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-hover-back);
|
|
88
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-hover-border);
|
|
89
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-hover-fore);
|
|
90
|
+
}
|
|
91
|
+
&:active,
|
|
92
|
+
&.is-active {
|
|
93
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-active-back);
|
|
94
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-active-border);
|
|
95
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-active-fore);
|
|
96
|
+
}
|
|
97
|
+
&[disabled],
|
|
98
|
+
fieldset[disabled],
|
|
99
|
+
&.is-disabled {
|
|
100
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-badge-disabled-back);
|
|
101
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-badge-disabled-border);
|
|
102
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-badge-disabled-fore);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|