zenkit-css 1.0.0 → 1.0.2
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/zenkit.css.map +1 -1
- package/dist/zenkit.min.css.map +1 -1
- package/package.json +1 -1
- package/scss/abstracts/_mixins.scss +7 -5
- package/scss/components/_dropdown.scss +2 -1
- package/scss/components/_popover.scss +6 -5
- package/scss/content/_tables.scss +6 -2
- package/scss/layout/_grid.scss +25 -5
- package/scss/utilities/_colors.scss +5 -4
package/package.json
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
// ZenKit - Mixins
|
|
3
3
|
// ========================================
|
|
4
4
|
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
@use 'sass:math';
|
|
5
7
|
@use 'variables' as *;
|
|
6
8
|
|
|
7
9
|
// ----------------------------------------
|
|
8
10
|
// Breakpoint Mixins (Mobile First)
|
|
9
11
|
// ----------------------------------------
|
|
10
12
|
@mixin breakpoint-up($name) {
|
|
11
|
-
$min: map
|
|
13
|
+
$min: map.get($breakpoints, $name);
|
|
12
14
|
@if $min and $min > 0 {
|
|
13
15
|
@media (min-width: $min) {
|
|
14
16
|
@content;
|
|
@@ -19,7 +21,7 @@
|
|
|
19
21
|
}
|
|
20
22
|
|
|
21
23
|
@mixin breakpoint-down($name) {
|
|
22
|
-
$max: map
|
|
24
|
+
$max: map.get($breakpoints, $name);
|
|
23
25
|
@if $max and $max > 0 {
|
|
24
26
|
@media (max-width: ($max - 0.02px)) {
|
|
25
27
|
@content;
|
|
@@ -75,8 +77,8 @@
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
@mixin make-col($size, $columns: $grid-columns) {
|
|
78
|
-
flex: 0 0 percentage(
|
|
79
|
-
max-width: percentage(
|
|
80
|
+
flex: 0 0 math.percentage(math.div($size, $columns));
|
|
81
|
+
max-width: math.percentage(math.div($size, $columns));
|
|
80
82
|
padding-right: calc($grid-gutter / 2);
|
|
81
83
|
padding-left: calc($grid-gutter / 2);
|
|
82
84
|
}
|
|
@@ -258,7 +260,7 @@
|
|
|
258
260
|
|
|
259
261
|
&::before {
|
|
260
262
|
display: block;
|
|
261
|
-
padding-top: percentage(
|
|
263
|
+
padding-top: math.percentage(math.div($height, $width));
|
|
262
264
|
content: "";
|
|
263
265
|
}
|
|
264
266
|
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// ZenKit - Dropdown
|
|
3
3
|
// ========================================
|
|
4
4
|
|
|
5
|
+
@use 'sass:map';
|
|
5
6
|
@use '../abstracts/variables' as *;
|
|
6
7
|
|
|
7
8
|
// ----------------------------------------
|
|
@@ -280,7 +281,7 @@
|
|
|
280
281
|
|
|
281
282
|
// Responsive alignment
|
|
282
283
|
@each $breakpoint in (sm, md, lg, xl, 2xl) {
|
|
283
|
-
@media (min-width: map
|
|
284
|
+
@media (min-width: map.get($breakpoints, $breakpoint)) {
|
|
284
285
|
.dropdown-menu-#{$breakpoint}-start {
|
|
285
286
|
--position: start;
|
|
286
287
|
right: auto;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// ZenKit - Popover
|
|
3
3
|
// ========================================
|
|
4
4
|
|
|
5
|
+
@use 'sass:color';
|
|
5
6
|
@use '../abstracts/variables' as *;
|
|
6
7
|
|
|
7
8
|
// ----------------------------------------
|
|
@@ -224,7 +225,7 @@
|
|
|
224
225
|
.popover-primary {
|
|
225
226
|
--popover-bg: var(--primary);
|
|
226
227
|
--popover-border-color: var(--primary);
|
|
227
|
-
--popover-header-bg: #{
|
|
228
|
+
--popover-header-bg: #{color.adjust($primary, $lightness: -5%)};
|
|
228
229
|
--popover-header-color: var(--white);
|
|
229
230
|
--popover-body-color: var(--white);
|
|
230
231
|
}
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
.popover-success {
|
|
241
242
|
--popover-bg: var(--success);
|
|
242
243
|
--popover-border-color: var(--success);
|
|
243
|
-
--popover-header-bg: #{
|
|
244
|
+
--popover-header-bg: #{color.adjust($success, $lightness: -5%)};
|
|
244
245
|
--popover-header-color: var(--white);
|
|
245
246
|
--popover-body-color: var(--white);
|
|
246
247
|
}
|
|
@@ -248,7 +249,7 @@
|
|
|
248
249
|
.popover-danger {
|
|
249
250
|
--popover-bg: var(--danger);
|
|
250
251
|
--popover-border-color: var(--danger);
|
|
251
|
-
--popover-header-bg: #{
|
|
252
|
+
--popover-header-bg: #{color.adjust($danger, $lightness: -5%)};
|
|
252
253
|
--popover-header-color: var(--white);
|
|
253
254
|
--popover-body-color: var(--white);
|
|
254
255
|
}
|
|
@@ -256,7 +257,7 @@
|
|
|
256
257
|
.popover-warning {
|
|
257
258
|
--popover-bg: var(--warning);
|
|
258
259
|
--popover-border-color: var(--warning);
|
|
259
|
-
--popover-header-bg: #{
|
|
260
|
+
--popover-header-bg: #{color.adjust($warning, $lightness: -5%)};
|
|
260
261
|
--popover-header-color: var(--gray-900);
|
|
261
262
|
--popover-body-color: var(--gray-900);
|
|
262
263
|
}
|
|
@@ -264,7 +265,7 @@
|
|
|
264
265
|
.popover-info {
|
|
265
266
|
--popover-bg: var(--info);
|
|
266
267
|
--popover-border-color: var(--info);
|
|
267
|
-
--popover-header-bg: #{
|
|
268
|
+
--popover-header-bg: #{color.adjust($info, $lightness: -5%)};
|
|
268
269
|
--popover-header-color: var(--white);
|
|
269
270
|
--popover-body-color: var(--white);
|
|
270
271
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// ZenKit - Tables
|
|
3
3
|
// ========================================
|
|
4
4
|
|
|
5
|
+
@use 'sass:map';
|
|
5
6
|
@use '../abstracts/variables' as *;
|
|
6
7
|
@use '../abstracts/mixins' as *;
|
|
7
8
|
|
|
@@ -188,8 +189,11 @@
|
|
|
188
189
|
-webkit-overflow-scrolling: touch;
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
@each $breakpoint in map
|
|
192
|
-
$infix:
|
|
192
|
+
@each $breakpoint in map.keys($breakpoints) {
|
|
193
|
+
$infix: "";
|
|
194
|
+
@if $breakpoint != xs {
|
|
195
|
+
$infix: "-#{$breakpoint}";
|
|
196
|
+
}
|
|
193
197
|
|
|
194
198
|
@include breakpoint-down($breakpoint) {
|
|
195
199
|
.table-responsive#{$infix} {
|
package/scss/layout/_grid.scss
CHANGED
|
@@ -165,14 +165,22 @@
|
|
|
165
165
|
// ----------------------------------------
|
|
166
166
|
@for $i from 0 through ($grid-columns - 1) {
|
|
167
167
|
.offset-#{$i} {
|
|
168
|
-
|
|
168
|
+
@if $i == 0 {
|
|
169
|
+
margin-left: 0;
|
|
170
|
+
} @else {
|
|
171
|
+
margin-left: math.percentage(math.div($i, $grid-columns));
|
|
172
|
+
}
|
|
169
173
|
}
|
|
170
174
|
}
|
|
171
175
|
|
|
172
176
|
@include sm {
|
|
173
177
|
@for $i from 0 through ($grid-columns - 1) {
|
|
174
178
|
.offset-sm-#{$i} {
|
|
175
|
-
|
|
179
|
+
@if $i == 0 {
|
|
180
|
+
margin-left: 0;
|
|
181
|
+
} @else {
|
|
182
|
+
margin-left: math.percentage(math.div($i, $grid-columns));
|
|
183
|
+
}
|
|
176
184
|
}
|
|
177
185
|
}
|
|
178
186
|
}
|
|
@@ -180,7 +188,11 @@
|
|
|
180
188
|
@include md {
|
|
181
189
|
@for $i from 0 through ($grid-columns - 1) {
|
|
182
190
|
.offset-md-#{$i} {
|
|
183
|
-
|
|
191
|
+
@if $i == 0 {
|
|
192
|
+
margin-left: 0;
|
|
193
|
+
} @else {
|
|
194
|
+
margin-left: math.percentage(math.div($i, $grid-columns));
|
|
195
|
+
}
|
|
184
196
|
}
|
|
185
197
|
}
|
|
186
198
|
}
|
|
@@ -188,7 +200,11 @@
|
|
|
188
200
|
@include lg {
|
|
189
201
|
@for $i from 0 through ($grid-columns - 1) {
|
|
190
202
|
.offset-lg-#{$i} {
|
|
191
|
-
|
|
203
|
+
@if $i == 0 {
|
|
204
|
+
margin-left: 0;
|
|
205
|
+
} @else {
|
|
206
|
+
margin-left: math.percentage(math.div($i, $grid-columns));
|
|
207
|
+
}
|
|
192
208
|
}
|
|
193
209
|
}
|
|
194
210
|
}
|
|
@@ -196,7 +212,11 @@
|
|
|
196
212
|
@include xl {
|
|
197
213
|
@for $i from 0 through ($grid-columns - 1) {
|
|
198
214
|
.offset-xl-#{$i} {
|
|
199
|
-
|
|
215
|
+
@if $i == 0 {
|
|
216
|
+
margin-left: 0;
|
|
217
|
+
} @else {
|
|
218
|
+
margin-left: math.percentage(math.div($i, $grid-columns));
|
|
219
|
+
}
|
|
200
220
|
}
|
|
201
221
|
}
|
|
202
222
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// ZenKit - Color Utilities
|
|
3
3
|
// ========================================
|
|
4
4
|
|
|
5
|
+
@use 'sass:color';
|
|
5
6
|
@use '../abstracts/variables' as *;
|
|
6
7
|
@use '../abstracts/mixins' as *;
|
|
7
8
|
|
|
@@ -129,19 +130,19 @@
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
.bg-gradient-success {
|
|
132
|
-
background: linear-gradient(135deg, $success,
|
|
133
|
+
background: linear-gradient(135deg, $success, color.adjust($success, $lightness: -15%));
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
.bg-gradient-danger {
|
|
136
|
-
background: linear-gradient(135deg, $danger,
|
|
137
|
+
background: linear-gradient(135deg, $danger, color.adjust($danger, $lightness: -15%));
|
|
137
138
|
}
|
|
138
139
|
|
|
139
140
|
.bg-gradient-warning {
|
|
140
|
-
background: linear-gradient(135deg, $warning,
|
|
141
|
+
background: linear-gradient(135deg, $warning, color.adjust($warning, $lightness: -15%));
|
|
141
142
|
}
|
|
142
143
|
|
|
143
144
|
.bg-gradient-info {
|
|
144
|
-
background: linear-gradient(135deg, $info,
|
|
145
|
+
background: linear-gradient(135deg, $info, color.adjust($info, $lightness: -15%));
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
// Gradient directions
|