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.
Files changed (67) hide show
  1. package/dist/css/noctemyth-skelton.css +1398 -4855
  2. package/dist/css/noctemyth-skelton.css.map +1 -1
  3. package/dist/css/noctemyth-skelton.min.css +1398 -4855
  4. package/dist/css/noctemyth-skelton.min.css.map +1 -1
  5. package/dist/css/noctemyth-utilities.css +17534 -1
  6. package/dist/css/noctemyth-utilities.css.map +1 -1
  7. package/dist/css/noctemyth-utilities.min.css +17534 -1
  8. package/dist/css/noctemyth-utilities.min.css.map +1 -1
  9. package/dist/css/noctemyth.css +7221 -3898
  10. package/dist/css/noctemyth.css.map +1 -1
  11. package/dist/css/noctemyth.min.css +1507 -967
  12. package/dist/css/noctemyth.min.css.map +1 -1
  13. package/package.json +1 -1
  14. package/src/animations/fade.scss +2 -2
  15. package/src/backgrounds/dot.scss +5 -21
  16. package/src/backgrounds/gingham.scss +7 -23
  17. package/src/backgrounds/rhombus.scss +7 -23
  18. package/src/backgrounds/stripe.scss +5 -21
  19. package/src/backgrounds/zigzag.scss +7 -23
  20. package/src/base/accessibility.scss +68 -0
  21. package/src/base/dub.scss +19 -2
  22. package/src/base/index.scss +2 -0
  23. package/src/base/normalize.scss +0 -8
  24. package/src/base/root.scss +25 -0
  25. package/src/components/accordion.scss +6 -79
  26. package/src/components/aside.scss +7 -0
  27. package/src/components/badge.scss +68 -114
  28. package/src/components/blockquote.scss +3 -27
  29. package/src/components/breadcrumbs.scss +1 -22
  30. package/src/components/button.scss +72 -111
  31. package/src/components/card.scss +2 -60
  32. package/src/components/description-list.scss +46 -0
  33. package/src/components/dialogue.scss +55 -73
  34. package/src/components/figure.scss +173 -0
  35. package/src/components/footer.scss +5 -14
  36. package/src/components/hamburger.scss +1 -14
  37. package/src/components/header.scss +2 -32
  38. package/src/components/heading.scss +0 -1
  39. package/src/components/image.scss +0 -1
  40. package/src/components/index.scss +3 -0
  41. package/src/components/input.scss +1 -32
  42. package/src/components/label.scss +1 -19
  43. package/src/components/link.scss +6 -25
  44. package/src/components/list.scss +39 -9
  45. package/src/components/loader.scss +1 -10
  46. package/src/components/message.scss +1 -44
  47. package/src/components/modal.scss +1 -10
  48. package/src/components/nav.scss +5 -61
  49. package/src/components/paragraph.scss +0 -1
  50. package/src/components/progress.scss +2 -1
  51. package/src/css-variables/animation.scss +1 -1
  52. package/src/css-variables/border.scss +1 -1
  53. package/src/css-variables/color.scss +201 -29
  54. package/src/css-variables/components/header.scss +1 -0
  55. package/src/css-variables/index.scss +1 -0
  56. package/src/css-variables/layout.scss +11 -0
  57. package/src/css-variables/miscellaneous.scss +4 -4
  58. package/src/css-variables/typography.scss +1 -1
  59. package/src/layouts/columns.scss +56 -51
  60. package/src/layouts/container.scss +32 -30
  61. package/src/mixins/responsive.scss +12 -12
  62. package/src/utilities/border.scss +4 -0
  63. package/src/utilities/color.scss +110 -0
  64. package/src/variables/color.scss +263 -218
  65. package/src/variables/components/header.scss +1 -0
  66. package/src/variables/layout.scss +13 -11
  67. package/src/variables/miscellaneous.scss +0 -2
@@ -170,8 +170,9 @@
170
170
  );
171
171
  }
172
172
  }
173
+
173
174
  &:hover,
174
- &.is-hovered,
175
+ &.is-hover,
175
176
  &.is-hovered {
176
177
  color: var(--#{variables.$prefix}nav-menu-item-color-hover-fore);
177
178
  text-shadow:
@@ -266,6 +267,7 @@
266
267
  );
267
268
  }
268
269
  }
270
+
269
271
  &:active,
270
272
  &.is-active {
271
273
  color: var(--#{variables.$prefix}nav-menu-item-color-active-fore);
@@ -365,6 +367,7 @@
365
367
  );
366
368
  }
367
369
  }
370
+
368
371
  &[disabled],
369
372
  fieldset[disabled],
370
373
  &.is-disabled {
@@ -642,7 +645,7 @@
642
645
  }
643
646
 
644
647
  @if (not variables.$is-skelton) {
645
- @each $color in variables.$colors {
648
+ @each $color in variables.$allColors {
646
649
  $colorName: map.get($color, "name");
647
650
  &.is-#{$colorName} {
648
651
  --#{variables.$prefix}nav-color-fore: var(
@@ -700,64 +703,5 @@
700
703
  );
701
704
  }
702
705
  }
703
-
704
- @each $semanticColor in variables.$semanticColors {
705
- $colorName: map.get($semanticColor, "name");
706
- &.is-#{$colorName} {
707
- --#{variables.$prefix}nav-color-fore: var(
708
- --#{variables.$prefix}color-#{$colorName}-nav-fore,
709
- var(--#{variables.$prefix}color-#{$colorName}-fore)
710
- );
711
- --#{variables.$prefix}nav-color-back: var(
712
- --#{variables.$prefix}color-#{$colorName}-nav-back,
713
- var(--#{variables.$prefix}color-#{$colorName}-back)
714
- );
715
- --#{variables.$prefix}nav-color-border: var(
716
- --#{variables.$prefix}color-#{$colorName}-nav-border,
717
- var(--#{variables.$prefix}color-#{$colorName}-border)
718
- );
719
-
720
- --#{variables.$prefix}nav-menu-item-color-fore: var(
721
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-fore,
722
- var(--#{variables.$prefix}color-#{$colorName}-fore)
723
- );
724
- --#{variables.$prefix}nav-menu-item-color-focus-fore: var(
725
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-focus-fore,
726
- var(--#{variables.$prefix}color-#{$colorName}-focus-fore)
727
- );
728
- --#{variables.$prefix}nav-menu-item-color-hover-fore: var(
729
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-hover-fore,
730
- var(--#{variables.$prefix}color-#{$colorName}-hover-fore)
731
- );
732
- --#{variables.$prefix}nav-menu-item-color-active-fore: var(
733
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-active-fore,
734
- var(--#{variables.$prefix}color-#{$colorName}-active-fore)
735
- );
736
- --#{variables.$prefix}nav-menu-item-color-disabled-fore: var(
737
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-disabled-fore,
738
- var(--#{variables.$prefix}color-#{$colorName}-disabled-fore)
739
- );
740
- --#{variables.$prefix}nav-menu-item-color-shadow: var(
741
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-shadow,
742
- var(--#{variables.$prefix}color-#{$colorName}-shadow)
743
- );
744
- --#{variables.$prefix}nav-menu-item-color-focus-shadow: var(
745
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-focus-shadow,
746
- var(--#{variables.$prefix}color-#{$colorName}-focus-shadow)
747
- );
748
- --#{variables.$prefix}nav-menu-item-color-hover-shadow: var(
749
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-hover-shadow,
750
- var(--#{variables.$prefix}color-#{$colorName}-hover-shadow)
751
- );
752
- --#{variables.$prefix}nav-menu-item-color-active-shadow: var(
753
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-active-shadow,
754
- var(--#{variables.$prefix}color-#{$colorName}-active-shadow)
755
- );
756
- --#{variables.$prefix}nav-menu-item-color-disabled-shadow: var(
757
- --#{variables.$prefix}color-#{$colorName}-nav-menu-item-disabled-shadow,
758
- var(--#{variables.$prefix}color-#{$colorName}-disabled-shadow)
759
- );
760
- }
761
- }
762
706
  }
763
707
  }
@@ -6,7 +6,6 @@
6
6
  @include mixins.element();
7
7
  line-height: 1.5;
8
8
  display: block;
9
- margin: 0;
10
9
  margin-block: 0.5rem;
11
10
  margin-inline: 0;
12
11
  }
@@ -28,6 +28,7 @@
28
28
  color: var(--#{variables.$prefix}progress-color-fore);
29
29
  height: 1rem;
30
30
  position: relative;
31
+ vertical-align: baseline;
31
32
  &::before {
32
33
  content: "";
33
34
  position: absolute;
@@ -46,7 +47,7 @@
46
47
  }
47
48
  }
48
49
 
49
- @each $color in variables.$colors {
50
+ @each $color in variables.$allColors {
50
51
  $colorName: map.get($color, "name");
51
52
  &.is-#{$colorName} {
52
53
  --#{variables.$prefix}progress-color-fore: var(
@@ -1,6 +1,6 @@
1
1
  @use "../variables/index.scss" as variables;
2
2
 
3
- :root {
3
+ :where(:root) {
4
4
  --#{variables.$prefix}animation-speed-heavy: #{variables.$animation-speed-heavy};
5
5
  --#{variables.$prefix}animation-speed-slower: #{variables.$animation-speed-slower};
6
6
  --#{variables.$prefix}animation-speed-slow: #{variables.$animation-speed-slow};
@@ -1,7 +1,7 @@
1
1
  @use "../variables/index.scss" as variables;
2
2
  @use "sass:map";
3
3
 
4
- :root {
4
+ :where(:root) {
5
5
  @each $borderWidth in variables.$borderWidths {
6
6
  $name: map.get($borderWidth, "name");
7
7
  $value: map.get($borderWidth, "value");
@@ -14,28 +14,15 @@
14
14
  @if (string.length($p) == 1) {
15
15
  $p: "0" + $p;
16
16
  }
17
- $lightness: variables.$color-lightness-50;
18
- $chroma: variables.$color-chroma-colorful;
19
-
20
- @if ($i < 10) {
21
- $lightness-offset: (10 - $i) * variables.$color-lightness-offset-darker;
22
- $lightness: variables.$color-lightness-50 + $lightness-offset;
23
- $chroma-offset: (10 - $i) *
24
- variables.$color-chroma-colorful-offset-darker;
25
- $chroma: $chroma + $chroma-offset;
26
- } @else if ($i > 10) {
27
- $lightness-offset: ($i - 10) * variables.$color-lightness-offset-lighter;
28
- $lightness: variables.$color-lightness-50 + $lightness-offset;
29
- $chroma-offset: ($i - 10) *
30
- variables.$color-chroma-colorful-offset-lighter;
31
- $chroma: $chroma + $chroma-offset;
32
- }
17
+ $chroma: var(--#{variables.$prefix}color-chroma-colorful-#{$p});
33
18
 
34
19
  @if ($name == "default" or $name == "gray") {
35
- $chroma: variables.$color-chroma-gray;
20
+ $chroma: var(--#{variables.$prefix}color-chroma-gray);
36
21
  }
37
22
 
38
- $oklch: #{$lightness} #{$chroma} #{$hue};
23
+ $oklch: var(--#{variables.$prefix}color-lightness-#{$p})
24
+ #{$chroma}
25
+ var(--#{variables.$prefix}color-hue-#{$name});
39
26
 
40
27
  --#{variables.$prefix}color-#{$name}-#{$p}: oklch(#{$oklch});
41
28
  }
@@ -67,8 +54,12 @@
67
54
  $light: map.get($fore, "light");
68
55
  $dark: map.get($fore, "dark");
69
56
  @if ($light != null and $dark != null) {
70
- $lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
71
- $darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
57
+ $lightStr: functions.colorLightnessNumberToString(
58
+ $light + $lightnessOffset
59
+ );
60
+ $darkStr: functions.colorLightnessNumberToString(
61
+ $dark + $lightnessOffset
62
+ );
72
63
  --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-fore: light-dark(
73
64
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
74
65
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
@@ -81,8 +72,12 @@
81
72
  $light: map.get($back, "light");
82
73
  $dark: map.get($back, "dark");
83
74
  @if ($light != null and $dark != null) {
84
- $lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
85
- $darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
75
+ $lightStr: functions.colorLightnessNumberToString(
76
+ $light + $lightnessOffset
77
+ );
78
+ $darkStr: functions.colorLightnessNumberToString(
79
+ $dark + $lightnessOffset
80
+ );
86
81
  --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-back: light-dark(
87
82
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
88
83
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
@@ -95,8 +90,12 @@
95
90
  $light: map.get($border, "light");
96
91
  $dark: map.get($border, "dark");
97
92
  @if ($light != null and $dark != null) {
98
- $lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
99
- $darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
93
+ $lightStr: functions.colorLightnessNumberToString(
94
+ $light + $lightnessOffset
95
+ );
96
+ $darkStr: functions.colorLightnessNumberToString(
97
+ $dark + $lightnessOffset
98
+ );
100
99
  --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-border: light-dark(
101
100
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
102
101
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
@@ -109,8 +108,12 @@
109
108
  $light: map.get($placeholder, "light");
110
109
  $dark: map.get($placeholder, "dark");
111
110
  @if ($light != null and $dark != null) {
112
- $lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
113
- $darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
111
+ $lightStr: functions.colorLightnessNumberToString(
112
+ $light + $lightnessOffset
113
+ );
114
+ $darkStr: functions.colorLightnessNumberToString(
115
+ $dark + $lightnessOffset
116
+ );
114
117
  --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-placeholder: light-dark(
115
118
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
116
119
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
@@ -123,14 +126,57 @@
123
126
  $light: map.get($shadow, "light");
124
127
  $dark: map.get($shadow, "dark");
125
128
  @if ($light != null and $dark != null) {
126
- $lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
127
- $darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
129
+ $lightStr: functions.colorLightnessNumberToString(
130
+ $light + $lightnessOffset
131
+ );
132
+ $darkStr: functions.colorLightnessNumberToString(
133
+ $dark + $lightnessOffset
134
+ );
128
135
  --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-shadow: light-dark(
129
136
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
130
137
  var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
131
138
  );
132
139
  }
133
140
  }
141
+
142
+ $scrollbar: map.get($colorShade, "scrollbar");
143
+ @if ($scrollbar != null) {
144
+ $scrollbarThumb: map.get($scrollbar, "thumb");
145
+ @if ($scrollbarThumb != null) {
146
+ $light: map.get($scrollbarThumb, "light");
147
+ $dark: map.get($scrollbarThumb, "dark");
148
+ @if ($light != null and $dark != null) {
149
+ $lightStr: functions.colorLightnessNumberToString(
150
+ $light + $lightnessOffset
151
+ );
152
+ $darkStr: functions.colorLightnessNumberToString(
153
+ $dark + $lightnessOffset
154
+ );
155
+ --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-scrollbar-thumb: light-dark(
156
+ var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
157
+ var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
158
+ );
159
+ }
160
+ }
161
+
162
+ $scrollbarTrack: map.get($scrollbar, "track");
163
+ @if ($scrollbarTrack != null) {
164
+ $light: map.get($scrollbarTrack, "light");
165
+ $dark: map.get($scrollbarTrack, "dark");
166
+ @if ($light != null and $dark != null) {
167
+ $lightStr: functions.colorLightnessNumberToString(
168
+ $light + $lightnessOffset
169
+ );
170
+ $darkStr: functions.colorLightnessNumberToString(
171
+ $dark + $lightnessOffset
172
+ );
173
+ --#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-scrollbar-track: light-dark(
174
+ var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
175
+ var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
176
+ );
177
+ }
178
+ }
179
+ }
134
180
  }
135
181
 
136
182
  @mixin setColorShade(
@@ -379,6 +425,68 @@
379
425
  }
380
426
  //#endregion dialogue
381
427
 
428
+ //#region figure
429
+ $figure: map.get($colorShade, "figure");
430
+ @if ($figure != null) {
431
+ @include setColor(
432
+ $figure,
433
+ $lightnessOffset,
434
+ $srcColorName,
435
+ $destColorName,
436
+ $name,
437
+ "figure"
438
+ );
439
+
440
+ $figureContent: map.get($figure, "figureContent");
441
+ @if ($figureContent != null) {
442
+ @include setColor(
443
+ $figureContent,
444
+ $lightnessOffset,
445
+ $srcColorName,
446
+ $destColorName,
447
+ $name,
448
+ "figure-content"
449
+ );
450
+
451
+ $figureContentSelection: map.get($figureContent, "selection");
452
+ @if ($figureContentSelection != null) {
453
+ @include setColor(
454
+ $figureContentSelection,
455
+ $lightnessOffset,
456
+ $srcColorName,
457
+ $destColorName,
458
+ $name,
459
+ "figure-content-selection"
460
+ );
461
+ }
462
+ }
463
+
464
+ $figureCaption: map.get($figure, "figureCaption");
465
+ @if ($figureCaption != null) {
466
+ @include setColor(
467
+ $figureCaption,
468
+ $lightnessOffset,
469
+ $srcColorName,
470
+ $destColorName,
471
+ $name,
472
+ "figure-caption"
473
+ );
474
+
475
+ $figureCaptionSelection: map.get($figureCaption, "selection");
476
+ @if ($figureCaptionSelection != null) {
477
+ @include setColor(
478
+ $figureCaptionSelection,
479
+ $lightnessOffset,
480
+ $srcColorName,
481
+ $destColorName,
482
+ $name,
483
+ "figure-caption-selection"
484
+ );
485
+ }
486
+ }
487
+ }
488
+ //#endregion figure
489
+
382
490
  //#region footer
383
491
  $footer: map.get($colorShade, "footer");
384
492
  @if ($footer != null) {
@@ -657,7 +765,10 @@
657
765
  @each $semanticColor in variables.$semanticColors {
658
766
  $semanticColorName: map.get($semanticColor, "name");
659
767
  $semanticColorColorName: map.get($semanticColor, "colorName");
660
- $semanticColorLightnessOffset: map.get($semanticColor, "lightnessOffset");
768
+ $semanticColorLightnessOffset: map.get(
769
+ $semanticColor,
770
+ "lightnessOffset"
771
+ );
661
772
  $color: functions.getColorFromColors(
662
773
  variables.$colors,
663
774
  $semanticColorColorName
@@ -676,8 +787,69 @@
676
787
  }
677
788
  }
678
789
 
790
+ @mixin setColorColorfulChromaCssVariables() {
791
+ $p: "0";
792
+ @for $i from 1 through 19 {
793
+ $p: "" + ($i * 5);
794
+ @if (string.length($p) == 1) {
795
+ $p: "0" + $p;
796
+ }
797
+ $chroma: variables.$color-chroma-colorful-50;
798
+
799
+ @if ($i < 10) {
800
+ $chroma-offset: (10 - $i) *
801
+ variables.$color-chroma-colorful-offset-darker;
802
+ $chroma: variables.$color-chroma-colorful-50 + $chroma-offset;
803
+ } @else if ($i > 10) {
804
+ $chroma-offset: (10 - $i) *
805
+ variables.$color-chroma-colorful-offset-lighter;
806
+ $chroma: variables.$color-chroma-colorful-50 + $chroma-offset;
807
+ }
808
+
809
+ --#{variables.$prefix}color-chroma-colorful-#{$p}: #{$chroma};
810
+ }
811
+ }
812
+
813
+ @mixin setColorLightnessCssVariables() {
814
+ $steps: 18;
815
+ $value-step: calc(
816
+ (variables.$color-lightness-95 - variables.$color-lightness-05) / $steps
817
+ );
818
+ @for $i from 0 through $steps {
819
+ $current-label: calc(5 + ($i * 5));
820
+
821
+ $formatted-label: "#{$current-label}";
822
+
823
+ @if ($current-label < 10) {
824
+ $formatted-label: "0#{$current-label}";
825
+ }
826
+
827
+ $current-value: calc(variables.$color-lightness-05 + ($value-step * $i));
828
+
829
+ --#{variables.$prefix}color-lightness-#{$formatted-label}: #{$current-value};
830
+ }
831
+ }
832
+
679
833
  :where(:root) {
680
834
  color-scheme: light dark;
835
+
836
+ --#{variables.$prefix}color-hue-gray: #{variables.$color-hue-gray};
837
+ --#{variables.$prefix}color-hue-red: #{variables.$color-hue-red};
838
+ --#{variables.$prefix}color-hue-coral: #{variables.$color-hue-coral};
839
+ --#{variables.$prefix}color-hue-orange: #{variables.$color-hue-orange};
840
+ --#{variables.$prefix}color-hue-yellow: #{variables.$color-hue-yellow};
841
+ --#{variables.$prefix}color-hue-lime: #{variables.$color-hue-lime};
842
+ --#{variables.$prefix}color-hue-green: #{variables.$color-hue-green};
843
+ --#{variables.$prefix}color-hue-cyan: #{variables.$color-hue-cyan};
844
+ --#{variables.$prefix}color-hue-blue: #{variables.$color-hue-blue};
845
+ --#{variables.$prefix}color-hue-violet: #{variables.$color-hue-violet};
846
+ --#{variables.$prefix}color-hue-magenta: #{variables.$color-hue-magenta};
847
+
848
+ @include setColorLightnessCssVariables();
849
+
850
+ --#{variables.$prefix}color-chroma-gray: #{variables.$color-chroma-gray};
851
+ @include setColorColorfulChromaCssVariables();
852
+
681
853
  @each $color in variables.$colors {
682
854
  $name: map.get($color, "name");
683
855
  @if ($name == "gray") {
@@ -1,6 +1,7 @@
1
1
  @use "../../variables/index.scss" as variables;
2
2
 
3
3
  :root {
4
+ --#{variables.$prefix}header-min-height: #{variables.$header-min-height};
4
5
  --#{variables.$prefix}header-backdrop-filter: #{variables.$header-backdrop-filter};
5
6
  --#{variables.$prefix}header-z-index-is-sticky: #{variables.$header-z-index-is-sticky};
6
7
  --#{variables.$prefix}header-z-index-is-fixed: #{variables.$header-z-index-is-fixed};
@@ -3,5 +3,6 @@
3
3
  @forward "./border.scss";
4
4
  @forward "./color.scss";
5
5
  @forward "./components/index.scss";
6
+ @forward "./layout.scss";
6
7
  @forward "./miscellaneous.scss";
7
8
  @forward "./typography.scss";
@@ -0,0 +1,11 @@
1
+ @use "../variables/index.scss" as variables;
2
+
3
+ :where(:root) {
4
+ --#{variables.$prefix}responsive-breakpoint-xsmall: #{variables.$responsive-breakpoint-xsmall};
5
+ --#{variables.$prefix}responsive-breakpoint-small: #{variables.$responsive-breakpoint-small};
6
+ --#{variables.$prefix}responsive-breakpoint-medium: #{variables.$responsive-breakpoint-medium};
7
+ --#{variables.$prefix}responsive-breakpoint-large: #{variables.$responsive-breakpoint-large};
8
+ --#{variables.$prefix}responsive-breakpoint-xlarge: #{variables.$responsive-breakpoint-xlarge};
9
+
10
+ --#{variables.$prefix}responsive-breakpoint-max-width-offset: #{variables.$responsive-breakpoint-max-width-offset};
11
+ }
@@ -1,8 +1,8 @@
1
1
  @use "../variables/index.scss" as variables;
2
2
 
3
- :root {
4
- --#{variables.$prefix}z-index-dub: #{variables.$z-index-dub};
3
+ :where(:root) {
4
+ --#{variables.$prefix}z-index-dub: #{variables.$z-index-dub};
5
5
 
6
- --#{variables.$prefix}z-index-modal: #{variables.$z-index-modal};
7
- --#{variables.$prefix}z-index-modal-content: #{variables.$z-index-modal-content};
6
+ --#{variables.$prefix}z-index-modal: #{variables.$z-index-modal};
7
+ --#{variables.$prefix}z-index-modal-content: #{variables.$z-index-modal-content};
8
8
  }
@@ -1,6 +1,6 @@
1
1
  @use "../variables/index.scss" as variables;
2
2
 
3
- :root {
3
+ :where(:root) {
4
4
  --#{variables.$prefix}font-family-serif: #{variables.$font-family-serif};
5
5
  --#{variables.$prefix}font-family-sans-serif: #{variables.$font-family-sans-serif};
6
6
  --#{variables.$prefix}font-family-monospace: #{variables.$font-family-monospace};
@@ -4,67 +4,70 @@
4
4
  @use "../functions/index.scss" as functions;
5
5
 
6
6
  :where(.columns) {
7
- --#{variables.$prefix}gutter-x: 0rem;
8
- --#{variables.$prefix}gutter-y: 0rem;
7
+ --#{variables.$prefix}columns-gutter-x: 0rem;
8
+ --#{variables.$prefix}columns-gutter-y: 0rem;
9
9
  @include mixins.element();
10
10
  display: flex;
11
11
  flex-direction: row;
12
12
  flex-wrap: wrap;
13
- margin-top: calc(var(--#{variables.$prefix}gutter-y) * -0.5);
14
- margin-bottom: calc(var(--#{variables.$prefix}gutter-y) * -0.5);
15
- margin-right: calc(var(--#{variables.$prefix}gutter-x) * -0.5);
16
- margin-left: calc(var(--#{variables.$prefix}gutter-x) * -0.5);
17
- @for $p from 0 through 20 {
18
- $escapedQuarter: functions.strReplace(#{($p * 0.25)}, ".", "\\.");
19
- &.has-gutter-#{$escapedQuarter}rem {
20
- --#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
21
- --#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
22
- }
23
- &.has-gutter-x-#{$escapedQuarter}rem {
24
- --#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
13
+ margin-top: calc(var(--#{variables.$prefix}columns-gutter-y) * -0.5);
14
+ margin-bottom: calc(var(--#{variables.$prefix}columns-gutter-y) * -0.5);
15
+ margin-right: calc(var(--#{variables.$prefix}columns-gutter-x) * -0.5);
16
+ margin-left: calc(var(--#{variables.$prefix}columns-gutter-x) * -0.5);
17
+
18
+ @if (not variables.$is-skelton) {
19
+ @for $p from 0 through 20 {
20
+ $escapedQuarter: functions.strReplace(#{($p * 0.25)}, ".", "\\.");
21
+ &.has-gutter-#{$escapedQuarter}rem {
22
+ --#{variables.$prefix}columns-gutter-x: #{($p * 0.25rem)};
23
+ --#{variables.$prefix}columns-gutter-y: #{($p * 0.25rem)};
24
+ }
25
+ &.has-gutter-x-#{$escapedQuarter}rem {
26
+ --#{variables.$prefix}columns-gutter-x: #{($p * 0.25rem)};
27
+ }
28
+ &.has-gutter-y-#{$escapedQuarter}rem {
29
+ --#{variables.$prefix}columns-gutter-y: #{($p * 0.25rem)};
30
+ }
31
+ @include mixins.is-responsive("has-gutter", "-#{$escapedQuarter}rem") {
32
+ --#{variables.$prefix}columns-gutter-x: #{($p * 0.25rem)};
33
+ --#{variables.$prefix}columns-gutter-y: #{($p * 0.25rem)};
34
+ }
35
+ @include mixins.is-responsive("has-gutter-x", "-#{$escapedQuarter}rem") {
36
+ --#{variables.$prefix}columns-gutter-x: #{($p * 0.25rem)};
37
+ }
38
+ @include mixins.is-responsive("has-gutter-y", "-#{$escapedQuarter}rem") {
39
+ --#{variables.$prefix}columns-gutter-y: #{($p * 0.25rem)};
40
+ }
25
41
  }
26
- &.has-gutter-y-#{$escapedQuarter}rem {
27
- --#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
42
+
43
+ &.is-direction-row {
44
+ flex-direction: row;
28
45
  }
29
- @include mixins.is-responsive("has-gutter", "-#{$escapedQuarter}rem") {
30
- --#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
31
- --#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
46
+ &.is-direction-row-reverse {
47
+ flex-direction: row-reverse;
32
48
  }
33
- @include mixins.is-responsive("has-gutter-x", "-#{$escapedQuarter}rem") {
34
- --#{variables.$prefix}gutter-x: #{($p * 0.25rem)};
49
+ &.is-direction-column {
50
+ flex-direction: column;
35
51
  }
36
- @include mixins.is-responsive("has-gutter-y", "-#{$escapedQuarter}rem") {
37
- --#{variables.$prefix}gutter-y: #{($p * 0.25rem)};
52
+ &.is-direction-column-reverse {
53
+ flex-direction: column-reverse;
38
54
  }
39
- }
40
-
41
- &.is-direction-row {
42
- flex-direction: row;
43
- }
44
- &.is-direction-row-reverse {
45
- flex-direction: row-reverse;
46
- }
47
- &.is-direction-column {
48
- flex-direction: column;
49
- }
50
- &.is-direction-column-reverse {
51
- flex-direction: column-reverse;
52
- }
53
55
 
54
- @include mixins.is-responsive("is", "-direction-row") {
55
- flex-direction: row;
56
- }
57
- @include mixins.is-responsive("is", "-direction-row-reverse") {
58
- flex-direction: row-reverse;
59
- }
60
- @include mixins.is-responsive("is", "-direction-column") {
61
- flex-direction: column;
62
- }
63
- @include mixins.is-responsive("is", "-direction-column-reverse") {
64
- flex-direction: column-reverse;
56
+ @include mixins.is-responsive("is", "-direction-row") {
57
+ flex-direction: row;
58
+ }
59
+ @include mixins.is-responsive("is", "-direction-row-reverse") {
60
+ flex-direction: row-reverse;
61
+ }
62
+ @include mixins.is-responsive("is", "-direction-column") {
63
+ flex-direction: column;
64
+ }
65
+ @include mixins.is-responsive("is", "-direction-column-reverse") {
66
+ flex-direction: column-reverse;
67
+ }
65
68
  }
66
69
 
67
- .column {
70
+ :where(.column) {
68
71
  @include mixins.element();
69
72
  @include mixins.column();
70
73
  flex-grow: 1;
@@ -76,8 +79,9 @@
76
79
  width: 100%;
77
80
  }
78
81
  }
82
+
79
83
  @for $num from 1 through variables.$columns-count {
80
- .column-#{$num} {
84
+ :where(.column-#{$num}) {
81
85
  @include mixins.element();
82
86
  @include mixins.column();
83
87
  flex-basis: math.percentage(math.div($num, variables.$columns-count));
@@ -85,7 +89,8 @@
85
89
  width: math.percentage(math.div($num, variables.$columns-count));
86
90
  }
87
91
  }
88
- .column,
92
+
93
+ :where(.column),
89
94
  [class^="column-"] {
90
95
  @for $num from 1 through variables.$columns-count {
91
96
  @include mixins.is-responsive("is", "-" + $num) {