@oardi/css-utils 0.30.0 → 0.31.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/package.json +1 -1
- package/scss/borders.scss +26 -0
- package/scss/components/navbar.scss +1 -0
- package/scss/index.scss +1 -0
- package/scss/theme.scss +2 -2
- package/scss/utilities.scss +26 -30
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use './theme.scss';
|
|
3
|
+
|
|
4
|
+
.border-0 {
|
|
5
|
+
border: 0 !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@each $name, $value in map.get(theme.$theme, colors) {
|
|
9
|
+
// TODO - add borders for positions
|
|
10
|
+
.border-#{$name} {
|
|
11
|
+
border: var(--border-width) solid var(--#{$name}) !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// TODO - refactor directions s = start = left = l?
|
|
15
|
+
@each $dir, $prop in map.get(theme.$theme, directions) {
|
|
16
|
+
.border-#{$dir}-#{$name} {
|
|
17
|
+
border-#{$prop}: var(--border-width) solid var(--#{$name}) !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@each $dir, $prop in map.get(theme.$theme, directions) {
|
|
23
|
+
.border-#{$dir}-0 {
|
|
24
|
+
border-#{$dir}: none !important;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/scss/index.scss
CHANGED
package/scss/theme.scss
CHANGED
|
@@ -7,7 +7,7 @@ $default-theme: (
|
|
|
7
7
|
'primary': #9163e7,
|
|
8
8
|
'secondary': #595959,
|
|
9
9
|
'success': #16a085,
|
|
10
|
-
'
|
|
10
|
+
'warning': #ffc557,
|
|
11
11
|
'error': #eb4242,
|
|
12
12
|
'white': #ffffff,
|
|
13
13
|
'black': #000000,
|
|
@@ -16,7 +16,7 @@ $default-theme: (
|
|
|
16
16
|
'on-primary': #ffffff,
|
|
17
17
|
'on-secondary': #ffffff,
|
|
18
18
|
'on-success': #ffffff,
|
|
19
|
-
'on-
|
|
19
|
+
'on-warning': #ffffff,
|
|
20
20
|
'on-error': #ffffff,
|
|
21
21
|
'on-white': #000000,
|
|
22
22
|
'on-black': #ffffff,
|
package/scss/utilities.scss
CHANGED
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
|
|
20
20
|
// add responsive
|
|
21
21
|
.text-center {
|
|
22
|
-
text-align: center;
|
|
22
|
+
text-align: center !important;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.text-start {
|
|
26
|
-
text-align: left;
|
|
26
|
+
text-align: left !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.text-end {
|
|
30
|
-
text-align: right;
|
|
30
|
+
text-align: right !important;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.text-white {
|
|
@@ -56,42 +56,42 @@
|
|
|
56
56
|
|
|
57
57
|
@each $name, $value in map.get(theme.$theme, colors) {
|
|
58
58
|
.text-#{$name} {
|
|
59
|
-
color: var(--#{$name});
|
|
60
|
-
fill: var(--#{$name});
|
|
59
|
+
color: var(--#{$name}) !important;
|
|
60
|
+
fill: var(--#{$name}) !important;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
// deprecated
|
|
63
|
+
// deprecated - use bg-opacity-*
|
|
64
64
|
.bg-#{$name}-light {
|
|
65
65
|
background-color: var(--#{$name}-light);
|
|
66
66
|
color: var(--on-#{$name});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.bg-#{$name} {
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
color: var(--on-#{$name}) !important;
|
|
71
|
+
fill: var(--on-#{$name}) !important;
|
|
72
72
|
background-color: rgba(var(--#{$name}-rgb), var(--bg-opacity)) !important;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// deprecated
|
|
76
76
|
.bg-#{$name}-dark {
|
|
77
|
-
background-color: var(--#{$name}-dark);
|
|
78
|
-
color: var(--on-#{$name});
|
|
77
|
+
background-color: var(--#{$name}-dark) !important;
|
|
78
|
+
color: var(--on-#{$name}) !important;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
@each $name, $value in map.get(theme.$theme, grays) {
|
|
83
83
|
.text-gray-#{$name} {
|
|
84
|
-
color: var(--gray-#{$name});
|
|
85
|
-
fill: var(--gray-#{$name});
|
|
84
|
+
color: var(--gray-#{$name}) !important;
|
|
85
|
+
fill: var(--gray-#{$name}) !important;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.bg-gray-#{$name} {
|
|
89
|
-
background-color: var(--gray-#{$name});
|
|
89
|
+
background-color: var(--gray-#{$name}) !important;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.bg-white {
|
|
94
|
-
background-color: var(--white);
|
|
94
|
+
background-color: var(--white) !important;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
|
@@ -101,7 +101,7 @@ bg-light(top)?
|
|
|
101
101
|
*/
|
|
102
102
|
|
|
103
103
|
.img-responsive {
|
|
104
|
-
width: 100
|
|
104
|
+
width: 100% !important;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
.rounded-circle {
|
|
@@ -133,42 +133,42 @@ bg-light(top)?
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.w-100 {
|
|
136
|
-
width: 100
|
|
136
|
+
width: 100% !important;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.w-60 {
|
|
140
|
-
width: 60
|
|
140
|
+
width: 60% !important;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.w-50 {
|
|
144
|
-
width: 50
|
|
144
|
+
width: 50% !important;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.w-40 {
|
|
148
|
-
width: 40
|
|
148
|
+
width: 40% !important;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
// TODO - add several heights
|
|
152
152
|
.h-100 {
|
|
153
|
-
height: 100
|
|
153
|
+
height: 100% !important;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
// TODO - check if more classes are needed
|
|
157
157
|
// arrange elements top, start, bottom, end
|
|
158
158
|
.top-0 {
|
|
159
|
-
top: 0px;
|
|
159
|
+
top: 0px !important;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
.right-0 {
|
|
163
|
-
right: 0px;
|
|
163
|
+
right: 0px !important;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
166
|
.bottom-0 {
|
|
167
|
-
bottom: 0px;
|
|
167
|
+
bottom: 0px !important;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.left-0 {
|
|
171
|
-
left: 0px;
|
|
171
|
+
left: 0px !important;
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.fixed-top {
|
|
@@ -180,7 +180,7 @@ bg-light(top)?
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.overflow-y-scroll {
|
|
183
|
-
overflow-y: scroll;
|
|
183
|
+
overflow-y: scroll !important;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.no-scroll {
|
|
@@ -190,10 +190,6 @@ bg-light(top)?
|
|
|
190
190
|
height: 100%;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.border-0 {
|
|
194
|
-
border: 0 !important;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
193
|
// width, height, display with breakpoints and directions
|
|
198
194
|
@each $bp, $bp-value in map.get(theme.$theme, breakpoints) {
|
|
199
195
|
@media (min-width: #{$bp-value}) {
|
|
@@ -250,6 +246,6 @@ bg-light(top)?
|
|
|
250
246
|
|
|
251
247
|
@each $name, $value in map.get(theme.$theme, zIndexLevels) {
|
|
252
248
|
.z-index-#{$name} {
|
|
253
|
-
z-index: $value;
|
|
249
|
+
z-index: $value !important;
|
|
254
250
|
}
|
|
255
251
|
}
|