noctemyth 0.3.0 → 1.0.0
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/dist/css/noctemyth-skelton.css +1398 -4855
- package/dist/css/noctemyth-skelton.css.map +1 -1
- package/dist/css/noctemyth-skelton.min.css +1398 -4855
- package/dist/css/noctemyth-skelton.min.css.map +1 -1
- package/dist/css/noctemyth-utilities.css +17534 -1
- package/dist/css/noctemyth-utilities.css.map +1 -1
- package/dist/css/noctemyth-utilities.min.css +17534 -1
- package/dist/css/noctemyth-utilities.min.css.map +1 -1
- package/dist/css/noctemyth.css +7221 -3898
- package/dist/css/noctemyth.css.map +1 -1
- package/dist/css/noctemyth.min.css +1507 -967
- package/dist/css/noctemyth.min.css.map +1 -1
- package/package.json +1 -1
- package/src/animations/fade.scss +2 -2
- package/src/backgrounds/dot.scss +5 -21
- package/src/backgrounds/gingham.scss +7 -23
- package/src/backgrounds/rhombus.scss +7 -23
- package/src/backgrounds/stripe.scss +5 -21
- package/src/backgrounds/zigzag.scss +7 -23
- package/src/base/accessibility.scss +68 -0
- package/src/base/dub.scss +19 -2
- package/src/base/index.scss +2 -0
- package/src/base/normalize.scss +0 -8
- package/src/base/root.scss +25 -0
- package/src/components/accordion.scss +6 -79
- package/src/components/aside.scss +7 -0
- package/src/components/badge.scss +68 -114
- package/src/components/blockquote.scss +3 -27
- package/src/components/breadcrumbs.scss +1 -22
- package/src/components/button.scss +72 -111
- package/src/components/card.scss +2 -60
- package/src/components/description-list.scss +46 -0
- package/src/components/dialogue.scss +55 -73
- package/src/components/figure.scss +173 -0
- package/src/components/footer.scss +5 -14
- package/src/components/hamburger.scss +1 -14
- package/src/components/header.scss +2 -32
- package/src/components/heading.scss +0 -1
- package/src/components/image.scss +0 -1
- package/src/components/index.scss +3 -0
- package/src/components/input.scss +1 -32
- package/src/components/label.scss +1 -19
- package/src/components/link.scss +6 -25
- package/src/components/list.scss +39 -9
- package/src/components/loader.scss +1 -10
- package/src/components/message.scss +1 -44
- package/src/components/modal.scss +1 -10
- package/src/components/nav.scss +5 -61
- package/src/components/paragraph.scss +0 -1
- package/src/components/progress.scss +2 -1
- package/src/css-variables/animation.scss +1 -1
- package/src/css-variables/border.scss +1 -1
- package/src/css-variables/color.scss +201 -29
- package/src/css-variables/components/header.scss +1 -0
- package/src/css-variables/index.scss +1 -0
- package/src/css-variables/layout.scss +11 -0
- package/src/css-variables/miscellaneous.scss +4 -4
- package/src/css-variables/typography.scss +1 -1
- package/src/layouts/columns.scss +56 -51
- package/src/layouts/container.scss +32 -30
- package/src/mixins/responsive.scss +12 -12
- package/src/utilities/border.scss +4 -0
- package/src/utilities/color.scss +110 -0
- package/src/variables/color.scss +263 -218
- package/src/variables/components/header.scss +1 -0
- package/src/variables/layout.scss +13 -11
- package/src/variables/miscellaneous.scss +0 -2
package/package.json
CHANGED
package/src/animations/fade.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//#region fade-in
|
|
4
4
|
|
|
5
5
|
// style
|
|
6
|
-
.fade-in {
|
|
6
|
+
:where(.fade-in) {
|
|
7
7
|
@include mixins.animation() {
|
|
8
8
|
animation-name: fade-in;
|
|
9
9
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
//#region fade-out
|
|
24
24
|
|
|
25
25
|
// style
|
|
26
|
-
.fade-out {
|
|
26
|
+
:where(.fade-out) {
|
|
27
27
|
@include mixins.animation() {
|
|
28
28
|
animation-name: fade-out;
|
|
29
29
|
}
|
package/src/backgrounds/dot.scss
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
5
|
:where(.dot) {
|
|
6
|
-
--#{variables.$prefix}dot-color-
|
|
6
|
+
--#{variables.$prefix}dot-color-dot: oklch(
|
|
7
7
|
from var(--#{variables.$prefix}color-default-dot-fore) l c h /
|
|
8
8
|
0.5
|
|
9
9
|
);
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
background-color: var(--#{variables.$prefix}dot-color-back);
|
|
17
17
|
background-image:
|
|
18
18
|
radial-gradient(
|
|
19
|
-
var(--#{variables.$prefix}dot-color-
|
|
19
|
+
var(--#{variables.$prefix}dot-color-dot)
|
|
20
20
|
var(--#{variables.$prefix}dot-size),
|
|
21
21
|
transparent calc(var(--#{variables.$prefix}dot-size) + 3%)
|
|
22
22
|
),
|
|
23
23
|
radial-gradient(
|
|
24
|
-
var(--#{variables.$prefix}dot-color-
|
|
24
|
+
var(--#{variables.$prefix}dot-color-dot)
|
|
25
25
|
var(--#{variables.$prefix}dot-size),
|
|
26
26
|
transparent calc(var(--#{variables.$prefix}dot-size) + 3%)
|
|
27
27
|
);
|
|
@@ -44,26 +44,10 @@
|
|
|
44
44
|
--#{variables.$prefix}dot-size: 10%;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
@each $color in variables.$
|
|
47
|
+
@each $color in variables.$allColors {
|
|
48
48
|
$colorName: map.get($color, "name");
|
|
49
49
|
&.is-#{$colorName} {
|
|
50
|
-
--#{variables.$prefix}dot-color-
|
|
51
|
-
from var(--#{variables.$prefix}color-#{$colorName}-dot-fore)
|
|
52
|
-
l
|
|
53
|
-
c
|
|
54
|
-
h /
|
|
55
|
-
0.5
|
|
56
|
-
);
|
|
57
|
-
--#{variables.$prefix}dot-color-back: var(
|
|
58
|
-
--#{variables.$prefix}color-#{$colorName}-dot-back
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@each $semanticColor in variables.$semanticColors {
|
|
64
|
-
$colorName: map.get($semanticColor, "name");
|
|
65
|
-
&.is-#{$colorName} {
|
|
66
|
-
--#{variables.$prefix}dot-color-fore: oklch(
|
|
50
|
+
--#{variables.$prefix}dot-color-dot: oklch(
|
|
67
51
|
from var(--#{variables.$prefix}color-#{$colorName}-dot-fore)
|
|
68
52
|
l
|
|
69
53
|
c
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
5
|
:where(.gingham) {
|
|
6
|
-
--#{variables.$prefix}gingham-color-
|
|
6
|
+
--#{variables.$prefix}gingham-color-line: oklch(
|
|
7
7
|
from var(--#{variables.$prefix}color-default-gingham-fore) l c h / 0.5
|
|
8
8
|
);
|
|
9
9
|
--#{variables.$prefix}gingham-color-back: var(
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
var(--#{variables.$prefix}gingham-degree),
|
|
20
20
|
transparent,
|
|
21
21
|
transparent 0.75rem,
|
|
22
|
-
var(--#{variables.$prefix}gingham-color-
|
|
23
|
-
var(--#{variables.$prefix}gingham-color-
|
|
22
|
+
var(--#{variables.$prefix}gingham-color-line) 0.75rem,
|
|
23
|
+
var(--#{variables.$prefix}gingham-color-line) 1.5rem
|
|
24
24
|
),
|
|
25
25
|
repeating-linear-gradient(
|
|
26
26
|
calc(var(--#{variables.$prefix}gingham-degree) + 90deg),
|
|
27
27
|
transparent,
|
|
28
28
|
transparent 0.75rem,
|
|
29
|
-
var(--#{variables.$prefix}gingham-color-
|
|
30
|
-
var(--#{variables.$prefix}gingham-color-
|
|
29
|
+
var(--#{variables.$prefix}gingham-color-line) 0.75rem,
|
|
30
|
+
var(--#{variables.$prefix}gingham-color-line) 1.5rem
|
|
31
31
|
);
|
|
32
32
|
|
|
33
33
|
@if (not variables.$is-skelton) {
|
|
@@ -38,26 +38,10 @@
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
@each $color in variables.$
|
|
41
|
+
@each $color in variables.$allColors {
|
|
42
42
|
$colorName: map.get($color, "name");
|
|
43
43
|
&.is-#{$colorName} {
|
|
44
|
-
--#{variables.$prefix}gingham-color-
|
|
45
|
-
from var(--#{variables.$prefix}color-#{$colorName}-gingham-fore)
|
|
46
|
-
l
|
|
47
|
-
c
|
|
48
|
-
h /
|
|
49
|
-
0.5
|
|
50
|
-
);
|
|
51
|
-
--#{variables.$prefix}gingham-color-back: var(
|
|
52
|
-
--#{variables.$prefix}color-#{$colorName}-gingham-back
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@each $semanticColor in variables.$semanticColors {
|
|
58
|
-
$colorName: map.get($semanticColor, "name");
|
|
59
|
-
&.is-#{$colorName} {
|
|
60
|
-
--#{variables.$prefix}gingham-color-fore: oklch(
|
|
44
|
+
--#{variables.$prefix}gingham-color-line: oklch(
|
|
61
45
|
from var(--#{variables.$prefix}color-#{$colorName}-gingham-fore)
|
|
62
46
|
l
|
|
63
47
|
c
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
5
|
:where(.rhombus) {
|
|
6
|
-
--#{variables.$prefix}rhombus-color-
|
|
6
|
+
--#{variables.$prefix}rhombus-color-line: oklch(
|
|
7
7
|
from var(--#{variables.$prefix}color-default-rhombus-fore) l c h / 0.5
|
|
8
8
|
);
|
|
9
9
|
--#{variables.$prefix}rhombus-color-back: var(
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
background-image:
|
|
18
18
|
linear-gradient(
|
|
19
19
|
135deg,
|
|
20
|
-
var(--#{variables.$prefix}rhombus-color-
|
|
20
|
+
var(--#{variables.$prefix}rhombus-color-line) 25%,
|
|
21
21
|
transparent 25%
|
|
22
22
|
),
|
|
23
23
|
linear-gradient(
|
|
24
24
|
225deg,
|
|
25
|
-
var(--#{variables.$prefix}rhombus-color-
|
|
25
|
+
var(--#{variables.$prefix}rhombus-color-line) 25%,
|
|
26
26
|
transparent 25%
|
|
27
27
|
),
|
|
28
28
|
linear-gradient(
|
|
29
29
|
45deg,
|
|
30
|
-
var(--#{variables.$prefix}rhombus-color-
|
|
30
|
+
var(--#{variables.$prefix}rhombus-color-line) 25%,
|
|
31
31
|
transparent 25%
|
|
32
32
|
),
|
|
33
33
|
linear-gradient(
|
|
34
34
|
315deg,
|
|
35
|
-
var(--#{variables.$prefix}rhombus-color-
|
|
35
|
+
var(--#{variables.$prefix}rhombus-color-line) 25%,
|
|
36
36
|
var(--#{variables.$prefix}rhombus-color-back) 25%
|
|
37
37
|
);
|
|
38
38
|
background-position:
|
|
@@ -53,26 +53,10 @@
|
|
|
53
53
|
--#{variables.$prefix}rhombus-size: 2rem;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
@each $color in variables.$
|
|
56
|
+
@each $color in variables.$allColors {
|
|
57
57
|
$colorName: map.get($color, "name");
|
|
58
58
|
&.is-#{$colorName} {
|
|
59
|
-
--#{variables.$prefix}rhombus-color-
|
|
60
|
-
from var(--#{variables.$prefix}color-#{$colorName}-rhombus-fore)
|
|
61
|
-
l
|
|
62
|
-
c
|
|
63
|
-
h /
|
|
64
|
-
0.5
|
|
65
|
-
);
|
|
66
|
-
--#{variables.$prefix}rhombus-color-back: var(
|
|
67
|
-
--#{variables.$prefix}color-#{$colorName}-rhombus-back
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@each $semanticColor in variables.$semanticColors {
|
|
73
|
-
$colorName: map.get($semanticColor, "name");
|
|
74
|
-
&.is-#{$colorName} {
|
|
75
|
-
--#{variables.$prefix}rhombus-color-fore: oklch(
|
|
59
|
+
--#{variables.$prefix}rhombus-color-line: oklch(
|
|
76
60
|
from var(--#{variables.$prefix}color-#{$colorName}-rhombus-fore)
|
|
77
61
|
l
|
|
78
62
|
c
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
5
|
:where(.stripe) {
|
|
6
|
-
--#{variables.$prefix}stripe-color-
|
|
6
|
+
--#{variables.$prefix}stripe-color-line: oklch(
|
|
7
7
|
from var(--#{variables.$prefix}color-default-stripe-fore) l c h /
|
|
8
8
|
0.5
|
|
9
9
|
);
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
var(--#{variables.$prefix}stripe-degree),
|
|
20
20
|
transparent,
|
|
21
21
|
transparent 0.75rem,
|
|
22
|
-
var(--#{variables.$prefix}stripe-color-
|
|
23
|
-
var(--#{variables.$prefix}stripe-color-
|
|
22
|
+
var(--#{variables.$prefix}stripe-color-line) 0.75rem,
|
|
23
|
+
var(--#{variables.$prefix}stripe-color-line) 1.5rem
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
@if (not variables.$is-skelton) {
|
|
@@ -31,26 +31,10 @@
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
@each $color in variables.$
|
|
34
|
+
@each $color in variables.$allColors {
|
|
35
35
|
$colorName: map.get($color, "name");
|
|
36
36
|
&.is-#{$colorName} {
|
|
37
|
-
--#{variables.$prefix}stripe-color-
|
|
38
|
-
from var(--#{variables.$prefix}color-#{$colorName}-stripe-fore)
|
|
39
|
-
l
|
|
40
|
-
c
|
|
41
|
-
h /
|
|
42
|
-
0.5
|
|
43
|
-
);
|
|
44
|
-
--#{variables.$prefix}stripe-color-back: var(
|
|
45
|
-
--#{variables.$prefix}color-#{$colorName}-stripe-back
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@each $semanticColor in variables.$semanticColors {
|
|
51
|
-
$colorName: map.get($semanticColor, "name");
|
|
52
|
-
&.is-#{$colorName} {
|
|
53
|
-
--#{variables.$prefix}stripe-color-fore: oklch(
|
|
37
|
+
--#{variables.$prefix}stripe-color-line: oklch(
|
|
54
38
|
from var(--#{variables.$prefix}color-#{$colorName}-stripe-fore)
|
|
55
39
|
l
|
|
56
40
|
c
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
:where(.zigzag) {
|
|
6
6
|
--#{variables.$prefix}zigzag-size: 1rem;
|
|
7
|
-
--#{variables.$prefix}zigzag-color-
|
|
7
|
+
--#{variables.$prefix}zigzag-color-line: oklch(
|
|
8
8
|
from var(--#{variables.$prefix}color-default-zigzag-fore) l c h /
|
|
9
9
|
0.5
|
|
10
10
|
);
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
background-image:
|
|
19
19
|
linear-gradient(
|
|
20
20
|
calc(45deg * 3),
|
|
21
|
-
var(--#{variables.$prefix}zigzag-color-
|
|
21
|
+
var(--#{variables.$prefix}zigzag-color-line) 25%,
|
|
22
22
|
transparent 25%
|
|
23
23
|
),
|
|
24
24
|
linear-gradient(
|
|
25
25
|
calc(45deg * 5),
|
|
26
|
-
var(--#{variables.$prefix}zigzag-color-
|
|
26
|
+
var(--#{variables.$prefix}zigzag-color-line) 25%,
|
|
27
27
|
transparent 25%
|
|
28
28
|
),
|
|
29
29
|
linear-gradient(
|
|
30
30
|
45deg,
|
|
31
|
-
var(--#{variables.$prefix}zigzag-color-
|
|
31
|
+
var(--#{variables.$prefix}zigzag-color-line) 25%,
|
|
32
32
|
transparent 25%
|
|
33
33
|
),
|
|
34
34
|
linear-gradient(
|
|
35
35
|
calc(45deg * 7),
|
|
36
|
-
var(--#{variables.$prefix}zigzag-color-
|
|
36
|
+
var(--#{variables.$prefix}zigzag-color-line) 25%,
|
|
37
37
|
var(--#{variables.$prefix}zigzag-color-back) 25%
|
|
38
38
|
);
|
|
39
39
|
background-position:
|
|
@@ -61,26 +61,10 @@
|
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
@each $color in variables.$
|
|
64
|
+
@each $color in variables.$allColors {
|
|
65
65
|
$colorName: map.get($color, "name");
|
|
66
66
|
&.is-#{$colorName} {
|
|
67
|
-
--#{variables.$prefix}zigzag-color-
|
|
68
|
-
from var(--#{variables.$prefix}color-#{$colorName}-zigzag-fore)
|
|
69
|
-
l
|
|
70
|
-
c
|
|
71
|
-
h /
|
|
72
|
-
0.5
|
|
73
|
-
);
|
|
74
|
-
--#{variables.$prefix}zigzag-color-back: var(
|
|
75
|
-
--#{variables.$prefix}color-#{$colorName}-zigzag-back
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
@each $semanticColor in variables.$semanticColors {
|
|
81
|
-
$colorName: map.get($semanticColor, "name");
|
|
82
|
-
&.is-#{$colorName} {
|
|
83
|
-
--#{variables.$prefix}zigzag-color-fore: oklch(
|
|
67
|
+
--#{variables.$prefix}zigzag-color-line: oklch(
|
|
84
68
|
from var(--#{variables.$prefix}color-#{$colorName}-zigzag-fore)
|
|
85
69
|
l
|
|
86
70
|
c
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
:where(:root) {
|
|
4
|
+
@if variables.$enable-smooth-scroll {
|
|
5
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
6
|
+
scroll-behavior: smooth;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@media (prefers-reduced-motion: reduce) {
|
|
12
|
+
*,
|
|
13
|
+
::before,
|
|
14
|
+
::after,
|
|
15
|
+
::backdrop {
|
|
16
|
+
background-attachment: scroll !important;
|
|
17
|
+
transition-delay: 0s !important;
|
|
18
|
+
transition-duration: 1ms !important;
|
|
19
|
+
animation-duration: 1ms !important;
|
|
20
|
+
animation-delay: 0s !important;
|
|
21
|
+
animation-iteration-count: 1 !important;
|
|
22
|
+
scroll-behavior: auto !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
// [id],
|
|
28
|
+
// :focus {
|
|
29
|
+
// scroll-margin-block-start: var(--#{variables.$prefix}header-min-height);
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
:where(button, [type="button"], [type="reset"], [type="submit"]) {
|
|
33
|
+
touch-action: manipulation;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(
|
|
37
|
+
:any-link,
|
|
38
|
+
button,
|
|
39
|
+
[type="button"],
|
|
40
|
+
[type="reset"],
|
|
41
|
+
[type="submit"],
|
|
42
|
+
label[for],
|
|
43
|
+
select,
|
|
44
|
+
summary,
|
|
45
|
+
[role="tab"],
|
|
46
|
+
[role="button"]
|
|
47
|
+
) {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:focus:not(:focus-visible) {
|
|
52
|
+
outline: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (prefers-reduced-motion: reduce) {
|
|
56
|
+
*,
|
|
57
|
+
::before,
|
|
58
|
+
::after,
|
|
59
|
+
::backdrop {
|
|
60
|
+
background-attachment: scroll !important;
|
|
61
|
+
transition-delay: 0s !important;
|
|
62
|
+
transition-duration: 1ms !important;
|
|
63
|
+
animation-duration: 1ms !important;
|
|
64
|
+
animation-delay: 0s !important;
|
|
65
|
+
animation-iteration-count: 1 !important;
|
|
66
|
+
scroll-behavior: auto !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
package/src/base/dub.scss
CHANGED
|
@@ -7,6 +7,12 @@
|
|
|
7
7
|
--#{variables.$prefix}dub-color-back: var(
|
|
8
8
|
--#{variables.$prefix}color-default-back
|
|
9
9
|
);
|
|
10
|
+
--#{variables.$prefix}dub-color-scrollbar-thumb: var(
|
|
11
|
+
--#{variables.$prefix}color-default-scrollbar-thumb
|
|
12
|
+
);
|
|
13
|
+
--#{variables.$prefix}dub-color-scrollbar-track: var(
|
|
14
|
+
--#{variables.$prefix}color-default-scrollbar-track
|
|
15
|
+
);
|
|
10
16
|
--#{variables.$prefix}dub-color-selection-fore: var(
|
|
11
17
|
--#{variables.$prefix}color-default-selection-fore
|
|
12
18
|
);
|
|
@@ -14,9 +20,20 @@
|
|
|
14
20
|
--#{variables.$prefix}color-default-selection-back
|
|
15
21
|
);
|
|
16
22
|
|
|
17
|
-
color: var(--#{variables.$prefix}color-
|
|
18
|
-
background-color: var(--#{variables.$prefix}color-
|
|
23
|
+
color: var(--#{variables.$prefix}dub-color-fore);
|
|
24
|
+
background-color: var(--#{variables.$prefix}dub-color-back);
|
|
19
25
|
font-family: var(--#{variables.$prefix}font-family-main);
|
|
20
26
|
z-index: var(--#{variables.$prefix}z-index-dub);
|
|
21
27
|
text-size-adjust: 100%;
|
|
28
|
+
line-height: 1.5;
|
|
29
|
+
letter-spacing: 0.025rem;
|
|
30
|
+
text-autospace: normal;
|
|
31
|
+
text-spacing-trim: trim-start;
|
|
32
|
+
// scrollbar-color: var(--#{variables.$prefix}dub-color-scrollbar-thumb)
|
|
33
|
+
// var(--#{variables.$prefix}dub-color-scrollbar-track);
|
|
34
|
+
|
|
35
|
+
&::selection {
|
|
36
|
+
color: var(--#{variables.$prefix}dub-color-selection-fore);
|
|
37
|
+
background-color: var(--#{variables.$prefix}dub-color-selection-back);
|
|
38
|
+
}
|
|
22
39
|
}
|
package/src/base/index.scss
CHANGED
package/src/base/normalize.scss
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
@use "../variables/index.scss" as variables;
|
|
2
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
3
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
12
4
|
|
|
13
5
|
/*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
// @supports not selector(::-webkit-scrollbar) {
|
|
4
|
+
// :where(:root) {
|
|
5
|
+
// scrollbar-color: var(--#{variables.$prefix}color-default-scrollbar-thumb)
|
|
6
|
+
// var(--#{variables.$prefix}color-default-scrollbar-track);
|
|
7
|
+
// }
|
|
8
|
+
// }
|
|
9
|
+
:where(:root) {
|
|
10
|
+
scrollbar-gutter: stable;
|
|
11
|
+
|
|
12
|
+
// ::-webkit-scrollbar {
|
|
13
|
+
// background-color: transparent;
|
|
14
|
+
// }
|
|
15
|
+
|
|
16
|
+
// ::-webkit-scrollbar-thumb {
|
|
17
|
+
// background-color: var(--#{variables.$prefix}color-default-scrollbar-thumb);
|
|
18
|
+
// background-clip: content-box;
|
|
19
|
+
// border-radius: 0.75rem;
|
|
20
|
+
// }
|
|
21
|
+
|
|
22
|
+
// ::-webkit-scrollbar-track {
|
|
23
|
+
// background-color: var(--#{variables.$prefix}color-default-scrollbar-track);
|
|
24
|
+
// }
|
|
25
|
+
}
|
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
background: var(--#{variables.$prefix}accordion-color-fore);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
+
|
|
127
128
|
&:focus,
|
|
128
129
|
&.is-focus,
|
|
129
130
|
&.is-focused {
|
|
@@ -134,8 +135,9 @@
|
|
|
134
135
|
--#{variables.$prefix}accordion-summary-color-focus-border
|
|
135
136
|
);
|
|
136
137
|
}
|
|
138
|
+
|
|
137
139
|
&:hover,
|
|
138
|
-
&.is-
|
|
140
|
+
&.is-hover,
|
|
139
141
|
&.is-hovered {
|
|
140
142
|
background-color: var(
|
|
141
143
|
--#{variables.$prefix}accordion-summary-color-hover-back
|
|
@@ -144,6 +146,7 @@
|
|
|
144
146
|
--#{variables.$prefix}accordion-summary-color-hover-border
|
|
145
147
|
);
|
|
146
148
|
}
|
|
149
|
+
|
|
147
150
|
&:active,
|
|
148
151
|
&.is-active {
|
|
149
152
|
background-color: var(
|
|
@@ -153,6 +156,7 @@
|
|
|
153
156
|
--#{variables.$prefix}accordion-summary-color-active-border
|
|
154
157
|
);
|
|
155
158
|
}
|
|
159
|
+
|
|
156
160
|
&[disabled],
|
|
157
161
|
fieldset[disabled],
|
|
158
162
|
&.is-disabled {
|
|
@@ -188,7 +192,7 @@
|
|
|
188
192
|
}
|
|
189
193
|
}
|
|
190
194
|
@if (not variables.$is-skelton) {
|
|
191
|
-
@each $color in variables.$
|
|
195
|
+
@each $color in variables.$allColors {
|
|
192
196
|
$colorName: map.get($color, "name");
|
|
193
197
|
&.is-#{$colorName} {
|
|
194
198
|
--#{variables.$prefix}accordion-color-fore: var(
|
|
@@ -264,82 +268,5 @@
|
|
|
264
268
|
//#endregion disabled
|
|
265
269
|
}
|
|
266
270
|
}
|
|
267
|
-
|
|
268
|
-
@each $semanticColor in variables.$semanticColors {
|
|
269
|
-
$colorName: map.get($semanticColor, "name");
|
|
270
|
-
&.is-#{$colorName} {
|
|
271
|
-
--#{variables.$prefix}accordion-color-fore: var(
|
|
272
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-fore
|
|
273
|
-
);
|
|
274
|
-
--#{variables.$prefix}accordion-color-back: var(
|
|
275
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-back
|
|
276
|
-
);
|
|
277
|
-
--#{variables.$prefix}accordion-color-border: var(
|
|
278
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-border
|
|
279
|
-
);
|
|
280
|
-
--#{variables.$prefix}accordion-color-selection-fore: var(
|
|
281
|
-
--#{variables.$prefix}color-#{$colorName}-selection-fore
|
|
282
|
-
);
|
|
283
|
-
--#{variables.$prefix}accordion-color-selection-back: var(
|
|
284
|
-
--#{variables.$prefix}color-#{$colorName}-selection-back
|
|
285
|
-
);
|
|
286
|
-
|
|
287
|
-
--#{variables.$prefix}accordion-summary-color-fore: var(
|
|
288
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-fore
|
|
289
|
-
);
|
|
290
|
-
--#{variables.$prefix}accordion-summary-color-back: var(
|
|
291
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-back
|
|
292
|
-
);
|
|
293
|
-
--#{variables.$prefix}accordion-summary-color-border: var(
|
|
294
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-border
|
|
295
|
-
);
|
|
296
|
-
|
|
297
|
-
--#{variables.$prefix}accordion-details-color-fore: var(
|
|
298
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-details-fore
|
|
299
|
-
);
|
|
300
|
-
--#{variables.$prefix}accordion-details-color-back: var(
|
|
301
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-details-back
|
|
302
|
-
);
|
|
303
|
-
--#{variables.$prefix}accordion-details-color-border: var(
|
|
304
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-details-border
|
|
305
|
-
);
|
|
306
|
-
|
|
307
|
-
//#region focus
|
|
308
|
-
--#{variables.$prefix}accordion-summary-color-focus-back: var(
|
|
309
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-focus-back
|
|
310
|
-
);
|
|
311
|
-
--#{variables.$prefix}accordion-summary-color-focus-border: var(
|
|
312
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-focus-border
|
|
313
|
-
);
|
|
314
|
-
//#endregion focus
|
|
315
|
-
|
|
316
|
-
//#region hover
|
|
317
|
-
--#{variables.$prefix}accordion-summary-color-hover-back: var(
|
|
318
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-hover-back
|
|
319
|
-
);
|
|
320
|
-
--#{variables.$prefix}accordion-summary-color-hover-border: var(
|
|
321
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-hover-border
|
|
322
|
-
);
|
|
323
|
-
//#endregion hover
|
|
324
|
-
|
|
325
|
-
//#region active
|
|
326
|
-
--#{variables.$prefix}accordion-summary-color-active-back: var(
|
|
327
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-active-back
|
|
328
|
-
);
|
|
329
|
-
--#{variables.$prefix}accordion-summary-color-active-border: var(
|
|
330
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-active-border
|
|
331
|
-
);
|
|
332
|
-
//#endregion active
|
|
333
|
-
|
|
334
|
-
//#region disabled
|
|
335
|
-
--#{variables.$prefix}accordion-summary-color-disabled-back: var(
|
|
336
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-disabled-back
|
|
337
|
-
);
|
|
338
|
-
--#{variables.$prefix}accordion-summary-color-disabled-border: var(
|
|
339
|
-
--#{variables.$prefix}color-#{$colorName}-accordion-summary-disabled-border
|
|
340
|
-
);
|
|
341
|
-
//#endregion disabled
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
271
|
}
|
|
345
272
|
}
|