@nuvoui/core 0.3.1 → 1.1.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/nuvoui.css +1 -0
- package/package.json +14 -7
- package/src/styles/base/_base.scss +26 -2
- package/src/styles/base/_reset.scss +5 -2
- package/src/styles/index.scss +6 -11
- package/src/styles/layouts/_container.scss +1 -0
- package/src/styles/layouts/_flex.scss +26 -7
- package/src/styles/layouts/_grid.scss +6 -8
- package/src/styles/mixins-map.scss +1175 -0
- package/src/styles/themes/_theme.scss +1 -2
- package/src/styles/utilities/_animations.scss +10 -64
- package/src/styles/utilities/_borders.scss +36 -0
- package/src/styles/utilities/_colors.scss +23 -19
- package/src/styles/utilities/_display.scss +13 -15
- package/src/styles/utilities/{_responsive.scss → _media-queries.scss} +16 -53
- package/src/styles/utilities/_opacity.scss +20 -0
- package/src/styles/utilities/_position.scss +49 -40
- package/src/styles/utilities/_shadows.scss +4 -5
- package/src/styles/utilities/_sizing.scss +73 -0
- package/src/styles/utilities/_spacing.scss +76 -63
- package/src/styles/utilities/_tooltips.scss +20 -33
- package/src/styles/utilities/_typography.scss +1 -0
- package/src/styles/utilities/_variables.scss +30 -23
- package/dist/dark.css +0 -1
- package/dist/index.css +0 -1
- package/dist/index.css.map +0 -1
- package/dist/index.html +0 -15
- package/dist/light.css +0 -1
- package/dist/main.css +0 -1
- package/dist/main.js +0 -1
- package/src/js/main.js +0 -1
- package/src/logo.png +0 -0
- package/src/logo.svg +0 -12
- package/src/styles/_global.scss +0 -3
- package/src/styles/components/_alert.scss +0 -0
- package/src/styles/components/_avatar.scss +0 -0
- package/src/styles/components/_badge.scss +0 -0
- package/src/styles/components/_breadcrumb.scss +0 -0
- package/src/styles/components/_button.scss +0 -247
- package/src/styles/components/_calendar.scss +0 -0
- package/src/styles/components/_card.scss +0 -0
- package/src/styles/components/_checkbox.scss +0 -23
- package/src/styles/components/_dropdown.scss +0 -0
- package/src/styles/components/_form.scss +0 -157
- package/src/styles/components/_modal.scss +0 -0
- package/src/styles/components/_navbar.scss +0 -141
- package/src/styles/components/_pagination.scss +0 -0
- package/src/styles/components/_progress.scss +0 -0
- package/src/styles/components/_radio.scss +0 -0
- package/src/styles/components/_sidebar.scss +0 -0
- package/src/styles/components/_table.scss +0 -0
- package/src/styles/components/_tabs.scss +0 -0
- package/src/styles/components/_tooltip.scss +0 -0
- package/src/styles/utilities/_hamburger.scss +0 -74
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// _spacing.scss
|
|
2
|
+
|
|
3
|
+
@use 'sass:math';
|
|
4
|
+
@use './variables' as *;
|
|
5
|
+
|
|
6
|
+
@mixin width($value) { width: if($value == 0, $value, $value + px); }
|
|
7
|
+
@mixin height($value) { height: if($value == 0, $value, $value + px); }
|
|
8
|
+
@mixin min-width($value) { min-width: if($value == 0, $value, $value + px); }
|
|
9
|
+
@mixin min-height($value) { min-height: if($value == 0, $value, $value + px); }
|
|
10
|
+
@mixin max-width($value) { max-width: if($value == 0, $value, $value + px); }
|
|
11
|
+
@mixin max-height($value) { max-height: if($value == 0, $value, $value + px); }
|
|
12
|
+
|
|
13
|
+
@mixin width-percent($i) { width: #{$i + '%'}; }
|
|
14
|
+
@mixin height-percent($i) { height: #{$i + '%'}; }
|
|
15
|
+
@mixin min-width-percent($i) { min-width: #{$i + '%'}; }
|
|
16
|
+
@mixin min-height-percent($i) { min-height: #{$i + '%'}; }
|
|
17
|
+
@mixin max-width-percent($i) { max-width: #{$i + '%'}; }
|
|
18
|
+
@mixin max-height-percent($i) { max-height: #{$i + '%'}; }
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
@mixin w-auto { width: auto; }
|
|
22
|
+
@mixin w-full { width: 100%; }
|
|
23
|
+
@mixin h-auto { height: auto; }
|
|
24
|
+
@mixin h-full { height: 100%; }
|
|
25
|
+
@mixin min-w-full { min-width: 100%; }
|
|
26
|
+
@mixin max-w-full { max-width: 100%; }
|
|
27
|
+
@mixin min-h-full { min-height: 100%; }
|
|
28
|
+
@mixin max-h-full { max-height: 100%; }
|
|
29
|
+
|
|
30
|
+
:not(.flex)>.w-auto { @include w-auto; }
|
|
31
|
+
:not(.flex)>.w-full { @include w-full; }
|
|
32
|
+
|
|
33
|
+
.h-auto { @include h-auto; }
|
|
34
|
+
.h-full { @include h-full; }
|
|
35
|
+
.min-w-full { @include min-w-full }
|
|
36
|
+
.max-w-full { @include max-w-full }
|
|
37
|
+
.min-h-full { @include min-h-full }
|
|
38
|
+
.max-h-full { @include max-h-full }
|
|
39
|
+
|
|
40
|
+
// Percentage widths
|
|
41
|
+
@each $i in $percentages {
|
|
42
|
+
.w-#{$i}per { @include width-percent($i); }
|
|
43
|
+
.h-#{$i}per { @include height-percent($i); }
|
|
44
|
+
.min-w-#{$i} { @include min-width-percent($i); }
|
|
45
|
+
.min-h-#{$i} { @include min-height-percent($i); }
|
|
46
|
+
.max-w-#{$i} { @include max-width-percent($i); }
|
|
47
|
+
.max-h-#{$i} { @include max-height-percent($i); }
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Generate utilities from spacing map
|
|
51
|
+
@each $i in $spacings {
|
|
52
|
+
.w-#{$i} { @include width($i); }
|
|
53
|
+
.h-#{$i} { @include height($i); }
|
|
54
|
+
.min-w-#{$i} { @include min-width($i) }
|
|
55
|
+
.min-h-#{$i} { @include min-height($i) }
|
|
56
|
+
.max-w-#{$i} { @include max-width($i) }
|
|
57
|
+
.max-h-#{$i} { @include max-height($i) }
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Pixel widths based on spacing scale
|
|
61
|
+
@each $breakpoint, $width in $breakpoints {
|
|
62
|
+
@media (min-width: $width) {
|
|
63
|
+
// Generate utilities from spacing map
|
|
64
|
+
@each $i in $spacings {
|
|
65
|
+
.w-#{$i}\@#{$breakpoint} { @include width($i); }
|
|
66
|
+
.h-#{$i}\@#{$breakpoint} { @include height($i); }
|
|
67
|
+
.min-w-#{$i}\@#{$breakpoint} { @include min-width($i) }
|
|
68
|
+
.min-h-#{$i}\@#{$breakpoint} { @include min-height($i) }
|
|
69
|
+
.max-w-#{$i}\@#{$breakpoint} { @include max-width($i) }
|
|
70
|
+
.max-h-#{$i}\@#{$breakpoint} { @include max-height($i) }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -1,28 +1,66 @@
|
|
|
1
|
-
// _spacing.scss
|
|
2
|
-
|
|
3
1
|
@use 'sass:math';
|
|
2
|
+
@use 'sass:string';
|
|
3
|
+
@use 'sass:meta';
|
|
4
4
|
@use './variables' as *;
|
|
5
5
|
|
|
6
|
+
@function format-unit-value($value) {
|
|
7
|
+
// Zero check
|
|
8
|
+
@if $value == 0 {
|
|
9
|
+
@return 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// If pure number, add px
|
|
13
|
+
@if meta.type-of($value) == 'number' {
|
|
14
|
+
@return $value + px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// Convert value to string for unit checking
|
|
18
|
+
$value-str: if(meta.type-of($value) == 'string', string.unquote($value), #{$value});
|
|
19
|
+
@debug string.unquote( $value-str); // .widget:hover
|
|
20
|
+
|
|
21
|
+
@return $value-str;
|
|
22
|
+
}
|
|
6
23
|
|
|
7
24
|
// Padding mixins
|
|
8
|
-
@mixin p($val) {
|
|
9
|
-
@mixin px($val) { $val:
|
|
10
|
-
@mixin py($val) { $val:
|
|
11
|
-
@mixin pt($val) { $val:
|
|
12
|
-
@mixin pr($val) { $val:
|
|
13
|
-
@mixin pb($val) { $val:
|
|
14
|
-
@mixin pl($val) { $val:
|
|
25
|
+
@mixin p($val) { padding: format-unit-value($val) !important; }
|
|
26
|
+
@mixin px($val) { $val: format-unit-value($val); padding-left: $val !important; padding-right: $val !important; }
|
|
27
|
+
@mixin py($val) { $val: format-unit-value($val); padding-top: $val !important; padding-bottom: $val !important; }
|
|
28
|
+
@mixin pt($val) { $val: format-unit-value($val); padding-top: $val !important; }
|
|
29
|
+
@mixin pr($val) { $val: format-unit-value($val); padding-right: $val !important; }
|
|
30
|
+
@mixin pb($val) { $val: format-unit-value($val); padding-bottom: $val !important; }
|
|
31
|
+
@mixin pl($val) { $val: format-unit-value($val); padding-left: $val !important; }
|
|
15
32
|
|
|
16
33
|
// Margin mixins
|
|
17
|
-
@mixin m($val) { $val:
|
|
18
|
-
@mixin mx($val) { $val:
|
|
19
|
-
@mixin my($val) { $val:
|
|
20
|
-
@mixin mt($val) { $val:
|
|
21
|
-
@mixin mr($val) { $val:
|
|
22
|
-
@mixin mb($val) { $val:
|
|
23
|
-
@mixin ml($val) { $val:
|
|
34
|
+
@mixin m($val) { $val: format-unit-value($val); margin: $val !important; }
|
|
35
|
+
@mixin mx($val) { $val: format-unit-value($val); margin-left: $val !important; margin-right: $val !important; }
|
|
36
|
+
@mixin my($val) { $val: format-unit-value($val); margin-top: $val !important; margin-bottom: $val !important; }
|
|
37
|
+
@mixin mt($val) { $val: format-unit-value($val); margin-top: $val !important; }
|
|
38
|
+
@mixin mr($val) { $val: format-unit-value($val); margin-right: $val !important; }
|
|
39
|
+
@mixin mb($val) { $val: format-unit-value($val); margin-bottom: $val !important; }
|
|
40
|
+
@mixin ml($val) { $val: format-unit-value($val); margin-left: $val !important; }
|
|
41
|
+
|
|
42
|
+
// Auto margin utilities
|
|
43
|
+
@mixin ml-auto { margin-left: auto; }
|
|
44
|
+
@mixin mr-auto { margin-right: auto; }
|
|
45
|
+
@mixin mx-auto { @include ml-auto; @include mr-auto; }
|
|
46
|
+
|
|
47
|
+
// Spacing map
|
|
48
|
+
@mixin space-y($i) { & > * + * { margin-top: if($i == 0, 0, $i + px); } }
|
|
49
|
+
@mixin space-x($i) { & > * + * { margin-left: if($i == 0, 0, $i + px); } }
|
|
24
50
|
|
|
25
51
|
|
|
52
|
+
// Gap Mixins
|
|
53
|
+
@mixin gap($value) { gap: if($value == 0, $value, $value + px); }
|
|
54
|
+
@mixin gap-x($value) { column-gap: if($value == 0, $value, $value + px); }
|
|
55
|
+
@mixin gap-y($value) { row-gap: if($value == 0, $value, $value + px); }
|
|
56
|
+
|
|
57
|
+
.mx-auto { @include mx-auto; }
|
|
58
|
+
.ml-auto { @include ml-auto; }
|
|
59
|
+
.mr-auto { @include mr-auto; }
|
|
60
|
+
|
|
61
|
+
// Gap Classes
|
|
62
|
+
.gap-auto { gap: auto; }
|
|
63
|
+
|
|
26
64
|
// Generate utilities from spacing map
|
|
27
65
|
@each $i in $spacings {
|
|
28
66
|
// Padding classes
|
|
@@ -42,13 +80,25 @@
|
|
|
42
80
|
.mr-#{$i} { @include mr($i); }
|
|
43
81
|
.mb-#{$i} { @include mb($i); }
|
|
44
82
|
.ml-#{$i} { @include ml($i); }
|
|
45
|
-
|
|
83
|
+
|
|
84
|
+
// Gap classes
|
|
85
|
+
.gap-#{$i} { @include gap($i); }
|
|
86
|
+
.gap-x-#{$i} { @include gap-x($i); }
|
|
87
|
+
.gap-y-#{$i} { @include gap-y($i); }
|
|
88
|
+
|
|
89
|
+
// Space classes
|
|
90
|
+
.space-x-#{$i} { @include space-x($i); }
|
|
91
|
+
.space-y-#{$i} { @include space-y($i); }
|
|
46
92
|
}
|
|
47
93
|
|
|
48
94
|
|
|
49
95
|
// Responsive Position Classes
|
|
50
96
|
@each $breakpoint, $width in $breakpoints {
|
|
51
97
|
@media (min-width: $width) {
|
|
98
|
+
.mx-auto\@#{$breakpoint} { @include mx-auto; }
|
|
99
|
+
.ml-auto\@#{$breakpoint} { @include ml-auto; }
|
|
100
|
+
.mr-auto\@#{$breakpoint} { @include mr-auto; }
|
|
101
|
+
|
|
52
102
|
// Generate utilities from spacing map
|
|
53
103
|
@each $i in $spacings {
|
|
54
104
|
// Padding classes
|
|
@@ -68,52 +118,15 @@
|
|
|
68
118
|
.mr-#{$i}\@#{$breakpoint} { @include mr($i); }
|
|
69
119
|
.mb-#{$i}\@#{$breakpoint} { @include mb($i); }
|
|
70
120
|
.ml-#{$i}\@#{$breakpoint} { @include ml($i); }
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
121
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
.mr-auto { @include mr-auto; }
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
// Gap Mixins
|
|
89
|
-
@mixin gap($value) {
|
|
90
|
-
gap: if($value == 0, $value, $value + px);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
@mixin gap-x($value) {
|
|
94
|
-
column-gap: if($value == 0, $value, $value + px);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
@mixin gap-y($value) {
|
|
98
|
-
row-gap: if($value == 0, $value, $value + px);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Gap Classes
|
|
102
|
-
.gap-auto { gap: auto; }
|
|
103
|
-
|
|
104
|
-
@each $i in $spacings {
|
|
105
|
-
.gap-#{$i} { @include gap($i); }
|
|
106
|
-
.gap-x-#{$i} { @include gap-x($i); }
|
|
107
|
-
.gap-y-#{$i} { @include gap-y($i); }
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Responsive Gap Classes
|
|
111
|
-
@each $breakpoint, $width in $breakpoints {
|
|
112
|
-
@media (min-width: $width) {
|
|
113
|
-
@each $i in $spacings {
|
|
114
|
-
.gap-#{$i}\@#{$breakpoint} { gap: $i; }
|
|
115
|
-
.gap-x-#{$i}\@#{$breakpoint} { column-gap: $i; }
|
|
116
|
-
.gap-y-#{$i}\@#{$breakpoint} { row-gap: $i; }
|
|
122
|
+
.gap-#{$i}\@#{$breakpoint} { gap: $i; }
|
|
123
|
+
.gap-x-#{$i}\@#{$breakpoint} { column-gap: $i; }
|
|
124
|
+
.gap-y-#{$i}\@#{$breakpoint} { row-gap: $i; }
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
// Space classes
|
|
128
|
+
.space-x-#{$i}\@#{$breakpoint} { @include space-x($i); }
|
|
129
|
+
.space-y-#{$i}\@#{$breakpoint} { @include space-y($i); }
|
|
130
|
+
}
|
|
117
131
|
}
|
|
118
|
-
}
|
|
119
132
|
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
[data-tooltip][role~="tooltip"]::before,
|
|
8
8
|
[data-tooltip][role~="tooltip"]::after {
|
|
9
9
|
transform: translate3d(0, 0, 0);
|
|
10
|
-
-webkit-backface-visibility: hidden;
|
|
11
10
|
backface-visibility: hidden;
|
|
12
11
|
will-change: transform;
|
|
13
12
|
opacity: 0;
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
[data-tooltip][role~="tooltip"]::after {
|
|
28
|
-
background: var(--tooltip-bg); //
|
|
27
|
+
background: var(--tooltip-bg); // todo: change to a variable
|
|
29
28
|
box-shadow: 0 3px 7px var(--tooltip-shadow-color);
|
|
30
29
|
border-radius: 4px;
|
|
31
30
|
color: #fff;
|
|
@@ -47,17 +46,17 @@
|
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
50
|
-
background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;
|
|
49
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
51
50
|
height: 6px;
|
|
52
51
|
width: 18px;
|
|
53
|
-
margin-bottom: 5px
|
|
52
|
+
margin-bottom: 5px;
|
|
53
|
+
transform: translate3d(-50%, 0, 0);
|
|
54
|
+
bottom: 100%;
|
|
55
|
+
left: 50%
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
57
|
-
margin-bottom: 11px
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
[role~="tooltip"][data-microtip-position|="top"]::before {
|
|
59
|
+
margin-bottom: 11px;
|
|
61
60
|
transform: translate3d(-50%, 0, 0);
|
|
62
61
|
bottom: 100%;
|
|
63
62
|
left: 50%
|
|
@@ -67,12 +66,6 @@
|
|
|
67
66
|
transform: translate3d(-50%, -5px, 0)
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
[role~="tooltip"][data-microtip-position|="top"]::after {
|
|
71
|
-
transform: translate3d(-50%, 0, 0);
|
|
72
|
-
bottom: 100%;
|
|
73
|
-
left: 50%
|
|
74
|
-
}
|
|
75
|
-
|
|
76
69
|
[role~="tooltip"][data-microtip-position="top"]:hover::after {
|
|
77
70
|
transform: translate3d(-50%, -5px, 0)
|
|
78
71
|
}
|
|
@@ -96,34 +89,31 @@
|
|
|
96
89
|
}
|
|
97
90
|
|
|
98
91
|
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
99
|
-
background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;
|
|
92
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
100
93
|
height: 6px;
|
|
101
94
|
width: 18px;
|
|
102
95
|
margin-top: 5px;
|
|
103
|
-
margin-bottom: 0
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
107
|
-
margin-top: 11px
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
[role~="tooltip"][data-microtip-position|="bottom"]::before {
|
|
96
|
+
margin-bottom: 0;
|
|
111
97
|
transform: translate3d(-50%, -10px, 0);
|
|
112
98
|
bottom: auto;
|
|
113
99
|
left: 50%;
|
|
114
100
|
top: 100%
|
|
115
101
|
}
|
|
116
102
|
|
|
117
|
-
[role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
|
|
118
|
-
transform: translate3d(-50%, 0, 0)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
103
|
[role~="tooltip"][data-microtip-position|="bottom"]::after {
|
|
104
|
+
margin-top: 11px;
|
|
122
105
|
transform: translate3d(-50%, -10px, 0);
|
|
123
106
|
top: 100%;
|
|
124
107
|
left: 50%
|
|
125
108
|
}
|
|
126
109
|
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
[role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
|
|
113
|
+
transform: translate3d(-50%, 0, 0)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
127
117
|
[role~="tooltip"][data-microtip-position="bottom"]:hover::after {
|
|
128
118
|
transform: translate3d(-50%, 0, 0)
|
|
129
119
|
}
|
|
@@ -148,15 +138,12 @@
|
|
|
148
138
|
|
|
149
139
|
[role~="tooltip"][data-microtip-position="left"]::before,
|
|
150
140
|
[role~="tooltip"][data-microtip-position="left"]::after {
|
|
151
|
-
|
|
152
|
-
left: auto;
|
|
153
|
-
right: 100%;
|
|
154
|
-
top: 50%;
|
|
141
|
+
inset: auto auto auto 100%;
|
|
155
142
|
transform: translate3d(10px, -50%, 0)
|
|
156
143
|
}
|
|
157
144
|
|
|
158
145
|
[role~="tooltip"][data-microtip-position="left"]::before {
|
|
159
|
-
background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;
|
|
146
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
160
147
|
height: 18px;
|
|
161
148
|
width: 6px;
|
|
162
149
|
margin-right: 5px;
|
|
@@ -181,7 +168,7 @@
|
|
|
181
168
|
}
|
|
182
169
|
|
|
183
170
|
[role~="tooltip"][data-microtip-position="right"]::before {
|
|
184
|
-
background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E) no-repeat;
|
|
171
|
+
background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
|
|
185
172
|
height: 18px;
|
|
186
173
|
width: 6px;
|
|
187
174
|
margin-bottom: 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Global variables that might be used across different modules
|
|
2
|
-
$enable-dark-mode: true;
|
|
3
|
-
$enable-rtl:
|
|
4
|
-
$enable-reduced-motion: true
|
|
2
|
+
$enable-dark-mode: true !default;
|
|
3
|
+
$enable-rtl: true !default;;
|
|
4
|
+
$enable-reduced-motion: true !default;;
|
|
5
5
|
|
|
6
6
|
$column-count: 12 !default;
|
|
7
7
|
|
|
@@ -33,7 +33,7 @@ $breakpoints: (
|
|
|
33
33
|
'lg': 1024px,
|
|
34
34
|
'xl': 1280px,
|
|
35
35
|
'xxl': 1536px,
|
|
36
|
-
);
|
|
36
|
+
) !default;
|
|
37
37
|
|
|
38
38
|
// Container max-widths
|
|
39
39
|
$container-max-widths: (
|
|
@@ -43,28 +43,35 @@ $container-max-widths: (
|
|
|
43
43
|
'lg': 960px,
|
|
44
44
|
'xl': 1140px,
|
|
45
45
|
'xxl': 1320px,
|
|
46
|
-
);
|
|
46
|
+
) !default;
|
|
47
47
|
|
|
48
48
|
// _variables.scss
|
|
49
49
|
$font-sizes: (
|
|
50
|
-
'
|
|
51
|
-
'3xl': 2rem, // 32px
|
|
52
|
-
'2xl': 1.75rem, // 28px
|
|
53
|
-
'xl': 1.5rem, // 24px
|
|
54
|
-
'lg': 1.25rem, // 20px
|
|
55
|
-
'md': 1rem, // 16px
|
|
50
|
+
'xs': 0.75rem, // 12px
|
|
56
51
|
'sm': 0.875rem, // 14px
|
|
57
|
-
'
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
//
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
52
|
+
'md': 1rem, // 16px
|
|
53
|
+
'lg': 1.25rem, // 20px
|
|
54
|
+
'xl': 1.5rem, // 24px
|
|
55
|
+
'2xl': 1.75rem, // 28px
|
|
56
|
+
'3xl': 2rem, // 32px
|
|
57
|
+
'4xl': 2.5rem // 40px
|
|
58
|
+
) !default;
|
|
59
|
+
|
|
60
|
+
$padding-map: (
|
|
61
|
+
'xs': 0.25rem 0.5rem,
|
|
62
|
+
'sm': 0.375rem 0.75rem,
|
|
63
|
+
'md': 0.5rem 1rem,
|
|
64
|
+
'lg': 0.75rem 1.5rem,
|
|
65
|
+
'xl': 1rem 2rem,
|
|
66
|
+
'2xl': 1.25rem 2.5rem,
|
|
67
|
+
'3xl': 1.5rem 3rem,
|
|
68
|
+
'4xl': 2rem 4rem,
|
|
69
|
+
) !default;
|
|
67
70
|
|
|
68
71
|
$spacings: (
|
|
69
|
-
0,1,2,3,4,5,
|
|
70
|
-
)
|
|
72
|
+
0,1,2,3,4,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,125,150,175,200,250,300,350,400,450,500
|
|
73
|
+
) !default;
|
|
74
|
+
|
|
75
|
+
$percentages: (
|
|
76
|
+
0, 5, 10, 20, 25, 30, 40, 50, 60, 70, 75, 80, 90, 95, 100
|
|
77
|
+
) !default;
|
package/dist/dark.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-theme=dark]{--primary:#007bff;--primary-rgb:0,123,255;--primary-lighter:#0069d9;--primary-light:#006fe6;--primary-dark:#1a88ff;--primary-darker:#268fff;--primary-10:rgba(0,123,255,.1);--primary-25:rgba(0,123,255,.25);--primary-50:rgba(0,123,255,.5);--primary-75:rgba(0,123,255,.75);--primary-hover:var(--primary-light);--primary-active:var(--primary-lighter);--primary-disabled:var(--primary-50);--secondary:#6c757d;--secondary-rgb:108,117,125;--secondary-lighter:#5c636a;--secondary-light:#616971;--secondary-dark:#79838b;--secondary-darker:#818a92;--secondary-10:hsla(208,7%,46%,.1);--secondary-25:hsla(208,7%,46%,.25);--secondary-50:hsla(208,7%,46%,.5);--secondary-75:hsla(208,7%,46%,.75);--secondary-hover:var(--secondary-light);--secondary-active:var(--secondary-lighter);--secondary-disabled:var(--secondary-50);--success:#28a745;--success-rgb:40,167,69;--success-lighter:#228e3b;--success-light:#24963e;--success-dark:#2ebf4f;--success-darker:#31cc54;--success-10:rgba(40,167,69,.1);--success-25:rgba(40,167,69,.25);--success-50:rgba(40,167,69,.5);--success-75:rgba(40,167,69,.75);--success-hover:var(--success-light);--success-active:var(--success-lighter);--success-disabled:var(--success-50);--danger:#dc3545;--danger-rgb:220,53,69;--danger-lighter:#c62232;--danger-light:#d12435;--danger-dark:#e04958;--danger-darker:#e15361;--danger-10:rgba(220,53,69,.1);--danger-25:rgba(220,53,69,.25);--danger-50:rgba(220,53,69,.5);--danger-75:rgba(220,53,69,.75);--danger-hover:var(--danger-light);--danger-active:var(--danger-lighter);--danger-disabled:var(--danger-50);--warning:#ffc107;--warning-rgb:255,193,7;--warning-lighter:#dfa700;--warning-light:#ecb100;--warning-dark:#ffc720;--warning-darker:#ffca2c;--warning-10:rgba(255,193,7,.1);--warning-25:rgba(255,193,7,.25);--warning-50:rgba(255,193,7,.5);--warning-75:rgba(255,193,7,.75);--warning-hover:var(--warning-light);--warning-active:var(--warning-lighter);--warning-disabled:var(--warning-50);--info:#17a2b8;--info-rgb:23,162,184;--info-lighter:#148a9c;--info-light:#1592a6;--info-dark:#1abad3;--info-darker:#1cc6e0;--info-10:rgba(23,162,184,.1);--info-25:rgba(23,162,184,.25);--info-50:rgba(23,162,184,.5);--info-75:rgba(23,162,184,.75);--info-hover:var(--info-light);--info-active:var(--info-lighter);--info-disabled:var(--info-50);--light:#f8f9fa;--light-rgb:248,249,250;--light-lighter:#ccd4db;--light-light:#dbe0e5;--light-dark:#f9fafb;--light-darker:#f9fafb;--light-10:rgba(248,249,250,.1);--light-25:rgba(248,249,250,.25);--light-50:rgba(248,249,250,.5);--light-75:rgba(248,249,250,.75);--light-hover:var(--light-light);--light-active:var(--light-lighter);--light-disabled:var(--light-50);--dark:#1c1f22;--dark-rgb:28,31,34;--dark-lighter:#181a1d;--dark-light:#191c1f;--dark-dark:#30353b;--dark-darker:#3a4147;--dark-10:rgba(28,31,34,.1);--dark-25:rgba(28,31,34,.25);--dark-50:rgba(28,31,34,.5);--dark-75:rgba(28,31,34,.75);--dark-hover:var(--dark-light);--dark-active:var(--dark-lighter);--dark-disabled:var(--dark-50);--bg-primary:var(--dark);--bg-secondary:#262a2e;--bg-tertiary:#30353b;--border-color:rgba(248,249,250,.07);--border-color-dark:rgba(248,249,250,.15);--text-primary:var(--light);--text-secondary:rgba(248,249,250,.7);--text-tertiary:rgba(248,249,250,.5);--text-disabled:rgba(248,249,250,.3);--text-inverse:var(--dark);--link-color:var(--primary);--link-hover-color:#1a88ff;--link-active-color:#3395ff;--link-visited-color:#1a7ce6;--nav-bg:var(--bg-primary);--nav-hover:var(--bg-secondary);--nav-active:var(--bg-tertiary);--nav-text:var(--text-primary);--nav-text-hover:var(--primary);--nav-border:var(--border-color);--tooltip-bg:var(--dark);--tooltip-text:var(--light);--tooltip-shadow-color:rgba(0,0,0,.4);--microtip-transition-duration:.518s;--microtip-transition-delay:.2s;--microtip-transition-easing:cubic-bezier(.16,1,.9,1);--microtip-font-size:.875rem;--microtip-font-weight:300;--microtip-text-transform:none;--font-family-heading:var(--font-family-base);--input-bg:#16191b}
|