noctemyth 0.0.36 → 0.2.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.
@@ -2,85 +2,7 @@
2
2
  @use "../variables/index.scss" as variables;
3
3
  @use "../mixins/index.scss" as mixins;
4
4
 
5
- .input {
6
- @include mixins.element();
7
- background-color: var(--#{variables.$prefix}color-default-back);
8
- border-color: var(--#{variables.$prefix}color-default-border);
9
- border-radius: var(--#{variables.$prefix}border-radius-medium);
10
- border-style: solid;
11
- border-width: var(--#{variables.$prefix}border-width-medium);
12
- padding: 0.5rem;
13
- @each $borderRadius in variables.$borderRadiuses {
14
- $name: map.get($borderRadius, "name");
15
- &.is-border-radius-#{$name} {
16
- border-radius: var(--#{variables.$prefix}border-radius-#{$name});
17
- }
18
- }
19
- @each $borderWidth in variables.$borderWidths {
20
- $name: map.get($borderWidth, "name");
21
- &.is-border-width-#{$name} {
22
- border-width: var(--#{variables.$prefix}border-radius-#{$name});
23
- }
24
- }
25
-
26
- &::placeholder {
27
- color: var(--#{variables.$prefix}color-default-placeholder);
28
- }
29
- &:focus,
30
- &.is-focus,
31
- &.is-focused {
32
- outline: none;
33
- background-color: var(--#{variables.$prefix}color-default-focus-back);
34
- border-color: var(--#{variables.$prefix}color-default-focus-border);
35
- }
36
- &[disabled],
37
- fieldset[disabled],
38
- &.is-disabled {
39
- background-color: var(--#{variables.$prefix}color-default-disabled-back);
40
- border-color: var(--#{variables.$prefix}color-default-disabled-border);
41
- }
42
-
43
- @if (not variables.$is-skelton) {
44
- @each $color in variables.$colors {
45
- $colorName: map.get($color, "name");
46
- &.is-#{$colorName} {
47
- background-color: var(--#{variables.$prefix}color-#{$colorName}-back);
48
- border-color: var(--#{variables.$prefix}color-#{$colorName}-border);
49
- color: var(--#{variables.$prefix}color-#{$colorName}-fore);
50
- &::placeholder {
51
- color: var(--#{variables.$prefix}color-#{$colorName}-placeholder);
52
- }
53
- &:focus,
54
- &.is-focus,
55
- &.is-focused {
56
- background-color: var(
57
- --#{variables.$prefix}color-#{$colorName}-focus-back
58
- );
59
- border-color: var(
60
- --#{variables.$prefix}color-#{$colorName}-focus-border
61
- );
62
- }
63
- &[disabled],
64
- fieldset[disabled],
65
- &.is-disabled {
66
- background-color: var(
67
- --#{variables.$prefix}color-#{$colorName}-disabled-back
68
- );
69
- border-color: var(
70
- --#{variables.$prefix}color-#{$colorName}-disabled-border
71
- );
72
- }
73
- }
74
- }
75
- }
76
- }
77
-
78
- .input-text {
79
- @extend .input;
80
- }
81
-
82
5
  .input-checkbox {
83
- @extend .input;
84
6
  appearance: none;
85
7
  border-radius: 25%;
86
8
  cursor: pointer;
@@ -167,7 +89,6 @@
167
89
  }
168
90
 
169
91
  .input-radio {
170
- @extend .input;
171
92
  appearance: none;
172
93
  border-radius: 50%;
173
94
  cursor: pointer;
@@ -258,13 +179,11 @@
258
179
  }
259
180
 
260
181
  .input-color {
261
- @extend .input;
262
182
  cursor: pointer;
263
183
  height: 2.5rem;
264
184
  }
265
185
 
266
186
  .input-range {
267
- @extend .input;
268
187
  appearance: none;
269
188
  cursor: pointer;
270
189
  border-radius: var(--#{variables.$prefix}border-radius-pill);
@@ -304,35 +223,94 @@
304
223
  }
305
224
  }
306
225
 
307
- .input[type="text"],
308
- .input[type="email"],
309
- .input[type="number"],
310
- .input[type="password"] {
311
- @extend .input-text;
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
+ }
295
+ &[type="checkbox"] {
296
+ @extend .input-checkbox;
297
+ }
298
+ &[type="radio"] {
299
+ @extend .input-radio;
300
+ }
301
+ &[type="color"] {
302
+ @extend .input-color;
303
+ }
304
+ &[type="range"] {
305
+ @extend .input-range;
306
+ }
312
307
  }
313
308
 
314
309
  textarea {
315
310
  &.input {
316
- @extend .input-text;
317
311
  min-height: min-content;
318
312
  max-width: 100%;
319
313
  width: 100%;
320
314
  field-sizing: content;
321
315
  }
322
316
  }
323
-
324
- .input[type="checkbox"] {
325
- @extend .input-checkbox;
326
- }
327
-
328
- .input[type="radio"] {
329
- @extend .input-radio;
330
- }
331
-
332
- .input[type="color"] {
333
- @extend .input-color;
334
- }
335
-
336
- .input[type="range"] {
337
- @extend .input-range;
338
- }
@@ -19,22 +19,12 @@
19
19
  @if ($i < 10) {
20
20
  $lightness-offset: (10 - $i) * variables.$color-lightness-offset-darker;
21
21
  $lightness: variables.$color-lightness-50 + $lightness-offset;
22
- @if ($lightness > 100) {
23
- $lightness: 100;
24
- } @else if ($i < 0) {
25
- $lightness: 0;
26
- }
27
22
  $chroma-offset: (10 - $i) *
28
23
  variables.$color-chroma-colorful-offset-darker;
29
24
  $chroma: $chroma + $chroma-offset;
30
25
  } @else if ($i > 10) {
31
26
  $lightness-offset: ($i - 10) * variables.$color-lightness-offset-lighter;
32
27
  $lightness: variables.$color-lightness-50 + $lightness-offset;
33
- @if ($lightness > 100) {
34
- $lightness: 100;
35
- } @else if ($i < 0) {
36
- $lightness: 0;
37
- }
38
28
  $chroma-offset: ($i - 10) *
39
29
  variables.$color-chroma-colorful-offset-lighter;
40
30
  $chroma: $chroma + $chroma-offset;
@@ -583,6 +573,7 @@
583
573
  }
584
574
 
585
575
  :root {
576
+ color-scheme: light dark;
586
577
  @each $color in variables.$colors {
587
578
  $name: map.get($color, "name");
588
579
  @if ($name == "gray") {
@@ -591,8 +582,6 @@
591
582
  @include setColorVariables($color);
592
583
  }
593
584
  }
594
-
595
- @include setColorLight();
596
585
  }
597
586
 
598
587
  @include mixins.setCssVariableColorScheme("light") {
@@ -4,8 +4,8 @@
4
4
  @use "../functions/index.scss" as functions;
5
5
 
6
6
  .columns {
7
- --#{variables.$prefix}gutter-x: 0;
8
- --#{variables.$prefix}gutter-y: 0;
7
+ --#{variables.$prefix}gutter-x: 0rem;
8
+ --#{variables.$prefix}gutter-y: 0rem;
9
9
  @include mixins.element();
10
10
  display: flex;
11
11
  flex-direction: row;
@@ -3,8 +3,8 @@
3
3
  @use "../mixins/index.scss" as mixins;
4
4
 
5
5
  .container {
6
- --#{variables.$prefix}gutter-x: 0;
7
- --#{variables.$prefix}gutter-y: 0;
6
+ --#{variables.$prefix}gutter-x: 0rem;
7
+ --#{variables.$prefix}gutter-y: 0rem;
8
8
  @include mixins.element();
9
9
  padding-top: calc(var(--#{variables.$prefix}gutter-y) * 0.5);
10
10
  padding-bottom: calc(var(--#{variables.$prefix}gutter-y) * 0.5);
@@ -9,8 +9,10 @@
9
9
  background-image: linear-gradient(
10
10
  135deg,
11
11
  var(--#{variables.$prefix}color-red-#{$numStr}),
12
+ var(--#{variables.$prefix}color-coral-#{$numStr}),
12
13
  var(--#{variables.$prefix}color-orange-#{$numStr}),
13
14
  var(--#{variables.$prefix}color-yellow-#{$numStr}),
15
+ var(--#{variables.$prefix}color-lime-#{$numStr}),
14
16
  var(--#{variables.$prefix}color-green-#{$numStr}),
15
17
  var(--#{variables.$prefix}color-cyan-#{$numStr}),
16
18
  var(--#{variables.$prefix}color-blue-#{$numStr}),
@@ -28,8 +30,10 @@
28
30
  background-image: linear-gradient(
29
31
  135deg,
30
32
  var(--#{variables.$prefix}color-red-#{$numStr}),
33
+ var(--#{variables.$prefix}color-coral-#{$numStr}),
31
34
  var(--#{variables.$prefix}color-orange-#{$numStr}),
32
35
  var(--#{variables.$prefix}color-yellow-#{$numStr}),
36
+ var(--#{variables.$prefix}color-lime-#{$numStr}),
33
37
  var(--#{variables.$prefix}color-green-#{$numStr}),
34
38
  var(--#{variables.$prefix}color-cyan-#{$numStr}),
35
39
  var(--#{variables.$prefix}color-blue-#{$numStr}),
@@ -64,10 +68,14 @@
64
68
  }
65
69
 
66
70
  @mixin highlighter($colorName, $numStr) {
67
- background: linear-gradient(
68
- transparent 66.66%,
69
- var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
70
- ) !important;
71
+ @if ($colorName == "rainbow") {
72
+ // not available
73
+ } @else {
74
+ background: linear-gradient(
75
+ transparent 66.66%,
76
+ var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
77
+ ) !important;
78
+ }
71
79
  }
72
80
 
73
81
  @mixin colorUtilities($colorScheme: "") {
@@ -286,34 +294,9 @@
286
294
  }
287
295
  //#endregion backcolor
288
296
 
289
- // bordercolor is not available
297
+ // NOTE: bordercolor is not available
290
298
 
291
- // highlighter is not available
292
- .highlighter#{$derived}-rainbow-#{$numStr} {
293
- @include highlighter("rainbow", $numStr);
294
- }
295
- .highlighter#{$derived}-hover-rainbow-#{$numStr} {
296
- &:hover {
297
- @include highlighter("rainbow", $numStr);
298
- }
299
- }
300
- .highlighter#{$derived}-rainbow-focus-#{$numStr} {
301
- &:focus {
302
- @include highlighter("rainbow", $numStr);
303
- }
304
- }
305
- .highlighter#{$derived}-rainbow-active-#{$numStr} {
306
- &:active {
307
- @include highlighter("rainbow", $numStr);
308
- }
309
- }
310
- .highlighter#{$derived}-rainbow-disabled-#{$numStr} {
311
- &[disabled],
312
- fieldset[disabled] {
313
- @include highlighter("rainbow", $numStr);
314
- }
315
- }
316
- //#endregion highlighter
299
+ // NOTE: highlighter is not available
317
300
  }
318
301
  //#endregion rainbow
319
302
  }
@@ -17,7 +17,8 @@ $color-chroma-colorful-offset-darker: 0 !default;
17
17
 
18
18
  $color-hue-gray: 277 !default;
19
19
  $color-hue-red: 17 !default;
20
- $color-hue-orange: 57 !default;
20
+ $color-hue-coral: 57 !default;
21
+ $color-hue-orange: 77 !default;
21
22
  $color-hue-yellow: 107 !default;
22
23
  $color-hue-lime: 127 !default;
23
24
  $color-hue-green: 157 !default;
@@ -1334,6 +1335,10 @@ $colors: (
1334
1335
  "name": "red",
1335
1336
  "hue": $color-hue-red,
1336
1337
  ),
1338
+ (
1339
+ "name": "coral",
1340
+ "hue": $color-hue-coral,
1341
+ ),
1337
1342
  (
1338
1343
  "name": "orange",
1339
1344
  "hue": $color-hue-orange,