bulma-rails 0.9.4 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +74 -13
  3. data/app/assets/stylesheets/bulma.scss +4 -0
  4. data/app/assets/stylesheets/sass/_index.scss +10 -0
  5. data/app/assets/stylesheets/sass/base/_index.scss +6 -0
  6. data/app/assets/stylesheets/sass/base/animations.scss +15 -0
  7. data/app/assets/stylesheets/sass/base/generic.scss +239 -0
  8. data/app/assets/stylesheets/sass/base/minireset.scss +92 -0
  9. data/app/assets/stylesheets/sass/base/skeleton.scss +114 -0
  10. data/app/assets/stylesheets/sass/components/_index.scss +13 -0
  11. data/app/assets/stylesheets/sass/components/breadcrumb.scss +139 -0
  12. data/app/assets/stylesheets/sass/components/card.scss +162 -0
  13. data/app/assets/stylesheets/sass/components/dropdown.scss +188 -0
  14. data/app/assets/stylesheets/sass/components/menu.scss +165 -0
  15. data/app/assets/stylesheets/sass/components/message.scss +183 -0
  16. data/app/assets/stylesheets/sass/components/modal.scss +164 -0
  17. data/app/assets/stylesheets/sass/components/navbar.scss +799 -0
  18. data/app/assets/stylesheets/sass/components/pagination.scss +379 -0
  19. data/app/assets/stylesheets/sass/components/panel.scss +218 -0
  20. data/app/assets/stylesheets/sass/components/tabs.scss +273 -0
  21. data/app/assets/stylesheets/sass/elements/_index.scss +16 -0
  22. data/app/assets/stylesheets/sass/elements/block.scss +6 -0
  23. data/app/assets/stylesheets/sass/elements/box.scss +59 -0
  24. data/app/assets/stylesheets/sass/elements/button.scss +647 -0
  25. data/app/assets/stylesheets/sass/elements/content.scss +289 -0
  26. data/app/assets/stylesheets/sass/elements/delete.scss +6 -0
  27. data/app/assets/stylesheets/sass/elements/icon.scss +67 -0
  28. data/app/assets/stylesheets/sass/elements/image.scss +62 -0
  29. data/app/assets/stylesheets/sass/elements/loader.scss +15 -0
  30. data/app/assets/stylesheets/sass/elements/notification.scss +105 -0
  31. data/app/assets/stylesheets/sass/elements/progress.scss +115 -0
  32. data/app/assets/stylesheets/sass/elements/table.scss +261 -0
  33. data/app/assets/stylesheets/sass/elements/tag.scss +219 -0
  34. data/app/assets/stylesheets/sass/elements/title.scss +128 -0
  35. data/app/assets/stylesheets/sass/form/_index.scss +9 -0
  36. data/app/assets/stylesheets/sass/form/checkbox-radio.scss +36 -0
  37. data/app/assets/stylesheets/sass/form/file.scss +330 -0
  38. data/app/assets/stylesheets/sass/form/input-textarea.scss +113 -0
  39. data/app/assets/stylesheets/sass/form/select.scss +144 -0
  40. data/app/assets/stylesheets/sass/form/shared.scss +176 -0
  41. data/app/assets/stylesheets/sass/form/tools.scss +352 -0
  42. data/app/assets/stylesheets/sass/grid/_index.scss +5 -0
  43. data/app/assets/stylesheets/sass/grid/columns.scss +961 -0
  44. data/app/assets/stylesheets/sass/grid/grid.scss +209 -0
  45. data/app/assets/stylesheets/sass/helpers/_index.scss +15 -0
  46. data/app/assets/stylesheets/sass/helpers/aspect-ratio.scss +10 -0
  47. data/app/assets/stylesheets/sass/helpers/border.scss +15 -0
  48. data/app/assets/stylesheets/sass/helpers/color.scss +344 -0
  49. data/app/assets/stylesheets/sass/helpers/flexbox.scss +62 -0
  50. data/app/assets/stylesheets/sass/helpers/float.scss +28 -0
  51. data/app/assets/stylesheets/sass/helpers/gap.scss +24 -0
  52. data/app/assets/stylesheets/sass/helpers/other.scss +19 -0
  53. data/app/assets/stylesheets/sass/helpers/overflow.scss +21 -0
  54. data/app/assets/stylesheets/sass/helpers/position.scss +19 -0
  55. data/app/assets/stylesheets/sass/helpers/spacing.scss +64 -0
  56. data/app/assets/stylesheets/sass/helpers/typography.scss +168 -0
  57. data/app/assets/stylesheets/sass/helpers/visibility.scss +221 -0
  58. data/app/assets/stylesheets/sass/layout/_index.scss +9 -0
  59. data/app/assets/stylesheets/sass/layout/container.scss +59 -0
  60. data/app/assets/stylesheets/sass/layout/footer.scss +23 -0
  61. data/app/assets/stylesheets/sass/layout/hero.scss +270 -0
  62. data/app/assets/stylesheets/sass/layout/level.scss +107 -0
  63. data/app/assets/stylesheets/sass/layout/media.scss +106 -0
  64. data/app/assets/stylesheets/sass/layout/section.scss +38 -0
  65. data/app/assets/stylesheets/sass/themes/_index.scss +35 -0
  66. data/app/assets/stylesheets/sass/themes/dark.scss +56 -0
  67. data/app/assets/stylesheets/sass/themes/light.scss +146 -0
  68. data/app/assets/stylesheets/sass/themes/setup.scss +174 -0
  69. data/app/assets/stylesheets/sass/utilities/_index.scss +7 -0
  70. data/app/assets/stylesheets/sass/utilities/controls.scss +85 -0
  71. data/app/assets/stylesheets/sass/utilities/css-variables.scss +426 -0
  72. data/app/assets/stylesheets/sass/utilities/derived-variables.scss +112 -0
  73. data/app/assets/stylesheets/sass/utilities/extends.scss +34 -0
  74. data/app/assets/stylesheets/sass/utilities/functions.scss +258 -0
  75. data/app/assets/stylesheets/sass/utilities/initial-variables.scss +155 -0
  76. data/app/assets/stylesheets/sass/utilities/mixins.scss +460 -0
  77. data/bulma-rails.gemspec +4 -6
  78. metadata +83 -74
  79. data/app/assets/stylesheets/bulma.sass +0 -10
  80. data/app/assets/stylesheets/sass/base/_all.sass +0 -6
  81. data/app/assets/stylesheets/sass/base/animations.sass +0 -5
  82. data/app/assets/stylesheets/sass/base/generic.sass +0 -145
  83. data/app/assets/stylesheets/sass/base/helpers.sass +0 -1
  84. data/app/assets/stylesheets/sass/base/minireset.sass +0 -79
  85. data/app/assets/stylesheets/sass/components/_all.sass +0 -15
  86. data/app/assets/stylesheets/sass/components/breadcrumb.sass +0 -77
  87. data/app/assets/stylesheets/sass/components/card.sass +0 -103
  88. data/app/assets/stylesheets/sass/components/dropdown.sass +0 -83
  89. data/app/assets/stylesheets/sass/components/level.sass +0 -79
  90. data/app/assets/stylesheets/sass/components/media.sass +0 -59
  91. data/app/assets/stylesheets/sass/components/menu.sass +0 -59
  92. data/app/assets/stylesheets/sass/components/message.sass +0 -101
  93. data/app/assets/stylesheets/sass/components/modal.sass +0 -117
  94. data/app/assets/stylesheets/sass/components/navbar.sass +0 -446
  95. data/app/assets/stylesheets/sass/components/pagination.sass +0 -167
  96. data/app/assets/stylesheets/sass/components/panel.sass +0 -121
  97. data/app/assets/stylesheets/sass/components/tabs.sass +0 -176
  98. data/app/assets/stylesheets/sass/elements/_all.sass +0 -16
  99. data/app/assets/stylesheets/sass/elements/box.sass +0 -26
  100. data/app/assets/stylesheets/sass/elements/button.sass +0 -357
  101. data/app/assets/stylesheets/sass/elements/container.sass +0 -29
  102. data/app/assets/stylesheets/sass/elements/content.sass +0 -162
  103. data/app/assets/stylesheets/sass/elements/form.sass +0 -1
  104. data/app/assets/stylesheets/sass/elements/icon.sass +0 -46
  105. data/app/assets/stylesheets/sass/elements/image.sass +0 -73
  106. data/app/assets/stylesheets/sass/elements/notification.sass +0 -52
  107. data/app/assets/stylesheets/sass/elements/other.sass +0 -31
  108. data/app/assets/stylesheets/sass/elements/progress.sass +0 -73
  109. data/app/assets/stylesheets/sass/elements/table.sass +0 -134
  110. data/app/assets/stylesheets/sass/elements/tag.sass +0 -140
  111. data/app/assets/stylesheets/sass/elements/title.sass +0 -70
  112. data/app/assets/stylesheets/sass/form/_all.sass +0 -9
  113. data/app/assets/stylesheets/sass/form/checkbox-radio.sass +0 -22
  114. data/app/assets/stylesheets/sass/form/file.sass +0 -184
  115. data/app/assets/stylesheets/sass/form/input-textarea.sass +0 -66
  116. data/app/assets/stylesheets/sass/form/select.sass +0 -88
  117. data/app/assets/stylesheets/sass/form/shared.sass +0 -60
  118. data/app/assets/stylesheets/sass/form/tools.sass +0 -215
  119. data/app/assets/stylesheets/sass/grid/_all.sass +0 -5
  120. data/app/assets/stylesheets/sass/grid/columns.sass +0 -513
  121. data/app/assets/stylesheets/sass/grid/tiles.sass +0 -36
  122. data/app/assets/stylesheets/sass/helpers/_all.sass +0 -12
  123. data/app/assets/stylesheets/sass/helpers/color.sass +0 -39
  124. data/app/assets/stylesheets/sass/helpers/flexbox.sass +0 -35
  125. data/app/assets/stylesheets/sass/helpers/float.sass +0 -10
  126. data/app/assets/stylesheets/sass/helpers/other.sass +0 -14
  127. data/app/assets/stylesheets/sass/helpers/overflow.sass +0 -2
  128. data/app/assets/stylesheets/sass/helpers/position.sass +0 -7
  129. data/app/assets/stylesheets/sass/helpers/spacing.sass +0 -31
  130. data/app/assets/stylesheets/sass/helpers/typography.sass +0 -103
  131. data/app/assets/stylesheets/sass/helpers/visibility.sass +0 -122
  132. data/app/assets/stylesheets/sass/layout/_all.sass +0 -6
  133. data/app/assets/stylesheets/sass/layout/footer.sass +0 -11
  134. data/app/assets/stylesheets/sass/layout/hero.sass +0 -153
  135. data/app/assets/stylesheets/sass/layout/section.sass +0 -17
  136. data/app/assets/stylesheets/sass/utilities/_all.sass +0 -9
  137. data/app/assets/stylesheets/sass/utilities/animations.sass +0 -1
  138. data/app/assets/stylesheets/sass/utilities/controls.sass +0 -49
  139. data/app/assets/stylesheets/sass/utilities/derived-variables.sass +0 -114
  140. data/app/assets/stylesheets/sass/utilities/extends.sass +0 -25
  141. data/app/assets/stylesheets/sass/utilities/functions.sass +0 -135
  142. data/app/assets/stylesheets/sass/utilities/initial-variables.sass +0 -79
  143. data/app/assets/stylesheets/sass/utilities/mixins.sass +0 -303
@@ -0,0 +1,209 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+ @use "../utilities/extends";
4
+ @use "../utilities/mixins" as mx;
5
+
6
+ $max-column-count: 12;
7
+ $grip-gap: 0.75rem;
8
+ $column-min-base: 1.5rem;
9
+
10
+ @mixin fixed-grid-properties($suffix: "") {
11
+ @for $i from 1 through $max-column-count {
12
+ &.#{iv.$class-prefix}has-#{$i}-cols#{$suffix} {
13
+ > .#{iv.$class-prefix}grid {
14
+ @include cv.register-var("grid-column-count", #{$i});
15
+ }
16
+ }
17
+ }
18
+ }
19
+
20
+ $grid-container-name: bulma-fixed-grid;
21
+
22
+ .#{iv.$class-prefix}fixed-grid {
23
+ @extend %block;
24
+ container-name: $grid-container-name;
25
+ container-type: inline-size;
26
+
27
+ > .#{iv.$class-prefix}grid {
28
+ @include cv.register-vars(
29
+ (
30
+ "grid-gap-count": calc(#{cv.getVar("grid-column-count")} - 1),
31
+ "grid-column-count": 2,
32
+ )
33
+ );
34
+
35
+ grid-template-columns: repeat(cv.getVar("grid-column-count"), 1fr);
36
+ }
37
+
38
+ @include fixed-grid-properties;
39
+
40
+ @include mx.container-until($grid-container-name, iv.$tablet) {
41
+ @include fixed-grid-properties("-mobile");
42
+ }
43
+
44
+ @include mx.container-from($grid-container-name, iv.$tablet) {
45
+ @include fixed-grid-properties("-tablet");
46
+ }
47
+
48
+ @include mx.container-from($grid-container-name, iv.$desktop) {
49
+ @include fixed-grid-properties("-desktop");
50
+ }
51
+
52
+ @include mx.container-from($grid-container-name, iv.$widescreen) {
53
+ @include fixed-grid-properties("-widescreen");
54
+ }
55
+
56
+ @include mx.container-from($grid-container-name, iv.$fullhd) {
57
+ @include fixed-grid-properties("-fullhd");
58
+ }
59
+
60
+ &.#{iv.$class-prefix}has-auto-count {
61
+ .#{iv.$class-prefix}grid {
62
+ @include mx.container-until($grid-container-name, iv.$tablet) {
63
+ @include cv.register-var("grid-column-count", 2);
64
+ }
65
+
66
+ @include mx.container-from($grid-container-name, iv.$tablet) {
67
+ @include cv.register-var("grid-column-count", 4);
68
+ }
69
+
70
+ @include mx.container-from($grid-container-name, iv.$desktop) {
71
+ @include cv.register-var("grid-column-count", 8);
72
+ }
73
+
74
+ @include mx.container-from($grid-container-name, iv.$widescreen) {
75
+ @include cv.register-var("grid-column-count", 12);
76
+ }
77
+
78
+ @include mx.container-from($grid-container-name, iv.$fullhd) {
79
+ @include cv.register-var("grid-column-count", 16);
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ .#{iv.$class-prefix}grid {
86
+ @include cv.register-vars(
87
+ (
88
+ "grid-gap": $grip-gap,
89
+ "grid-column-min": 9rem,
90
+ "grid-cell-column-span": 1,
91
+ "grid-cell-row-span": 1,
92
+ )
93
+ );
94
+
95
+ @extend %block;
96
+ display: grid;
97
+ gap: cv.getVar("grid-gap");
98
+ column-gap: #{cv.getVarWithBackup("grid-column-gap", "grid-gap")};
99
+ row-gap: #{cv.getVarWithBackup("grid-row-gap", "grid-gap")};
100
+ grid-template-columns: repeat(
101
+ auto-fit,
102
+ minmax(#{cv.getVar("grid-column-min")}, 1fr)
103
+ );
104
+ grid-template-rows: auto;
105
+
106
+ &.is-auto-fill {
107
+ grid-template-columns: repeat(
108
+ auto-fill,
109
+ minmax(#{cv.getVar("grid-column-min")}, 1fr)
110
+ );
111
+ }
112
+
113
+ @for $i from 1 through 32 {
114
+ &.#{iv.$class-prefix}is-col-min-#{$i} {
115
+ @include cv.register-vars(
116
+ (
117
+ "grid-column-min": #{$column-min-base * $i},
118
+ )
119
+ );
120
+ }
121
+ }
122
+ }
123
+
124
+ @mixin cell-properties($suffix: "") {
125
+ @for $i from 1 through $max-column-count {
126
+ $name: $i + $suffix;
127
+
128
+ &.#{iv.$class-prefix}is-col-start-#{$name} {
129
+ @include cv.register-var("grid-cell-column-start", #{$i});
130
+ }
131
+
132
+ &.#{iv.$class-prefix}is-col-end-#{$name} {
133
+ @include cv.register-var("grid-cell-column-end", #{$i});
134
+ }
135
+
136
+ &.#{iv.$class-prefix}is-col-from-end-#{$name} {
137
+ @include cv.register-var("grid-cell-column-start", #{$i * -1});
138
+ }
139
+
140
+ &.#{iv.$class-prefix}is-col-span-#{$name} {
141
+ @include cv.register-var("grid-cell-column-span", #{$i});
142
+ }
143
+
144
+ &.#{iv.$class-prefix}is-row-start-#{$name} {
145
+ @include cv.register-var("grid-cell-row-start", #{$i});
146
+ }
147
+
148
+ &.#{iv.$class-prefix}is-row-end-#{$name} {
149
+ @include cv.register-var("grid-cell-row-end", #{$i});
150
+ }
151
+
152
+ &.#{iv.$class-prefix}is-row-from-end-#{$name} {
153
+ @include cv.register-var("grid-cell-row-start", #{$i * -1});
154
+ }
155
+
156
+ &.#{iv.$class-prefix}is-row-span-#{$name} {
157
+ @include cv.register-var("grid-cell-row-span", #{$i});
158
+ }
159
+ }
160
+ }
161
+
162
+ .#{iv.$class-prefix}cell {
163
+ grid-column-end: span cv.getVar("grid-cell-column-span");
164
+ grid-column-start: cv.getVar("grid-cell-column-start");
165
+ grid-row-end: span cv.getVar("grid-cell-row-span");
166
+ grid-row-start: cv.getVar("grid-cell-row-start");
167
+
168
+ // Sizes
169
+ &.#{iv.$class-prefix}is-col-start-end {
170
+ @include cv.register-var("grid-cell-column-start", -1);
171
+ }
172
+
173
+ &.#{iv.$class-prefix}is-row-start-end {
174
+ @include cv.register-var("grid-cell-row-start", -1);
175
+ }
176
+
177
+ @include cell-properties;
178
+ @include mx.mobile {
179
+ @include cell-properties("-mobile");
180
+ }
181
+
182
+ @include mx.tablet {
183
+ @include cell-properties("-tablet");
184
+ }
185
+
186
+ @include mx.tablet-only {
187
+ @include cell-properties("-tablet-only");
188
+ }
189
+
190
+ @include mx.desktop {
191
+ @include cell-properties("-desktop");
192
+ }
193
+
194
+ @include mx.desktop-only {
195
+ @include cell-properties("-desktop-only");
196
+ }
197
+
198
+ @include mx.widescreen {
199
+ @include cell-properties("-widescreen");
200
+ }
201
+
202
+ @include mx.widescreen-only {
203
+ @include cell-properties("-widescreen-only");
204
+ }
205
+
206
+ @include mx.fullhd {
207
+ @include cell-properties("-fullhd");
208
+ }
209
+ }
@@ -0,0 +1,15 @@
1
+ /* Bulma Helpers */
2
+ @charset "utf-8";
3
+
4
+ @forward "aspect-ratio";
5
+ @forward "border";
6
+ @forward "color";
7
+ @forward "flexbox";
8
+ @forward "float";
9
+ @forward "gap";
10
+ @forward "overflow";
11
+ @forward "position";
12
+ @forward "spacing";
13
+ @forward "typography";
14
+ @forward "visibility";
15
+ @forward "other";
@@ -0,0 +1,10 @@
1
+ @use "../utilities/initial-variables" as iv;
2
+
3
+ @each $pair in iv.$aspect-ratios {
4
+ $w: nth($pair, 1);
5
+ $h: nth($pair, 2);
6
+
7
+ .#{iv.$helpers-prefix}aspect-ratio-#{$w}by#{$h} {
8
+ aspect-ratio: #{$w} / #{$h};
9
+ }
10
+ }
@@ -0,0 +1,15 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/initial-variables" as iv;
3
+
4
+ $radii: (
5
+ "small": "radius-small",
6
+ "normal": "radius",
7
+ "large": "radius-large",
8
+ "rounded": "radius-rounded",
9
+ );
10
+
11
+ @each $name, $var in $radii {
12
+ .#{iv.$helpers-has-prefix}radius-#{$name} {
13
+ border-radius: cv.getVar($var);
14
+ }
15
+ }
@@ -0,0 +1,344 @@
1
+ @use "../utilities/css-variables" as cv;
2
+ @use "../utilities/derived-variables" as dv;
3
+ @use "../utilities/initial-variables" as iv;
4
+
5
+ $digits: (
6
+ "00",
7
+ "05",
8
+ "10",
9
+ "15",
10
+ "20",
11
+ "25",
12
+ "30",
13
+ "35",
14
+ "40",
15
+ "45",
16
+ "50",
17
+ "55",
18
+ "60",
19
+ "65",
20
+ "70",
21
+ "75",
22
+ "80",
23
+ "85",
24
+ "90",
25
+ "95",
26
+ "100"
27
+ );
28
+
29
+ .#{iv.$helpers-has-prefix}background {
30
+ background-color: cv.getVar("background");
31
+ }
32
+
33
+ @each $name, $color in dv.$colors {
34
+ $background: hsl(
35
+ #{cv.getVar($name, "", "-h")},
36
+ #{cv.getVar($name, "", "-s")},
37
+ #{cv.getVar($name, "", "-l")}
38
+ );
39
+
40
+ $color: hsl(
41
+ #{cv.getVar($name, "", "-h")},
42
+ #{cv.getVar($name, "", "-s")},
43
+ #{cv.getVar($name, "", "-l")}
44
+ );
45
+
46
+ .#{iv.$helpers-has-prefix}text-#{$name} {
47
+ color: $color !important;
48
+ }
49
+
50
+ .#{iv.$helpers-has-prefix}background-#{$name} {
51
+ background-color: $background !important;
52
+ }
53
+
54
+ // Invert
55
+ .#{iv.$helpers-has-prefix}text-#{$name}-invert {
56
+ color: hsl(
57
+ #{cv.getVar($name, "", "-h")},
58
+ #{cv.getVar($name, "", "-s")},
59
+ #{cv.getVar($name, "", "-invert-l")}
60
+ ) !important;
61
+ }
62
+
63
+ .#{iv.$helpers-has-prefix}background-#{$name}-invert {
64
+ background-color: hsl(
65
+ #{cv.getVar($name, "", "-h")},
66
+ #{cv.getVar($name, "", "-s")},
67
+ #{cv.getVar($name, "", "-invert-l")}
68
+ ) !important;
69
+ }
70
+
71
+ // On Scheme
72
+ .#{iv.$helpers-has-prefix}text-#{$name}-on-scheme {
73
+ color: hsl(
74
+ #{cv.getVar($name, "", "-h")},
75
+ #{cv.getVar($name, "", "-s")},
76
+ #{cv.getVar($name, "", "-on-scheme-l")}
77
+ ) !important;
78
+ }
79
+
80
+ .#{iv.$helpers-has-prefix}background-#{$name}-on-scheme {
81
+ background-color: hsl(
82
+ #{cv.getVar($name, "", "-h")},
83
+ #{cv.getVar($name, "", "-s")},
84
+ #{cv.getVar($name, "", "-on-scheme-l")}
85
+ ) !important;
86
+ }
87
+
88
+ // Light
89
+ .#{iv.$helpers-has-prefix}text-#{$name}-light {
90
+ color: hsl(
91
+ #{cv.getVar($name, "", "-h")},
92
+ #{cv.getVar($name, "", "-s")},
93
+ #{cv.getVar($name, "", "-light-l")}
94
+ ) !important;
95
+ }
96
+
97
+ .#{iv.$helpers-has-prefix}background-#{$name}-light {
98
+ background-color: hsl(
99
+ #{cv.getVar($name, "", "-h")},
100
+ #{cv.getVar($name, "", "-s")},
101
+ #{cv.getVar($name, "", "-light-l")}
102
+ ) !important;
103
+ }
104
+
105
+ .#{iv.$helpers-has-prefix}text-#{$name}-light-invert {
106
+ color: hsl(
107
+ #{cv.getVar($name, "", "-h")},
108
+ #{cv.getVar($name, "", "-s")},
109
+ #{cv.getVar($name, "", "-light-invert-l")}
110
+ ) !important;
111
+ }
112
+
113
+ .#{iv.$helpers-has-prefix}background-#{$name}-light-invert {
114
+ background-color: hsl(
115
+ #{cv.getVar($name, "", "-h")},
116
+ #{cv.getVar($name, "", "-s")},
117
+ #{cv.getVar($name, "", "-light-invert-l")}
118
+ ) !important;
119
+ }
120
+
121
+ // Dark
122
+ .#{iv.$helpers-has-prefix}text-#{$name}-dark {
123
+ color: hsl(
124
+ #{cv.getVar($name, "", "-h")},
125
+ #{cv.getVar($name, "", "-s")},
126
+ #{cv.getVar($name, "", "-dark-l")}
127
+ ) !important;
128
+ }
129
+
130
+ .#{iv.$helpers-has-prefix}background-#{$name}-dark {
131
+ background-color: hsl(
132
+ #{cv.getVar($name, "", "-h")},
133
+ #{cv.getVar($name, "", "-s")},
134
+ #{cv.getVar($name, "", "-dark-l")}
135
+ ) !important;
136
+ }
137
+
138
+ .#{iv.$helpers-has-prefix}text-#{$name}-dark-invert {
139
+ color: hsl(
140
+ #{cv.getVar($name, "", "-h")},
141
+ #{cv.getVar($name, "", "-s")},
142
+ #{cv.getVar($name, "", "-dark-invert-l")}
143
+ ) !important;
144
+ }
145
+
146
+ .#{iv.$helpers-has-prefix}background-#{$name}-dark-invert {
147
+ background-color: hsl(
148
+ #{cv.getVar($name, "", "-h")},
149
+ #{cv.getVar($name, "", "-s")},
150
+ #{cv.getVar($name, "", "-dark-invert-l")}
151
+ ) !important;
152
+ }
153
+
154
+ // Soft/Bold
155
+ .#{iv.$helpers-has-prefix}text-#{$name}-soft {
156
+ color: hsl(
157
+ #{cv.getVar($name, "", "-h")},
158
+ #{cv.getVar($name, "", "-s")},
159
+ #{cv.getVar("soft-l")}
160
+ ) !important;
161
+ }
162
+
163
+ .#{iv.$helpers-has-prefix}background-#{$name}-soft {
164
+ background-color: hsl(
165
+ #{cv.getVar($name, "", "-h")},
166
+ #{cv.getVar($name, "", "-s")},
167
+ #{cv.getVar("soft-l")}
168
+ ) !important;
169
+ }
170
+
171
+ .#{iv.$helpers-has-prefix}text-#{$name}-bold {
172
+ color: hsl(
173
+ #{cv.getVar($name, "", "-h")},
174
+ #{cv.getVar($name, "", "-s")},
175
+ #{cv.getVar("bold-l")}
176
+ ) !important;
177
+ }
178
+
179
+ .#{iv.$helpers-has-prefix}background-#{$name}-bold {
180
+ background-color: hsl(
181
+ #{cv.getVar($name, "", "-h")},
182
+ #{cv.getVar($name, "", "-s")},
183
+ #{cv.getVar("bold-l")}
184
+ ) !important;
185
+ }
186
+
187
+ .#{iv.$helpers-has-prefix}text-#{$name}-soft-invert {
188
+ color: hsl(
189
+ #{cv.getVar($name, "", "-h")},
190
+ #{cv.getVar($name, "", "-s")},
191
+ #{cv.getVar("soft-invert-l")}
192
+ ) !important;
193
+ }
194
+
195
+ .#{iv.$helpers-has-prefix}background-#{$name}-soft-invert {
196
+ background-color: hsl(
197
+ #{cv.getVar($name, "", "-h")},
198
+ #{cv.getVar($name, "", "-s")},
199
+ #{cv.getVar("soft-invert-l")}
200
+ ) !important;
201
+ }
202
+
203
+ .#{iv.$helpers-has-prefix}text-#{$name}-bold-invert {
204
+ color: hsl(
205
+ #{cv.getVar($name, "", "-h")},
206
+ #{cv.getVar($name, "", "-s")},
207
+ #{cv.getVar("bold-invert-l")}
208
+ ) !important;
209
+ }
210
+
211
+ .#{iv.$helpers-has-prefix}background-#{$name}-bold-invert {
212
+ background-color: hsl(
213
+ #{cv.getVar($name, "", "-h")},
214
+ #{cv.getVar($name, "", "-s")},
215
+ #{cv.getVar("bold-invert-l")}
216
+ ) !important;
217
+ }
218
+
219
+ @each $digit in $digits {
220
+ .#{iv.$helpers-has-prefix}text-#{$name}-#{$digit} {
221
+ color: hsl(
222
+ #{cv.getVar($name, "", "-h")},
223
+ #{cv.getVar($name, "", "-s")},
224
+ #{cv.getVar($name, "", "-#{$digit}-l")}
225
+ ) !important;
226
+ }
227
+
228
+ .#{iv.$helpers-has-prefix}background-#{$name}-#{$digit} {
229
+ background-color: hsl(
230
+ #{cv.getVar($name, "", "-h")},
231
+ #{cv.getVar($name, "", "-s")},
232
+ #{cv.getVar($name, "", "-#{$digit}-l")}
233
+ ) !important;
234
+ }
235
+
236
+ .#{iv.$helpers-has-prefix}text-#{$name}-#{$digit}-invert {
237
+ color: hsl(
238
+ #{cv.getVar($name, "", "-h")},
239
+ #{cv.getVar($name, "", "-s")},
240
+ #{cv.getVar($name, "", "-#{$digit}-invert-l")}
241
+ ) !important;
242
+ }
243
+
244
+ .#{iv.$helpers-has-prefix}background-#{$name}-#{$digit}-invert {
245
+ background-color: hsl(
246
+ #{cv.getVar($name, "", "-h")},
247
+ #{cv.getVar($name, "", "-s")},
248
+ #{cv.getVar($name, "", "-#{$digit}-invert-l")}
249
+ ) !important;
250
+ }
251
+ }
252
+
253
+ // Hover
254
+ a.#{iv.$helpers-has-prefix}text-#{$name},
255
+ button.#{iv.$helpers-has-prefix}text-#{$name},
256
+ #{iv.$helpers-has-prefix}text-#{$name}.is-hoverable {
257
+ &:hover,
258
+ &:focus-visible {
259
+ color: hsl(
260
+ #{cv.getVar($name, "", "-h")},
261
+ #{cv.getVar($name, "", "-s")},
262
+ calc(
263
+ #{cv.getVar($name, "", "-l")} + #{cv.getVar("hover-color-l-delta")}
264
+ )
265
+ ) !important;
266
+ }
267
+
268
+ &:active {
269
+ color: hsl(
270
+ #{cv.getVar($name, "", "-h")},
271
+ #{cv.getVar($name, "", "-s")},
272
+ calc(
273
+ #{cv.getVar($name, "", "-l")} + #{cv.getVar("active-color-l-delta")}
274
+ )
275
+ ) !important;
276
+ }
277
+ }
278
+
279
+ a.#{iv.$helpers-has-prefix}background-#{$name},
280
+ button.#{iv.$helpers-has-prefix}background-#{$name},
281
+ #{iv.$helpers-has-prefix}background-#{$name}.is-hoverable {
282
+ &:hover,
283
+ &:focus-visible {
284
+ background-color: hsl(
285
+ #{cv.getVar($name, "", "-h")},
286
+ #{cv.getVar($name, "", "-s")},
287
+ calc(
288
+ #{cv.getVar($name, "", "-l")} +
289
+ #{cv.getVar("hover-background-l-delta")}
290
+ )
291
+ ) !important;
292
+ }
293
+
294
+ &:active {
295
+ background-color: hsl(
296
+ #{cv.getVar($name, "", "-h")},
297
+ #{cv.getVar($name, "", "-s")},
298
+ calc(
299
+ #{cv.getVar($name, "", "-l")} +
300
+ #{cv.getVar("active-background-l-delta")}
301
+ )
302
+ ) !important;
303
+ }
304
+ }
305
+
306
+ // Palettes
307
+ .#{iv.$helpers-prefix}palette-#{$name} {
308
+ --h: #{cv.getVar($name, "", "-h")};
309
+ --s: #{cv.getVar($name, "", "-s")};
310
+ --l: #{cv.getVar($name, "", "-l")};
311
+ --color: hsl(var(--h), var(--s), var(--l));
312
+
313
+ @each $digit in $digits {
314
+ --#{$digit}-l: #{cv.getVar($name, "", "-#{$digit}-l")};
315
+ --color-#{$digit}: hsl(var(--h), var(--s), var(--#{$digit}-l));
316
+ }
317
+ }
318
+ }
319
+
320
+ @each $name, $shade in dv.$shades {
321
+ .#{iv.$helpers-has-prefix}text-#{$name} {
322
+ color: $shade !important;
323
+ }
324
+
325
+ .#{iv.$helpers-has-prefix}background-#{$name} {
326
+ background-color: $shade !important;
327
+ }
328
+ }
329
+
330
+ .#{iv.$helpers-has-prefix}text-current {
331
+ color: currentColor !important;
332
+ }
333
+
334
+ .#{iv.$helpers-has-prefix}text-inherit {
335
+ color: inherit !important;
336
+ }
337
+
338
+ .#{iv.$helpers-has-prefix}background-current {
339
+ background-color: currentColor !important;
340
+ }
341
+
342
+ .#{iv.$helpers-has-prefix}background-inherit {
343
+ background-color: inherit !important;
344
+ }
@@ -0,0 +1,62 @@
1
+ @use "../utilities/initial-variables" as iv;
2
+
3
+ $flex-direction-values: row, row-reverse, column, column-reverse;
4
+
5
+ @each $value in $flex-direction-values {
6
+ .#{iv.$helpers-prefix}flex-direction-#{$value} {
7
+ flex-direction: $value !important;
8
+ }
9
+ }
10
+
11
+ $flex-wrap-values: nowrap, wrap, wrap-reverse;
12
+
13
+ @each $value in $flex-wrap-values {
14
+ .#{iv.$helpers-prefix}flex-wrap-#{$value} {
15
+ flex-wrap: $value !important;
16
+ }
17
+ }
18
+
19
+ $justify-content-values: flex-start, flex-end, center, space-between,
20
+ space-around, space-evenly, start, end, left, right;
21
+
22
+ @each $value in $justify-content-values {
23
+ .#{iv.$helpers-prefix}justify-content-#{$value} {
24
+ justify-content: $value !important;
25
+ }
26
+ }
27
+
28
+ $align-content-values: flex-start, flex-end, center, space-between, space-around,
29
+ space-evenly, stretch, start, end, baseline;
30
+
31
+ @each $value in $align-content-values {
32
+ .#{iv.$helpers-prefix}align-content-#{$value} {
33
+ align-content: $value !important;
34
+ }
35
+ }
36
+
37
+ $align-items-values: stretch, flex-start, flex-end, center, baseline, start, end,
38
+ self-start, self-end;
39
+
40
+ @each $value in $align-items-values {
41
+ .#{iv.$helpers-prefix}align-items-#{$value} {
42
+ align-items: $value !important;
43
+ }
44
+ }
45
+
46
+ $align-self-values: auto, flex-start, flex-end, center, baseline, stretch;
47
+
48
+ @each $value in $align-self-values {
49
+ .#{iv.$helpers-prefix}align-self-#{$value} {
50
+ align-self: $value !important;
51
+ }
52
+ }
53
+
54
+ $flex-operators: grow, shrink;
55
+
56
+ @each $operator in $flex-operators {
57
+ @for $i from 0 through 5 {
58
+ .#{iv.$helpers-prefix}flex-#{$operator}-#{$i} {
59
+ flex-#{$operator}: $i !important;
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,28 @@
1
+ @use "../utilities/initial-variables" as iv;
2
+ @use "../utilities/mixins" as mx;
3
+
4
+ .#{iv.$helpers-prefix}clearfix {
5
+ @include mx.clearfix;
6
+ }
7
+
8
+ .#{iv.$helpers-prefix}float-left,
9
+ .#{iv.$helpers-prefix}pulled-left {
10
+ float: left !important;
11
+ }
12
+
13
+ .#{iv.$helpers-prefix}float-right,
14
+ .#{iv.$helpers-prefix}pulled-right {
15
+ float: right !important;
16
+ }
17
+
18
+ .#{iv.$helpers-prefix}float-none {
19
+ float: none !important;
20
+ }
21
+
22
+ $clears: both left none right;
23
+
24
+ @each $clear in $clears {
25
+ .#{iv.$helpers-prefix}clear-#{$clear} {
26
+ clear: $clear !important;
27
+ }
28
+ }
@@ -0,0 +1,24 @@
1
+ @use "sass:math";
2
+ @use "sass:string";
3
+ @use "../utilities/initial-variables" as iv;
4
+
5
+ .#{iv.$helpers-prefix}gapless {
6
+ gap: 0 !important;
7
+ }
8
+
9
+ $gaps: "gap", "column-gap", "row-gap";
10
+ $gap-base: 0.5rem;
11
+
12
+ @each $gap in $gaps {
13
+ @for $i from 0 through 8 {
14
+ .#{iv.$helpers-prefix}#{$gap}-#{$i} {
15
+ #{$gap}: ($gap-base * $i) !important;
16
+ }
17
+
18
+ @if $i < 8 {
19
+ .#{iv.$helpers-prefix}#{$gap}-#{$i}\.5 {
20
+ #{$gap}: ($gap-base * $i + math.div($gap-base, 2)) !important;
21
+ }
22
+ }
23
+ }
24
+ }