@qrsln/lootstrap 22.2.7-beta.0 → 22.3.2-beta.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.
- package/Readme.md +6 -6
- package/dist/css/lootstrap.css +10309 -9749
- package/dist/css/lootstrap.css.map +1 -1
- package/dist/css/lootstrap.min.css +3 -3
- package/package.json +5 -1
- package/scss/Abstracts/Functions/_color-customized.scss +62 -0
- package/scss/Abstracts/Functions/_color.scss +108 -65
- package/scss/Abstracts/Functions/_helpers.scss +2 -2
- package/scss/Abstracts/Functions/_shadow.scss +4 -4
- package/scss/Abstracts/Mixins/_color.scss +126 -136
- package/scss/Abstracts/Mixins/_theme.scss +166 -0
- package/scss/Abstracts/_dir-functions.scss +1 -0
- package/scss/Abstracts/_dir-mixins.scss +1 -4
- package/scss/Abstracts/_variables.scss +96 -35
- package/scss/Architecture/Components/TODO/_tables.scss +3 -3
- package/scss/Architecture/Components/_alert.scss +51 -51
- package/scss/Architecture/Components/_breadcrumb.scss +11 -10
- package/scss/Architecture/Components/_button-close.scss +11 -2
- package/scss/Architecture/Components/_buttons.scss +22 -21
- package/scss/Architecture/Components/_calendar.scss +67 -55
- package/scss/Architecture/Components/_card.scss +9 -9
- package/scss/Architecture/Components/_caret.scss +11 -11
- package/scss/Architecture/Components/_dialog.scss +10 -7
- package/scss/Architecture/Components/_list.scss +13 -13
- package/scss/Architecture/Components/_nav.scss +14 -12
- package/scss/Architecture/Components/_pagination.scss +9 -8
- package/scss/Architecture/Components/_progress.scss +6 -5
- package/scss/Architecture/Components/_rating.scss +15 -14
- package/scss/Architecture/Components/_scrollbar.scss +59 -29
- package/scss/Architecture/Components/_spinners.scss +0 -1
- package/scss/Architecture/Components/_timeline.scss +6 -5
- package/scss/Architecture/Components/_timer.scss +5 -4
- package/scss/Architecture/Components/_toasts.scss +23 -22
- package/scss/Architecture/Components/_tooltip.scss +11 -11
- package/scss/Architecture/Components/_tree-view.scss +13 -12
- package/scss/Architecture/Forms/_form-check.scss +82 -81
- package/scss/Architecture/Forms/_input-fields.scss +36 -37
- package/scss/Architecture/Forms/_selects.scss +3 -1
- package/scss/Architecture/{_anim.scss → Roots/_anim.scss} +0 -0
- package/scss/Architecture/Roots/_avatar.scss +296 -0
- package/scss/Architecture/Roots/_classified.scss +67 -0
- package/scss/Architecture/{_reboot.scss → Roots/_reboot.scss} +6 -9
- package/scss/Architecture/Roots/_root.scss +49 -0
- package/scss/Architecture/Roots/_shape.scss +92 -0
- package/scss/Architecture/Roots/_skeleton.scss +271 -0
- package/scss/Architecture/{Svg/_icons.scss → Roots/_svg.scss} +0 -0
- package/scss/Architecture/Utils/_border.scss +3 -1
- package/scss/Architecture/Utils/_color.scss +71 -88
- package/scss/Architecture/Utils/_filters.scss +1 -0
- package/scss/Architecture/Utils/_spacing.scss +7 -21
- package/scss/Architecture/Utils/_text.scss +42 -109
- package/scss/Architecture/Utils/_utilities.scss +55 -15
- package/scss/Architecture/__color-scheme.scss +80 -0
- package/scss/Architecture/__dir-components.scss +3 -5
- package/scss/Architecture/__dir-roots.scss +17 -0
- package/scss/Architecture/_theme.scss +2 -1
- package/scss/_header.scss +2 -2
- package/scss/lootstrap.scss +2 -5
- package/dist/css/test.css +0 -275
- package/dist/css/test.css.map +0 -1
- package/scss/Architecture/Components/_themed.scss +0 -57
- package/scss/Architecture/__dir-svg.scss +0 -7
- package/scss/Architecture/__theme-colors.scss +0 -51
- package/scss/Architecture/__theme-customized.scss +0 -51
- package/scss/Architecture/_root.scss +0 -45
- package/scss/test.scss +0 -37
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// ===========================================================================
|
|
2
|
+
// Layout - Shapes
|
|
3
|
+
// ===========================================================================
|
|
4
|
+
|
|
5
|
+
.Sqr, .Circle, .Rect {
|
|
6
|
+
margin: .25rem;
|
|
7
|
+
|
|
8
|
+
// Centered Content of all shapes
|
|
9
|
+
.Content {
|
|
10
|
+
position: absolute;
|
|
11
|
+
display: flex;
|
|
12
|
+
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
text-align: center;
|
|
16
|
+
|
|
17
|
+
left: 0;
|
|
18
|
+
right: 0;
|
|
19
|
+
bottom: 0;
|
|
20
|
+
top: 0;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.Rect {
|
|
25
|
+
position: relative;
|
|
26
|
+
display: block;
|
|
27
|
+
flex: 1 0 auto;
|
|
28
|
+
|
|
29
|
+
&:before {
|
|
30
|
+
content: "";
|
|
31
|
+
display: block;
|
|
32
|
+
padding-top: 50%;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.Sqr, .Circle {
|
|
37
|
+
position: relative;
|
|
38
|
+
display: inline-block;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
|
|
41
|
+
width: 100%;
|
|
42
|
+
//background-color: hsla($Bg-accent-hsl, 0.10);
|
|
43
|
+
|
|
44
|
+
&.Circle {
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:before {
|
|
49
|
+
content: "";
|
|
50
|
+
display: block;
|
|
51
|
+
padding-top: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
// Diamond - With Sqr
|
|
57
|
+
*/
|
|
58
|
+
.Diamond {
|
|
59
|
+
margin: 0;
|
|
60
|
+
|
|
61
|
+
transform: rotate(45deg);
|
|
62
|
+
|
|
63
|
+
.Content {
|
|
64
|
+
transform: rotate(-45deg);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/*
|
|
69
|
+
// Parallelogram - With Rect & Sqr
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
.Skew-20 {
|
|
73
|
+
margin-left: 30px;
|
|
74
|
+
margin-right: 30px;
|
|
75
|
+
|
|
76
|
+
transform: skew(20deg);
|
|
77
|
+
|
|
78
|
+
.Content {
|
|
79
|
+
transform: skew(-20deg);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.Skew-20n {
|
|
84
|
+
margin-left: 30px;
|
|
85
|
+
margin-right: 30px;
|
|
86
|
+
|
|
87
|
+
transform: skew(-20deg);
|
|
88
|
+
|
|
89
|
+
.Content {
|
|
90
|
+
transform: skew(20deg);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
// ===========================================================================
|
|
2
|
+
// Layout - Skeleton / Placeholder
|
|
3
|
+
// ===========================================================================
|
|
4
|
+
|
|
5
|
+
$Customized: false;
|
|
6
|
+
@import "../_color-scheme";
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
// Placeholder (.Ph-*)
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
.Ph-media,
|
|
14
|
+
.Ph-line {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: block;
|
|
17
|
+
|
|
18
|
+
background-color: hsla($Bg-accent-hsl, 0.12);
|
|
19
|
+
|
|
20
|
+
border-radius: .25rem;
|
|
21
|
+
padding: 5px;
|
|
22
|
+
margin-bottom: 4px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.Ph-media {
|
|
26
|
+
display: inline-block;
|
|
27
|
+
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.Ph-paragraph {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: block;
|
|
34
|
+
|
|
35
|
+
margin-top: 5px;
|
|
36
|
+
margin-bottom: 5px;
|
|
37
|
+
|
|
38
|
+
&.Indentation {
|
|
39
|
+
.Ph-line {
|
|
40
|
+
&:first-child {
|
|
41
|
+
width: 92%;
|
|
42
|
+
float: right;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:nth-child(2) {
|
|
46
|
+
clear: both;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.Ph-line {
|
|
52
|
+
transform: scale(1, 0.60);
|
|
53
|
+
|
|
54
|
+
&:last-child {
|
|
55
|
+
width: 80% - random(40) * 1%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@for $i from 1 through 10 {
|
|
59
|
+
&:nth-child(#{$i}n) {
|
|
60
|
+
animation-delay: #{$i * 0.7}s;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.Ph-card {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: block;
|
|
69
|
+
|
|
70
|
+
border: $Border;
|
|
71
|
+
box-shadow: $Shadow;
|
|
72
|
+
|
|
73
|
+
padding: 5px;
|
|
74
|
+
margin-bottom: 5px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
// Headers
|
|
79
|
+
// TODO: Responsive
|
|
80
|
+
*/
|
|
81
|
+
|
|
82
|
+
.Ph-line {
|
|
83
|
+
$per: .6;
|
|
84
|
+
|
|
85
|
+
// Real header font sizes
|
|
86
|
+
$h1: $per * 2.5rem;
|
|
87
|
+
$h2: $per * 2rem;
|
|
88
|
+
$h3: $per * 1.75rem;
|
|
89
|
+
$h4: $per * 1.5rem;
|
|
90
|
+
$h5: $per * 1.25rem;
|
|
91
|
+
$h6: $per * 1rem;
|
|
92
|
+
|
|
93
|
+
&.Ph-h6, &.Ph-h5, &.Ph-h4, &.Ph-h3, &.Ph-h2, &.Ph-h1 {
|
|
94
|
+
background-color: hsla($Bg-accent-hsl, 0.24);
|
|
95
|
+
|
|
96
|
+
line-height: 1.2;
|
|
97
|
+
|
|
98
|
+
margin-top: 10px;
|
|
99
|
+
margin-bottom: 10px;
|
|
100
|
+
|
|
101
|
+
//transform: scale(1, 0.60);
|
|
102
|
+
|
|
103
|
+
&:before {
|
|
104
|
+
content: "\00a0";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.Ph-h1 {
|
|
109
|
+
font-size: $h1;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&.Ph-h2 {
|
|
113
|
+
font-size: $h2;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&.Ph-h3 {
|
|
117
|
+
font-size: $h3;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.Ph-h4 {
|
|
121
|
+
font-size: $h4;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&.Ph-h5 {
|
|
125
|
+
font-size: $h5;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.Ph-h6 {
|
|
129
|
+
font-size: $h6;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Circular or Square Media placeholder
|
|
134
|
+
.Ph-square {
|
|
135
|
+
position: relative;
|
|
136
|
+
display: inline-block;
|
|
137
|
+
|
|
138
|
+
width: 100%;
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
|
|
141
|
+
background-color: hsla($Bg-accent-hsl, 0.12);
|
|
142
|
+
margin: 4px;
|
|
143
|
+
|
|
144
|
+
&.Ph-circle {
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&:before {
|
|
149
|
+
content: "";
|
|
150
|
+
display: block;
|
|
151
|
+
padding-top: 100%;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
span {
|
|
155
|
+
position: absolute;
|
|
156
|
+
display: flex;
|
|
157
|
+
text-align: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
justify-content: center;
|
|
160
|
+
left: 0;
|
|
161
|
+
right: 0;
|
|
162
|
+
bottom: 0;
|
|
163
|
+
top: 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/*
|
|
168
|
+
// Textual Effect
|
|
169
|
+
*/
|
|
170
|
+
|
|
171
|
+
@function randomMinMax($min, $max) {
|
|
172
|
+
$rand: random();
|
|
173
|
+
$randomNum: $min + floor($rand * (($max - $min) + 1));
|
|
174
|
+
|
|
175
|
+
@return $randomNum;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/// Calculate n random numbers that sum y.
|
|
179
|
+
@function RandomNumbersWithSum($groups:3, $total:100) {
|
|
180
|
+
$numbers: [];
|
|
181
|
+
@for $i from 1 through $groups {
|
|
182
|
+
$num: randomMinMax(20, $total - 20 - ($groups - $i));
|
|
183
|
+
@if ($i==1) {
|
|
184
|
+
$num: randomMinMax(5, 30);
|
|
185
|
+
}
|
|
186
|
+
$total: $total - $num;
|
|
187
|
+
$numbers: append($numbers, $num)
|
|
188
|
+
}
|
|
189
|
+
$numbers: append($numbers, $total);
|
|
190
|
+
|
|
191
|
+
@return $numbers;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.Ph-textual {
|
|
195
|
+
$gap: 6px;
|
|
196
|
+
$color: hsla($Bg-accent-hsl, 0.12);
|
|
197
|
+
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
|
|
200
|
+
@for $i from 1 to 5 {
|
|
201
|
+
&:nth-child(#{$i}n) {
|
|
202
|
+
$percentages: RandomNumbersWithSum(4, 100);
|
|
203
|
+
$per1: 1% * nth($percentages,1);
|
|
204
|
+
$per2: $per1 + 1% * nth($percentages,2);
|
|
205
|
+
$per3: $per2 + 1% * nth($percentages,3);
|
|
206
|
+
$per4: $per3 + 1% * nth($percentages,4);
|
|
207
|
+
|
|
208
|
+
// this should randomize by percent up to 100% (20%, 45%, 77%, ...)
|
|
209
|
+
background-image: linear-gradient(90deg,
|
|
210
|
+
$color $per1, transparent calc(#{$per1} + 1px), transparent calc(#{$per1} + #{$gap}), $color calc(#{$per1} + #{$gap}),
|
|
211
|
+
$color $per2, transparent calc(#{$per2} + 1px), transparent calc(#{$per2} + #{$gap}), $color calc(#{$per2} + #{$gap}),
|
|
212
|
+
$color $per3, transparent calc(#{$per3} + 1px), transparent calc(#{$per3} + #{$gap}), $color calc(#{$per3} + #{$gap}),
|
|
213
|
+
$color $per4, transparent calc(#{$per4} + 1px), transparent calc(#{$per4} + #{$gap}), $color calc(#{$per4} + #{$gap}),
|
|
214
|
+
$color);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/*
|
|
220
|
+
// Anim: Pulsate, Shine
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
.Ph-pulse {
|
|
224
|
+
animation: Keyframe-Pulsate 1.5s ease-in-out 0.5s infinite;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
@keyframes Keyframe-Pulsate {
|
|
228
|
+
0% {
|
|
229
|
+
opacity: .6;
|
|
230
|
+
}
|
|
231
|
+
50% {
|
|
232
|
+
opacity: 1;
|
|
233
|
+
}
|
|
234
|
+
100% {
|
|
235
|
+
opacity: .6;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.Ph-shine {
|
|
240
|
+
position: relative;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
|
|
243
|
+
/* Shine */
|
|
244
|
+
&:after {
|
|
245
|
+
content: '';
|
|
246
|
+
position: absolute;
|
|
247
|
+
bottom: 0;
|
|
248
|
+
left: 0;
|
|
249
|
+
right: 0;
|
|
250
|
+
top: 0;
|
|
251
|
+
|
|
252
|
+
animation: Keyframe-Shine 1.6s linear 0.5s infinite;
|
|
253
|
+
background: linear-gradient(90deg, transparent, hsla($Bg-accent-hsl, 0.25), transparent);
|
|
254
|
+
|
|
255
|
+
transform: translateX(-100%); /* Avoid flash during server-side hydration */
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@keyframes Keyframe-Shine {
|
|
260
|
+
// Slide effect
|
|
261
|
+
0% {
|
|
262
|
+
transform: translateX(-100%);
|
|
263
|
+
}
|
|
264
|
+
50% {
|
|
265
|
+
/* +0.5s of delay between each loop */
|
|
266
|
+
transform: translateX(100%);
|
|
267
|
+
}
|
|
268
|
+
100% {
|
|
269
|
+
transform: translateX(100%);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
File without changes
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// Utils - Border - Border-radius
|
|
3
3
|
// ===========================================================================
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
$Border-color-hsl: var(--#{$var-Prefix}border-hsl);
|
|
7
|
+
$Border-color: hsla($Border-color-hsl, var(--#{$var-Prefix}border-alpha));
|
|
6
8
|
|
|
7
9
|
/*
|
|
8
10
|
// Border, Rounded
|
|
@@ -2,102 +2,85 @@
|
|
|
2
2
|
// Utils - Bg & Fg & Border Colors
|
|
3
3
|
// ===========================================================================
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
$var-Prefix: $var-Prefix;
|
|
6
|
+
$colors-Background-hsla: $colors-Background-hsla;
|
|
7
|
+
$colors-Text-hsla: $colors-Text-hsla;
|
|
8
|
+
$colors-Border-hsla: $colors-Border-hsla;
|
|
9
|
+
$color-Alpha-map: $color-Alpha-map;
|
|
10
|
+
$color-Lightness-map: $color-Lightness-map;
|
|
6
11
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
Prefix: Text-lightness, Properties: --#{$var-Prefix}text-lightness, Important: false,
|
|
12
|
-
Values: $color-Lightness-map
|
|
13
|
-
),
|
|
14
|
-
"Text-color": (
|
|
15
|
-
Prefix: Text, Properties: color, Important: true,
|
|
16
|
-
Values: $colors-Text-hsla
|
|
17
|
-
),
|
|
18
|
-
"Text-alpha": (
|
|
19
|
-
Prefix: Text-alpha, Properties: --#{$var-Prefix}text-alpha, Important: false,
|
|
20
|
-
Values: $color-Alpha-map
|
|
21
|
-
),
|
|
22
|
-
// Border-color, Border-alpha
|
|
23
|
-
"Border-color": (
|
|
24
|
-
Prefix: Border, Properties: border-color, Important: true,
|
|
25
|
-
Values: map-merge($colors-Border-hsla, ("transparent": transparent)),
|
|
26
|
-
),
|
|
27
|
-
"Border-alpha": (
|
|
28
|
-
Prefix: Border-alpha, Properties: --#{$var-Prefix}border-alpha, Important: false,
|
|
29
|
-
Values: $color-Alpha-map,
|
|
30
|
-
),
|
|
31
|
-
// Bg
|
|
32
|
-
"Bg-lightness": (
|
|
33
|
-
Prefix: Bg-lightness, Properties: --#{$var-Prefix}bg-lightness, Important: false,
|
|
34
|
-
Values: $color-Lightness-map
|
|
35
|
-
),
|
|
36
|
-
"Bg-color": (
|
|
37
|
-
Prefix: Bg, Properties: background-color, Important: true,
|
|
38
|
-
Values: map-merge($colors-Background-hsla, ("transparent": transparent)),
|
|
39
|
-
),
|
|
40
|
-
"Bg-alpha": (Prefix: Bg-alpha, Properties: --#{$var-Prefix}bg-alpha, Important: false, Values: $color-Alpha-map),
|
|
41
|
-
// Opacity
|
|
42
|
-
"Opacity": (Prefix: Opacity, Properties: opacity, Important: true, Values: $opacity-map),
|
|
43
|
-
// Pseudo colors
|
|
44
|
-
"Before-bg-before": (
|
|
45
|
-
Prefix: Before-bg, Properties: background-color, Important: true, Pseudo:before,
|
|
46
|
-
Values: $colors-Background-hsla
|
|
47
|
-
),
|
|
48
|
-
"Before-border-before": (
|
|
49
|
-
Prefix: Before-border, Properties: border-color, Important: true, Pseudo:before,
|
|
50
|
-
Values: $colors-Border-hsla
|
|
51
|
-
),
|
|
52
|
-
"Before-bg-after": (
|
|
53
|
-
Prefix: After-bg, Properties: background-color, Important: true, Pseudo:after,
|
|
54
|
-
Values: $colors-Background-hsla
|
|
55
|
-
),
|
|
56
|
-
"Before-border-after": (
|
|
57
|
-
Prefix: After-border, Properties: border-color, Important: true, Pseudo:after,
|
|
58
|
-
Values: $colors-Border-hsla
|
|
59
|
-
),
|
|
60
|
-
);
|
|
61
|
-
|
|
62
|
-
@include Utilities($utilities-bg);
|
|
12
|
+
.Bg-gradient {
|
|
13
|
+
background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.15) 0%, hsla(0, 0%, 100%, 0.40) 50%, hsla(0, 0%, 100%, 0) 100%); // vertical
|
|
14
|
+
//background-image: linear-gradient(180deg, hsla(0, 0%, 100%, 0.15), hsla(0, 0%, 100%, 0)) !important;
|
|
15
|
+
}
|
|
63
16
|
|
|
64
|
-
//
|
|
65
|
-
|
|
66
|
-
|
|
17
|
+
// Not: Must be before real class set
|
|
18
|
+
@each $colorKey, $colorValue in $colors-all {
|
|
19
|
+
.Bg-#{$colorKey} {
|
|
20
|
+
--#{$var-Prefix}bg-lightness: #{lightness($colorValue)};
|
|
21
|
+
--#{$var-Prefix}bg-alpha: 1;
|
|
22
|
+
}
|
|
67
23
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
*/
|
|
24
|
+
.Text-#{$colorKey} {
|
|
25
|
+
--#{$var-Prefix}text-lightness: #{lightness($colorValue)};
|
|
26
|
+
--#{$var-Prefix}text-alpha: 1;
|
|
27
|
+
}
|
|
73
28
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
29
|
+
.Border-#{$colorKey} {
|
|
30
|
+
--#{$var-Prefix}border-alpha: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
77
33
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
//
|
|
81
|
-
|
|
34
|
+
$utilities-Colors: () !default;
|
|
35
|
+
$utilities-Colors: (
|
|
36
|
+
// New Approach
|
|
37
|
+
"Bg": (Prefix: Bg, Properties: background-color, Important: true, Values:$colors-Background-hsla,),
|
|
38
|
+
"Fg": (Prefix: Fg, Properties: color, Important: true, Values: $colors-Text-hsla),
|
|
39
|
+
"Bc": (Prefix: Bc, Properties: border-color, Important: true, Values: $colors-Border-hsla),
|
|
40
|
+
// Pseudo Colors
|
|
41
|
+
"Bg-pseudo": (Prefix: Bg-pseudo, Properties: --#{$var-Prefix}bg-color, Important: true, Values:$colors-Background-hsla,),
|
|
42
|
+
"Bc-pseudo": (Prefix: Bc-pseudo, Properties: --#{$var-Prefix}bc-color, Important: true, Values:$colors-Border-hsla,),
|
|
43
|
+
// Border
|
|
44
|
+
"Bc-t": (Prefix: Bc-t, Properties: border-top-color, Important: true, Values: $colors-Border-hsla),
|
|
45
|
+
"Bc-r": (Prefix: Bc-r, Properties: border-right-color, Important: true, Values: $colors-Border-hsla),
|
|
46
|
+
"Bc-b": (Prefix: Bc-b, Properties: border-bottom-color, Important: true, Values: $colors-Border-hsla),
|
|
47
|
+
"Bc-l": (Prefix: Bc-l, Properties: border-left-color, Important: true, Values: $colors-Border-hsla),
|
|
48
|
+
// Alpha
|
|
49
|
+
"Bg-alpha": (Prefix: Bg-alpha, Properties: --#{$var-Prefix}bg-alpha, Important: false, Values: $color-Alpha-map),
|
|
50
|
+
"Fg-alpha": (Prefix: Fg-alpha, Properties: --#{$var-Prefix}text-alpha, Important: false, Values: $color-Alpha-map),
|
|
51
|
+
"Bc-alpha": (Prefix: Bc-alpha, Properties: --#{$var-Prefix}border-alpha, Important: false, Values: $color-Alpha-map,),
|
|
52
|
+
// lightness
|
|
53
|
+
"Bg-lightness": (Prefix: Bg-lightness, Properties: --#{$var-Prefix}bg-lightness, Important: false, Values: $color-Lightness-map),
|
|
54
|
+
"Fg-lightness": (Prefix: Fg-lightness, Properties: --#{$var-Prefix}text-lightness, Important: false, Values: $color-Lightness-map),
|
|
55
|
+
);
|
|
82
56
|
|
|
83
|
-
|
|
84
|
-
// Bg
|
|
85
|
-
// ===========================================================================
|
|
57
|
+
@include Utilities($utilities-Colors);
|
|
86
58
|
|
|
87
59
|
/*
|
|
88
|
-
//
|
|
89
|
-
// .Bg-alpha-0, .Bg-alpha-100 {}
|
|
90
|
-
// .Bg-lightness-0, .Bg-lightness-100 {}
|
|
91
|
-
// .Opacity-0, .Opacity-100 {}
|
|
60
|
+
// Pseudo colors
|
|
92
61
|
*/
|
|
62
|
+
// Background
|
|
63
|
+
.Bg-before {
|
|
64
|
+
&:before {
|
|
65
|
+
background-color: var(--#{$var-Prefix}bg-color) !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
93
68
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
69
|
+
.Bg-after {
|
|
70
|
+
&:after {
|
|
71
|
+
background-color: var(--#{$var-Prefix}bg-color) !important;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
97
74
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
75
|
+
// Border
|
|
76
|
+
.Bc-before {
|
|
77
|
+
&:before {
|
|
78
|
+
border-color: var(--#{$var-Prefix}bc-color) !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.Bc-after {
|
|
83
|
+
&:after {
|
|
84
|
+
border-color: var(--#{$var-Prefix}bc-color) !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
// ===========================================================================
|
|
2
2
|
// Utils - Spacing
|
|
3
|
+
// Margin, Padding
|
|
3
4
|
// ===========================================================================
|
|
4
5
|
|
|
5
|
-
/*
|
|
6
|
-
// Margin, Padding
|
|
7
|
-
*/
|
|
8
6
|
// Values: Prefix: *, Properties: *, Important: *, Responsive: *, Values: *, Values: *, Pseudo:*
|
|
9
7
|
$utilities-Spacing: () !default;
|
|
10
8
|
$utilities-Spacing: (
|
|
@@ -20,27 +18,17 @@ $utilities-Spacing: (
|
|
|
20
18
|
),
|
|
21
19
|
// Margin directions
|
|
22
20
|
"M-top": (Prefix: MT, Properties: margin-top, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
23
|
-
"M-right": (Prefix: MR, Properties: margin-right, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
24
21
|
"M-end": (Prefix: ME, Properties: margin-right, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
25
22
|
"M-bottom": (Prefix: MB, Properties: margin-bottom, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
26
|
-
"M-left": (Prefix: ML, Properties: margin-left, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
27
23
|
"M-start": (Prefix: MS, Properties: margin-left, Important: true, Responsive: true, Values: map-merge($spacers-map, (auto: auto))),
|
|
28
24
|
// Negative Margin
|
|
29
|
-
"Neg M": (
|
|
30
|
-
|
|
31
|
-
),
|
|
32
|
-
"Neg MX": (
|
|
33
|
-
Prefix: MX, Properties: margin-right margin-left, Important: true, Responsive: true, Values: $negative-spacers
|
|
34
|
-
),
|
|
35
|
-
"Neg MY": (
|
|
36
|
-
Prefix: MY, Properties: margin-top margin-bottom, Important: true, Responsive: true, Values: $negative-spacers
|
|
37
|
-
),
|
|
25
|
+
"Neg M": (Prefix: M, Properties: margin, Important: true, Responsive: true, Values: $negative-spacers),
|
|
26
|
+
"Neg MX": (Prefix: MX, Properties: margin-right margin-left, Important: true, Responsive: true, Values: $negative-spacers),
|
|
27
|
+
"Neg MY": (Prefix: MY, Properties: margin-top margin-bottom, Important: true, Responsive: true, Values: $negative-spacers),
|
|
38
28
|
// Negative Margin directions
|
|
39
29
|
"Neg M-top": (Prefix: MT, Properties: margin-top, Important: true, Responsive: true, Values: $negative-spacers),
|
|
40
|
-
"Neg M-right": (Prefix: MR, Properties: margin-right, Important: true, Responsive: true, Values: $negative-spacers),
|
|
41
30
|
"Neg M-end": (Prefix: ME, Properties: margin-right, Important: true, Responsive: true, Values: $negative-spacers),
|
|
42
31
|
"Neg M-bottom": (Prefix: MB, Properties: margin-bottom, Important: true, Responsive: true, Values: $negative-spacers),
|
|
43
|
-
"Neg M-left": (Prefix: ML, Properties: margin-left, Important: true, Responsive: true, Values: $negative-spacers),
|
|
44
32
|
"Neg M-start": (Prefix: MS, Properties: margin-left, Important: true, Responsive: true, Values: $negative-spacers),
|
|
45
33
|
// Padding
|
|
46
34
|
"P": (Prefix: P, Properties: padding, Important: true, Responsive: true, Values: $spacers-map),
|
|
@@ -48,10 +36,8 @@ $utilities-Spacing: (
|
|
|
48
36
|
"PY": (Prefix: PY, Properties: padding-top padding-bottom, Important: true, Responsive: true, Values: $spacers-map),
|
|
49
37
|
// Padding directions
|
|
50
38
|
"P-top": (Prefix: PT, Properties: padding-top, Important: true, Responsive: true, Values: $spacers-map),
|
|
51
|
-
"P-right": (Prefix: PR, Properties: padding-right, Important: true, Responsive: true, Values: $spacers-map),
|
|
52
39
|
"P-end": (Prefix: PE, Properties: padding-right, Important: true, Responsive: true, Values: $spacers-map),
|
|
53
40
|
"P-bottom": (Prefix: PB, Properties: padding-bottom, Important: true, Responsive: true, Values: $spacers-map),
|
|
54
|
-
"P-left": (Prefix: PL, Properties: padding-left, Important: true, Responsive: true, Values: $spacers-map),
|
|
55
41
|
"P-start": (Prefix: PS, Properties: padding-left, Important: true, Responsive: true, Values: $spacers-map),
|
|
56
42
|
);
|
|
57
43
|
|
|
@@ -64,10 +50,10 @@ $utilities-Spacing: (
|
|
|
64
50
|
/*
|
|
65
51
|
Margin .M-<0-5>, .M-auto {}
|
|
66
52
|
Margin X, Y .M<X,Y>-<0-5>, .M<X,Y>-auto {}
|
|
67
|
-
Margin directions .M<T,
|
|
53
|
+
Margin directions .M<T,E,B,S>-<0-5>, .M<T,E,B,S>-auto {}
|
|
68
54
|
Negative Margin .M-N<0-5>
|
|
69
55
|
Negative Margin X, Y .M<X,Y>-N<0-5>
|
|
70
|
-
Negative M directions .M<T,
|
|
56
|
+
Negative M directions .M<T,E,B,S>-N<0-5> {}
|
|
71
57
|
*/
|
|
72
58
|
|
|
73
59
|
// ===========================================================================
|
|
@@ -77,5 +63,5 @@ Negative M directions .M<T,R,E,B,L,S>-N<0-5> {}
|
|
|
77
63
|
/*
|
|
78
64
|
Padding .P-<0-5> {}
|
|
79
65
|
Padding X, Y .P<X,Y>-<0-5> {}
|
|
80
|
-
Padding directions .P<T,
|
|
66
|
+
Padding directions .P<T,E,B,S>-<0-5> {}
|
|
81
67
|
*/
|