minolith 1.0.4 → 1.1.1
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-skelton.css +568 -419
- package/dist/css/minolith-skelton.css.map +1 -1
- package/dist/css/minolith-skelton.min.css +568 -419
- package/dist/css/minolith-skelton.min.css.map +1 -1
- package/dist/css/minolith.css +14869 -4909
- package/dist/css/minolith.css.map +1 -1
- package/dist/css/minolith.min.css +3976 -1222
- package/dist/css/minolith.min.css.map +1 -1
- package/package.json +1 -1
- package/src/backgrounds/dot.scss +16 -0
- package/src/backgrounds/gingham.scss +16 -0
- package/src/backgrounds/rhombus.scss +17 -2
- package/src/backgrounds/stripe.scss +16 -0
- package/src/backgrounds/zigzag.scss +16 -0
- package/src/base/tabula.scss +19 -2
- package/src/components/accordion.scss +151 -52
- package/src/components/badge.scss +108 -45
- package/src/components/blockquote.scss +56 -11
- package/src/components/breadcrumbs.scss +52 -8
- package/src/components/button.scss +110 -45
- package/src/components/card.scss +138 -48
- package/src/components/dialogue.scss +122 -55
- package/src/components/footer.scss +17 -6
- package/src/components/hamburger.scss +89 -50
- package/src/components/header.scss +61 -4
- package/src/components/input.scss +115 -48
- package/src/components/label.scss +50 -2
- package/src/components/link.scss +65 -6
- package/src/components/list.scss +1 -1
- package/src/components/loader.scss +17 -6
- package/src/components/message.scss +94 -27
- package/src/components/modal.scss +12 -3
- package/src/components/nav.scss +207 -148
- package/src/css-variables/color.scss +533 -467
- package/src/functions/color.scss +13 -0
- package/src/functions/index.scss +1 -0
- package/src/variables/color.scss +527 -1045
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "sass:string";
|
|
3
|
+
@use "../functions/index.scss" as functions;
|
|
3
4
|
@use "../variables/index.scss" as variables;
|
|
4
5
|
@use "../mixins/index.scss" as mixins;
|
|
5
6
|
|
|
@@ -40,12 +41,16 @@
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
@mixin setColor(
|
|
44
|
-
$
|
|
45
|
-
$
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
@mixin setColor(
|
|
45
|
+
$colorShade,
|
|
46
|
+
$lightnessOffset,
|
|
47
|
+
$srcColorName,
|
|
48
|
+
$destColorName,
|
|
49
|
+
$pseudoName,
|
|
50
|
+
$componentName: ""
|
|
51
|
+
) {
|
|
52
|
+
$srcColorName: $srcColorName;
|
|
53
|
+
$destColorName: $destColorName;
|
|
49
54
|
|
|
50
55
|
$pseudo: "";
|
|
51
56
|
@if ($pseudoName != "plain") {
|
|
@@ -62,9 +67,11 @@
|
|
|
62
67
|
$light: map.get($fore, "light");
|
|
63
68
|
$dark: map.get($fore, "dark");
|
|
64
69
|
@if ($light != null and $dark != null) {
|
|
70
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
71
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
65
72
|
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-fore: light-dark(
|
|
66
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
67
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
73
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
74
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
68
75
|
);
|
|
69
76
|
}
|
|
70
77
|
}
|
|
@@ -74,9 +81,11 @@
|
|
|
74
81
|
$light: map.get($back, "light");
|
|
75
82
|
$dark: map.get($back, "dark");
|
|
76
83
|
@if ($light != null and $dark != null) {
|
|
84
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
85
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
77
86
|
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-back: light-dark(
|
|
78
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
79
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
87
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
88
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
80
89
|
);
|
|
81
90
|
}
|
|
82
91
|
}
|
|
@@ -86,9 +95,11 @@
|
|
|
86
95
|
$light: map.get($border, "light");
|
|
87
96
|
$dark: map.get($border, "dark");
|
|
88
97
|
@if ($light != null and $dark != null) {
|
|
98
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
99
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
89
100
|
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-border: light-dark(
|
|
90
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
91
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
101
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
102
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
92
103
|
);
|
|
93
104
|
}
|
|
94
105
|
}
|
|
@@ -98,9 +109,11 @@
|
|
|
98
109
|
$light: map.get($placeholder, "light");
|
|
99
110
|
$dark: map.get($placeholder, "dark");
|
|
100
111
|
@if ($light != null and $dark != null) {
|
|
112
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
113
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
101
114
|
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-placeholder: light-dark(
|
|
102
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
103
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
115
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
116
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
104
117
|
);
|
|
105
118
|
}
|
|
106
119
|
}
|
|
@@ -110,501 +123,554 @@
|
|
|
110
123
|
$light: map.get($shadow, "light");
|
|
111
124
|
$dark: map.get($shadow, "dark");
|
|
112
125
|
@if ($light != null and $dark != null) {
|
|
126
|
+
$lightStr: functions.colorLightnessNumberToString($light + $lightnessOffset);
|
|
127
|
+
$darkStr: functions.colorLightnessNumberToString($dark + $lightnessOffset);
|
|
113
128
|
--#{variables.$prefix}color-#{$destColorName}#{$component}#{$pseudo}-shadow: light-dark(
|
|
114
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
115
|
-
var(--#{variables.$prefix}color-#{$srcColorName}-#{$
|
|
129
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$lightStr}),
|
|
130
|
+
var(--#{variables.$prefix}color-#{$srcColorName}-#{$darkStr})
|
|
116
131
|
);
|
|
117
132
|
}
|
|
118
133
|
}
|
|
119
134
|
}
|
|
120
135
|
|
|
121
|
-
@mixin
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
136
|
+
@mixin setColorShade(
|
|
137
|
+
$colorShade,
|
|
138
|
+
$lightnessOffset,
|
|
139
|
+
$srcColorName,
|
|
140
|
+
$destColorName,
|
|
141
|
+
$name
|
|
142
|
+
) {
|
|
143
|
+
@include setColor(
|
|
144
|
+
$colorShade,
|
|
145
|
+
$lightnessOffset,
|
|
146
|
+
$srcColorName,
|
|
147
|
+
$destColorName,
|
|
148
|
+
$name
|
|
149
|
+
);
|
|
150
|
+
|
|
151
|
+
$selection: map.get($colorShade, "selection");
|
|
152
|
+
@if ($selection != null) {
|
|
153
|
+
@include setColor(
|
|
154
|
+
$selection,
|
|
155
|
+
$lightnessOffset,
|
|
156
|
+
$srcColorName,
|
|
157
|
+
$destColorName,
|
|
158
|
+
$name,
|
|
159
|
+
"selection"
|
|
129
160
|
);
|
|
161
|
+
}
|
|
130
162
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
$
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
"accordion-summary"
|
|
145
|
-
);
|
|
146
|
-
}
|
|
163
|
+
//#region components
|
|
164
|
+
|
|
165
|
+
//#region accordion
|
|
166
|
+
$accordion: map.get($colorShade, "accordion");
|
|
167
|
+
@if ($accordion != null) {
|
|
168
|
+
@include setColor(
|
|
169
|
+
$accordion,
|
|
170
|
+
$lightnessOffset,
|
|
171
|
+
$srcColorName,
|
|
172
|
+
$destColorName,
|
|
173
|
+
$name,
|
|
174
|
+
"accordion"
|
|
175
|
+
);
|
|
147
176
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
177
|
+
$accordionSummary: map.get($accordion, "accordionSummary");
|
|
178
|
+
@if ($accordionSummary != null) {
|
|
179
|
+
@include setColor(
|
|
180
|
+
$accordionSummary,
|
|
181
|
+
$lightnessOffset,
|
|
182
|
+
$srcColorName,
|
|
183
|
+
$destColorName,
|
|
184
|
+
$name,
|
|
185
|
+
"accordion-summary"
|
|
186
|
+
);
|
|
157
187
|
}
|
|
158
|
-
//#endregion accordion
|
|
159
188
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
189
|
+
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
190
|
+
@if ($accordionDetails != null) {
|
|
191
|
+
@include setColor(
|
|
192
|
+
$accordionDetails,
|
|
193
|
+
$lightnessOffset,
|
|
194
|
+
$srcColorName,
|
|
195
|
+
$destColorName,
|
|
196
|
+
$name,
|
|
197
|
+
"accordion-details"
|
|
198
|
+
);
|
|
164
199
|
}
|
|
165
|
-
|
|
200
|
+
}
|
|
201
|
+
//#endregion accordion
|
|
202
|
+
|
|
203
|
+
//#region badge
|
|
204
|
+
$badge: map.get($colorShade, "badge");
|
|
205
|
+
@if ($badge != null) {
|
|
206
|
+
@include setColor(
|
|
207
|
+
$badge,
|
|
208
|
+
$lightnessOffset,
|
|
209
|
+
$srcColorName,
|
|
210
|
+
$destColorName,
|
|
211
|
+
$name,
|
|
212
|
+
"badge"
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
//#endregion badge
|
|
216
|
+
|
|
217
|
+
//#region blockquote
|
|
218
|
+
$blockquote: map.get($colorShade, "blockquote");
|
|
219
|
+
@if ($blockquote != null) {
|
|
220
|
+
@include setColor(
|
|
221
|
+
$blockquote,
|
|
222
|
+
$lightnessOffset,
|
|
223
|
+
$srcColorName,
|
|
224
|
+
$destColorName,
|
|
225
|
+
$name,
|
|
226
|
+
"blockquote"
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
//#endregion blockquote
|
|
230
|
+
|
|
231
|
+
//#region breadcrumbs
|
|
232
|
+
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
233
|
+
@if ($breadcrumbs != null) {
|
|
234
|
+
@include setColor(
|
|
235
|
+
$breadcrumbs,
|
|
236
|
+
$lightnessOffset,
|
|
237
|
+
$srcColorName,
|
|
238
|
+
$destColorName,
|
|
239
|
+
$name,
|
|
240
|
+
"breadcrumbs"
|
|
241
|
+
);
|
|
166
242
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
243
|
+
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
244
|
+
@if ($breadcrumb != null) {
|
|
245
|
+
@include setColor(
|
|
246
|
+
$breadcrumb,
|
|
247
|
+
$lightnessOffset,
|
|
248
|
+
$srcColorName,
|
|
249
|
+
$destColorName,
|
|
250
|
+
$name,
|
|
251
|
+
"breadcrumb"
|
|
252
|
+
);
|
|
171
253
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
185
|
-
@if ($breadcrumbDivider != null) {
|
|
186
|
-
@include setColor(
|
|
187
|
-
$breadcrumbDivider,
|
|
188
|
-
"default",
|
|
189
|
-
$name,
|
|
190
|
-
"breadcrumb-divider"
|
|
191
|
-
);
|
|
192
|
-
}
|
|
254
|
+
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
255
|
+
@if ($breadcrumbDivider != null) {
|
|
256
|
+
@include setColor(
|
|
257
|
+
$breadcrumbDivider,
|
|
258
|
+
$lightnessOffset,
|
|
259
|
+
$srcColorName,
|
|
260
|
+
$destColorName,
|
|
261
|
+
$name,
|
|
262
|
+
"breadcrumb-divider"
|
|
263
|
+
);
|
|
193
264
|
}
|
|
194
|
-
|
|
265
|
+
}
|
|
266
|
+
//#endregion breadcrumbs
|
|
267
|
+
|
|
268
|
+
//#region button
|
|
269
|
+
$button: map.get($colorShade, "button");
|
|
270
|
+
@if ($button != null) {
|
|
271
|
+
@include setColor(
|
|
272
|
+
$button,
|
|
273
|
+
$lightnessOffset,
|
|
274
|
+
$srcColorName,
|
|
275
|
+
$destColorName,
|
|
276
|
+
$name,
|
|
277
|
+
"button"
|
|
278
|
+
);
|
|
279
|
+
}
|
|
280
|
+
//#endregion button
|
|
281
|
+
|
|
282
|
+
//#region card
|
|
283
|
+
$card: map.get($colorShade, "card");
|
|
284
|
+
@if ($card != null) {
|
|
285
|
+
@include setColor(
|
|
286
|
+
$card,
|
|
287
|
+
$lightnessOffset,
|
|
288
|
+
$srcColorName,
|
|
289
|
+
$destColorName,
|
|
290
|
+
$name,
|
|
291
|
+
"card"
|
|
292
|
+
);
|
|
195
293
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
294
|
+
$cardHeader: map.get($card, "cardHeader");
|
|
295
|
+
@if ($cardHeader != null) {
|
|
296
|
+
@include setColor(
|
|
297
|
+
$cardHeader,
|
|
298
|
+
$lightnessOffset,
|
|
299
|
+
$srcColorName,
|
|
300
|
+
$destColorName,
|
|
301
|
+
$name,
|
|
302
|
+
"card-header"
|
|
303
|
+
);
|
|
200
304
|
}
|
|
201
|
-
//#endregion button
|
|
202
|
-
|
|
203
|
-
//#region card
|
|
204
|
-
$card: map.get($colorShade, "card");
|
|
205
|
-
@if ($card != null) {
|
|
206
|
-
@include setColor($card, "default", $name, "card");
|
|
207
|
-
|
|
208
|
-
$cardHeader: map.get($card, "cardHeader");
|
|
209
|
-
@if ($cardHeader != null) {
|
|
210
|
-
@include setColor($cardHeader, "default", $name, "card-header");
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
$cardBody: map.get($card, "cardBody");
|
|
214
|
-
@if ($cardBody != null) {
|
|
215
|
-
@include setColor($cardBody, "default", $name, "card-body");
|
|
216
|
-
}
|
|
217
305
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
306
|
+
$cardBody: map.get($card, "cardBody");
|
|
307
|
+
@if ($cardBody != null) {
|
|
308
|
+
@include setColor(
|
|
309
|
+
$cardBody,
|
|
310
|
+
$lightnessOffset,
|
|
311
|
+
$srcColorName,
|
|
312
|
+
$destColorName,
|
|
313
|
+
$name,
|
|
314
|
+
"card-body"
|
|
315
|
+
);
|
|
222
316
|
}
|
|
223
|
-
//#endregion card
|
|
224
|
-
|
|
225
|
-
//#region dialogue
|
|
226
|
-
$dialogue: map.get($colorShade, "dialogue");
|
|
227
|
-
@if ($dialogue != null) {
|
|
228
|
-
@include setColor($dialogue, "default", $name, "dialogue");
|
|
229
|
-
|
|
230
|
-
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
231
|
-
@if ($dialogueAvatar != null) {
|
|
232
|
-
@include setColor($dialogueAvatar, "default", $name, "dialogue-avatar");
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
$dialogueName: map.get($dialogue, "dialogueName");
|
|
236
|
-
@if ($dialogueName != null) {
|
|
237
|
-
@include setColor($dialogueName, "default", $name, "dialogue-name");
|
|
238
|
-
}
|
|
239
317
|
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
318
|
+
$cardFooter: map.get($card, "cardFooter");
|
|
319
|
+
@if ($cardFooter != null) {
|
|
320
|
+
@include setColor(
|
|
321
|
+
$cardFooter,
|
|
322
|
+
$lightnessOffset,
|
|
323
|
+
$srcColorName,
|
|
324
|
+
$destColorName,
|
|
325
|
+
$name,
|
|
326
|
+
"card-footer"
|
|
327
|
+
);
|
|
249
328
|
}
|
|
250
|
-
|
|
329
|
+
}
|
|
330
|
+
//#endregion card
|
|
331
|
+
|
|
332
|
+
//#region dialogue
|
|
333
|
+
$dialogue: map.get($colorShade, "dialogue");
|
|
334
|
+
@if ($dialogue != null) {
|
|
335
|
+
@include setColor(
|
|
336
|
+
$dialogue,
|
|
337
|
+
$lightnessOffset,
|
|
338
|
+
$srcColorName,
|
|
339
|
+
$destColorName,
|
|
340
|
+
$name,
|
|
341
|
+
"dialogue"
|
|
342
|
+
);
|
|
251
343
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
344
|
+
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
345
|
+
@if ($dialogueAvatar != null) {
|
|
346
|
+
@include setColor(
|
|
347
|
+
$dialogueAvatar,
|
|
348
|
+
$lightnessOffset,
|
|
349
|
+
$srcColorName,
|
|
350
|
+
$destColorName,
|
|
351
|
+
$name,
|
|
352
|
+
"dialogue-avatar"
|
|
353
|
+
);
|
|
256
354
|
}
|
|
257
|
-
//#endregion header
|
|
258
355
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
356
|
+
$dialogueName: map.get($dialogue, "dialogueName");
|
|
357
|
+
@if ($dialogueName != null) {
|
|
358
|
+
@include setColor(
|
|
359
|
+
$dialogueName,
|
|
360
|
+
$lightnessOffset,
|
|
361
|
+
$srcColorName,
|
|
362
|
+
$destColorName,
|
|
363
|
+
$name,
|
|
364
|
+
"dialogue-name"
|
|
365
|
+
);
|
|
263
366
|
}
|
|
264
|
-
//#endregion label
|
|
265
367
|
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
368
|
+
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
369
|
+
@if ($dialogueMessage != null) {
|
|
370
|
+
@include setColor(
|
|
371
|
+
$dialogueMessage,
|
|
372
|
+
$lightnessOffset,
|
|
373
|
+
$srcColorName,
|
|
374
|
+
$destColorName,
|
|
375
|
+
$name,
|
|
376
|
+
"dialogue-message"
|
|
377
|
+
);
|
|
270
378
|
}
|
|
271
|
-
|
|
379
|
+
}
|
|
380
|
+
//#endregion dialogue
|
|
381
|
+
|
|
382
|
+
//#region footer
|
|
383
|
+
$footer: map.get($colorShade, "footer");
|
|
384
|
+
@if ($footer != null) {
|
|
385
|
+
@include setColor(
|
|
386
|
+
$footer,
|
|
387
|
+
$lightnessOffset,
|
|
388
|
+
$srcColorName,
|
|
389
|
+
$destColorName,
|
|
390
|
+
$name,
|
|
391
|
+
"footer"
|
|
392
|
+
);
|
|
393
|
+
}
|
|
394
|
+
//#endregion footer
|
|
395
|
+
|
|
396
|
+
//#region header
|
|
397
|
+
$header: map.get($colorShade, "header");
|
|
398
|
+
@if ($header != null) {
|
|
399
|
+
@include setColor(
|
|
400
|
+
$header,
|
|
401
|
+
$lightnessOffset,
|
|
402
|
+
$srcColorName,
|
|
403
|
+
$destColorName,
|
|
404
|
+
$name,
|
|
405
|
+
"header"
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
//#endregion header
|
|
409
|
+
|
|
410
|
+
//#region input
|
|
411
|
+
$input: map.get($colorShade, "input");
|
|
412
|
+
@if ($input != null) {
|
|
413
|
+
@include setColor(
|
|
414
|
+
$input,
|
|
415
|
+
$lightnessOffset,
|
|
416
|
+
$srcColorName,
|
|
417
|
+
$destColorName,
|
|
418
|
+
$name,
|
|
419
|
+
"input"
|
|
420
|
+
);
|
|
421
|
+
}
|
|
422
|
+
//#endregion input
|
|
423
|
+
|
|
424
|
+
//#region label
|
|
425
|
+
$label: map.get($colorShade, "label");
|
|
426
|
+
@if ($label != null) {
|
|
427
|
+
@include setColor(
|
|
428
|
+
$label,
|
|
429
|
+
$lightnessOffset,
|
|
430
|
+
$srcColorName,
|
|
431
|
+
$destColorName,
|
|
432
|
+
$name,
|
|
433
|
+
"label"
|
|
434
|
+
);
|
|
435
|
+
}
|
|
436
|
+
//#endregion label
|
|
437
|
+
|
|
438
|
+
//#region link
|
|
439
|
+
$link: map.get($colorShade, "link");
|
|
440
|
+
@if ($link != null) {
|
|
441
|
+
@include setColor(
|
|
442
|
+
$link,
|
|
443
|
+
$lightnessOffset,
|
|
444
|
+
$srcColorName,
|
|
445
|
+
$destColorName,
|
|
446
|
+
$name,
|
|
447
|
+
"link"
|
|
448
|
+
);
|
|
449
|
+
}
|
|
450
|
+
//#endregion link
|
|
451
|
+
|
|
452
|
+
//#region loader
|
|
453
|
+
$loader: map.get($colorShade, "loader");
|
|
454
|
+
@if ($loader != null) {
|
|
455
|
+
@include setColor(
|
|
456
|
+
$loader,
|
|
457
|
+
$lightnessOffset,
|
|
458
|
+
$srcColorName,
|
|
459
|
+
$destColorName,
|
|
460
|
+
$name,
|
|
461
|
+
"loader"
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
//#endregion loader
|
|
465
|
+
|
|
466
|
+
//#region main
|
|
467
|
+
$main: map.get($colorShade, "main");
|
|
468
|
+
@if ($main != null) {
|
|
469
|
+
@include setColor(
|
|
470
|
+
$main,
|
|
471
|
+
$lightnessOffset,
|
|
472
|
+
$srcColorName,
|
|
473
|
+
$destColorName,
|
|
474
|
+
$name,
|
|
475
|
+
"main"
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
//#endregion main
|
|
479
|
+
|
|
480
|
+
//#region message
|
|
481
|
+
$message: map.get($colorShade, "message");
|
|
482
|
+
@if ($message != null) {
|
|
483
|
+
@include setColor(
|
|
484
|
+
$message,
|
|
485
|
+
$lightnessOffset,
|
|
486
|
+
$srcColorName,
|
|
487
|
+
$destColorName,
|
|
488
|
+
$name,
|
|
489
|
+
"message"
|
|
490
|
+
);
|
|
272
491
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
492
|
+
$messageHeader: map.get($message, "messageHeader");
|
|
493
|
+
@if ($messageHeader != null) {
|
|
494
|
+
@include setColor(
|
|
495
|
+
$messageHeader,
|
|
496
|
+
$lightnessOffset,
|
|
497
|
+
$srcColorName,
|
|
498
|
+
$destColorName,
|
|
499
|
+
$name,
|
|
500
|
+
"message-header"
|
|
501
|
+
);
|
|
277
502
|
}
|
|
278
|
-
//#endregion loader
|
|
279
|
-
|
|
280
|
-
//#region message
|
|
281
|
-
$message: map.get($colorShade, "message");
|
|
282
|
-
@if ($message != null) {
|
|
283
|
-
@include setColor($message, "default", $name, "message");
|
|
284
503
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
504
|
+
$messageBody: map.get($message, "messageBody");
|
|
505
|
+
@if ($messageBody != null) {
|
|
506
|
+
@include setColor(
|
|
507
|
+
$messageBody,
|
|
508
|
+
$lightnessOffset,
|
|
509
|
+
$srcColorName,
|
|
510
|
+
$destColorName,
|
|
511
|
+
$name,
|
|
512
|
+
"message-body"
|
|
513
|
+
);
|
|
294
514
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
515
|
+
}
|
|
516
|
+
//#endregion message
|
|
517
|
+
|
|
518
|
+
//#region nav
|
|
519
|
+
$nav: map.get($colorShade, "nav");
|
|
520
|
+
@if ($nav != null) {
|
|
521
|
+
@include setColor(
|
|
522
|
+
$nav,
|
|
523
|
+
$lightnessOffset,
|
|
524
|
+
$srcColorName,
|
|
525
|
+
$destColorName,
|
|
526
|
+
$name,
|
|
527
|
+
"nav"
|
|
528
|
+
);
|
|
529
|
+
$navMenu: map.get($nav, "navMenu");
|
|
530
|
+
@if ($navMenu != null) {
|
|
531
|
+
@include setColor(
|
|
532
|
+
$navMenu,
|
|
533
|
+
$lightnessOffset,
|
|
534
|
+
$srcColorName,
|
|
535
|
+
$destColorName,
|
|
536
|
+
$name,
|
|
537
|
+
"nav-menu"
|
|
538
|
+
);
|
|
539
|
+
$navMenuItem: map.get($navMenu, "navMenuItem");
|
|
540
|
+
@if ($navMenuItem != null) {
|
|
541
|
+
@include setColor(
|
|
542
|
+
$navMenuItem,
|
|
543
|
+
$lightnessOffset,
|
|
544
|
+
$srcColorName,
|
|
545
|
+
$destColorName,
|
|
546
|
+
$name,
|
|
547
|
+
"nav-menu-item"
|
|
548
|
+
);
|
|
308
549
|
}
|
|
309
550
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
551
|
+
}
|
|
552
|
+
//#endregion nav
|
|
553
|
+
|
|
554
|
+
//#region progress
|
|
555
|
+
$progress: map.get($colorShade, "progress");
|
|
556
|
+
@if ($progress != null) {
|
|
557
|
+
@include setColor(
|
|
558
|
+
$progress,
|
|
559
|
+
$lightnessOffset,
|
|
560
|
+
$srcColorName,
|
|
561
|
+
$destColorName,
|
|
562
|
+
$name,
|
|
563
|
+
"progress"
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
//#endregion progress
|
|
567
|
+
|
|
568
|
+
//#endregion components
|
|
569
|
+
|
|
570
|
+
//#region backgrounds
|
|
571
|
+
|
|
572
|
+
//#region dot
|
|
573
|
+
$dot: map.get($colorShade, "dot");
|
|
574
|
+
@if ($dot != null) {
|
|
575
|
+
@include setColor(
|
|
576
|
+
$dot,
|
|
577
|
+
$lightnessOffset,
|
|
578
|
+
$srcColorName,
|
|
579
|
+
$destColorName,
|
|
580
|
+
$name,
|
|
581
|
+
"dot"
|
|
582
|
+
);
|
|
583
|
+
}
|
|
584
|
+
//#endregion dot
|
|
585
|
+
|
|
586
|
+
//#region gingham
|
|
587
|
+
$gingham: map.get($colorShade, "gingham");
|
|
588
|
+
@if ($gingham != null) {
|
|
589
|
+
@include setColor(
|
|
590
|
+
$gingham,
|
|
591
|
+
$lightnessOffset,
|
|
592
|
+
$srcColorName,
|
|
593
|
+
$destColorName,
|
|
594
|
+
$name,
|
|
595
|
+
"gingham"
|
|
596
|
+
);
|
|
597
|
+
}
|
|
598
|
+
//#endregion gingham
|
|
599
|
+
|
|
600
|
+
//#region rhombus
|
|
601
|
+
$rhombus: map.get($colorShade, "rhombus");
|
|
602
|
+
@if ($rhombus != null) {
|
|
603
|
+
@include setColor(
|
|
604
|
+
$rhombus,
|
|
605
|
+
$lightnessOffset,
|
|
606
|
+
$srcColorName,
|
|
607
|
+
$destColorName,
|
|
608
|
+
$name,
|
|
609
|
+
"rhombus"
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
//#endregion rhombus
|
|
613
|
+
|
|
614
|
+
//#region stripe
|
|
615
|
+
$stripe: map.get($colorShade, "stripe");
|
|
616
|
+
@if ($stripe != null) {
|
|
617
|
+
@include setColor(
|
|
618
|
+
$stripe,
|
|
619
|
+
$lightnessOffset,
|
|
620
|
+
$srcColorName,
|
|
621
|
+
$destColorName,
|
|
622
|
+
$name,
|
|
623
|
+
"stripe"
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
//#endregion stripe
|
|
627
|
+
|
|
628
|
+
//#region zigzag
|
|
629
|
+
$zigzag: map.get($colorShade, "zigzag");
|
|
630
|
+
@if ($zigzag != null) {
|
|
631
|
+
@include setColor(
|
|
632
|
+
$zigzag,
|
|
633
|
+
$lightnessOffset,
|
|
634
|
+
$srcColorName,
|
|
635
|
+
$destColorName,
|
|
636
|
+
$name,
|
|
637
|
+
"zigzag"
|
|
638
|
+
);
|
|
639
|
+
}
|
|
640
|
+
//#endregion zigzag
|
|
343
641
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
@if ($stripe != null) {
|
|
347
|
-
@include setColor($stripe, "default", $name, "stripe");
|
|
348
|
-
}
|
|
349
|
-
//#endregion stripe
|
|
642
|
+
//#endregion backgrounds
|
|
643
|
+
}
|
|
350
644
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
@include setColor($zigzag, "default", $name, "zigzag");
|
|
355
|
-
}
|
|
356
|
-
//#endregion zigzag
|
|
645
|
+
@mixin setColorShades($colorShades) {
|
|
646
|
+
@each $colorShade in $colorShades {
|
|
647
|
+
$name: map.get($colorShade, "name");
|
|
357
648
|
|
|
358
|
-
|
|
649
|
+
@include setColorShade($colorShade, 0, "gray", "default", $name);
|
|
359
650
|
|
|
360
651
|
@if (not variables.$is-skelton) {
|
|
361
652
|
@each $color in variables.$colors {
|
|
362
653
|
$colorName: map.get($color, "name");
|
|
654
|
+
@include setColorShade($colorShade, 0, $colorName, $colorName, $name);
|
|
655
|
+
}
|
|
363
656
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
$accordionDetails: map.get($accordion, "accordionDetails");
|
|
384
|
-
@if ($accordionDetails != null) {
|
|
385
|
-
@include setColor(
|
|
386
|
-
$accordionDetails,
|
|
387
|
-
$colorName,
|
|
388
|
-
$name,
|
|
389
|
-
"accordion-details"
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
//#endregion accordion
|
|
394
|
-
|
|
395
|
-
//#region badge
|
|
396
|
-
$badge: map.get($colorShade, "badge");
|
|
397
|
-
@if ($badge != null) {
|
|
398
|
-
@include setColor($badge, $colorName, $name, "badge");
|
|
399
|
-
}
|
|
400
|
-
//#endregion badge
|
|
401
|
-
|
|
402
|
-
//#region blockquote
|
|
403
|
-
$blockquote: map.get($colorShade, "blockquote");
|
|
404
|
-
@if ($blockquote != null) {
|
|
405
|
-
@include setColor($blockquote, $colorName, $name, "blockquote");
|
|
406
|
-
}
|
|
407
|
-
//#endregion blockquote
|
|
408
|
-
|
|
409
|
-
//#region breadcrumbs
|
|
410
|
-
$breadcrumbs: map.get($colorShade, "breadcrumbs");
|
|
411
|
-
@if ($breadcrumbs != null) {
|
|
412
|
-
@include setColor($breadcrumbs, $colorName, $name, "breadcrumbs");
|
|
413
|
-
|
|
414
|
-
$breadcrumb: map.get($breadcrumbs, "breadcrumb");
|
|
415
|
-
@if ($breadcrumb != null) {
|
|
416
|
-
@include setColor($breadcrumb, $colorName, $name, "breadcrumb");
|
|
417
|
-
}
|
|
418
|
-
$breadcrumbDivider: map.get($breadcrumbs, "breadcrumbDivider");
|
|
419
|
-
@if ($breadcrumbDivider != null) {
|
|
420
|
-
@include setColor(
|
|
421
|
-
$breadcrumbDivider,
|
|
422
|
-
$colorName,
|
|
423
|
-
$name,
|
|
424
|
-
"breadcrumb-divider"
|
|
425
|
-
);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
//#endregion breadcrumbs
|
|
429
|
-
|
|
430
|
-
//#region button
|
|
431
|
-
$button: map.get($colorShade, "button");
|
|
432
|
-
@if ($button != null) {
|
|
433
|
-
@include setColor($button, $colorName, $name, "button");
|
|
434
|
-
}
|
|
435
|
-
//#endregion button
|
|
436
|
-
|
|
437
|
-
//#region card
|
|
438
|
-
$card: map.get($colorShade, "card");
|
|
439
|
-
@if ($card != null) {
|
|
440
|
-
@include setColor($card, $colorName, $name, "card");
|
|
441
|
-
|
|
442
|
-
$cardHeader: map.get($card, "cardHeader");
|
|
443
|
-
@if ($cardHeader != null) {
|
|
444
|
-
@include setColor($cardHeader, $colorName, $name, "card-header");
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
$cardBody: map.get($card, "cardBody");
|
|
448
|
-
@if ($cardBody != null) {
|
|
449
|
-
@include setColor($cardBody, $colorName, $name, "card-body");
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
$cardFooter: map.get($card, "cardFooter");
|
|
453
|
-
@if ($cardFooter != null) {
|
|
454
|
-
@include setColor($cardFooter, $colorName, $name, "card-footer");
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
//#endregion card
|
|
458
|
-
|
|
459
|
-
//#region dialogue
|
|
460
|
-
$dialogue: map.get($colorShade, "dialogue");
|
|
461
|
-
@if ($dialogue != null) {
|
|
462
|
-
@include setColor($dialogue, $colorName, $name, "dialogue");
|
|
463
|
-
|
|
464
|
-
$dialogueAvatar: map.get($dialogue, "dialogueAvatar");
|
|
465
|
-
@if ($dialogueAvatar != null) {
|
|
466
|
-
@include setColor(
|
|
467
|
-
$dialogueAvatar,
|
|
468
|
-
$colorName,
|
|
469
|
-
$name,
|
|
470
|
-
"dialogue-avatar"
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
$dialogueName: map.get($dialogue, "dialogueName");
|
|
475
|
-
@if ($dialogueName != null) {
|
|
476
|
-
@include setColor(
|
|
477
|
-
$dialogueName,
|
|
478
|
-
$colorName,
|
|
479
|
-
$name,
|
|
480
|
-
"dialogue-name"
|
|
481
|
-
);
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
$dialogueMessage: map.get($dialogue, "dialogueMessage");
|
|
485
|
-
@if ($dialogueMessage != null) {
|
|
486
|
-
@include setColor(
|
|
487
|
-
$dialogueMessage,
|
|
488
|
-
$colorName,
|
|
489
|
-
$name,
|
|
490
|
-
"dialogue-message"
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
//#endregion dialogue
|
|
495
|
-
|
|
496
|
-
//#region header
|
|
497
|
-
$header: map.get($colorShade, "header");
|
|
498
|
-
@if ($header != null) {
|
|
499
|
-
@include setColor($header, $colorName, $name, "header");
|
|
500
|
-
}
|
|
501
|
-
//#endregion header
|
|
502
|
-
|
|
503
|
-
//#region label
|
|
504
|
-
$label: map.get($colorShade, "label");
|
|
505
|
-
@if ($label != null) {
|
|
506
|
-
@include setColor($label, $colorName, $name, "label");
|
|
507
|
-
}
|
|
508
|
-
//#endregion label
|
|
509
|
-
|
|
510
|
-
//#region link
|
|
511
|
-
$link: map.get($colorShade, "link");
|
|
512
|
-
@if ($link != null) {
|
|
513
|
-
@include setColor($link, $colorName, $name, "link");
|
|
514
|
-
}
|
|
515
|
-
//#endregion link
|
|
516
|
-
|
|
517
|
-
//#region loader
|
|
518
|
-
$loader: map.get($colorShade, "loader");
|
|
519
|
-
@if ($loader != null) {
|
|
520
|
-
@include setColor($loader, $colorName, $name, "loader");
|
|
521
|
-
}
|
|
522
|
-
//#endregion loader
|
|
523
|
-
|
|
524
|
-
//#region message
|
|
525
|
-
$message: map.get($colorShade, "message");
|
|
526
|
-
@if ($message != null) {
|
|
527
|
-
@include setColor($message, $colorName, $name, "message");
|
|
528
|
-
|
|
529
|
-
$messageHeader: map.get($message, "messageHeader");
|
|
530
|
-
@if ($messageHeader != null) {
|
|
531
|
-
@include setColor(
|
|
532
|
-
$messageHeader,
|
|
533
|
-
$colorName,
|
|
534
|
-
$name,
|
|
535
|
-
"message-header"
|
|
536
|
-
);
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
$messageBody: map.get($message, "messageBody");
|
|
540
|
-
@if ($messageBody != null) {
|
|
541
|
-
@include setColor($messageBody, $colorName, $name, "message-body");
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
//#endregion message
|
|
545
|
-
|
|
546
|
-
//#region nav
|
|
547
|
-
$nav: map.get($colorShade, "nav");
|
|
548
|
-
@if ($nav != null) {
|
|
549
|
-
@include setColor($nav, $colorName, $name, "nav");
|
|
550
|
-
$navMenu: map.get($nav, "navMenu");
|
|
551
|
-
@if ($navMenu != null) {
|
|
552
|
-
@include setColor($navMenu, $colorName, $name, "nav-menu");
|
|
553
|
-
$navMenuItem: map.get($navMenu, "navMenuItem");
|
|
554
|
-
@if ($navMenuItem != null) {
|
|
555
|
-
@include setColor($navMenuItem, $colorName, $name, "nav-menu-item");
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
//#endregion nav
|
|
560
|
-
|
|
561
|
-
//#region progress
|
|
562
|
-
$progress: map.get($colorShade, "progress");
|
|
563
|
-
@if ($progress != null) {
|
|
564
|
-
@include setColor($progress, $colorName, $name, "progress");
|
|
565
|
-
}
|
|
566
|
-
//#endregion progress
|
|
567
|
-
|
|
568
|
-
//#endregion components
|
|
569
|
-
|
|
570
|
-
//#region backgrounds
|
|
571
|
-
|
|
572
|
-
//#region dot
|
|
573
|
-
$dot: map.get($colorShade, "dot");
|
|
574
|
-
@if ($dot != null) {
|
|
575
|
-
@include setColor($dot, $colorName, $name, "dot");
|
|
576
|
-
}
|
|
577
|
-
//#endregion dot
|
|
578
|
-
|
|
579
|
-
//#region gingham
|
|
580
|
-
$gingham: map.get($colorShade, "gingham");
|
|
581
|
-
@if ($gingham != null) {
|
|
582
|
-
@include setColor($gingham, $colorName, $name, "gingham");
|
|
583
|
-
}
|
|
584
|
-
//#endregion gingham
|
|
585
|
-
|
|
586
|
-
//#region rhombus
|
|
587
|
-
$rhombus: map.get($colorShade, "rhombus");
|
|
588
|
-
@if ($rhombus != null) {
|
|
589
|
-
@include setColor($rhombus, $colorName, $name, "rhombus");
|
|
590
|
-
}
|
|
591
|
-
//#endregion rhombus
|
|
592
|
-
|
|
593
|
-
//#region stripe
|
|
594
|
-
$stripe: map.get($colorShade, "stripe");
|
|
595
|
-
@if ($stripe != null) {
|
|
596
|
-
@include setColor($stripe, $colorName, $name, "stripe");
|
|
597
|
-
}
|
|
598
|
-
//#endregion stripe
|
|
599
|
-
|
|
600
|
-
//#region zigzag
|
|
601
|
-
$zigzag: map.get($colorShade, "zigzag");
|
|
602
|
-
@if ($zigzag != null) {
|
|
603
|
-
@include setColor($zigzag, $colorName, $name, "zigzag");
|
|
657
|
+
@each $semanticColor in variables.$semanticColors {
|
|
658
|
+
$semanticColorName: map.get($semanticColor, "name");
|
|
659
|
+
$semanticColorColorName: map.get($semanticColor, "colorName");
|
|
660
|
+
$semanticColorLightnessOffset: map.get($semanticColor, "lightnessOffset");
|
|
661
|
+
$color: functions.getColorFromColors(
|
|
662
|
+
variables.$colors,
|
|
663
|
+
$semanticColorColorName
|
|
664
|
+
);
|
|
665
|
+
@if ($color != null) {
|
|
666
|
+
@include setColorShade(
|
|
667
|
+
$colorShade,
|
|
668
|
+
$semanticColorLightnessOffset,
|
|
669
|
+
$semanticColorColorName,
|
|
670
|
+
$semanticColorName,
|
|
671
|
+
$name
|
|
672
|
+
);
|
|
604
673
|
}
|
|
605
|
-
//#endregion zigzag
|
|
606
|
-
|
|
607
|
-
//#endregion backgrounds
|
|
608
674
|
}
|
|
609
675
|
}
|
|
610
676
|
}
|