@volverjs/style 0.1.22 → 0.1.24-beta.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/README.md +30 -0
- package/dist/base.css +1 -1
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dropdown-action.css +1 -1
- package/dist/components/vv-dropdown-option.css +1 -1
- package/dist/components/vv-dropdown.css +1 -1
- package/dist/components/vv-input-file.css +1 -1
- package/dist/components/vv-input-text.css +1 -1
- package/dist/components/vv-nav.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/export.css +1 -1
- package/dist/props/breakpoints.css +1 -1
- package/dist/props/colors.css +1 -1
- package/dist/props/effects.css +1 -1
- package/dist/props/spacing.css +1 -1
- package/dist/props/transitions.css +1 -1
- package/dist/props/typography.css +1 -1
- package/dist/props.css +1 -1
- package/dist/reset.css +1 -1
- package/dist/themes/dark/components.css +1 -1
- package/dist/themes/dark/props.css +1 -1
- package/dist/themes/dark/volver.css +1 -1
- package/dist/utilities/borders.css +1 -1
- package/dist/utilities/colors.css +1 -1
- package/dist/utilities/effects.css +1 -1
- package/dist/utilities/flexbox.css +1 -1
- package/dist/utilities/grid.css +1 -1
- package/dist/utilities/layout.css +1 -1
- package/dist/utilities/sizing.css +1 -1
- package/dist/utilities/typography.css +1 -1
- package/dist/utilities.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +22 -22
- package/src/_config.scss +12 -0
- package/src/_layers.scss +4 -0
- package/src/_preflight.scss +2 -0
- package/src/components/vv-accordion-group.scss +3 -0
- package/src/components/vv-accordion.scss +3 -0
- package/src/components/vv-alert-group.scss +3 -0
- package/src/components/vv-alert.scss +3 -0
- package/src/components/vv-avatar-group.scss +3 -0
- package/src/components/vv-avatar.scss +3 -0
- package/src/components/vv-badge.scss +3 -0
- package/src/components/vv-breadcrumb.scss +3 -0
- package/src/components/vv-button-group.scss +3 -0
- package/src/components/vv-button.scss +3 -0
- package/src/components/vv-card.scss +3 -0
- package/src/components/vv-checkbox-group.scss +3 -0
- package/src/components/vv-checkbox.scss +3 -0
- package/src/components/vv-dialog.scss +3 -0
- package/src/components/vv-dropdown-action.scss +3 -0
- package/src/components/vv-dropdown-optgroup.scss +3 -0
- package/src/components/vv-dropdown-option.scss +3 -0
- package/src/components/vv-dropdown.scss +3 -0
- package/src/components/vv-input-file.scss +3 -0
- package/src/components/vv-input-text.scss +3 -0
- package/src/components/vv-nav.scss +3 -0
- package/src/components/vv-progress.scss +3 -0
- package/src/components/vv-radio-group.scss +3 -0
- package/src/components/vv-radio.scss +3 -0
- package/src/components/vv-select.scss +3 -0
- package/src/components/vv-skeleton.scss +3 -0
- package/src/components/vv-tab.scss +3 -0
- package/src/components/vv-table.scss +3 -0
- package/src/components/vv-text.scss +3 -0
- package/src/components/vv-textarea.scss +3 -0
- package/src/components/vv-tooltip.scss +5 -7
- package/src/export.scss +0 -1
- package/src/props/background.scss +5 -3
- package/src/props/borders.scss +5 -3
- package/src/props/breakpoints.scss +11 -9
- package/src/props/colors.scss +4 -2
- package/src/props/effects.scss +5 -3
- package/src/props/filters.scss +6 -4
- package/src/props/input.scss +4 -2
- package/src/props/layout.scss +5 -3
- package/src/props/sizing.scss +5 -3
- package/src/props/spacing.scss +16 -16
- package/src/props/transitions.scss +150 -118
- package/src/props/typography.scss +24 -24
- package/src/reset.scss +4 -3
- package/src/settings/_colors.scss +80 -50
- package/src/settings/_effects.scss +7 -7
- package/src/settings/components/_vv-accordion.scss +2 -1
- package/src/settings/components/_vv-badge.scss +2 -10
- package/src/settings/components/_vv-button.scss +1 -1
- package/src/settings/components/_vv-card.scss +3 -17
- package/src/settings/components/_vv-nav.scss +1 -6
- package/src/settings/components/_vv-text.scss +1 -0
- package/src/themes/dark/components/_vv-alert.scss +14 -10
- package/src/themes/dark/components/_vv-avatar.scss +14 -10
- package/src/themes/dark/components/_vv-badge.scss +14 -10
- package/src/themes/dark/components/_vv-button.scss +14 -10
- package/src/themes/dark/components/_vv-dropdown-action.scss +14 -10
- package/src/themes/dark/components/_vv-dropdown-option.scss +14 -10
- package/src/themes/dark/components/_vv-nav.scss +14 -10
- package/src/themes/dark/components/_vv-select.scss +14 -10
- package/src/themes/dark/props/_background.scss +3 -0
- package/src/themes/dark/props/_colors.scss +3 -0
- package/src/themes/dark/props/_input.scss +3 -0
- package/src/themes/dark/settings/_colors.scss +42 -28
- package/src/themes/dark/settings/components/_vv-alert.scss +23 -0
- package/src/themes/dark/settings/components/_vv-avatar.scss +3 -0
- package/src/themes/dark/settings/components/_vv-button.scss +0 -1
- package/src/tools/_breakpoints.scss +20 -4
- package/src/tools/_functions.scss +157 -0
- package/src/tools/_mixins.scss +5 -1216
- package/src/tools/mixin-modules/_attrs.scss +178 -0
- package/src/tools/mixin-modules/_bem.scss +751 -0
- package/src/tools/mixin-modules/_helpers.scss +23 -0
- package/src/tools/mixin-modules/_index.scss +25 -0
- package/src/tools/mixin-modules/_layers.scss +42 -0
- package/src/tools/mixin-modules/_props.scss +41 -0
- package/src/tools/mixin-modules/_theme.scss +354 -0
- package/src/tools/mixin-modules/_utilities.scss +121 -0
- package/src/utilities/backgrounds.scss +3 -0
- package/src/utilities/borders.scss +3 -0
- package/src/utilities/colors.scss +3 -0
- package/src/utilities/effects.scss +3 -0
- package/src/utilities/filters.scss +3 -0
- package/src/utilities/flexbox.scss +3 -0
- package/src/utilities/grid.scss +3 -0
- package/src/utilities/interactivity.scss +3 -0
- package/src/utilities/layout.scss +3 -0
- package/src/utilities/sizing.scss +3 -0
- package/src/utilities/spacing.scss +3 -0
- package/src/utilities/tables.scss +3 -0
- package/src/utilities/transforms.scss +11 -6
- package/src/utilities/transitions.scss +3 -0
- package/src/utilities/typography.scss +3 -0
- package/src/volver.scss +2 -1
package/src/props/effects.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
4
|
+
:where(:host, :root, .theme) {
|
|
5
|
+
@include spread-map-into-props($box-shadow, $prefix: shadow);
|
|
6
|
+
@include spread-map-into-props($opacity, $prefix: opacity);
|
|
7
|
+
}
|
|
6
8
|
}
|
package/src/props/filters.scss
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
4
|
+
:where(:host, :root, .theme) {
|
|
5
|
+
@include spread-map-into-props($blur, $prefix: blur);
|
|
6
|
+
@include spread-map-into-props($brightness, $prefix: brightness);
|
|
7
|
+
@include spread-map-into-props($saturation, $prefix: saturate);
|
|
8
|
+
}
|
|
7
9
|
}
|
package/src/props/input.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
4
|
+
:where(:host, :root, .theme) {
|
|
5
|
+
@include spread-map-into-props($map: $input, $prefix: input);
|
|
6
|
+
}
|
|
5
7
|
}
|
package/src/props/layout.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
4
|
+
:where(:host, :root, .theme) {
|
|
5
|
+
@include spread-map-into-props($map: $aspect-ratio, $prefix: aspect);
|
|
6
|
+
@include spread-map-into-props($map: $z-index, $prefix: z);
|
|
7
|
+
}
|
|
6
8
|
}
|
package/src/props/sizing.scss
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
4
|
+
:where(:host, :root, .theme) {
|
|
5
|
+
@include spread-map-into-props($width, $prefix: w);
|
|
6
|
+
@include spread-map-into-props($height, $prefix: h);
|
|
7
|
+
}
|
|
6
8
|
}
|
package/src/props/spacing.scss
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../context' as *;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
5
|
+
:where(:host, :root, .theme) {
|
|
6
|
+
// static
|
|
7
|
+
@each $size, $value in $spacing {
|
|
8
|
+
--spacing-#{$size}: #{$value};
|
|
9
|
+
}
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
// dynamic
|
|
12
|
+
@each $name, $sizes in $spacing-dynamic {
|
|
13
|
+
@each $breakpoint, $size in $sizes {
|
|
14
|
+
@if map.has-key($breakpoints, $breakpoint) {
|
|
15
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
16
|
+
$var: $size;
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// if is a static spacing
|
|
19
|
+
@if map.has-key($spacing, $size) {
|
|
20
|
+
$var: var(--spacing-#{$size});
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
& {
|
|
23
23
|
--spacing-#{$name}: #{$var};
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,167 +1,199 @@
|
|
|
1
1
|
@use '../context' as *;
|
|
2
2
|
@use 'sass:string';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// duration
|
|
14
|
-
@include spread-map-into-props(
|
|
15
|
-
$transition-duration-delay,
|
|
16
|
-
$prefix: duration
|
|
17
|
-
);
|
|
4
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
5
|
+
:where(:host, :root, .theme) {
|
|
6
|
+
// Default values for reduced-motion users
|
|
7
|
+
// These ensure variables are always defined but with no animation
|
|
8
|
+
|
|
9
|
+
// duration - set all to 0s for reduced motion
|
|
10
|
+
@each $key, $value in $transition-duration-delay {
|
|
11
|
+
--duration-#{$key}: 0s;
|
|
12
|
+
}
|
|
18
13
|
|
|
19
|
-
// ease
|
|
14
|
+
// ease - keep timing functions but they won't matter with 0s duration
|
|
20
15
|
@include spread-map-into-props(
|
|
21
16
|
$transition-timing-function,
|
|
22
17
|
$prefix: ease
|
|
23
18
|
);
|
|
24
19
|
|
|
25
|
-
//
|
|
26
|
-
@include spread-map-into-props(
|
|
20
|
+
// transition-property - define properties but transitions will be none
|
|
21
|
+
@include spread-map-into-props(
|
|
22
|
+
$transition-property,
|
|
23
|
+
$prefix: transition-property
|
|
24
|
+
);
|
|
27
25
|
|
|
28
|
-
// transition
|
|
26
|
+
// transition - set all to none for reduced motion
|
|
29
27
|
@each $property, $value in $transition-property {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
@each $prop in str-split($value, ', ') {
|
|
34
|
-
$transition: $transition +
|
|
35
|
-
$prop +
|
|
36
|
-
' var(--duration-300) var(--ease-in-out), ';
|
|
37
|
-
}
|
|
28
|
+
--transition-#{$property}: none;
|
|
29
|
+
}
|
|
38
30
|
|
|
39
|
-
|
|
31
|
+
// animation - set all to none for reduced motion
|
|
32
|
+
@each $key, $value in $animation {
|
|
33
|
+
--animation-#{$key}: none;
|
|
34
|
+
}
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
// animation
|
|
37
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
38
|
+
// transition-property
|
|
39
|
+
@include spread-map-into-props(
|
|
40
|
+
$transition-property,
|
|
41
|
+
$prefix: transition-property
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
// duration
|
|
45
|
+
@include spread-map-into-props(
|
|
46
|
+
$transition-duration-delay,
|
|
47
|
+
$prefix: duration
|
|
48
|
+
);
|
|
49
|
+
|
|
50
|
+
// ease
|
|
51
|
+
@include spread-map-into-props(
|
|
52
|
+
$transition-timing-function,
|
|
53
|
+
$prefix: ease
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
// animation
|
|
57
|
+
@include spread-map-into-props($animation, animation);
|
|
58
|
+
|
|
59
|
+
// transition
|
|
60
|
+
@each $property, $value in $transition-property {
|
|
61
|
+
@if $property != 'none' {
|
|
62
|
+
$transition: '';
|
|
63
|
+
|
|
64
|
+
@each $prop in str-split($value, ', ') {
|
|
65
|
+
$transition: $transition +
|
|
66
|
+
$prop +
|
|
67
|
+
' var(--duration-300) var(--ease-in-out), ';
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
$transition: string.slice($transition, 1, -3);
|
|
71
|
+
|
|
72
|
+
--transition-#{$property}: #{$transition};
|
|
73
|
+
} @else {
|
|
74
|
+
--transition-#{$property}: none;
|
|
75
|
+
}
|
|
44
76
|
}
|
|
45
77
|
}
|
|
46
78
|
}
|
|
47
|
-
}
|
|
48
79
|
|
|
49
|
-
// keyframes
|
|
50
|
-
@keyframes indeterminate {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
80
|
+
// keyframes
|
|
81
|
+
@keyframes indeterminate {
|
|
82
|
+
0% {
|
|
83
|
+
scale: 0 1;
|
|
84
|
+
}
|
|
54
85
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
86
|
+
50% {
|
|
87
|
+
scale: 1;
|
|
88
|
+
transform-origin: left;
|
|
89
|
+
}
|
|
59
90
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
91
|
+
51% {
|
|
92
|
+
scale: 1;
|
|
93
|
+
transform-origin: center right;
|
|
94
|
+
}
|
|
64
95
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
96
|
+
100% {
|
|
97
|
+
scale: 0 1;
|
|
98
|
+
transform-origin: center right;
|
|
99
|
+
}
|
|
68
100
|
}
|
|
69
|
-
}
|
|
70
101
|
|
|
71
|
-
@keyframes spin {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
102
|
+
@keyframes spin {
|
|
103
|
+
from {
|
|
104
|
+
rotate: 0deg;
|
|
105
|
+
}
|
|
75
106
|
|
|
76
|
-
|
|
77
|
-
|
|
107
|
+
to {
|
|
108
|
+
rotate: 360deg;
|
|
109
|
+
}
|
|
78
110
|
}
|
|
79
|
-
}
|
|
80
111
|
|
|
81
|
-
@keyframes ping {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
112
|
+
@keyframes ping {
|
|
113
|
+
75%,
|
|
114
|
+
100% {
|
|
115
|
+
scale: 2;
|
|
116
|
+
opacity: 0;
|
|
117
|
+
}
|
|
86
118
|
}
|
|
87
|
-
}
|
|
88
119
|
|
|
89
|
-
@keyframes pulse {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
120
|
+
@keyframes pulse {
|
|
121
|
+
0%,
|
|
122
|
+
100% {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
}
|
|
94
125
|
|
|
95
|
-
|
|
96
|
-
|
|
126
|
+
50% {
|
|
127
|
+
opacity: 0.5;
|
|
128
|
+
}
|
|
97
129
|
}
|
|
98
|
-
}
|
|
99
130
|
|
|
100
|
-
@keyframes bounce {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
131
|
+
@keyframes bounce {
|
|
132
|
+
0%,
|
|
133
|
+
100% {
|
|
134
|
+
translate: 0 -25%;
|
|
135
|
+
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
|
|
136
|
+
}
|
|
106
137
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
138
|
+
50% {
|
|
139
|
+
translate: 0;
|
|
140
|
+
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
141
|
+
}
|
|
110
142
|
}
|
|
111
|
-
}
|
|
112
143
|
|
|
113
|
-
@keyframes progress-indeterminate {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
144
|
+
@keyframes progress-indeterminate {
|
|
145
|
+
0% {
|
|
146
|
+
background-position: 200% 0;
|
|
147
|
+
}
|
|
117
148
|
|
|
118
|
-
|
|
119
|
-
|
|
149
|
+
100% {
|
|
150
|
+
background-position: -200% 0;
|
|
151
|
+
}
|
|
120
152
|
}
|
|
121
|
-
}
|
|
122
153
|
|
|
123
|
-
@keyframes pie-masks {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
154
|
+
@keyframes pie-masks {
|
|
155
|
+
0% {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
127
158
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
159
|
+
50%,
|
|
160
|
+
100% {
|
|
161
|
+
opacity: 0;
|
|
162
|
+
}
|
|
131
163
|
}
|
|
132
|
-
}
|
|
133
164
|
|
|
134
|
-
@keyframes fade-out {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
165
|
+
@keyframes fade-out {
|
|
166
|
+
95% {
|
|
167
|
+
opacity: 1;
|
|
168
|
+
}
|
|
138
169
|
|
|
139
|
-
|
|
140
|
-
|
|
170
|
+
100% {
|
|
171
|
+
opacity: 0;
|
|
172
|
+
}
|
|
141
173
|
}
|
|
142
|
-
}
|
|
143
174
|
|
|
144
|
-
@keyframes shine {
|
|
145
|
-
|
|
146
|
-
|
|
175
|
+
@keyframes shine {
|
|
176
|
+
to {
|
|
177
|
+
background-position-x: -200%;
|
|
178
|
+
}
|
|
147
179
|
}
|
|
148
|
-
}
|
|
149
180
|
|
|
150
|
-
@keyframes clippath {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
181
|
+
@keyframes clippath {
|
|
182
|
+
0%,
|
|
183
|
+
100% {
|
|
184
|
+
clip-path: inset(0 0 95% 0);
|
|
185
|
+
}
|
|
155
186
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
187
|
+
25% {
|
|
188
|
+
clip-path: inset(0 95% 0 0);
|
|
189
|
+
}
|
|
159
190
|
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
191
|
+
50% {
|
|
192
|
+
clip-path: inset(95% 0 0 0);
|
|
193
|
+
}
|
|
163
194
|
|
|
164
|
-
|
|
165
|
-
|
|
195
|
+
75% {
|
|
196
|
+
clip-path: inset(0 0 0 95%);
|
|
197
|
+
}
|
|
166
198
|
}
|
|
167
199
|
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '../context' as *;
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
@include layer(props, $use-css-layers, $layer-prefix) {
|
|
5
|
+
:where(:host, :root, .theme) {
|
|
6
|
+
// font-family
|
|
7
|
+
@include spread-map-into-props($font-family, $prefix: font);
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
// font-weight
|
|
10
|
+
@include spread-map-into-props($font-weight, $prefix: font);
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
// line-height
|
|
13
|
+
@include spread-map-into-props($line-height, $prefix: leading);
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
// letter-spacing
|
|
16
|
+
@include spread-map-into-props($letter-spacing, $prefix: tracking);
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
// font-size
|
|
19
|
+
@each $size, $value in $font-size {
|
|
20
|
+
--text-#{$size}: #{$value};
|
|
21
|
+
}
|
|
21
22
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
// font-size dynamic
|
|
24
|
+
@each $name, $sizes in $font-size-dynamic {
|
|
25
|
+
@each $breakpoint, $size in $sizes {
|
|
26
|
+
@if map.has-key($breakpoints, $breakpoint) {
|
|
27
|
+
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
28
|
+
$var: $size;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
// if is a static font-size
|
|
31
|
+
@if map.has-key($font-size, $size) {
|
|
32
|
+
$var: var(--text-#{$size});
|
|
33
|
+
}
|
|
33
34
|
|
|
34
|
-
& {
|
|
35
35
|
--text-#{$name}: #{$var};
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/reset.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use 'context' as *;
|
|
2
|
+
|
|
3
|
+
@include layer(reset, $use-css-layers, $layer-prefix) {
|
|
1
4
|
/*
|
|
2
5
|
Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
3
6
|
- The "symbol *" part is to solve Firefox SVG sprite bug
|
|
@@ -58,7 +61,6 @@
|
|
|
58
61
|
|
|
59
62
|
/* minimum style to allow to style meter element */
|
|
60
63
|
:where(meter) {
|
|
61
|
-
-webkit-appearance: revert;
|
|
62
64
|
appearance: revert;
|
|
63
65
|
}
|
|
64
66
|
|
|
@@ -77,8 +79,6 @@
|
|
|
77
79
|
- fix for the content editable attribute will work properly.
|
|
78
80
|
- webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element */
|
|
79
81
|
:where([contenteditable]:not([contenteditable='false'])) {
|
|
80
|
-
-moz-user-modify: read-write;
|
|
81
|
-
-webkit-user-modify: read-write;
|
|
82
82
|
overflow-wrap: break-word;
|
|
83
83
|
-webkit-line-break: after-white-space;
|
|
84
84
|
-webkit-user-select: auto;
|
|
@@ -98,3 +98,4 @@
|
|
|
98
98
|
scrollbar-color: initial;
|
|
99
99
|
font-family: initial;
|
|
100
100
|
}
|
|
101
|
+
}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
+
@use 'sass:meta';
|
|
4
|
+
@use 'sass:string';
|
|
3
5
|
@use '../tools/functions' as *;
|
|
6
|
+
@use '../config' as config;
|
|
4
7
|
|
|
5
|
-
//
|
|
8
|
+
// ============================================
|
|
9
|
+
// Color Variables
|
|
10
|
+
// ============================================
|
|
6
11
|
$color-scheme: light !default;
|
|
7
12
|
$color-transparent: transparent !default;
|
|
8
13
|
$color-black: #000 !default;
|
|
9
14
|
$color-white: #fff !default;
|
|
15
|
+
|
|
16
|
+
// Primary colors - accepts any CSS color format (hex, rgb, hsl, oklch, etc.)
|
|
10
17
|
$color-brand: #166abd !default;
|
|
11
18
|
$color-accent: #9c27b0 !default;
|
|
12
19
|
$color-success: #178230 !default;
|
|
@@ -16,58 +23,81 @@ $color-warning: #e7b735 !default;
|
|
|
16
23
|
$color-gray: hsl(color-hue($color-brand) 15% 50%) !default;
|
|
17
24
|
$color-word: hsl(color-hue($color-brand) 15% 10%) !default;
|
|
18
25
|
$color-surface: hsl(color-hue($color-brand) 10% 100%) !default;
|
|
19
|
-
$color-surface-palette: (
|
|
20
|
-
brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 90%),
|
|
21
|
-
accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 90%),
|
|
22
|
-
success: hsl(var(--color-success-hue) var(--color-success-saturation) 90%),
|
|
23
|
-
danger: hsl(var(--color-danger-hue) var(--color-danger-saturation) 90%),
|
|
24
|
-
info: hsl(var(--color-info-hue) var(--color-info-saturation) 90%),
|
|
25
|
-
warning: hsl(var(--color-warning-hue) var(--color-warning-saturation) 90%),
|
|
26
|
-
) !default;
|
|
27
|
-
$color-surface-palette-no-vars: (
|
|
28
|
-
brand: hsl(color-hue($color-brand) color-saturation($color-brand) 90%),
|
|
29
|
-
accent: hsl(color-hue($color-accent) color-saturation($color-accent) 90%),
|
|
30
|
-
success: hsl(color-hue($color-success) color-saturation($color-success) 90%),
|
|
31
|
-
danger: hsl(color-hue($color-danger) color-saturation($color-danger) 90%),
|
|
32
|
-
info: hsl(color-hue($color-info) color-saturation($color-info) 90%),
|
|
33
|
-
warning: hsl(color-hue($color-warning) color-saturation($color-warning) 90%),
|
|
34
|
-
) !default;
|
|
35
26
|
$color-shadow: hsl(color-hue($color-brand) 50% 20%) !default;
|
|
36
27
|
$color-backdrop: hsla(color-hue($color-brand) 50% 20% / 20%) !default;
|
|
37
28
|
$color-alpha: hsl(0deg 0% 0% / 0%) !default;
|
|
38
29
|
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
color-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
30
|
+
// ============================================
|
|
31
|
+
// Surface Palette (semantic surface colors)
|
|
32
|
+
// ============================================
|
|
33
|
+
$color-surface-palette: if(
|
|
34
|
+
sass(config.$use-color-mix):
|
|
35
|
+
(
|
|
36
|
+
brand: string.unquote('hsl(from var(--color-brand) h s 90%)'),
|
|
37
|
+
accent: string.unquote('hsl(from var(--color-accent) h s 90%)'),
|
|
38
|
+
success: string.unquote('hsl(from var(--color-success) h s 90%)'),
|
|
39
|
+
danger: string.unquote('hsl(from var(--color-danger) h s 90%)'),
|
|
40
|
+
info: string.unquote('hsl(from var(--color-info) h s 90%)'),
|
|
41
|
+
warning: string.unquote('hsl(from var(--color-warning) h s 90%)'),
|
|
42
|
+
);
|
|
43
|
+
else:
|
|
44
|
+
(
|
|
45
|
+
brand: hsl(var(--color-brand-hue) var(--color-brand-saturation) 90%),
|
|
46
|
+
accent: hsl(var(--color-accent-hue) var(--color-accent-saturation) 90%),
|
|
47
|
+
success: hsl(var(--color-success-hue) var(--color-success-saturation) 90%),
|
|
48
|
+
danger: hsl(var(--color-danger-hue) var(--color-danger-saturation) 90%),
|
|
49
|
+
info: hsl(var(--color-info-hue) var(--color-info-saturation) 90%),
|
|
50
|
+
warning: hsl(var(--color-warning-hue) var(--color-warning-saturation) 90%),
|
|
51
|
+
)
|
|
52
|
+
) !default;
|
|
53
|
+
|
|
54
|
+
// ============================================
|
|
55
|
+
// Colors Map
|
|
56
|
+
// Override this map or use map.merge() to customize
|
|
57
|
+
// ============================================
|
|
58
|
+
$colors: if(
|
|
59
|
+
sass(config.$use-color-mix):
|
|
60
|
+
(
|
|
61
|
+
scheme: $color-scheme,
|
|
62
|
+
transparent: $color-transparent,
|
|
63
|
+
shadow: color-base-map($color-shadow, 'shadow'),
|
|
64
|
+
backdrop: color-base-map($color-backdrop, 'backdrop'),
|
|
65
|
+
black: color-base-map($color-black, 'black'),
|
|
66
|
+
white: color-base-map($color-white, 'white'),
|
|
67
|
+
word: color-mix-lighten-map($color-word, 'word', $steps: 5, $scale: 12%),
|
|
68
|
+
surface: map.merge(
|
|
69
|
+
color-mix-darken-map($color-surface, 'surface', $steps: 5, $scale: 2%),
|
|
70
|
+
$color-surface-palette
|
|
71
|
+
),
|
|
72
|
+
alpha: color-mix-alpha-map($color-alpha, 'alpha', $steps: 5, $scale: 0.05),
|
|
73
|
+
brand: color-mix-shades-map($color-brand, 'brand'),
|
|
74
|
+
accent: color-mix-shades-map($color-accent, 'accent'),
|
|
75
|
+
success: color-mix-shades-map($color-success, 'success'),
|
|
76
|
+
danger: color-mix-shades-map($color-danger, 'danger'),
|
|
77
|
+
info: color-mix-shades-map($color-info, 'info'),
|
|
78
|
+
warning: color-mix-shades-map($color-warning, 'warning'),
|
|
79
|
+
gray: color-mix-shades-map($color-gray, 'gray', $scale: 15%),
|
|
80
|
+
);
|
|
81
|
+
else:
|
|
82
|
+
(
|
|
83
|
+
scheme: $color-scheme,
|
|
84
|
+
transparent: $color-transparent,
|
|
85
|
+
shadow: hsla-map($color-shadow, 'shadow'),
|
|
86
|
+
backdrop: hsla-map($color-backdrop, 'backdrop'),
|
|
87
|
+
black: hsla-map($color-black, 'black'),
|
|
88
|
+
white: hsla-map($color-white, 'white'),
|
|
89
|
+
word: color-lighten-map($color-word, 'word', $scale: 12%, $fixed: true, $inverted: false),
|
|
90
|
+
surface: map.merge(
|
|
91
|
+
color-darken-map($color-surface, 'surface', $scale: 2%, $fixed: true),
|
|
92
|
+
$color-surface-palette
|
|
62
93
|
),
|
|
63
|
-
$color-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
gray: color-shades-map($color-gray, 'gray', $scale: 15%),
|
|
94
|
+
alpha: color-alpha-map($color-alpha, 'alpha', $steps: 5, $scale: 0.05),
|
|
95
|
+
brand: color-shades-map($color-brand, 'brand'),
|
|
96
|
+
accent: color-shades-map($color-accent, 'accent'),
|
|
97
|
+
success: color-shades-map($color-success, 'success'),
|
|
98
|
+
danger: color-shades-map($color-danger, 'danger'),
|
|
99
|
+
info: color-shades-map($color-info, 'info'),
|
|
100
|
+
warning: color-shades-map($color-warning, 'warning'),
|
|
101
|
+
gray: color-shades-map($color-gray, 'gray', $scale: 15%),
|
|
102
|
+
)
|
|
73
103
|
) !default;
|