@nuvoui/core 0.3.1 → 1.0.1
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/main.css +1 -1
- package/package.json +5 -3
- package/src/styles/base/_base.scss +26 -2
- package/src/styles/base/_reset.scss +5 -2
- package/src/styles/components/_button.scss +96 -82
- package/src/styles/components/_checkbox.scss +0 -23
- package/src/styles/components/_form.scss +60 -22
- package/src/styles/components/_hamburger.scss +72 -0
- package/src/styles/components/_navbar.scss +99 -103
- package/src/styles/index.scss +7 -8
- package/src/styles/layouts/_container.scss +1 -0
- package/src/styles/layouts/_flex.scss +25 -7
- package/src/styles/layouts/_grid.scss +6 -8
- package/src/styles/themes/_theme.scss +1 -1
- 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 +12 -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 +57 -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/index.css +0 -1
- package/dist/index.css.map +0 -1
- package/src/styles/_global.scss +0 -3
- package/src/styles/utilities/_hamburger.scss +0 -74
|
@@ -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;
|