noctemyth 0.2.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.
Files changed (80) hide show
  1. package/dist/css/noctemyth-skelton.css +3171 -8838
  2. package/dist/css/noctemyth-skelton.css.map +1 -1
  3. package/dist/css/noctemyth-skelton.min.css +3171 -8838
  4. package/dist/css/noctemyth-skelton.min.css.map +1 -1
  5. package/dist/css/noctemyth-utilities.css +55988 -77487
  6. package/dist/css/noctemyth-utilities.css.map +1 -1
  7. package/dist/css/noctemyth-utilities.min.css +55988 -77487
  8. package/dist/css/noctemyth-utilities.min.css.map +1 -1
  9. package/dist/css/noctemyth.css +26697 -38194
  10. package/dist/css/noctemyth.css.map +1 -1
  11. package/dist/css/noctemyth.min.css +5866 -22994
  12. package/dist/css/noctemyth.min.css.map +1 -1
  13. package/package.json +8 -8
  14. package/src/animations/fade.scss +2 -2
  15. package/src/backgrounds/dot.scss +28 -20
  16. package/src/backgrounds/gingham.scss +22 -21
  17. package/src/backgrounds/rhombus.scss +45 -22
  18. package/src/backgrounds/stripe.scss +19 -14
  19. package/src/backgrounds/zigzag.scss +34 -25
  20. package/src/base/accessibility.scss +68 -0
  21. package/src/base/dub.scss +34 -4
  22. package/src/base/element.scss +1 -1
  23. package/src/base/index.scss +2 -0
  24. package/src/base/normalize.scss +0 -8
  25. package/src/base/root.scss +25 -0
  26. package/src/components/accordion.scss +183 -90
  27. package/src/components/aside.scss +7 -0
  28. package/src/components/badge.scss +170 -64
  29. package/src/components/blockquote.scss +52 -27
  30. package/src/components/breadcrumbs.scss +46 -16
  31. package/src/components/button.scss +177 -88
  32. package/src/components/card.scss +147 -48
  33. package/src/components/description-list.scss +46 -0
  34. package/src/components/dialogue.scss +194 -143
  35. package/src/components/div.scss +1 -1
  36. package/src/components/figure.scss +173 -0
  37. package/src/components/footer.scss +20 -6
  38. package/src/components/hamburger.scss +77 -51
  39. package/src/components/header.scss +42 -6
  40. package/src/components/heading.scss +6 -7
  41. package/src/components/image.scss +1 -1
  42. package/src/components/index.scss +3 -0
  43. package/src/components/input.scss +110 -69
  44. package/src/components/label.scss +34 -4
  45. package/src/components/link.scss +56 -12
  46. package/src/components/list.scss +39 -9
  47. package/src/components/loader.scss +10 -8
  48. package/src/components/main.scss +1 -1
  49. package/src/components/message.scss +100 -24
  50. package/src/components/modal.scss +18 -8
  51. package/src/components/nav.scss +600 -280
  52. package/src/components/paragraph.scss +1 -2
  53. package/src/components/progress.scss +42 -16
  54. package/src/components/section.scss +1 -1
  55. package/src/components/span.scss +1 -1
  56. package/src/css-variables/animation.scss +1 -1
  57. package/src/css-variables/border.scss +1 -1
  58. package/src/css-variables/color.scss +757 -468
  59. package/src/css-variables/components/dialogue.scss +2 -2
  60. package/src/css-variables/components/header.scss +1 -0
  61. package/src/css-variables/index.scss +1 -0
  62. package/src/css-variables/layout.scss +11 -0
  63. package/src/css-variables/miscellaneous.scss +4 -4
  64. package/src/css-variables/typography.scss +1 -1
  65. package/src/functions/color.scss +13 -0
  66. package/src/functions/index.scss +1 -0
  67. package/src/functions/string.scss +12 -0
  68. package/src/layouts/centering.scss +1 -1
  69. package/src/layouts/columns.scss +57 -51
  70. package/src/layouts/container.scss +33 -31
  71. package/src/mixins/color.scss +0 -32
  72. package/src/mixins/element.scss +2 -2
  73. package/src/mixins/responsive.scss +12 -11
  74. package/src/utilities/border.scss +4 -0
  75. package/src/utilities/color.scss +112 -6
  76. package/src/variables/color.scss +1169 -1084
  77. package/src/variables/components/dialogue.scss +2 -2
  78. package/src/variables/components/header.scss +1 -0
  79. package/src/variables/layout.scss +13 -11
  80. package/src/variables/miscellaneous.scss +1 -3
@@ -2,19 +2,33 @@
2
2
  @use "../variables/index.scss" as variables;
3
3
  @use "../mixins/index.scss" as mixins;
4
4
 
5
- .footer {
5
+ :where(.footer) {
6
+ --#{variables.$prefix}footer-color-fore: var(
7
+ --#{variables.$prefix}color-default-footer-fore
8
+ );
9
+ --#{variables.$prefix}footer-color-back: var(
10
+ --#{variables.$prefix}color-default-footer-back
11
+ );
12
+
6
13
  @include mixins.element();
7
- background-color: var(--#{variables.$prefix}color-default-footer-back);
8
- color: var(--#{variables.$prefix}color-default-footer-fore);
14
+
15
+ background-color: var(--#{variables.$prefix}footer-color-back);
16
+ color: var(--#{variables.$prefix}footer-color-fore);
9
17
  padding: 2rem 0;
10
18
  bottom: 0;
11
19
 
12
20
  @if (not variables.$is-skelton) {
13
- @each $color in variables.$colors {
21
+ @each $color in variables.$allColors {
14
22
  $colorName: map.get($color, "name");
15
23
  &.is-#{$colorName} {
16
- background-color: var(--#{variables.$prefix}color-#{$colorName}-footer-back);
17
- color: var(--#{variables.$prefix}color-#{$colorName}-footer-fore);
24
+ --#{variables.$prefix}footer-color-fore: var(
25
+ --#{variables.$prefix}color-#{$colorName}-footer-fore,
26
+ var(--#{variables.$prefix}color-#{$colorName}-fore)
27
+ );
28
+ --#{variables.$prefix}footer-color-back: var(
29
+ --#{variables.$prefix}color-#{$colorName}-footer-back,
30
+ var(--#{variables.$prefix}color-#{$colorName}-back)
31
+ );
18
32
  }
19
33
  }
20
34
  }
@@ -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
- $hamburger-size: 3.5rem;
5
- $hamburger-line-height: 0.2rem;
6
- $hamburger-line-color: var(--#{variables.$prefix}color-default-border);
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
- .hamburger {
9
- color: var(--#{variables.$prefix}color-default-fore);
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: $hamburger-size;
23
+ height: var(--#{variables.$prefix}hamburger-size);
14
24
  position: relative;
15
25
  touch-action: manipulation;
16
26
  user-select: none;
17
- width: $hamburger-size;
27
+ width: var(--#{variables.$prefix}hamburger-size);
18
28
  .crown,
19
29
  .upperpatty,
20
30
  .club,
@@ -33,64 +43,68 @@ $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: $hamburger-size;
46
+ width: var(--#{variables.$prefix}hamburger-size);
37
47
  }
38
48
  .upperpatty {
39
- animation: hamburger-upperpatty .75s forwards;
40
- background-color: $hamburger-line-color;
41
- height: $hamburger-line-height;
42
- top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
43
- width: calc(#{$hamburger-size} / 5 * 3);
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: $hamburger-line-color;
47
- height: $hamburger-line-height;
48
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
49
- transition: all .25s .25s;
50
- width: calc(#{$hamburger-size} / 5 * 3);
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: $hamburger-line-color;
55
- height: $hamburger-line-height;
56
- top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size}/ 5) + 50%);
57
- width: calc(#{$hamburger-size} / 5 * 3);
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: $hamburger-size;
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
  }
79
95
 
80
96
  @if (not variables.$is-skelton) {
81
- @each $color in variables.$colors {
97
+ @each $color in variables.$allColors {
82
98
  $colorName: map.get($color, "name");
83
99
  &.is-#{$colorName} {
84
- color: var(--#{variables.$prefix}color-#{$colorName}-fore);
85
- .upperpatty {
86
- background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
87
- }
88
- .club {
89
- background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
90
- }
91
- .lowerpatty {
92
- background-color: var(--#{variables.$prefix}color-#{$colorName}-border);
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
+ );
94
108
  }
95
109
  }
96
110
  }
@@ -100,58 +114,70 @@ $hamburger-line-color: var(--#{variables.$prefix}color-default-border);
100
114
  @keyframes hamburger-upperpatty {
101
115
  0% {
102
116
  transform: rotate(45deg);
103
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
117
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
104
118
  }
105
119
  50% {
106
120
  transform: rotate(0deg);
107
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
121
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
108
122
  }
109
123
  100% {
110
124
  transform: rotate(0deg);
111
- top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
125
+ top: calc(
126
+ (-1 * var(--#{variables.$prefix}hamburger-line-height)) -
127
+ (var(--#{variables.$prefix}hamburger-size) / 5) + 50%
128
+ );
112
129
  }
113
130
  }
114
131
 
115
- @keyframes hamburger-upperpatty-is-active{
132
+ @keyframes hamburger-upperpatty-is-active {
116
133
  0% {
117
134
  transform: rotate(0deg);
118
- top: calc((-1 * #{$hamburger-line-height}) - (#{$hamburger-size} / 5) + 50%);
135
+ top: calc(
136
+ (-1 * var(--#{variables.$prefix}hamburger-line-height)) -
137
+ (var(--#{variables.$prefix}hamburger-size) / 5) + 50%
138
+ );
119
139
  }
120
140
  50% {
121
141
  transform: rotate(0deg);
122
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
142
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
123
143
  }
124
- 100%{
144
+ 100% {
125
145
  transform: rotate(45deg);
126
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
146
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
127
147
  }
128
148
  }
129
149
  @keyframes hamburger-lowerpatty {
130
150
  0% {
131
151
  transform: rotate(-45deg);
132
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
152
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
133
153
  }
134
154
  50% {
135
155
  transform: rotate(0deg);
136
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
156
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
137
157
  }
138
158
  100% {
139
159
  transform: rotate(0deg);
140
- top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size} / 5) + 50%);
160
+ top: calc(
161
+ (-1 * var(--#{variables.$prefix}hamburger-line-height)) +
162
+ (var(--#{variables.$prefix}hamburger-size) / 5) + 50%
163
+ );
141
164
  }
142
165
  }
143
166
  @keyframes hamburger-lowerpatty-is-active {
144
167
  0% {
145
168
  transform: rotate(0deg);
146
- top: calc((-1 * #{$hamburger-line-height}) + (#{$hamburger-size} / 5) + 50%);
169
+ top: calc(
170
+ (-1 * var(--#{variables.$prefix}hamburger-line-height)) +
171
+ (var(--#{variables.$prefix}hamburger-size) / 5) + 50%
172
+ );
147
173
  }
148
174
  50% {
149
175
  transform: rotate(0deg);
150
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
176
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
151
177
  }
152
178
  100% {
153
179
  transform: rotate(-45deg);
154
- top: calc((-1 * #{$hamburger-line-height}) + 50%);
180
+ top: calc((-1 * var(--#{variables.$prefix}hamburger-line-height)) + 50%);
155
181
  }
156
182
  }
157
183
  //#endregion keyframes
@@ -2,12 +2,26 @@
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-default-header-shadow);
22
+ box-shadow: 0 0 0.5rem var(--#{variables.$prefix}header-color-shadow);
10
23
  backdrop-filter: var(--#{variables.$prefix}header-backdrop-filter);
24
+ min-height: var(--#{variables.$prefix}header-min-height);
11
25
 
12
26
  &.is-sticky {
13
27
  position: sticky;
@@ -26,12 +40,34 @@
26
40
  }
27
41
 
28
42
  @if (not variables.$is-skelton) {
29
- @each $color in variables.$colors {
43
+ @each $color in variables.$allColors {
30
44
  $colorName: map.get($color, "name");
31
45
  &.is-#{$colorName} {
32
- background-color: oklch(var(--#{variables.$prefix}color-#{$colorName}-header-back-oklch) / 0.5);
33
- box-shadow: 0 0 0.5rem var(--#{variables.$prefix}color-#{$colorName}-header-shadow);
34
- color: var(--#{variables.$prefix}color-#{$colorName}-header-fore);
46
+ --#{variables.$prefix}header-color-fore: var(
47
+ --#{variables.$prefix}color-#{$colorName}-header-fore,
48
+ --#{variables.$prefix}color-#{$colorName}-fore,
49
+ );
50
+ --#{variables.$prefix}header-color-back: var(
51
+ --#{variables.$prefix}color-#{$colorName}-header-back,
52
+ --#{variables.$prefix}color-#{$colorName}-back,
53
+ );
54
+ --#{variables.$prefix}header-color-shadow: var(
55
+ --#{variables.$prefix}color-#{$colorName}-header-shadow,
56
+ --#{variables.$prefix}color-#{$colorName}-shadow,
57
+ );
58
+
59
+ background-color: oklch(
60
+ from var(--#{variables.$prefix}header-color-back)
61
+ l
62
+ c
63
+ h /
64
+ 0.5
65
+ );
66
+ box-shadow: 0
67
+ 0
68
+ 0.5rem
69
+ var(--#{variables.$prefix}header-color-shadow);
70
+ color: var(--#{variables.$prefix}header-color-fore);
35
71
  }
36
72
  }
37
73
  }
@@ -6,35 +6,34 @@
6
6
  display: block;
7
7
  font-family: var(--#{variables.$prefix}font-family-heading);
8
8
  font-weight: var(--#{variables.$prefix}font-weight-semibold);
9
- margin: 0;
10
9
  }
11
10
 
12
- .heading-1 {
11
+ :where(.heading-1) {
13
12
  @include heading();
14
13
  font-size: var(--#{variables.$prefix}font-size-xxxlarge)
15
14
  }
16
15
 
17
- .heading-2 {
16
+ :where(.heading-2) {
18
17
  @include heading();
19
18
  font-size: var(--#{variables.$prefix}font-size-xxlarge)
20
19
  }
21
20
 
22
- .heading-3 {
21
+ :where(.heading-3) {
23
22
  @include heading();
24
23
  font-size: var(--#{variables.$prefix}font-size-xlarge)
25
24
  }
26
25
 
27
- .heading-4 {
26
+ :where(.heading-4) {
28
27
  @include heading();
29
28
  font-size: var(--#{variables.$prefix}font-size-large)
30
29
  }
31
30
 
32
- .heading-5 {
31
+ :where(.heading-5) {
33
32
  @include heading();
34
33
  font-size: var(--#{variables.$prefix}font-size-medium)
35
34
  }
36
35
 
37
- .heading-6 {
36
+ :where(.heading-6) {
38
37
  @include heading();
39
38
  font-size: var(--#{variables.$prefix}font-size-normal)
40
39
  }
@@ -6,5 +6,5 @@
6
6
  vertical-align: middle;
7
7
  width: 100%;
8
8
  height: auto;
9
- margin: 0;
9
+ user-select: none;
10
10
  }
@@ -1,4 +1,5 @@
1
1
  @forward "./accordion.scss";
2
+ @forward "./aside.scss";
2
3
  @forward "./badge.scss";
3
4
  @forward "./blockquote.scss";
4
5
  @forward "./breadcrumbs.scss";
@@ -6,6 +7,8 @@
6
7
  @forward "./card.scss";
7
8
  @forward "./dialogue.scss";
8
9
  @forward "./div.scss";
10
+ @forward "./description-list.scss";
11
+ @forward "./figure.scss";
9
12
  @forward "./footer.scss";
10
13
  @forward "./hamburger.scss";
11
14
  @forward "./header.scss";
@@ -2,6 +2,113 @@
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.$allColors {
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
+ }
111
+
5
112
  .input-checkbox {
6
113
  appearance: none;
7
114
  border-radius: 25%;
@@ -223,75 +330,9 @@
223
330
  }
224
331
  }
225
332
 
226
- .input {
227
- @include mixins.element();
228
- background-color: var(--#{variables.$prefix}color-default-back);
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
- }
333
+ :where(.input) {
334
+ @include input-base();
335
+
295
336
  &[type="checkbox"] {
296
337
  @extend .input-checkbox;
297
338
  }
@@ -2,15 +2,45 @@
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-default-label-fore);
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
- @each $color in variables.$colors {
29
+ @each $color in variables.$allColors {
11
30
  $colorName: map.get($color, "name");
12
31
  &.is-#{$colorName} {
13
- color: var(--#{variables.$prefix}color-#{$colorName}-label-fore);
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
+ );
14
44
  }
15
45
  }
16
46
  }