@volverjs/style 0.1.2-beta.30 → 0.1.2-beta.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volverjs/style",
3
- "version": "0.1.2-beta.30",
3
+ "version": "0.1.2-beta.31",
4
4
  "description": "@volverjs/style is a lightweight responsive CSS utility library to accompany @volverjs/ui and static webpages as well.",
5
5
  "main": "dist/style.css",
6
6
  "style": "dist/style.css",
package/src/export.scss CHANGED
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
  }
30
- } @else {
30
+ } @else if $key != 'scheme' {
31
31
  #{'colors__' + $key}: $value;
32
32
  }
33
33
  }
@@ -45,7 +45,7 @@
45
45
  }
46
46
 
47
47
  // breakpoints
48
- @each $key, $value in $breakpoints {
48
+ @each $key, $value in map.remove($breakpoints, 'xxs') {
49
49
  #{'breakpoints__' + $key}: $value;
50
50
  }
51
51
 
@@ -89,6 +89,11 @@
89
89
  #{'object-position__' + $key}: $value;
90
90
  }
91
91
 
92
+ // overflow
93
+ @each $key, $value in $overflow {
94
+ #{'overflow__' + $key}: $value;
95
+ }
96
+
92
97
  // position
93
98
  @each $index in $position {
94
99
  #{'position__' + $index}: $index;
@@ -221,7 +226,7 @@
221
226
  $name: meta.inspect($key);
222
227
  $name: str-replace($name, '\\/', '_');
223
228
 
224
- #{'width-spacer__' + $name}: $value;
229
+ #{'width__' + $name}: $value;
225
230
  }
226
231
 
227
232
  // height spacer
@@ -229,17 +234,17 @@
229
234
  $name: meta.inspect($key);
230
235
  $name: str-replace($name, '\\/', '_');
231
236
 
232
- #{'height-spacer__' + $name}: $value;
237
+ #{'height__' + $name}: $value;
233
238
  }
234
239
 
235
240
  // border radius
236
241
  @each $key, $value in $border-radius {
237
- #{'border-radius-spacer__' + $key}: $value;
242
+ #{'border-radius__' + $key}: $value;
238
243
  }
239
244
 
240
245
  // border width
241
246
  @each $key, $value in $border-width {
242
- #{'border-width-spacer__' + $key}: $value;
247
+ #{'border-width__' + $key}: $value;
243
248
  }
244
249
 
245
250
  // #endregion
@@ -1,6 +1,11 @@
1
+ @use 'sass:map';
1
2
  @use '../context' as *;
2
3
 
3
4
  :where(:host, :root, .theme) {
4
5
  @include spread-map-into-props($map: $aspect-ratio, $prefix: aspect);
5
6
  @include spread-map-into-props($map: $z-index, $prefix: z);
7
+ @include spread-map-into-props(
8
+ $map: map.remove($breakpoints, 'xxs'),
9
+ $prefix: breakpoint
10
+ );
6
11
  }
@@ -83,6 +83,14 @@ $object-position: (
83
83
  top: top,
84
84
  ) !default;
85
85
 
86
+ // overflow
87
+ $overflow: (
88
+ visible: visible,
89
+ hidden: hidden,
90
+ scroll: scroll,
91
+ auto: auto,
92
+ ) !default;
93
+
86
94
  // position
87
95
  $position: (static, fixed, absolute, relative, sticky) !default;
88
96
 
@@ -95,15 +103,15 @@ $visibility: (
95
103
  // z-index
96
104
  $z-index: (
97
105
  dropdown: 1000,
98
- sticky: 1020,
99
- fixed: 1030,
100
- modal-backdrop: 1040,
101
- modal: 1050,
102
- confirm-backdrop: 1060,
103
- confirm: 1070,
104
- popover: 1060,
105
- tooltip: 1070,
106
- toast: 1080,
107
- notification-alert: 1090,
106
+ sticky: 1010,
107
+ fixed: 1020,
108
+ modal-backdrop: 1030,
109
+ modal: 1040,
110
+ confirm-backdrop: 1050,
111
+ confirm: 1060,
112
+ popover: 1070,
113
+ tooltip: 1080,
114
+ toast: 1090,
115
+ notification-alert: 1100,
108
116
  auto: 'auto',
109
117
  ) !default;
@@ -21,6 +21,7 @@ $vv-badge: (
21
21
  font-family: var(--font-sans),
22
22
  font-weight: var(--font-normal),
23
23
  text-shadow: none,
24
+ line-height: var(--leading-none),
24
25
  state: (
25
26
  empty: (
26
27
  font-size: inherit,
@@ -52,7 +52,6 @@ $vv-button: (
52
52
  flex-shrink: 0,
53
53
  stroke-linecap: round,
54
54
  stroke-linejoin: round,
55
- [min-height]: calc(var(--button-line-height) * 1em),
56
55
  ),
57
56
  label: (
58
57
  white-space: nowrap,
@@ -72,7 +72,7 @@ $vv-textarea: (
72
72
  display: block,
73
73
  flex: 1,
74
74
  color: var(--input-color),
75
- [margin]: var(--input-spacing-top) var(--input-spacing-right)
75
+ [padding]: var(--input-spacing-top) var(--input-spacing-right)
76
76
  var(--input-spacing-bottom) var(--input-spacing-left),
77
77
  overflow: auto,
78
78
  pseudo: (
@@ -94,28 +94,28 @@
94
94
  );
95
95
 
96
96
  // overflow
97
- @each $overflow in (auto, hidden, clip, visible, scroll) {
98
- %overflow-#{$overflow} {
99
- overflow: #{$overflow};
97
+ @each $key, $value in $overflow {
98
+ %overflow-#{$key} {
99
+ overflow: #{$value};
100
100
  }
101
101
 
102
102
  @include wrap-with-where(
103
- $selector: '.overflow-#{$overflow}',
103
+ $selector: '.overflow-#{$key}',
104
104
  $enabled: $zero-specificity-for-utilities
105
105
  ) {
106
- @extend %overflow-#{$overflow};
106
+ @extend %overflow-#{$key};
107
107
  }
108
108
 
109
109
  @each $prefix in (x, y) {
110
- %overflow-#{$prefix}-#{$overflow} {
111
- overflow-#{$prefix}: #{$overflow};
110
+ %overflow-#{$prefix}-#{$key} {
111
+ overflow-#{$prefix}: #{$value};
112
112
  }
113
113
 
114
114
  @include wrap-with-where(
115
- $selector: '.overflow-#{$prefix}-#{$overflow}',
115
+ $selector: '.overflow-#{$prefix}-#{$key}',
116
116
  $enabled: $zero-specificity-for-utilities
117
117
  ) {
118
- @extend %overflow-#{$prefix}-#{$overflow};
118
+ @extend %overflow-#{$prefix}-#{$key};
119
119
  }
120
120
  }
121
121
  }