noctemyth 0.2.0 → 0.3.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 +3126 -5336
- package/dist/css/noctemyth-skelton.css.map +1 -1
- package/dist/css/noctemyth-skelton.min.css +3126 -5336
- package/dist/css/noctemyth-skelton.min.css.map +1 -1
- package/dist/css/noctemyth-utilities.css +38455 -77487
- package/dist/css/noctemyth-utilities.css.map +1 -1
- package/dist/css/noctemyth-utilities.min.css +38455 -77487
- package/dist/css/noctemyth-utilities.min.css.map +1 -1
- package/dist/css/noctemyth.css +22250 -37070
- package/dist/css/noctemyth.css.map +1 -1
- package/dist/css/noctemyth.min.css +5326 -22994
- package/dist/css/noctemyth.min.css.map +1 -1
- package/package.json +8 -8
- package/src/backgrounds/dot.scss +39 -15
- package/src/backgrounds/gingham.scss +35 -18
- package/src/backgrounds/rhombus.scss +58 -19
- package/src/backgrounds/stripe.scss +30 -9
- package/src/backgrounds/zigzag.scss +43 -18
- package/src/base/dub.scss +15 -2
- package/src/base/element.scss +1 -1
- package/src/components/accordion.scss +254 -88
- package/src/components/badge.scss +215 -63
- package/src/components/blockquote.scss +74 -25
- package/src/components/breadcrumbs.scss +66 -15
- package/src/components/button.scss +204 -76
- package/src/components/card.scss +204 -47
- package/src/components/dialogue.scss +209 -140
- package/src/components/div.scss +1 -1
- package/src/components/footer.scss +28 -5
- package/src/components/hamburger.scss +89 -50
- package/src/components/header.scss +71 -5
- package/src/components/heading.scss +6 -6
- package/src/components/image.scss +1 -0
- package/src/components/input.scss +141 -69
- package/src/components/label.scss +51 -3
- package/src/components/link.scss +72 -9
- package/src/components/list.scss +2 -2
- package/src/components/loader.scss +18 -7
- package/src/components/main.scss +1 -1
- package/src/components/message.scss +142 -23
- package/src/components/modal.scss +26 -7
- package/src/components/nav.scss +655 -279
- package/src/components/paragraph.scss +1 -1
- package/src/components/progress.scss +40 -15
- package/src/components/section.scss +1 -1
- package/src/components/span.scss +1 -1
- package/src/css-variables/color.scss +582 -465
- package/src/css-variables/components/dialogue.scss +2 -2
- package/src/css-variables/miscellaneous.scss +1 -1
- package/src/functions/color.scss +13 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +12 -0
- package/src/layouts/centering.scss +1 -1
- package/src/layouts/columns.scss +3 -2
- package/src/layouts/container.scss +1 -1
- package/src/mixins/color.scss +0 -32
- package/src/mixins/element.scss +2 -2
- package/src/mixins/responsive.scss +2 -1
- package/src/utilities/color.scss +2 -6
- package/src/variables/color.scss +949 -909
- package/src/variables/components/dialogue.scss +2 -2
- package/src/variables/miscellaneous.scss +1 -1
|
@@ -1,20 +1,30 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../variables/index.scss" as variables;
|
|
3
|
+
@use "../mixins/index.scss" as mixins;
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
:where(.hamburger) {
|
|
6
|
+
--#{variables.$prefix}hamburger-color-fore: var(
|
|
7
|
+
--#{variables.$prefix}color-default-hamburger-fore,
|
|
8
|
+
var(--#{variables.$prefix}color-default-fore)
|
|
9
|
+
);
|
|
10
|
+
--#{variables.$prefix}hamburger-line-color-back: var(
|
|
11
|
+
--#{variables.$prefix}color-default-hamburger-line-back,
|
|
12
|
+
var(--#{variables.$prefix}color-default-border)
|
|
13
|
+
);
|
|
7
14
|
|
|
8
|
-
|
|
9
|
-
|
|
15
|
+
--#{variables.$prefix}hamburger-size: 3.5rem;
|
|
16
|
+
--#{variables.$prefix}hamburger-line-height: 0.2rem;
|
|
17
|
+
|
|
18
|
+
@include mixins.element();
|
|
19
|
+
color: var(--#{variables.$prefix}hamburger-color-fore);
|
|
10
20
|
border-radius: 0.25rem;
|
|
11
21
|
cursor: pointer;
|
|
12
22
|
display: inline-block;
|
|
13
|
-
height:
|
|
23
|
+
height: var(--#{variables.$prefix}hamburger-size);
|
|
14
24
|
position: relative;
|
|
15
25
|
touch-action: manipulation;
|
|
16
26
|
user-select: none;
|
|
17
|
-
width:
|
|
27
|
+
width: var(--#{variables.$prefix}hamburger-size);
|
|
18
28
|
.crown,
|
|
19
29
|
.upperpatty,
|
|
20
30
|
.club,
|
|
@@ -33,46 +43,52 @@ $hamburger-line-color: var(--#{variables.$prefix}color-default-border);
|
|
|
33
43
|
line-height: 1;
|
|
34
44
|
text-align: center;
|
|
35
45
|
top: 0.25em;
|
|
36
|
-
width:
|
|
46
|
+
width: var(--#{variables.$prefix}hamburger-size);
|
|
37
47
|
}
|
|
38
48
|
.upperpatty {
|
|
39
|
-
animation: hamburger-upperpatty .75s forwards;
|
|
40
|
-
background-color:
|
|
41
|
-
height:
|
|
42
|
-
top: calc(
|
|
43
|
-
|
|
49
|
+
animation: hamburger-upperpatty 0.75s forwards;
|
|
50
|
+
background-color: var(--#{variables.$prefix}hamburger-line-color-back);
|
|
51
|
+
height: var(--#{variables.$prefix}hamburger-line-height);
|
|
52
|
+
top: calc(
|
|
53
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) -
|
|
54
|
+
(var(--#{variables.$prefix}hamburger-size) / 5) + 50%
|
|
55
|
+
);
|
|
56
|
+
width: calc(var(--#{variables.$prefix}hamburger-size) / 5 * 3);
|
|
44
57
|
}
|
|
45
58
|
.club {
|
|
46
|
-
background-color:
|
|
47
|
-
height:
|
|
48
|
-
top: calc((-1 *
|
|
49
|
-
transition: all .25s .25s;
|
|
50
|
-
width: calc(
|
|
59
|
+
background-color: var(--#{variables.$prefix}hamburger-line-color-back);
|
|
60
|
+
height: var(--#{variables.$prefix}hamburger-line-height);
|
|
61
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
62
|
+
transition: all 0.25s 0.25s;
|
|
63
|
+
width: calc(var(--#{variables.$prefix}hamburger-size) / 5 * 3);
|
|
51
64
|
}
|
|
52
65
|
.lowerpatty {
|
|
53
|
-
animation: hamburger-lowerpatty .75s forwards;
|
|
54
|
-
background-color:
|
|
55
|
-
height:
|
|
56
|
-
top: calc(
|
|
57
|
-
|
|
66
|
+
animation: hamburger-lowerpatty 0.75s forwards;
|
|
67
|
+
background-color: var(--#{variables.$prefix}hamburger-line-color-back);
|
|
68
|
+
height: var(--#{variables.$prefix}hamburger-line-height);
|
|
69
|
+
top: calc(
|
|
70
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) +
|
|
71
|
+
(var(--#{variables.$prefix}hamburger-size)/ 5) + 50%
|
|
72
|
+
);
|
|
73
|
+
width: calc(var(--#{variables.$prefix}hamburger-size) / 5 * 3);
|
|
58
74
|
}
|
|
59
75
|
.heel {
|
|
60
76
|
bottom: 0.5em;
|
|
61
77
|
font-size: 0.5em;
|
|
62
78
|
line-height: 1;
|
|
63
79
|
text-align: center;
|
|
64
|
-
width:
|
|
80
|
+
width: var(--#{variables.$prefix}hamburger-size);
|
|
65
81
|
}
|
|
66
82
|
&.is-active {
|
|
67
83
|
.upperpatty {
|
|
68
|
-
animation: hamburger-upperpatty-is-active .75s forwards;
|
|
84
|
+
animation: hamburger-upperpatty-is-active 0.75s forwards;
|
|
69
85
|
top: 50%;
|
|
70
86
|
}
|
|
71
87
|
.club {
|
|
72
88
|
opacity: 0;
|
|
73
89
|
}
|
|
74
90
|
.lowerpatty {
|
|
75
|
-
animation: hamburger-lowerpatty-is-active .75s forwards;
|
|
91
|
+
animation: hamburger-lowerpatty-is-active 0.75s forwards;
|
|
76
92
|
top: 50%;
|
|
77
93
|
}
|
|
78
94
|
}
|
|
@@ -81,16 +97,27 @@ $hamburger-line-color: var(--#{variables.$prefix}color-default-border);
|
|
|
81
97
|
@each $color in variables.$colors {
|
|
82
98
|
$colorName: map.get($color, "name");
|
|
83
99
|
&.is-#{$colorName} {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
--#{variables.$prefix}hamburger-color-fore: var(
|
|
101
|
+
--#{variables.$prefix}color-#{$colorName}-hamburger-fore,
|
|
102
|
+
var(--#{variables.$prefix}color-#{$colorName}-fore)
|
|
103
|
+
);
|
|
104
|
+
--#{variables.$prefix}hamburger-line-color-back: var(
|
|
105
|
+
--#{variables.$prefix}color-#{$colorName}-hamburger-line-back,
|
|
106
|
+
var(--#{variables.$prefix}color-#{$colorName}-border)
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
@each $semanticColor in variables.$semanticColors {
|
|
111
|
+
$colorName: map.get($semanticColor, "name");
|
|
112
|
+
&.is-#{$colorName} {
|
|
113
|
+
--#{variables.$prefix}hamburger-color-fore: var(
|
|
114
|
+
--#{variables.$prefix}color-#{$colorName}-hamburger-fore,
|
|
115
|
+
var(--#{variables.$prefix}color-#{$colorName}-fore)
|
|
116
|
+
);
|
|
117
|
+
--#{variables.$prefix}hamburger-line-color-back: var(
|
|
118
|
+
--#{variables.$prefix}color-#{$colorName}-hamburger-line-back,
|
|
119
|
+
var(--#{variables.$prefix}color-#{$colorName}-border)
|
|
120
|
+
);
|
|
94
121
|
}
|
|
95
122
|
}
|
|
96
123
|
}
|
|
@@ -100,58 +127,70 @@ $hamburger-line-color: var(--#{variables.$prefix}color-default-border);
|
|
|
100
127
|
@keyframes hamburger-upperpatty {
|
|
101
128
|
0% {
|
|
102
129
|
transform: rotate(45deg);
|
|
103
|
-
top: calc((-1 *
|
|
130
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
104
131
|
}
|
|
105
132
|
50% {
|
|
106
133
|
transform: rotate(0deg);
|
|
107
|
-
top: calc((-1 *
|
|
134
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
108
135
|
}
|
|
109
136
|
100% {
|
|
110
137
|
transform: rotate(0deg);
|
|
111
|
-
top: calc(
|
|
138
|
+
top: calc(
|
|
139
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) -
|
|
140
|
+
(var(--#{variables.$prefix}hamburger-size) / 5) + 50%
|
|
141
|
+
);
|
|
112
142
|
}
|
|
113
143
|
}
|
|
114
144
|
|
|
115
|
-
@keyframes hamburger-upperpatty-is-active{
|
|
145
|
+
@keyframes hamburger-upperpatty-is-active {
|
|
116
146
|
0% {
|
|
117
147
|
transform: rotate(0deg);
|
|
118
|
-
top: calc(
|
|
148
|
+
top: calc(
|
|
149
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) -
|
|
150
|
+
(var(--#{variables.$prefix}hamburger-size) / 5) + 50%
|
|
151
|
+
);
|
|
119
152
|
}
|
|
120
153
|
50% {
|
|
121
154
|
transform: rotate(0deg);
|
|
122
|
-
top: calc((-1 *
|
|
155
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
123
156
|
}
|
|
124
|
-
100%{
|
|
157
|
+
100% {
|
|
125
158
|
transform: rotate(45deg);
|
|
126
|
-
top: calc((-1 *
|
|
159
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
127
160
|
}
|
|
128
161
|
}
|
|
129
162
|
@keyframes hamburger-lowerpatty {
|
|
130
163
|
0% {
|
|
131
164
|
transform: rotate(-45deg);
|
|
132
|
-
top: calc((-1 *
|
|
165
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
133
166
|
}
|
|
134
167
|
50% {
|
|
135
168
|
transform: rotate(0deg);
|
|
136
|
-
top: calc((-1 *
|
|
169
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
137
170
|
}
|
|
138
171
|
100% {
|
|
139
172
|
transform: rotate(0deg);
|
|
140
|
-
top: calc(
|
|
173
|
+
top: calc(
|
|
174
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) +
|
|
175
|
+
(var(--#{variables.$prefix}hamburger-size) / 5) + 50%
|
|
176
|
+
);
|
|
141
177
|
}
|
|
142
178
|
}
|
|
143
179
|
@keyframes hamburger-lowerpatty-is-active {
|
|
144
180
|
0% {
|
|
145
181
|
transform: rotate(0deg);
|
|
146
|
-
top: calc(
|
|
182
|
+
top: calc(
|
|
183
|
+
(-1 * var(--#{variables.$prefix}hamburger-line-height)) +
|
|
184
|
+
(var(--#{variables.$prefix}hamburger-size) / 5) + 50%
|
|
185
|
+
);
|
|
147
186
|
}
|
|
148
187
|
50% {
|
|
149
188
|
transform: rotate(0deg);
|
|
150
|
-
top: calc((-1 *
|
|
189
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
151
190
|
}
|
|
152
191
|
100% {
|
|
153
192
|
transform: rotate(-45deg);
|
|
154
|
-
top: calc((-1 *
|
|
193
|
+
top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
|
|
155
194
|
}
|
|
156
195
|
}
|
|
157
196
|
//#endregion keyframes
|
|
@@ -2,11 +2,24 @@
|
|
|
2
2
|
@use "../variables/index.scss" as variables;
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
|
-
.header {
|
|
5
|
+
:where(.header) {
|
|
6
|
+
--#{variables.$prefix}header-color-fore: var(
|
|
7
|
+
--#{variables.$prefix}color-default-header-fore,
|
|
8
|
+
--#{variables.$prefix}color-default-fore,
|
|
9
|
+
);
|
|
10
|
+
--#{variables.$prefix}header-color-back: var(
|
|
11
|
+
--#{variables.$prefix}color-default-header-back,
|
|
12
|
+
--#{variables.$prefix}color-default-back,
|
|
13
|
+
);
|
|
14
|
+
--#{variables.$prefix}header-color-shadow: var(
|
|
15
|
+
--#{variables.$prefix}color-default-header-shadow,
|
|
16
|
+
--#{variables.$prefix}color-default-shadow,
|
|
17
|
+
);
|
|
18
|
+
|
|
6
19
|
@include mixins.element();
|
|
7
20
|
display: block;
|
|
8
21
|
width: 100%;
|
|
9
|
-
box-shadow: 0 0 0.5rem var(--#{variables.$prefix}color-
|
|
22
|
+
box-shadow: 0 0 0.5rem var(--#{variables.$prefix}header-color-shadow);
|
|
10
23
|
backdrop-filter: var(--#{variables.$prefix}header-backdrop-filter);
|
|
11
24
|
|
|
12
25
|
&.is-sticky {
|
|
@@ -29,9 +42,62 @@
|
|
|
29
42
|
@each $color in variables.$colors {
|
|
30
43
|
$colorName: map.get($color, "name");
|
|
31
44
|
&.is-#{$colorName} {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
45
|
+
--#{variables.$prefix}header-color-fore: var(
|
|
46
|
+
--#{variables.$prefix}color-#{$colorName}-header-fore,
|
|
47
|
+
--#{variables.$prefix}color-#{$colorName}-fore,
|
|
48
|
+
);
|
|
49
|
+
--#{variables.$prefix}header-color-back: var(
|
|
50
|
+
--#{variables.$prefix}color-#{$colorName}-header-back,
|
|
51
|
+
--#{variables.$prefix}color-#{$colorName}-back,
|
|
52
|
+
);
|
|
53
|
+
--#{variables.$prefix}header-color-shadow: var(
|
|
54
|
+
--#{variables.$prefix}color-#{$colorName}-header-shadow,
|
|
55
|
+
--#{variables.$prefix}color-#{$colorName}-shadow,
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
background-color: oklch(
|
|
59
|
+
from var(--#{variables.$prefix}header-color-back)
|
|
60
|
+
l
|
|
61
|
+
c
|
|
62
|
+
h /
|
|
63
|
+
0.5
|
|
64
|
+
);
|
|
65
|
+
box-shadow: 0
|
|
66
|
+
0
|
|
67
|
+
0.5rem
|
|
68
|
+
var(--#{variables.$prefix}header-color-shadow);
|
|
69
|
+
color: var(--#{variables.$prefix}header-color-fore);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@each $semanticColor in variables.$semanticColors {
|
|
74
|
+
$colorName: map.get($semanticColor, "name");
|
|
75
|
+
&.is-#{$colorName} {
|
|
76
|
+
--#{variables.$prefix}header-color-fore: var(
|
|
77
|
+
--#{variables.$prefix}color-#{$colorName}-header-fore,
|
|
78
|
+
--#{variables.$prefix}color-#{$colorName}-fore,
|
|
79
|
+
);
|
|
80
|
+
--#{variables.$prefix}header-color-back: var(
|
|
81
|
+
--#{variables.$prefix}color-#{$colorName}-header-back,
|
|
82
|
+
--#{variables.$prefix}color-#{$colorName}-back,
|
|
83
|
+
);
|
|
84
|
+
--#{variables.$prefix}header-color-shadow: var(
|
|
85
|
+
--#{variables.$prefix}color-#{$colorName}-header-shadow,
|
|
86
|
+
--#{variables.$prefix}color-#{$colorName}-shadow,
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
background-color: oklch(
|
|
90
|
+
from var(--#{variables.$prefix}header-color-back)
|
|
91
|
+
l
|
|
92
|
+
c
|
|
93
|
+
h /
|
|
94
|
+
0.5
|
|
95
|
+
);
|
|
96
|
+
box-shadow: 0
|
|
97
|
+
0
|
|
98
|
+
0.5rem
|
|
99
|
+
var(--#{variables.$prefix}header-color-shadow);
|
|
100
|
+
color: var(--#{variables.$prefix}header-color-fore);
|
|
35
101
|
}
|
|
36
102
|
}
|
|
37
103
|
}
|
|
@@ -9,32 +9,32 @@
|
|
|
9
9
|
margin: 0;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.heading-1 {
|
|
12
|
+
:where(.heading-1) {
|
|
13
13
|
@include heading();
|
|
14
14
|
font-size: var(--#{variables.$prefix}font-size-xxxlarge)
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.heading-2 {
|
|
17
|
+
:where(.heading-2) {
|
|
18
18
|
@include heading();
|
|
19
19
|
font-size: var(--#{variables.$prefix}font-size-xxlarge)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.heading-3 {
|
|
22
|
+
:where(.heading-3) {
|
|
23
23
|
@include heading();
|
|
24
24
|
font-size: var(--#{variables.$prefix}font-size-xlarge)
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.heading-4 {
|
|
27
|
+
:where(.heading-4) {
|
|
28
28
|
@include heading();
|
|
29
29
|
font-size: var(--#{variables.$prefix}font-size-large)
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.heading-5 {
|
|
32
|
+
:where(.heading-5) {
|
|
33
33
|
@include heading();
|
|
34
34
|
font-size: var(--#{variables.$prefix}font-size-medium)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.heading-6 {
|
|
37
|
+
:where(.heading-6) {
|
|
38
38
|
@include heading();
|
|
39
39
|
font-size: var(--#{variables.$prefix}font-size-normal)
|
|
40
40
|
}
|
|
@@ -2,6 +2,144 @@
|
|
|
2
2
|
@use "../variables/index.scss" as variables;
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
|
+
@mixin input-base() {
|
|
6
|
+
--#{variables.$prefix}input-color-fore: var(
|
|
7
|
+
--#{variables.$prefix}color-default-input-fore
|
|
8
|
+
);
|
|
9
|
+
--#{variables.$prefix}input-color-back: var(
|
|
10
|
+
--#{variables.$prefix}color-default-input-back
|
|
11
|
+
);
|
|
12
|
+
--#{variables.$prefix}input-color-border: var(
|
|
13
|
+
--#{variables.$prefix}color-default-input-border
|
|
14
|
+
);
|
|
15
|
+
--#{variables.$prefix}input-color-placeholder: var(
|
|
16
|
+
--#{variables.$prefix}color-default-input-placeholder
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
--#{variables.$prefix}input-focus-color-back: var(
|
|
20
|
+
--#{variables.$prefix}color-default-input-focus-back
|
|
21
|
+
);
|
|
22
|
+
--#{variables.$prefix}input-focus-color-border: var(
|
|
23
|
+
--#{variables.$prefix}color-default-input-focus-border
|
|
24
|
+
);
|
|
25
|
+
--#{variables.$prefix}input-disabled-color-back: var(
|
|
26
|
+
--#{variables.$prefix}color-default-input-disabled-back
|
|
27
|
+
);
|
|
28
|
+
--#{variables.$prefix}input-disabled-color-border: var(
|
|
29
|
+
--#{variables.$prefix}color-default-input-disabled-border
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
--#{variables.$prefix}input-border-style: solid;
|
|
33
|
+
--#{variables.$prefix}input-border-width: var(
|
|
34
|
+
--#{variables.$prefix}border-width-medium
|
|
35
|
+
);
|
|
36
|
+
--#{variables.$prefix}input-border-radius: var(
|
|
37
|
+
--#{variables.$prefix}border-radius-medium
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
@include mixins.element();
|
|
41
|
+
background-color: var(--#{variables.$prefix}input-color-back);
|
|
42
|
+
border-color: var(--#{variables.$prefix}input-color-border);
|
|
43
|
+
border-radius: var(--#{variables.$prefix}input-border-radius);
|
|
44
|
+
border-style: var(--#{variables.$prefix}input-border-style);
|
|
45
|
+
border-width: var(--#{variables.$prefix}input-border-width);
|
|
46
|
+
color: var(--#{variables.$prefix}input-color-fore);
|
|
47
|
+
padding: 0.5rem;
|
|
48
|
+
&::placeholder {
|
|
49
|
+
color: var(--#{variables.$prefix}input-color-placeholder);
|
|
50
|
+
}
|
|
51
|
+
&:focus,
|
|
52
|
+
&.is-focus,
|
|
53
|
+
&.is-focused {
|
|
54
|
+
outline: none;
|
|
55
|
+
background-color: var(--#{variables.$prefix}input-focus-color-back);
|
|
56
|
+
border-color: var(--#{variables.$prefix}input-focus-color-border);
|
|
57
|
+
}
|
|
58
|
+
&[disabled],
|
|
59
|
+
fieldset[disabled],
|
|
60
|
+
&.is-disabled {
|
|
61
|
+
background-color: var(--#{variables.$prefix}input-disabled-color-back);
|
|
62
|
+
border-color: var(--#{variables.$prefix}input-disabled-color-border);
|
|
63
|
+
}
|
|
64
|
+
@if (not variables.$is-skelton) {
|
|
65
|
+
@each $borderRadius in variables.$borderRadiuses {
|
|
66
|
+
$name: map.get($borderRadius, "name");
|
|
67
|
+
&.is-border-radius-#{$name} {
|
|
68
|
+
border-radius: var(--#{variables.$prefix}border-radius-#{$name});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@each $borderWidth in variables.$borderWidths {
|
|
73
|
+
$name: map.get($borderWidth, "name");
|
|
74
|
+
&.is-border-width-#{$name} {
|
|
75
|
+
border-width: var(--#{variables.$prefix}border-radius-#{$name});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@each $color in variables.$colors {
|
|
80
|
+
$colorName: map.get($color, "name");
|
|
81
|
+
&.is-#{$colorName} {
|
|
82
|
+
--#{variables.$prefix}input-color-fore: var(
|
|
83
|
+
--#{variables.$prefix}color-#{$colorName}-input-fore
|
|
84
|
+
);
|
|
85
|
+
--#{variables.$prefix}input-color-back: var(
|
|
86
|
+
--#{variables.$prefix}color-#{$colorName}-input-back
|
|
87
|
+
);
|
|
88
|
+
--#{variables.$prefix}input-color-border: var(
|
|
89
|
+
--#{variables.$prefix}color-#{$colorName}-input-border
|
|
90
|
+
);
|
|
91
|
+
--#{variables.$prefix}input-color-placeholder: var(
|
|
92
|
+
--#{variables.$prefix}color-#{$colorName}-input-placeholder
|
|
93
|
+
);
|
|
94
|
+
|
|
95
|
+
--#{variables.$prefix}input-focus-color-back: var(
|
|
96
|
+
--#{variables.$prefix}color-#{$colorName}-input-focus-back
|
|
97
|
+
);
|
|
98
|
+
--#{variables.$prefix}input-focus-color-border: var(
|
|
99
|
+
--#{variables.$prefix}color-#{$colorName}-input-focus-border
|
|
100
|
+
);
|
|
101
|
+
--#{variables.$prefix}input-disabled-color-back: var(
|
|
102
|
+
--#{variables.$prefix}color-#{$colorName}-input-disabled-back
|
|
103
|
+
);
|
|
104
|
+
--#{variables.$prefix}input-disabled-color-border: var(
|
|
105
|
+
--#{variables.$prefix}color-#{$colorName}-input-disabled-border
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@each $semanticColor in variables.$semanticColors {
|
|
111
|
+
$colorName: map.get($semanticColor, "name");
|
|
112
|
+
&.is-#{$colorName} {
|
|
113
|
+
--#{variables.$prefix}input-color-fore: var(
|
|
114
|
+
--#{variables.$prefix}color-#{$colorName}-input-fore
|
|
115
|
+
);
|
|
116
|
+
--#{variables.$prefix}input-color-back: var(
|
|
117
|
+
--#{variables.$prefix}color-#{$colorName}-input-back
|
|
118
|
+
);
|
|
119
|
+
--#{variables.$prefix}input-color-border: var(
|
|
120
|
+
--#{variables.$prefix}color-#{$colorName}-input-border
|
|
121
|
+
);
|
|
122
|
+
--#{variables.$prefix}input-color-placeholder: var(
|
|
123
|
+
--#{variables.$prefix}color-#{$colorName}-input-placeholder
|
|
124
|
+
);
|
|
125
|
+
|
|
126
|
+
--#{variables.$prefix}input-focus-color-back: var(
|
|
127
|
+
--#{variables.$prefix}color-#{$colorName}-input-focus-back
|
|
128
|
+
);
|
|
129
|
+
--#{variables.$prefix}input-focus-color-border: var(
|
|
130
|
+
--#{variables.$prefix}color-#{$colorName}-input-focus-border
|
|
131
|
+
);
|
|
132
|
+
--#{variables.$prefix}input-disabled-color-back: var(
|
|
133
|
+
--#{variables.$prefix}color-#{$colorName}-input-disabled-back
|
|
134
|
+
);
|
|
135
|
+
--#{variables.$prefix}input-disabled-color-border: var(
|
|
136
|
+
--#{variables.$prefix}color-#{$colorName}-input-disabled-border
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
5
143
|
.input-checkbox {
|
|
6
144
|
appearance: none;
|
|
7
145
|
border-radius: 25%;
|
|
@@ -223,75 +361,9 @@
|
|
|
223
361
|
}
|
|
224
362
|
}
|
|
225
363
|
|
|
226
|
-
.input {
|
|
227
|
-
@include
|
|
228
|
-
|
|
229
|
-
border-color: var(--#{variables.$prefix}color-default-border);
|
|
230
|
-
border-radius: var(--#{variables.$prefix}border-radius-medium);
|
|
231
|
-
border-style: solid;
|
|
232
|
-
border-width: var(--#{variables.$prefix}border-width-medium);
|
|
233
|
-
padding: 0.5rem;
|
|
234
|
-
@each $borderRadius in variables.$borderRadiuses {
|
|
235
|
-
$name: map.get($borderRadius, "name");
|
|
236
|
-
&.is-border-radius-#{$name} {
|
|
237
|
-
border-radius: var(--#{variables.$prefix}border-radius-#{$name});
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
@each $borderWidth in variables.$borderWidths {
|
|
241
|
-
$name: map.get($borderWidth, "name");
|
|
242
|
-
&.is-border-width-#{$name} {
|
|
243
|
-
border-width: var(--#{variables.$prefix}border-radius-#{$name});
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
&::placeholder {
|
|
247
|
-
color: var(--#{variables.$prefix}color-default-placeholder);
|
|
248
|
-
}
|
|
249
|
-
&:focus,
|
|
250
|
-
&.is-focus,
|
|
251
|
-
&.is-focused {
|
|
252
|
-
outline: none;
|
|
253
|
-
background-color: var(--#{variables.$prefix}color-default-focus-back);
|
|
254
|
-
border-color: var(--#{variables.$prefix}color-default-focus-border);
|
|
255
|
-
}
|
|
256
|
-
&[disabled],
|
|
257
|
-
fieldset[disabled],
|
|
258
|
-
&.is-disabled {
|
|
259
|
-
background-color: var(--#{variables.$prefix}color-default-disabled-back);
|
|
260
|
-
border-color: var(--#{variables.$prefix}color-default-disabled-border);
|
|
261
|
-
}
|
|
262
|
-
@if (not variables.$is-skelton) {
|
|
263
|
-
@each $color in variables.$colors {
|
|
264
|
-
$colorName: map.get($color, "name");
|
|
265
|
-
&.is-#{$colorName} {
|
|
266
|
-
background-color: var(--#{variables.$prefix}color-#{$colorName}-back);
|
|
267
|
-
border-color: var(--#{variables.$prefix}color-#{$colorName}-border);
|
|
268
|
-
color: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
269
|
-
&::placeholder {
|
|
270
|
-
color: var(--#{variables.$prefix}color-#{$colorName}-placeholder);
|
|
271
|
-
}
|
|
272
|
-
&:focus,
|
|
273
|
-
&.is-focus,
|
|
274
|
-
&.is-focused {
|
|
275
|
-
background-color: var(
|
|
276
|
-
--#{variables.$prefix}color-#{$colorName}-focus-back
|
|
277
|
-
);
|
|
278
|
-
border-color: var(
|
|
279
|
-
--#{variables.$prefix}color-#{$colorName}-focus-border
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
&[disabled],
|
|
283
|
-
fieldset[disabled],
|
|
284
|
-
&.is-disabled {
|
|
285
|
-
background-color: var(
|
|
286
|
-
--#{variables.$prefix}color-#{$colorName}-disabled-back
|
|
287
|
-
);
|
|
288
|
-
border-color: var(
|
|
289
|
-
--#{variables.$prefix}color-#{$colorName}-disabled-border
|
|
290
|
-
);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
364
|
+
:where(.input) {
|
|
365
|
+
@include input-base();
|
|
366
|
+
|
|
295
367
|
&[type="checkbox"] {
|
|
296
368
|
@extend .input-checkbox;
|
|
297
369
|
}
|
|
@@ -2,15 +2,63 @@
|
|
|
2
2
|
@use "../variables/index.scss" as variables;
|
|
3
3
|
@use "../mixins/index.scss" as mixins;
|
|
4
4
|
|
|
5
|
-
.label {
|
|
5
|
+
:where(.label) {
|
|
6
|
+
--#{variables.$prefix}label-color-fore: var(
|
|
7
|
+
--#{variables.$prefix}color-default-label-fore,
|
|
8
|
+
var(--#{variables.$prefix}color-default-fore)
|
|
9
|
+
);
|
|
10
|
+
--#{variables.$prefix}label-color-selection-fore: var(
|
|
11
|
+
--#{variables.$prefix}color-default-label-selection-fore,
|
|
12
|
+
var(--#{variables.$prefix}color-default-selection-fore)
|
|
13
|
+
);
|
|
14
|
+
--#{variables.$prefix}label-color-selection-back: var(
|
|
15
|
+
--#{variables.$prefix}color-default-label-selection-back,
|
|
16
|
+
var(--#{variables.$prefix}color-default-selection-back)
|
|
17
|
+
);
|
|
18
|
+
|
|
6
19
|
@include mixins.element();
|
|
7
20
|
font-weight: var(--#{variables.$prefix}font-weight-semibold);
|
|
8
|
-
color: var(--#{variables.$prefix}color-
|
|
21
|
+
color: var(--#{variables.$prefix}label-color-fore);
|
|
22
|
+
|
|
23
|
+
&::selection {
|
|
24
|
+
color: var(--#{variables.$prefix}label-color-selection-fore);
|
|
25
|
+
background-color: var(--#{variables.$prefix}label-color-selection-back);
|
|
26
|
+
}
|
|
27
|
+
|
|
9
28
|
@if (not variables.$is-skelton) {
|
|
10
29
|
@each $color in variables.$colors {
|
|
11
30
|
$colorName: map.get($color, "name");
|
|
12
31
|
&.is-#{$colorName} {
|
|
13
|
-
|
|
32
|
+
--#{variables.$prefix}label-color-fore: var(
|
|
33
|
+
--#{variables.$prefix}color-#{$colorName}-label-fore,
|
|
34
|
+
var(--#{variables.$prefix}color-#{$colorName}-fore)
|
|
35
|
+
);
|
|
36
|
+
--#{variables.$prefix}label-color-selection-fore: var(
|
|
37
|
+
--#{variables.$prefix}color-#{$colorName}-label-selection-fore,
|
|
38
|
+
var(--#{variables.$prefix}color-#{$colorName}-selection-fore)
|
|
39
|
+
);
|
|
40
|
+
--#{variables.$prefix}label-color-selection-back: var(
|
|
41
|
+
--#{variables.$prefix}color-#{$colorName}-label-selection-back,
|
|
42
|
+
var(--#{variables.$prefix}color-#{$colorName}-selection-back)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@each $semanticColor in variables.$semanticColors {
|
|
48
|
+
$colorName: map.get($semanticColor, "name");
|
|
49
|
+
&.is-#{$colorName} {
|
|
50
|
+
--#{variables.$prefix}label-color-fore: var(
|
|
51
|
+
--#{variables.$prefix}color-#{$colorName}-label-fore,
|
|
52
|
+
var(--#{variables.$prefix}color-#{$colorName}-fore)
|
|
53
|
+
);
|
|
54
|
+
--#{variables.$prefix}label-color-selection-fore: var(
|
|
55
|
+
--#{variables.$prefix}color-#{$colorName}-label-selection-fore,
|
|
56
|
+
var(--#{variables.$prefix}color-#{$colorName}-selection-fore)
|
|
57
|
+
);
|
|
58
|
+
--#{variables.$prefix}label-color-selection-back: var(
|
|
59
|
+
--#{variables.$prefix}color-#{$colorName}-label-selection-back,
|
|
60
|
+
var(--#{variables.$prefix}color-#{$colorName}-selection-back)
|
|
61
|
+
);
|
|
14
62
|
}
|
|
15
63
|
}
|
|
16
64
|
}
|