minolith 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/css/minolith.css +196773 -0
- package/dist/css/minolith.css.map +1 -0
- package/dist/css/minolith.min.css +4 -0
- package/dist/css/minolith.min.css.map +1 -0
- package/package.json +46 -0
- package/src/animations/fade.scss +41 -0
- package/src/animations/index.scss +1 -0
- package/src/backgrounds/gingham.scss +47 -0
- package/src/backgrounds/index.scss +2 -0
- package/src/backgrounds/stripe.scss +33 -0
- package/src/base/index.scss +3 -0
- package/src/base/normalize.scss +389 -0
- package/src/base/tabula.scss +7 -0
- package/src/components/accordion.scss +115 -0
- package/src/components/badge.scss +95 -0
- package/src/components/button.scss +109 -0
- package/src/components/card.scss +53 -0
- package/src/components/footer.scss +8 -0
- package/src/components/hamburger.scss +152 -0
- package/src/components/header.scss +16 -0
- package/src/components/heading.scss +37 -0
- package/src/components/image.scss +7 -0
- package/src/components/index.scss +19 -0
- package/src/components/input.scss +220 -0
- package/src/components/label.scss +5 -0
- package/src/components/link.scss +28 -0
- package/src/components/list.scss +14 -0
- package/src/components/loader.scss +38 -0
- package/src/components/main.scss +5 -0
- package/src/components/message.scss +41 -0
- package/src/components/modal.scss +36 -0
- package/src/components/nav.scss +373 -0
- package/src/components/progress.scss +39 -0
- package/src/css-variables/animation.scss +11 -0
- package/src/css-variables/border.scss +16 -0
- package/src/css-variables/color.scss +262 -0
- package/src/css-variables/index.scss +6 -0
- package/src/css-variables/miscellaneous.scss +10 -0
- package/src/css-variables/typography.scss +19 -0
- package/src/functions/index.scss +1 -0
- package/src/functions/string.scss +17 -0
- package/src/icons/check.scss +21 -0
- package/src/icons/chevron.scss +30 -0
- package/src/icons/index.scss +2 -0
- package/src/layouts/container.scss +19 -0
- package/src/layouts/index.scss +2 -0
- package/src/minolith.scss +10 -0
- package/src/mixins/animation.scss +80 -0
- package/src/mixins/color.scss +33 -0
- package/src/mixins/index.scss +4 -0
- package/src/mixins/responsive.scss +220 -0
- package/src/utilities/border.scss +47 -0
- package/src/utilities/color.scss +217 -0
- package/src/utilities/decoration.scss +16 -0
- package/src/utilities/index.scss +7 -0
- package/src/utilities/positioning.scss +44 -0
- package/src/utilities/sizing.scss +109 -0
- package/src/utilities/spacing.scss +111 -0
- package/src/utilities/typography.scss +105 -0
- package/src/variables/animation.scss +8 -0
- package/src/variables/border.scss +56 -0
- package/src/variables/color.scss +415 -0
- package/src/variables/index.scss +7 -0
- package/src/variables/layout.scss +28 -0
- package/src/variables/miscellaneous.scss +10 -0
- package/src/variables/typography.scss +22 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
$offset: 0.02px;
|
|
4
|
+
|
|
5
|
+
@mixin screen($size) {
|
|
6
|
+
@if ($size == "xsmall") {
|
|
7
|
+
$max-width: variables.$breakpoint-small - $offset;
|
|
8
|
+
@media screen and (max-width: $max-width) {
|
|
9
|
+
@content;
|
|
10
|
+
}
|
|
11
|
+
} @else if ($size == "xlarge") {
|
|
12
|
+
$min-width: variables.$breakpoint-xlarge;
|
|
13
|
+
@media screen and (min-width: $min-width) {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
} @else {
|
|
17
|
+
$min-width: variables.$breakpoint-medium !default;
|
|
18
|
+
$max-width: variables.$breakpoint-large - $offset !default;
|
|
19
|
+
@if ($size == "medium") {
|
|
20
|
+
} @else if ($size == "small") {
|
|
21
|
+
$min-width: variables.$breakpoint-small;
|
|
22
|
+
$max-width: variables.$breakpoint-medium - $offset;
|
|
23
|
+
} @else if ($size == "large") {
|
|
24
|
+
$min-width: variables.$breakpoint-large;
|
|
25
|
+
$max-width: variables.$breakpoint-xlarge - $offset;
|
|
26
|
+
} @else {
|
|
27
|
+
@error "size wrong.";
|
|
28
|
+
}
|
|
29
|
+
@media screen and (min-width: $min-width) and (max-width: $max-width) {
|
|
30
|
+
@content;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin is-responsive($suffix: "") {
|
|
36
|
+
@include screen("xsmall") {
|
|
37
|
+
&.is-xsmall#{$suffix},
|
|
38
|
+
&.is-xsmall-up#{$suffix},
|
|
39
|
+
&.is-small-down#{$suffix},
|
|
40
|
+
&.is-medium-down#{$suffix},
|
|
41
|
+
&.is-large-down#{$suffix},
|
|
42
|
+
&.is-xlarge-down#{$suffix} {
|
|
43
|
+
@content;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
@include screen("small") {
|
|
47
|
+
&.is-xsmall-up#{$suffix},
|
|
48
|
+
&.is-small-down#{$suffix},
|
|
49
|
+
&.is-small#{$suffix},
|
|
50
|
+
&.is-small-up#{$suffix},
|
|
51
|
+
&.is-medium-down#{$suffix},
|
|
52
|
+
&.is-large-down#{$suffix},
|
|
53
|
+
&.is-xlarge-down#{$suffix} {
|
|
54
|
+
@content;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@include screen("medium") {
|
|
58
|
+
&.is-xsmall-up#{$suffix},
|
|
59
|
+
&.is-small-up#{$suffix},
|
|
60
|
+
&.is-medium-down#{$suffix},
|
|
61
|
+
&.is-medium#{$suffix},
|
|
62
|
+
&.is-medium-up#{$suffix},
|
|
63
|
+
&.is-large-down#{$suffix},
|
|
64
|
+
&.is-xlarge-down#{$suffix} {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
@include screen("large") {
|
|
69
|
+
&.is-xsmall-up#{$suffix},
|
|
70
|
+
&.is-small-up#{$suffix},
|
|
71
|
+
&.is-medium-up#{$suffix},
|
|
72
|
+
&.is-large-down#{$suffix},
|
|
73
|
+
&.is-large#{$suffix},
|
|
74
|
+
&.is-large-up#{$suffix},
|
|
75
|
+
&.is-xlarge-down#{$suffix} {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@include screen("xlarge") {
|
|
80
|
+
&.is-xsmall-up#{$suffix},
|
|
81
|
+
&.is-small-up#{$suffix},
|
|
82
|
+
&.is-medium-up#{$suffix},
|
|
83
|
+
&.is-large-up#{$suffix},
|
|
84
|
+
&.is-xlarge-down#{$suffix},
|
|
85
|
+
&.is-xlarge#{$suffix} {
|
|
86
|
+
@content;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@mixin add-responsible-visible() {
|
|
92
|
+
@content;
|
|
93
|
+
&.is-xsmall {
|
|
94
|
+
@include screen("small") {
|
|
95
|
+
display: none !important;
|
|
96
|
+
}
|
|
97
|
+
@include screen("medium") {
|
|
98
|
+
display: none !important;
|
|
99
|
+
}
|
|
100
|
+
@include screen("large") {
|
|
101
|
+
display: none !important;
|
|
102
|
+
}
|
|
103
|
+
@include screen("xlarge") {
|
|
104
|
+
display: none !important;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
&.is-tablet-or-less {
|
|
108
|
+
@include screen("medium") {
|
|
109
|
+
display: none !important;
|
|
110
|
+
}
|
|
111
|
+
@include screen("large") {
|
|
112
|
+
display: none !important;
|
|
113
|
+
}
|
|
114
|
+
@include screen("xlarge") {
|
|
115
|
+
display: none !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&.is-tablet {
|
|
119
|
+
@include screen("xsmall") {
|
|
120
|
+
display: none !important;
|
|
121
|
+
}
|
|
122
|
+
@include screen("medium") {
|
|
123
|
+
display: none !important;
|
|
124
|
+
}
|
|
125
|
+
@include screen("large") {
|
|
126
|
+
display: none !important;
|
|
127
|
+
}
|
|
128
|
+
@include screen("xlarge") {
|
|
129
|
+
display: none !important;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
&.is-tablet-or-more {
|
|
133
|
+
@include screen("xsmall") {
|
|
134
|
+
display: none !important;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
&.is-desktop-or-less {
|
|
138
|
+
@include screen("large") {
|
|
139
|
+
display: none !important;
|
|
140
|
+
}
|
|
141
|
+
@include screen("xlarge") {
|
|
142
|
+
display: none !important;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
&.is-desktop {
|
|
146
|
+
@include screen("xsmall") {
|
|
147
|
+
display: none !important;
|
|
148
|
+
}
|
|
149
|
+
@include screen("small") {
|
|
150
|
+
display: none !important;
|
|
151
|
+
}
|
|
152
|
+
@include screen("large") {
|
|
153
|
+
display: none !important;
|
|
154
|
+
}
|
|
155
|
+
@include screen("xlarge") {
|
|
156
|
+
display: none !important;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
&.is-desktop-or-more {
|
|
160
|
+
@include screen("xsmall") {
|
|
161
|
+
display: none !important;
|
|
162
|
+
}
|
|
163
|
+
@include screen("small") {
|
|
164
|
+
display: none !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
&.is-widescreen-or-less {
|
|
168
|
+
@include screen("xlarge") {
|
|
169
|
+
display: none !important;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
&.is-widescreen {
|
|
173
|
+
@include screen("xsmall") {
|
|
174
|
+
display: none !important;
|
|
175
|
+
}
|
|
176
|
+
@include screen("small") {
|
|
177
|
+
display: none !important;
|
|
178
|
+
}
|
|
179
|
+
@include screen("medium") {
|
|
180
|
+
display: none !important;
|
|
181
|
+
}
|
|
182
|
+
@include screen("xlarge") {
|
|
183
|
+
display: none !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
&.is-widescreen-or-more {
|
|
187
|
+
@include screen("xsmall") {
|
|
188
|
+
display: none !important;
|
|
189
|
+
}
|
|
190
|
+
@include screen("small") {
|
|
191
|
+
display: none !important;
|
|
192
|
+
}
|
|
193
|
+
@include screen("medium") {
|
|
194
|
+
display: none !important;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
&.is-fullhd {
|
|
198
|
+
@include screen("xsmall") {
|
|
199
|
+
display: none !important;
|
|
200
|
+
}
|
|
201
|
+
@include screen("small") {
|
|
202
|
+
display: none !important;
|
|
203
|
+
}
|
|
204
|
+
@include screen("medium") {
|
|
205
|
+
display: none !important;
|
|
206
|
+
}
|
|
207
|
+
@include screen("large") {
|
|
208
|
+
display: none !important;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@mixin column() {
|
|
214
|
+
display: block;
|
|
215
|
+
flex-basis: 0;
|
|
216
|
+
flex-grow: 1;
|
|
217
|
+
flex-shrink: 1;
|
|
218
|
+
max-width: 100%;
|
|
219
|
+
position: relative;
|
|
220
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variables/index.scss" as variables;
|
|
3
|
+
|
|
4
|
+
@each $borderStyle in variables.$borderStyles {
|
|
5
|
+
.has-border-#{$borderStyle} {
|
|
6
|
+
border-style: #{$borderStyle};
|
|
7
|
+
border-width: var(--#{variables.$prefix}border-width-medium);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@each $borderWidth in variables.$borderWidths {
|
|
12
|
+
.is-border-width-#{$borderWidth},
|
|
13
|
+
.border-width-#{$borderWidth} {
|
|
14
|
+
border-width: var(--#{variables.$prefix}border-width-#{$borderWidth});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@each $borderRadius in variables.$borderRadiuses {
|
|
19
|
+
$name: map.get($borderRadius, "name");
|
|
20
|
+
.is-border-radius-#{$name},
|
|
21
|
+
.border-radius-#{$name} {
|
|
22
|
+
border-radius: var(--#{variables.$prefix}border-radius-#{$name});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.is-border-sepalated {
|
|
27
|
+
border-collapse: separate;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.is-border-collapted {
|
|
31
|
+
border-collapse: collapse;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@each $borderSide in variables.$borderSides {
|
|
35
|
+
@each $borderStyle in variables.$borderStyles {
|
|
36
|
+
.has-border-#{$borderSide}-#{$borderStyle} {
|
|
37
|
+
border-#{$borderSide}-style: #{$borderStyle};
|
|
38
|
+
border-#{$borderSide}-width: var(--#{variables.$prefix}border-width-medium);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
@each $borderWidth in variables.$borderWidths {
|
|
42
|
+
.is-border-#{$borderSide}-width-#{$borderWidth},
|
|
43
|
+
.border-#{$borderSide}-width-#{$borderWidth} {
|
|
44
|
+
border-#{$borderSide}-width: var(--#{variables.$prefix}border-width-#{$borderWidth});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "sass:string";
|
|
3
|
+
@use "../variables/index.scss" as variables;
|
|
4
|
+
@use "../mixins/index.scss" as mixins;
|
|
5
|
+
|
|
6
|
+
@mixin colorUtilities($colorScheme: "") {
|
|
7
|
+
$derived: "";
|
|
8
|
+
@if $colorScheme != "" {
|
|
9
|
+
$derived: "-#{$colorScheme}";
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@each $color in variables.$colors {
|
|
13
|
+
$colorName: map.get($color, "name");
|
|
14
|
+
$numStr: "00" !default;
|
|
15
|
+
@for $p from 1 through 19 {
|
|
16
|
+
$numStr: ($p * 5) + "";
|
|
17
|
+
@if (string.length($numStr) == 1) {
|
|
18
|
+
$numStr: "0" + $numStr;
|
|
19
|
+
}
|
|
20
|
+
//#region forecolor
|
|
21
|
+
.is-forecolor#{$derived}-#{$colorName}-#{$numStr},
|
|
22
|
+
.forecolor#{$derived}-#{$colorName}-#{$numStr} {
|
|
23
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
24
|
+
}
|
|
25
|
+
.is-forecolor#{$derived}-hover-#{$colorName}-#{$numStr},
|
|
26
|
+
.forecolor#{$derived}-hover-#{$colorName}-#{$numStr} {
|
|
27
|
+
&:hover {
|
|
28
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
.is-forecolor#{$derived}-#{$colorName}-focus-#{$numStr},
|
|
32
|
+
.forecolor#{$derived}-#{$colorName}-focus-#{$numStr} {
|
|
33
|
+
&:focus {
|
|
34
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.is-forecolor#{$derived}-#{$colorName}-active-#{$numStr},
|
|
38
|
+
.forecolor#{$derived}-#{$colorName}-active-#{$numStr} {
|
|
39
|
+
&:active {
|
|
40
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.is-forecolor#{$derived}-#{$colorName}-disabled-#{$numStr},
|
|
44
|
+
.forecolor#{$derived}-#{$colorName}-disabled-#{$numStr} {
|
|
45
|
+
&[disabled],
|
|
46
|
+
fieldset[disabled] {
|
|
47
|
+
color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//#endregion forecolor
|
|
51
|
+
|
|
52
|
+
//#region backcolor
|
|
53
|
+
.is-backcolor#{$derived}-#{$colorName}-#{$numStr},
|
|
54
|
+
.backcolor#{$derived}-#{$colorName}-#{$numStr} {
|
|
55
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
56
|
+
}
|
|
57
|
+
.is-backcolor#{$derived}-hover-#{$colorName}-#{$numStr},
|
|
58
|
+
.backcolor#{$derived}-hover-#{$colorName}-#{$numStr} {
|
|
59
|
+
&:hover {
|
|
60
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.is-backcolor#{$derived}-#{$colorName}-focus-#{$numStr},
|
|
64
|
+
.backcolor#{$derived}-#{$colorName}-focus-#{$numStr} {
|
|
65
|
+
&:focus {
|
|
66
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.is-backcolor#{$derived}-#{$colorName}-active-#{$numStr},
|
|
70
|
+
.backcolor#{$derived}-#{$colorName}-active-#{$numStr} {
|
|
71
|
+
&:active {
|
|
72
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
.is-backcolor#{$derived}-#{$colorName}-disabled-#{$numStr},
|
|
76
|
+
.backcolor#{$derived}-#{$colorName}-disabled-#{$numStr} {
|
|
77
|
+
&[disabled],
|
|
78
|
+
fieldset[disabled] {
|
|
79
|
+
background-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//#endregion backcolor
|
|
83
|
+
|
|
84
|
+
//#region bordercolor
|
|
85
|
+
.is-bordercolor#{$derived}-#{$colorName}-#{$numStr},
|
|
86
|
+
.bordercolor#{$derived}-#{$colorName}-#{$numStr} {
|
|
87
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
88
|
+
}
|
|
89
|
+
.is-bordercolor#{$derived}-#{$colorName}-#{$numStr},
|
|
90
|
+
.bordercolor#{$derived}-#{$colorName}-#{$numStr} {
|
|
91
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
92
|
+
}
|
|
93
|
+
.is-bordercolor#{$derived}-hover-#{$colorName}-#{$numStr},
|
|
94
|
+
.bordercolor#{$derived}-hover-#{$colorName}-#{$numStr} {
|
|
95
|
+
&:hover {
|
|
96
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.is-bordercolor#{$derived}-#{$colorName}-focus-#{$numStr},
|
|
100
|
+
.bordercolor#{$derived}-#{$colorName}-focus-#{$numStr} {
|
|
101
|
+
&:focus {
|
|
102
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.is-bordercolor#{$derived}-#{$colorName}-active-#{$numStr},
|
|
106
|
+
.bordercolor#{$derived}-#{$colorName}-active-#{$numStr} {
|
|
107
|
+
&:active {
|
|
108
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.is-bordercolor#{$derived}-#{$colorName}-disabled-#{$numStr},
|
|
112
|
+
.bordercolor#{$derived}-#{$colorName}-disabled-#{$numStr} {
|
|
113
|
+
&[disabled],
|
|
114
|
+
fieldset[disabled] {
|
|
115
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
@each $borderSide in variables.$borderSides {
|
|
120
|
+
.is-bordercolor#{$derived}-#{$borderSide}-#{$colorName}-#{$numStr},
|
|
121
|
+
.bordercolor#{$derived}-#{$borderSide}-#{$colorName}-#{$numStr} {
|
|
122
|
+
border-#{$borderSide}-color: var(
|
|
123
|
+
--#{variables.$prefix}color-#{$colorName}-#{$numStr}
|
|
124
|
+
) !important;
|
|
125
|
+
}
|
|
126
|
+
.is-bordercolor#{$derived}-#{$borderSide}-hover-#{$colorName}-#{$numStr},
|
|
127
|
+
.bordercolor#{$derived}-#{$borderSide}-hover-#{$colorName}-#{$numStr} {
|
|
128
|
+
&:hover {
|
|
129
|
+
border-#{$borderSide}-color: var(
|
|
130
|
+
--#{variables.$prefix}color-#{$colorName}-#{$numStr}
|
|
131
|
+
) !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.is-bordercolor#{$derived}-#{$borderSide}-#{$colorName}-focus-#{$numStr},
|
|
135
|
+
.bordercolor#{$derived}-#{$borderSide}-#{$colorName}-focus-#{$numStr} {
|
|
136
|
+
&:focus {
|
|
137
|
+
border-#{$borderSide}-color: var(
|
|
138
|
+
--#{variables.$prefix}color-#{$colorName}-#{$numStr}
|
|
139
|
+
) !important;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
.is-bordercolor#{$derived}-#{$borderSide}-#{$colorName}-active-#{$numStr},
|
|
143
|
+
.bordercolor#{$derived}-#{$borderSide}-#{$colorName}-active-#{$numStr} {
|
|
144
|
+
&:active {
|
|
145
|
+
border-color: var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) !important;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.is-bordercolor#{$derived}-#{$borderSide}-#{$colorName}-disabled-#{$numStr},
|
|
149
|
+
.bordercolor#{$derived}-#{$borderSide}-#{$colorName}-disabled-#{$numStr} {
|
|
150
|
+
&[disabled],
|
|
151
|
+
fieldset[disabled] {
|
|
152
|
+
border-#{$borderSide}-color: var(
|
|
153
|
+
--#{variables.$prefix}color-#{$colorName}-#{$numStr}
|
|
154
|
+
) !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
//#endregion bordercolor
|
|
159
|
+
|
|
160
|
+
//#region highlighter
|
|
161
|
+
.is-highlighter#{$derived}-#{$colorName}-#{$numStr},
|
|
162
|
+
.highlighter#{$derived}-#{$colorName}-#{$numStr} {
|
|
163
|
+
background: linear-gradient(
|
|
164
|
+
transparent 66.66%,
|
|
165
|
+
var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
|
|
166
|
+
) !important;
|
|
167
|
+
}
|
|
168
|
+
.is-highlighter#{$derived}-hover-#{$colorName}-#{$numStr},
|
|
169
|
+
.highlighter#{$derived}-hover-#{$colorName}-#{$numStr} {
|
|
170
|
+
&:hover {
|
|
171
|
+
background: linear-gradient(
|
|
172
|
+
transparent 66.66%,
|
|
173
|
+
var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
|
|
174
|
+
) !important;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.is-highlighter#{$derived}-#{$colorName}-focus-#{$numStr},
|
|
178
|
+
.highlighter#{$derived}-#{$colorName}-focus-#{$numStr} {
|
|
179
|
+
&:focus {
|
|
180
|
+
background: linear-gradient(
|
|
181
|
+
transparent 66.66%,
|
|
182
|
+
var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
|
|
183
|
+
) !important;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
.is-highlighter#{$derived}-#{$colorName}-active-#{$numStr},
|
|
187
|
+
.highlighter#{$derived}-#{$colorName}-active-#{$numStr} {
|
|
188
|
+
&:active {
|
|
189
|
+
background: linear-gradient(
|
|
190
|
+
transparent 66.66%,
|
|
191
|
+
var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
|
|
192
|
+
) !important;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
.is-highlighter#{$derived}-#{$colorName}-disabled-#{$numStr},
|
|
196
|
+
.highlighter#{$derived}-#{$colorName}-disabled-#{$numStr} {
|
|
197
|
+
&[disabled],
|
|
198
|
+
fieldset[disabled] {
|
|
199
|
+
background: linear-gradient(
|
|
200
|
+
transparent 66.66%,
|
|
201
|
+
var(--#{variables.$prefix}color-#{$colorName}-#{$numStr}) 33.33%
|
|
202
|
+
) !important;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
//#endregion highlighter
|
|
206
|
+
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
@include colorUtilities();
|
|
212
|
+
@include mixins.setColorScheme("light") {
|
|
213
|
+
@include colorUtilities("light");
|
|
214
|
+
}
|
|
215
|
+
@include mixins.setColorScheme("dark") {
|
|
216
|
+
@include colorUtilities("dark");
|
|
217
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use "../variables/index.scss" as variables;
|
|
2
|
+
|
|
3
|
+
.has-box-shadow {
|
|
4
|
+
box-shadow: 0 0.5rem 0.5rem var(--#{variables.$prefix}color-default-shadow);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.has-text-shadow {
|
|
8
|
+
text-shadow: 2px 2px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
9
|
+
-2px 2px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
10
|
+
2px -2px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
11
|
+
-2px -2px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
12
|
+
2px 0px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
13
|
+
0px 2px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
14
|
+
-2px 0px 1px var(--#{variables.$prefix}color-default-shadow),
|
|
15
|
+
0px -2px 1px var(--#{variables.$prefix}color-default-shadow);
|
|
16
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.is-display-block,
|
|
2
|
+
.display-block {
|
|
3
|
+
display: block !important;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.is-display-inline,
|
|
7
|
+
.display-inline {
|
|
8
|
+
display: inline !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.is-position-absolute,
|
|
12
|
+
.position-absolute {
|
|
13
|
+
position: absolute !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.is-position-fixed,
|
|
17
|
+
.position-fixed {
|
|
18
|
+
position: fixed !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.is-position-relative,
|
|
22
|
+
.position-relative {
|
|
23
|
+
position: relative !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.is-position-sticky,
|
|
27
|
+
.position-sticky {
|
|
28
|
+
position: sticky !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@for $p from 1 through 100 {
|
|
32
|
+
.top-#{$p} {
|
|
33
|
+
top: $p * 1% !important;
|
|
34
|
+
}
|
|
35
|
+
.right-#{$p} {
|
|
36
|
+
right: $p * 1% !important;
|
|
37
|
+
}
|
|
38
|
+
.bottom-#{$p} {
|
|
39
|
+
bottom: $p * 1% !important;
|
|
40
|
+
}
|
|
41
|
+
.left-#{$p} {
|
|
42
|
+
left: $p * 1% !important;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use "sass:string";
|
|
2
|
+
@use "../functions/index.scss" as functions;
|
|
3
|
+
|
|
4
|
+
@for $p from 0 through 100 {
|
|
5
|
+
$escaped: functions.strReplace(#{($p * 0.1)}, ".", "\\.");
|
|
6
|
+
|
|
7
|
+
.is-width-#{$escaped}rem,
|
|
8
|
+
.width-#{$escaped}rem {
|
|
9
|
+
width: $p * 0.1rem;
|
|
10
|
+
}
|
|
11
|
+
.is-height-#{$escaped}rem,
|
|
12
|
+
.height-#{$escaped}rem {
|
|
13
|
+
height: $p * 0.1rem;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.is-width-100-percentage {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.is-height-100-percentage {
|
|
22
|
+
height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.is-width-auto {
|
|
26
|
+
width: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.is-height-auto {
|
|
30
|
+
height: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.is-aspect-ratio-square {
|
|
34
|
+
aspect-ratio: 1 / 1;
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.is-aspect-ratio-paper-landscape {
|
|
40
|
+
aspect-ratio: 1.414 / 1;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.is-aspect-ratio-paper-portrait {
|
|
46
|
+
aspect-ratio: 1 / 1.414;
|
|
47
|
+
width: 100%;
|
|
48
|
+
height: auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.is-aspect-ratio-2-3 {
|
|
52
|
+
aspect-ratio: 2 / 3;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.is-aspect-ratio-3-2 {
|
|
58
|
+
aspect-ratio: 3 / 2;
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: auto;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.is-aspect-ratio-3-4 {
|
|
64
|
+
aspect-ratio: 3 / 4;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: auto;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.is-aspect-ratio-4-3 {
|
|
70
|
+
aspect-ratio: 4 / 3;
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: auto;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.is-aspect-ratio-4-5 {
|
|
76
|
+
aspect-ratio: 4 / 5;
|
|
77
|
+
width: 100%;
|
|
78
|
+
height: auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.is-aspect-ratio-5-4 {
|
|
82
|
+
aspect-ratio: 5 / 4;
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: auto;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.is-aspect-ratio-5-8 {
|
|
88
|
+
aspect-ratio: 5 / 8;
|
|
89
|
+
width: 100%;
|
|
90
|
+
height: auto;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.is-aspect-ratio-8-5 {
|
|
94
|
+
aspect-ratio: 8 / 5;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.is-aspect-ratio-9-16 {
|
|
100
|
+
aspect-ratio: 9 / 16;
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: auto;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.is-aspect-ratio-16-9 {
|
|
106
|
+
aspect-ratio: 16 / 9;
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: auto;
|
|
109
|
+
}
|