@volverjs/style 0.1.12 → 0.1.14
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/base.css +1 -1
- package/dist/components/vv-accordion-group.css +1 -1
- package/dist/components/vv-accordion.css +1 -1
- package/dist/components/vv-alert-group.css +1 -1
- package/dist/components/vv-alert.css +1 -1
- package/dist/components/vv-avatar-group.css +1 -1
- package/dist/components/vv-avatar.css +1 -1
- package/dist/components/vv-badge.css +1 -1
- package/dist/components/vv-breadcrumb.css +1 -1
- package/dist/components/vv-button-group.css +1 -1
- package/dist/components/vv-button.css +1 -1
- package/dist/components/vv-card.css +1 -1
- package/dist/components/vv-checkbox-group.css +1 -1
- package/dist/components/vv-checkbox.css +1 -1
- package/dist/components/vv-dialog.css +1 -1
- package/dist/components/vv-dropdown-action.css +1 -1
- package/dist/components/vv-dropdown-optgroup.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-progress.css +1 -1
- package/dist/components/vv-radio-group.css +1 -1
- package/dist/components/vv-radio.css +1 -1
- package/dist/components/vv-select.css +1 -1
- package/dist/components/vv-skeleton.css +1 -1
- package/dist/components/vv-tab.css +1 -1
- package/dist/components/vv-table.css +1 -1
- package/dist/components/vv-text.css +1 -1
- package/dist/components/vv-textarea.css +1 -1
- package/dist/components/vv-tooltip.css +1 -1
- package/dist/components.css +1 -1
- package/dist/props/input.css +1 -1
- package/dist/props.css +1 -1
- package/dist/volver.css +1 -1
- package/package.json +12 -9
- package/src/_config.scss +3 -0
- package/src/_preflight.scss +336 -323
- package/src/settings/_input.scss +1 -1
- package/src/tools/_breakpoints.scss +52 -8
- package/src/tools/_mixins.scss +4 -12
- package/src/utilities/tables.scss +1 -1
- package/src/utilities/transforms.scss +10 -1
- package/src/volver.scss +4 -8
package/src/settings/_input.scss
CHANGED
|
@@ -27,15 +27,23 @@
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
@function bp-next($name, $bps: $breakpoints, $bps-names: map.keys($bps)) {
|
|
31
|
+
@return breakpoint-next($name, $bps, $bps-names);
|
|
32
|
+
}
|
|
33
|
+
|
|
30
34
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
31
35
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
32
36
|
// 576px
|
|
33
|
-
@function breakpoint-min($name, $bps) {
|
|
37
|
+
@function breakpoint-min($name, $bps: $breakpoints) {
|
|
34
38
|
$min: map.get($bps, $name);
|
|
35
39
|
|
|
36
40
|
@return if($min != 0, $min, null);
|
|
37
41
|
}
|
|
38
42
|
|
|
43
|
+
@function bp-min($name, $bps: $breakpoints) {
|
|
44
|
+
@return breakpoint-min($name, $bps);
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
// Maximum breakpoint width. Null for the largest (last) breakpoint.
|
|
40
48
|
// The maximum value is calculated as the minimum of the next one less 0.02px
|
|
41
49
|
// to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
|
|
@@ -44,25 +52,33 @@
|
|
|
44
52
|
// See https://bugs.webkit.org/show_bug.cgi?id=178261
|
|
45
53
|
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
46
54
|
// 767.98px
|
|
47
|
-
@function breakpoint-max($name, $bps) {
|
|
55
|
+
@function breakpoint-max($name, $bps: $breakpoints) {
|
|
48
56
|
$next: breakpoint-next($name, $bps);
|
|
49
57
|
|
|
50
58
|
@return if($next, breakpoint-min($next, $bps) - 0.02, null);
|
|
51
59
|
}
|
|
52
60
|
|
|
61
|
+
@function bp-max($name, $bps: $breakpoints) {
|
|
62
|
+
@return breakpoint-max($name, $bps);
|
|
63
|
+
}
|
|
64
|
+
|
|
53
65
|
// Returns a blank string if smallest breakpoint, otherwise returns the name with a dash in front.
|
|
54
66
|
// Useful for making responsive utilities.
|
|
55
67
|
// >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
56
68
|
// "" (Returns a blank string)
|
|
57
69
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
|
|
58
70
|
// "-sm"
|
|
59
|
-
@function breakpoint-infix($name, $bps) {
|
|
71
|
+
@function breakpoint-infix($name, $bps: $breakpoints) {
|
|
60
72
|
@return if(breakpoint-min($name, $bps) == null, '', '-#{$name}');
|
|
61
73
|
}
|
|
62
74
|
|
|
75
|
+
@function bp-infix($name, $bps: $breakpoints) {
|
|
76
|
+
@return breakpoint-infix($name, $bps);
|
|
77
|
+
}
|
|
78
|
+
|
|
63
79
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
64
80
|
// Makes the @content apply to the given breakpoint and wider.
|
|
65
|
-
@mixin media-breakpoint-up($name, $bps) {
|
|
81
|
+
@mixin media-breakpoint-up($name, $bps: $breakpoints) {
|
|
66
82
|
$min: breakpoint-min($name, $bps);
|
|
67
83
|
|
|
68
84
|
@if $min {
|
|
@@ -78,23 +94,39 @@
|
|
|
78
94
|
}
|
|
79
95
|
}
|
|
80
96
|
|
|
97
|
+
@mixin bp-up($name, $bps: $breakpoints) {
|
|
98
|
+
@include media-breakpoint-up($name, $bps) {
|
|
99
|
+
@content;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
81
103
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
82
104
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
83
|
-
@mixin media-breakpoint-down($name, $bps) {
|
|
105
|
+
@mixin media-breakpoint-down($name, $bps: $breakpoints) {
|
|
84
106
|
$max: breakpoint-max($name, $bps);
|
|
85
107
|
|
|
86
108
|
@if $max {
|
|
87
109
|
@media (max-width: $max) {
|
|
88
|
-
|
|
110
|
+
& {
|
|
111
|
+
@content;
|
|
112
|
+
}
|
|
89
113
|
}
|
|
90
114
|
} @else {
|
|
115
|
+
& {
|
|
116
|
+
@content;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin bp-down($name, $bps: $breakpoints) {
|
|
122
|
+
@include media-breakpoint-down($name, $bps) {
|
|
91
123
|
@content;
|
|
92
124
|
}
|
|
93
125
|
}
|
|
94
126
|
|
|
95
127
|
// Media that spans multiple breakpoint widths.
|
|
96
128
|
// Makes the @content apply between the min and max breakpoints
|
|
97
|
-
@mixin media-breakpoint-between($lower, $upper, $bps) {
|
|
129
|
+
@mixin media-breakpoint-between($lower, $upper, $bps: $breakpoints) {
|
|
98
130
|
$min: breakpoint-min($lower, $bps);
|
|
99
131
|
$max: breakpoint-max($upper, $bps);
|
|
100
132
|
|
|
@@ -113,10 +145,16 @@
|
|
|
113
145
|
}
|
|
114
146
|
}
|
|
115
147
|
|
|
148
|
+
@mixin bp-between($lower, $upper, $bps: $breakpoints) {
|
|
149
|
+
@include media-breakpoint-between($lower, $upper, $bps) {
|
|
150
|
+
@content;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
116
154
|
// Media between the breakpoint's minimum and maximum widths.
|
|
117
155
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
118
156
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
119
|
-
@mixin media-breakpoint-only($name, $bps) {
|
|
157
|
+
@mixin media-breakpoint-only($name, $bps: $breakpoints) {
|
|
120
158
|
$min: breakpoint-min($name, $bps);
|
|
121
159
|
$max: breakpoint-max($name, $bps);
|
|
122
160
|
|
|
@@ -134,3 +172,9 @@
|
|
|
134
172
|
}
|
|
135
173
|
}
|
|
136
174
|
}
|
|
175
|
+
|
|
176
|
+
@mixin bp-only($name, $bps: $breakpoints) {
|
|
177
|
+
@include media-breakpoint-only($name, $bps) {
|
|
178
|
+
@content;
|
|
179
|
+
}
|
|
180
|
+
}
|
package/src/tools/_mixins.scss
CHANGED
|
@@ -978,15 +978,9 @@
|
|
|
978
978
|
$prop-to-replace-with: #{$prop-to-replace-with}-#{$key};
|
|
979
979
|
|
|
980
980
|
@if map.get($original, $key) {
|
|
981
|
-
|
|
982
|
-
#{$prop-to-replace}: var(
|
|
983
|
-
#{$prop-to-replace-with}
|
|
984
|
-
);
|
|
985
|
-
}
|
|
981
|
+
#{$prop-to-replace}: var(#{$prop-to-replace-with});
|
|
986
982
|
} @else {
|
|
987
|
-
|
|
988
|
-
#{$key}: var(#{$prop-to-replace-with});
|
|
989
|
-
}
|
|
983
|
+
#{$key}: var(#{$prop-to-replace-with});
|
|
990
984
|
}
|
|
991
985
|
} @else {
|
|
992
986
|
@if string.slice(meta.inspect($key), 1, 1) == '[' {
|
|
@@ -997,9 +991,7 @@
|
|
|
997
991
|
);
|
|
998
992
|
}
|
|
999
993
|
|
|
1000
|
-
|
|
1001
|
-
#{$key}: $value;
|
|
1002
|
-
}
|
|
994
|
+
#{$key}: $value;
|
|
1003
995
|
}
|
|
1004
996
|
}
|
|
1005
997
|
}
|
|
@@ -1014,7 +1006,7 @@
|
|
|
1014
1006
|
}
|
|
1015
1007
|
|
|
1016
1008
|
@if $enabled {
|
|
1017
|
-
$selector: ':where(#{unquote($selector)})';
|
|
1009
|
+
$selector: ':where(#{string.unquote($selector)})';
|
|
1018
1010
|
}
|
|
1019
1011
|
|
|
1020
1012
|
#{$selector} {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../context' as *;
|
|
2
2
|
|
|
3
3
|
// scale
|
|
4
4
|
@each $size, $value in $scale {
|
|
5
5
|
%scale-#{$size} {
|
|
6
6
|
scale: #{$value};
|
|
7
7
|
}
|
|
8
|
+
|
|
8
9
|
@include wrap-with-where(
|
|
9
10
|
$selector: '.scale-#{$size}',
|
|
10
11
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
%scale-x-#{$size} {
|
|
16
17
|
scale: #{$value} 1;
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
@include wrap-with-where(
|
|
19
21
|
$selector: '.scale-x-#{$size}',
|
|
20
22
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
%scale-y-#{$size} {
|
|
26
28
|
scale: 1 #{$value};
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
@include wrap-with-where(
|
|
29
32
|
$selector: '.scale-y-#{$size}',
|
|
30
33
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
%translate-#{$size} {
|
|
55
58
|
translate: #{$value} #{$value};
|
|
56
59
|
}
|
|
60
|
+
|
|
57
61
|
@include wrap-with-where(
|
|
58
62
|
$selector: '.translate-#{$size}',
|
|
59
63
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -64,6 +68,7 @@
|
|
|
64
68
|
%translate-x-#{$size} {
|
|
65
69
|
translate: #{$value} 0;
|
|
66
70
|
}
|
|
71
|
+
|
|
67
72
|
@include wrap-with-where(
|
|
68
73
|
$selector: '.translate-x-#{$size}',
|
|
69
74
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -74,6 +79,7 @@
|
|
|
74
79
|
%translate-y-#{$size} {
|
|
75
80
|
translate: 0 #{$value};
|
|
76
81
|
}
|
|
82
|
+
|
|
77
83
|
@include wrap-with-where(
|
|
78
84
|
$selector: '.translate-y-#{$size}',
|
|
79
85
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -84,6 +90,7 @@
|
|
|
84
90
|
%-translate-#{$size} {
|
|
85
91
|
translate: -#{$value} -#{$value};
|
|
86
92
|
}
|
|
93
|
+
|
|
87
94
|
@include wrap-with-where(
|
|
88
95
|
$selector: '.-translate-#{$size}',
|
|
89
96
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -94,6 +101,7 @@
|
|
|
94
101
|
%-translate-x-#{$size} {
|
|
95
102
|
translate: -#{$value} 0;
|
|
96
103
|
}
|
|
104
|
+
|
|
97
105
|
@include wrap-with-where(
|
|
98
106
|
$selector: '.-translate-x-#{$size}',
|
|
99
107
|
$enabled: $zero-specificity-for-utilities
|
|
@@ -104,6 +112,7 @@
|
|
|
104
112
|
%-translate-y-#{$size} {
|
|
105
113
|
translate: 0 -#{$value};
|
|
106
114
|
}
|
|
115
|
+
|
|
107
116
|
@include wrap-with-where(
|
|
108
117
|
$selector: '.-translate-y-#{$size}',
|
|
109
118
|
$enabled: $zero-specificity-for-utilities
|
package/src/volver.scss
CHANGED