minolith 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/minolith.css +11854 -5276
- package/dist/css/minolith.css.map +1 -1
- package/dist/css/minolith.min.css +3 -3
- package/dist/css/minolith.min.css.map +1 -1
- package/package.json +1 -1
- package/src/components/accordion.scss +94 -35
- package/src/components/badge.scss +54 -46
- package/src/components/button.scss +17 -10
- package/src/components/card.scss +34 -6
- package/src/components/header.scss +8 -0
- package/src/components/input.scss +6 -2
- package/src/components/label.scss +7 -0
- package/src/components/link.scss +7 -7
- package/src/components/loader.scss +2 -2
- package/src/components/message.scss +6 -3
- package/src/components/progress.scss +4 -3
- package/src/css-variables/color.scss +97 -5
- package/src/functions/string.scss +12 -0
- package/src/icons/check.scss +3 -3
- package/src/icons/chevron.scss +2 -2
- package/src/layouts/index.scss +2 -1
- package/src/mixins/responsive.scss +40 -10
- package/src/utilities/sizing.scss +44 -10
- package/src/utilities/typography.scss +4 -0
- package/src/variables/border.scss +8 -3
- package/src/variables/color.scss +1024 -301
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
border-radius: var(--#{variables.$prefix}border-radius-pill);
|
|
8
8
|
border-style: solid;
|
|
9
9
|
border-width: var(--#{variables.$prefix}border-width-medium);
|
|
10
|
-
color: var(--#{variables.$prefix}color-default-
|
|
10
|
+
background-color: var(--#{variables.$prefix}color-default-progress-back);
|
|
11
|
+
color: var(--#{variables.$prefix}color-default-progress-fore);
|
|
11
12
|
height: 1rem;
|
|
12
13
|
position: relative;
|
|
13
14
|
&::before {
|
|
@@ -31,8 +32,8 @@
|
|
|
31
32
|
@each $color in variables.$colors {
|
|
32
33
|
$colorName: map.get($color, "name");
|
|
33
34
|
&.is-#{$colorName} {
|
|
34
|
-
background-color: var(--#{variables.$prefix}color-#{$colorName}-back);
|
|
35
|
-
color: var(--#{variables.$prefix}color-#{$colorName}-
|
|
35
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-progress-back);
|
|
36
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-progress-fore);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
}
|
|
@@ -16,22 +16,29 @@
|
|
|
16
16
|
@each $color in variables.$colors {
|
|
17
17
|
$name: map.get($color, "name");
|
|
18
18
|
$hue: map.get($color, "hue");
|
|
19
|
-
$chroma: map.get($color, "chroma");
|
|
20
19
|
$p: "0" !default;
|
|
21
20
|
@for $i from 1 through 19 {
|
|
22
21
|
$p: "" + ($i * 5);
|
|
23
22
|
@if (string.length($p) == 1) {
|
|
24
23
|
$p: "0" + $p;
|
|
25
24
|
}
|
|
26
|
-
$lightness: variables.$color-lightness-50
|
|
25
|
+
$lightness: variables.$color-lightness-50;
|
|
26
|
+
$chroma: variables.$color-chroma-colorful;
|
|
27
|
+
|
|
27
28
|
@if ($i < 10) {
|
|
28
29
|
$lightness-offset: (10 - $i) * variables.$color-lightness-offset-darker;
|
|
29
|
-
$lightness: variables.$color-lightness-50
|
|
30
|
+
$lightness: variables.$color-lightness-50 + $lightness-offset;
|
|
31
|
+
$chroma-offset: (10 - $i) * variables.$color-chroma-colorful-offset-darker;
|
|
32
|
+
$chroma: $chroma + $chroma-offset;
|
|
30
33
|
} @else if ($i > 10) {
|
|
31
34
|
$lightness-offset: ($i - 10) * variables.$color-lightness-offset-lighter;
|
|
32
35
|
$lightness: variables.$color-lightness-50 + $lightness-offset;
|
|
33
|
-
|
|
34
|
-
$
|
|
36
|
+
$chroma-offset: ($i - 10) * variables.$color-chroma-colorful-offset-lighter;
|
|
37
|
+
$chroma: $chroma + $chroma-offset;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@if ($name == "default" or $name == "gray") {
|
|
41
|
+
$chroma: variables.$color-chroma-gray;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
$oklch: #{$lightness} #{$chroma} #{$hue};
|
|
@@ -122,6 +129,13 @@
|
|
|
122
129
|
}
|
|
123
130
|
//#endregion accordion
|
|
124
131
|
|
|
132
|
+
//#region badge
|
|
133
|
+
$badge: map.get($colorShade, "badge");
|
|
134
|
+
@if ($badge != null) {
|
|
135
|
+
@include setColor($badge, "default", $name, "badge");
|
|
136
|
+
}
|
|
137
|
+
//#endregion badge
|
|
138
|
+
|
|
125
139
|
//#region button
|
|
126
140
|
$button: map.get($colorShade, "button");
|
|
127
141
|
@if ($button != null) {
|
|
@@ -151,6 +165,34 @@
|
|
|
151
165
|
}
|
|
152
166
|
//#endregion card
|
|
153
167
|
|
|
168
|
+
//#region header
|
|
169
|
+
$header: map.get($colorShade, "header");
|
|
170
|
+
@if ($header != null) {
|
|
171
|
+
@include setColor($header, "default", $name, "header");
|
|
172
|
+
}
|
|
173
|
+
//#endregion header
|
|
174
|
+
|
|
175
|
+
//#region label
|
|
176
|
+
$label: map.get($colorShade, "label");
|
|
177
|
+
@if ($label != null) {
|
|
178
|
+
@include setColor($label, "default", $name, "label");
|
|
179
|
+
}
|
|
180
|
+
//#endregion label
|
|
181
|
+
|
|
182
|
+
//#region link
|
|
183
|
+
$link: map.get($colorShade, "link");
|
|
184
|
+
@if ($link != null) {
|
|
185
|
+
@include setColor($link, "default", $name, "link");
|
|
186
|
+
}
|
|
187
|
+
//#endregion link
|
|
188
|
+
|
|
189
|
+
//#region loader
|
|
190
|
+
$loader: map.get($colorShade, "loader");
|
|
191
|
+
@if ($loader != null) {
|
|
192
|
+
@include setColor($loader, "default", $name, "loader");
|
|
193
|
+
}
|
|
194
|
+
//#endregion loader
|
|
195
|
+
|
|
154
196
|
//#region message
|
|
155
197
|
$message: map.get($colorShade, "message");
|
|
156
198
|
@if ($message != null) {
|
|
@@ -168,6 +210,13 @@
|
|
|
168
210
|
}
|
|
169
211
|
//#endregion message
|
|
170
212
|
|
|
213
|
+
//#region progress
|
|
214
|
+
$progress: map.get($colorShade, "progress");
|
|
215
|
+
@if ($progress != null) {
|
|
216
|
+
@include setColor($progress, "default", $name, "progress");
|
|
217
|
+
}
|
|
218
|
+
//#endregion progress
|
|
219
|
+
|
|
171
220
|
@each $color in variables.$colors {
|
|
172
221
|
$colorName: map.get($color, "name");
|
|
173
222
|
|
|
@@ -190,6 +239,13 @@
|
|
|
190
239
|
}
|
|
191
240
|
//#endregion accordion
|
|
192
241
|
|
|
242
|
+
//#region badge
|
|
243
|
+
$badge: map.get($colorShade, "badge");
|
|
244
|
+
@if ($badge != null) {
|
|
245
|
+
@include setColor($badge, $colorName, $name, "badge");
|
|
246
|
+
}
|
|
247
|
+
//#endregion badge
|
|
248
|
+
|
|
193
249
|
//#region button
|
|
194
250
|
$button: map.get($colorShade, "button");
|
|
195
251
|
@if ($button != null) {
|
|
@@ -219,6 +275,34 @@
|
|
|
219
275
|
}
|
|
220
276
|
//#endregion card
|
|
221
277
|
|
|
278
|
+
//#region header
|
|
279
|
+
$header: map.get($colorShade, "header");
|
|
280
|
+
@if ($header != null) {
|
|
281
|
+
@include setColor($header, $colorName, $name, "header");
|
|
282
|
+
}
|
|
283
|
+
//#endregion header
|
|
284
|
+
|
|
285
|
+
//#region label
|
|
286
|
+
$label: map.get($colorShade, "label");
|
|
287
|
+
@if ($label != null) {
|
|
288
|
+
@include setColor($label, $colorName, $name, "label");
|
|
289
|
+
}
|
|
290
|
+
//#endregion label
|
|
291
|
+
|
|
292
|
+
//#region link
|
|
293
|
+
$link: map.get($colorShade, "link");
|
|
294
|
+
@if ($link != null) {
|
|
295
|
+
@include setColor($link, $colorName, $name, "link");
|
|
296
|
+
}
|
|
297
|
+
//#endregion link
|
|
298
|
+
|
|
299
|
+
//#region loader
|
|
300
|
+
$loader: map.get($colorShade, "loader");
|
|
301
|
+
@if ($loader != null) {
|
|
302
|
+
@include setColor($link, $colorName, $name, "loader");
|
|
303
|
+
}
|
|
304
|
+
//#endregion loader
|
|
305
|
+
|
|
222
306
|
//#region message
|
|
223
307
|
$message: map.get($colorShade, "message");
|
|
224
308
|
@if ($message != null) {
|
|
@@ -235,6 +319,14 @@
|
|
|
235
319
|
}
|
|
236
320
|
}
|
|
237
321
|
//#endregion message
|
|
322
|
+
|
|
323
|
+
//#region progress
|
|
324
|
+
$progress: map.get($colorShade, "progress");
|
|
325
|
+
@if ($progress != null) {
|
|
326
|
+
@include setColor($link, $colorName, $name, "progress");
|
|
327
|
+
}
|
|
328
|
+
//#endregion progress
|
|
329
|
+
|
|
238
330
|
}
|
|
239
331
|
}
|
|
240
332
|
}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
@use "sass:string";
|
|
2
2
|
|
|
3
|
+
@function zeroPadding($num, $length) {
|
|
4
|
+
$numString: #{$num};
|
|
5
|
+
$numLength: string.length($numString);
|
|
6
|
+
|
|
7
|
+
@while $numLength < $length {
|
|
8
|
+
$numString: "0" + $numString;
|
|
9
|
+
$numLength: string.length($numString);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@return $numString;
|
|
13
|
+
}
|
|
14
|
+
|
|
3
15
|
@function strReplace($str, $substr, $newsubstr, $all: false) {
|
|
4
16
|
$pos: string.index($str, $substr);
|
|
5
17
|
|
package/src/icons/check.scss
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
.check {
|
|
5
5
|
background-color: transparent;
|
|
6
|
-
border-color: var(
|
|
6
|
+
border-color: var(--#{variables.$prefix}color-default-fore);
|
|
7
7
|
border-radius: 25%;
|
|
8
8
|
border-style: solid;
|
|
9
|
-
border-width: 0 var(
|
|
9
|
+
border-width: 0 var(--#{variables.$prefix}border-width-medium) var(--#{variables.$prefix}border-width-medium) 0;
|
|
10
10
|
content: "";
|
|
11
11
|
display: inline-block;
|
|
12
12
|
height: 1rem;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@each $color in variables.$colors {
|
|
16
16
|
$colorName: map.get($color, "name");
|
|
17
17
|
&.is-#{$colorName} {
|
|
18
|
-
border-color: var(
|
|
18
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/icons/chevron.scss
CHANGED
|
@@ -15,11 +15,11 @@ $line-height: 0.2rem;
|
|
|
15
15
|
100% 0,
|
|
16
16
|
50% calc(100% - #{$line-height})
|
|
17
17
|
);
|
|
18
|
-
background: var(
|
|
18
|
+
background: var(--#{variables.$prefix}color-default-fore);
|
|
19
19
|
@each $color in variables.$colors {
|
|
20
20
|
$colorName: map.get($color, "name");
|
|
21
21
|
&.is-#{$colorName} {
|
|
22
|
-
background: var(
|
|
22
|
+
background: var(--#{variables.$prefix}color-#{$colorName}-fore);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
@content;
|
package/src/layouts/index.scss
CHANGED
|
@@ -104,7 +104,7 @@ $offset: 0.02px;
|
|
|
104
104
|
display: none !important;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
&.is-
|
|
107
|
+
&.is-small-or-less {
|
|
108
108
|
@include screen("medium") {
|
|
109
109
|
display: none !important;
|
|
110
110
|
}
|
|
@@ -115,7 +115,7 @@ $offset: 0.02px;
|
|
|
115
115
|
display: none !important;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
&.is-
|
|
118
|
+
&.is-small {
|
|
119
119
|
@include screen("xsmall") {
|
|
120
120
|
display: none !important;
|
|
121
121
|
}
|
|
@@ -129,12 +129,12 @@ $offset: 0.02px;
|
|
|
129
129
|
display: none !important;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
&.is-
|
|
132
|
+
&.is-small-or-more {
|
|
133
133
|
@include screen("xsmall") {
|
|
134
134
|
display: none !important;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
&.is-
|
|
137
|
+
&.is-medium-or-less {
|
|
138
138
|
@include screen("large") {
|
|
139
139
|
display: none !important;
|
|
140
140
|
}
|
|
@@ -142,7 +142,7 @@ $offset: 0.02px;
|
|
|
142
142
|
display: none !important;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
&.is-
|
|
145
|
+
&.is-medium {
|
|
146
146
|
@include screen("xsmall") {
|
|
147
147
|
display: none !important;
|
|
148
148
|
}
|
|
@@ -156,7 +156,37 @@ $offset: 0.02px;
|
|
|
156
156
|
display: none !important;
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
|
-
&.is-
|
|
159
|
+
&.is-medium-or-more {
|
|
160
|
+
@include screen("small") {
|
|
161
|
+
display: none !important;
|
|
162
|
+
}
|
|
163
|
+
@include screen("xsmall") {
|
|
164
|
+
display: none !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
&.is-large-or-less {
|
|
168
|
+
@include screen("large") {
|
|
169
|
+
display: none !important;
|
|
170
|
+
}
|
|
171
|
+
@include screen("xlarge") {
|
|
172
|
+
display: none !important;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
&.is-large {
|
|
176
|
+
@include screen("xsmall") {
|
|
177
|
+
display: none !important;
|
|
178
|
+
}
|
|
179
|
+
@include screen("small") {
|
|
180
|
+
display: none !important;
|
|
181
|
+
}
|
|
182
|
+
@include screen("large") {
|
|
183
|
+
display: none !important;
|
|
184
|
+
}
|
|
185
|
+
@include screen("xlarge") {
|
|
186
|
+
display: none !important;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
&.is-large-or-more {
|
|
160
190
|
@include screen("xsmall") {
|
|
161
191
|
display: none !important;
|
|
162
192
|
}
|
|
@@ -164,12 +194,12 @@ $offset: 0.02px;
|
|
|
164
194
|
display: none !important;
|
|
165
195
|
}
|
|
166
196
|
}
|
|
167
|
-
&.is-
|
|
197
|
+
&.is-large-or-less {
|
|
168
198
|
@include screen("xlarge") {
|
|
169
199
|
display: none !important;
|
|
170
200
|
}
|
|
171
201
|
}
|
|
172
|
-
&.is-
|
|
202
|
+
&.is-large {
|
|
173
203
|
@include screen("xsmall") {
|
|
174
204
|
display: none !important;
|
|
175
205
|
}
|
|
@@ -183,7 +213,7 @@ $offset: 0.02px;
|
|
|
183
213
|
display: none !important;
|
|
184
214
|
}
|
|
185
215
|
}
|
|
186
|
-
&.is-
|
|
216
|
+
&.is-large-or-more {
|
|
187
217
|
@include screen("xsmall") {
|
|
188
218
|
display: none !important;
|
|
189
219
|
}
|
|
@@ -194,7 +224,7 @@ $offset: 0.02px;
|
|
|
194
224
|
display: none !important;
|
|
195
225
|
}
|
|
196
226
|
}
|
|
197
|
-
&.is-
|
|
227
|
+
&.is-xlarge {
|
|
198
228
|
@include screen("xsmall") {
|
|
199
229
|
display: none !important;
|
|
200
230
|
}
|
|
@@ -6,28 +6,62 @@
|
|
|
6
6
|
|
|
7
7
|
.is-width-#{$escaped}rem,
|
|
8
8
|
.width-#{$escaped}rem {
|
|
9
|
-
width: $p * 0.1rem;
|
|
9
|
+
width: $p * 0.1rem !important;
|
|
10
10
|
}
|
|
11
11
|
.is-height-#{$escaped}rem,
|
|
12
12
|
.height-#{$escaped}rem {
|
|
13
|
-
height: $p * 0.1rem;
|
|
13
|
+
height: $p * 0.1rem !important;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.is-width-100-percentage
|
|
18
|
-
|
|
17
|
+
.is-width-100-percentage,
|
|
18
|
+
.width-100-percentage {
|
|
19
|
+
width: 100% !important;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
|
-
.is-
|
|
22
|
-
|
|
22
|
+
.is-width-75-percentage,
|
|
23
|
+
.width-75-percentage {
|
|
24
|
+
width: 75% !important;
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
.is-width-
|
|
26
|
-
|
|
27
|
+
.is-width-50-percentage,
|
|
28
|
+
.width-50-percentage {
|
|
29
|
+
width: 50% !important;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
.is-
|
|
30
|
-
|
|
32
|
+
.is-width-25-percentage,
|
|
33
|
+
.width-25-percentage {
|
|
34
|
+
width: 25% !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.is-width-auto,
|
|
38
|
+
.width-auto {
|
|
39
|
+
width: auto !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.is-height-100-percentage,
|
|
43
|
+
.height-100-percentage {
|
|
44
|
+
height: 100% !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.is-height-75-percentage,
|
|
48
|
+
.height-75-percentage {
|
|
49
|
+
height: 75% !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.is-height-50-percentage,
|
|
53
|
+
.height-50-percentage {
|
|
54
|
+
height: 50% !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.is-height-25-percentage,
|
|
58
|
+
.height-25-percentage {
|
|
59
|
+
height: 25% !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.is-height-auto,
|
|
63
|
+
.height-auto {
|
|
64
|
+
height: auto !important;
|
|
31
65
|
}
|
|
32
66
|
|
|
33
67
|
.is-aspect-ratio-square {
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
font-family: var(--#{variables.$prefix}font-family-monospace);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
.is-font-size-xsmall {
|
|
52
|
+
font-size: var(--#{variables.$prefix}font-size-xsmall) !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
.is-font-size-small {
|
|
52
56
|
font-size: var(--#{variables.$prefix}font-size-small) !important;
|
|
53
57
|
}
|
|
@@ -5,9 +5,10 @@ $border-width-medium: 0.125rem !default;
|
|
|
5
5
|
$border-width-thick: 0.25rem !default;
|
|
6
6
|
$border-width-xthick: 0.5rem !default;
|
|
7
7
|
|
|
8
|
-
$border-radius-small: 0.
|
|
9
|
-
$border-radius-medium: 0.
|
|
10
|
-
$border-radius-large: 0.
|
|
8
|
+
$border-radius-small: 0.25rem !default;
|
|
9
|
+
$border-radius-medium: 0.5rem !default;
|
|
10
|
+
$border-radius-large: 0.75rem !default;
|
|
11
|
+
$border-radius-xlarge: 1rem !default;
|
|
11
12
|
$border-radius-circle: 50% !default;
|
|
12
13
|
$border-radius-pill: 50rem !default;
|
|
13
14
|
|
|
@@ -45,6 +46,10 @@ $borderRadiuses: (
|
|
|
45
46
|
"name": "large",
|
|
46
47
|
"value": $border-radius-large,
|
|
47
48
|
),
|
|
49
|
+
(
|
|
50
|
+
"name": "xlarge",
|
|
51
|
+
"value": $border-radius-xlarge,
|
|
52
|
+
),
|
|
48
53
|
(
|
|
49
54
|
"name": "circle",
|
|
50
55
|
"value": $border-radius-circle,
|