@volverjs/style 0.1.2-beta.20 → 0.1.2-beta.22

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.20",
3
+ "version": "0.1.2-beta.22",
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",
@@ -154,7 +154,7 @@
154
154
  "@iconify/vue": "^4.0.0",
155
155
  "@vitejs/plugin-vue": "^3.2.0",
156
156
  "@vueuse/core": "^9.5.0",
157
- "@vueuse/head": "^0.9.8",
157
+ "@vueuse/head": "^1.0.10",
158
158
  "eslint": "^8.27.0",
159
159
  "eslint-config-prettier": "^8.5.0",
160
160
  "eslint-plugin-vue": "^9.7.0",
@@ -162,13 +162,13 @@
162
162
  "icss-utils": "^5.1.0",
163
163
  "markdown-it-anchor": "^8.6.5",
164
164
  "markdown-it-prism": "^2.3.0",
165
- "postcss": "^8.4.18",
165
+ "postcss": "^8.4.19",
166
166
  "postcss-html": "^1.5.0",
167
- "postcss-preset-env": "^7.8.2",
167
+ "postcss-preset-env": "^7.8.3",
168
168
  "prism-themes": "^1.9.0",
169
169
  "prismjs": "1.29.0",
170
170
  "sass": "^1.56.1",
171
- "stylelint": "^14.14.1",
171
+ "stylelint": "^14.15.0",
172
172
  "stylelint-config-prettier": "^9.0.4",
173
173
  "stylelint-config-recommended-scss": "^8.0.0",
174
174
  "stylelint-config-recommended-vue": "^1.4.0",
@@ -185,7 +185,7 @@
185
185
  "vite-plugin-vue-layouts": "^0.7.0",
186
186
  "vite-ssg": "^0.21.2",
187
187
  "vite-ssg-sitemap": "^0.4.3",
188
- "vue": "^3.2.44",
188
+ "vue": "^3.2.45",
189
189
  "vue-live": "^2.1.0",
190
190
  "vue-router": "^4.1.6"
191
191
  },
@@ -11,6 +11,7 @@ $input: (
11
11
  gap: var(--spacing-md),
12
12
  line-height: var(--leading-normal),
13
13
  font-size: var(--text-16),
14
+ min-height: var(--spacing-50),
14
15
  label: (
15
16
  color: var(--color-word-3),
16
17
  display: block,
@@ -38,6 +38,7 @@ $vv-accordion: (
38
38
  transition: background-color 0.3s ease-in-out,
39
39
  font-size: var(--text-sm),
40
40
  border-radius: var(--rounded-lg),
41
+ -webkit-tap-highlight-color: transparent,
41
42
  pseudo: (
42
43
  before: (
43
44
  display: block,
@@ -3,7 +3,7 @@ $vv-alert: (
3
3
  min-width: 0,
4
4
  overflow: hidden,
5
5
  align-items: center,
6
- padding: var(--spacing-md),
6
+ padding: var(--spacing-sm) var(--spacing-md),
7
7
  background-color: var(--color-surface-2),
8
8
  border-color: var(--color-gray-lighten-4),
9
9
  border-width: var(--border),
@@ -32,12 +32,12 @@ $vv-alert: (
32
32
  title: (
33
33
  display: flex,
34
34
  margin-right: 1ch,
35
- line-height: var(--leading-none),
35
+ line-height: var(--leading-normal),
36
36
  font-weight: var(--font-bold),
37
37
  color: var(--color-word),
38
38
  ),
39
39
  content: (
40
- line-height: var(--leading-none),
40
+ line-height: var(--leading-normal),
41
41
  color: var(--color-word-1),
42
42
  text-overflow: ellipsis,
43
43
  white-space: nowrap,
@@ -44,5 +44,12 @@ $vv-avatar: (
44
44
  transform: translate(50%, -50%),
45
45
  box-shadow: var(--shadow-sm),
46
46
  ),
47
+ image: (
48
+ _alias: '> img',
49
+ width: 100%,
50
+ height: 100%,
51
+ border-radius: inherit,
52
+ object-fit: inherit,
53
+ ),
47
54
  ),
48
55
  ) !default;
@@ -1,29 +1,37 @@
1
1
  $vv-breadcrumb: (
2
+ position: relative,
3
+ pseudo: (
4
+ after: (
5
+ position: absolute,
6
+ top: 0,
7
+ bottom: 0,
8
+ right: 0,
9
+ display: block,
10
+ width: var(--spacing-sm),
11
+ background:
12
+ linear-gradient(45deg, transparent, var(--color-surface)),
13
+ ),
14
+ ),
2
15
  element: (
3
16
  list: (
4
17
  _alias: '> ol',
5
18
  position: relative,
19
+ overflow: auto hidden,
20
+ overscroll-behavior-x: contain,
21
+ scroll-behavior: smooth,
22
+ scroll-snap-type: x mandatory,
23
+ scrollbar-width: none,
6
24
  display: flex,
7
25
  flex-wrap: no-wrap,
8
26
  list-style: none,
9
- overflow: auto,
10
27
  padding: 0,
11
28
  background: var(--color-surface),
29
+ white-space: nowrap,
12
30
  pseudo: (
13
- after: (
14
- position: absolute,
15
- top: 0,
16
- bottom: 0,
17
- right: 0,
18
- display: block,
19
- width: var(--spacing-sm),
20
- background:
21
- linear-gradient(
22
- 45deg,
23
- transparent,
24
- var(--color-surface)
25
- ),
26
- ),
31
+ -webkit-scrollbar: (
32
+ width: 0,
33
+ height: 0,
34
+ ),
27
35
  ),
28
36
  ),
29
37
  item: (
@@ -1,6 +1,10 @@
1
1
  $vv-button-group: (
2
2
  display: inline-flex,
3
+ flex-wrap: wrap,
4
+ min-width: 0,
5
+ max-width: 100%,
3
6
  align-items: center,
7
+ justify-content: center,
4
8
  gap: var(--spacing-4),
5
9
  modifier: (
6
10
  block: (
@@ -2,7 +2,6 @@ $vv-input-checkbox-group: (
2
2
  display: var(--input-display),
3
3
  flex: var(--input-flex),
4
4
  flex-direction: var(--input-flex-direction),
5
- min-width: max-content,
6
5
  element: (
7
6
  legend: (
8
7
  _alias: '> legend',
@@ -65,7 +65,7 @@ $vv-input-text: (
65
65
  color: var(--input-color),
66
66
  [padding]: var(--input-padding-top) var(--input-padding-right)
67
67
  var(--input-padding-bottom) var(--input-padding-left),
68
- min-height: var(--spacing-50),
68
+ min-height: var(--input-min-height),
69
69
  pseudo: (
70
70
  placeholder: (
71
71
  color: var(--input-placeholder-color),
@@ -80,15 +80,7 @@ $vv-input-text: (
80
80
  search-cancel-button: (
81
81
  display: none,
82
82
  ),
83
- color-swatch-wrapper: (
84
- display: block,
85
- border: none,
86
- height: 100%,
87
- padding: 0,
88
- ),
89
83
  color-swatch: (
90
- display: block,
91
- border: none,
92
84
  height: var(--spacing-20),
93
85
  border-radius: var(--spacing-4),
94
86
  ),
@@ -256,6 +248,9 @@ $vv-input-text: (
256
248
  label: (
257
249
  position: absolute,
258
250
  z-index: 1,
251
+ display: flex,
252
+ align-items: center,
253
+ min-height: var(--input-min-height),
259
254
  pointer-events: none,
260
255
  font-size: inherit,
261
256
  [padding-top]: var(--input-padding-top),
@@ -84,6 +84,14 @@ $vv-select: (
84
84
  cursor: not-allowed,
85
85
  ),
86
86
  ),
87
+ pseudo: (
88
+ marker: (
89
+ display: none,
90
+ ),
91
+ -webkit-details-marker: (
92
+ display: none,
93
+ ),
94
+ ),
87
95
  ),
88
96
  icon: (
89
97
  _alias: ':where(svg, [data-icon])',
@@ -2,26 +2,16 @@
2
2
  @import '../context';
3
3
 
4
4
  // width / height / max-width / max-height
5
- @each $dimension,
6
- $attr in(w: width, h: height, max-w: max-width, max-h: max-height)
5
+ @each $class,
6
+ $attribute in(w: width, h: height, max-w: max-width, max-h: max-height)
7
7
  {
8
- @each $size, $value in map.merge($spacing, $spacing-dynamic) {
9
- // check if value is not a map (spacing-dynamic)
10
- $var: var(--spacing-#{$size});
11
- @if type-of($value) != 'map' {
12
- $var: var(--spacing-#{$size}, #{$value});
13
- }
14
-
15
- %#{$dimension}-#{$size} {
16
- #{$attr}: #{$var};
17
- }
18
- @include wrap-with-where(
19
- $selector: '.#{$dimension}-#{$size}',
20
- $enabled: $zero-specificity-for-utilities
21
- ) {
22
- @extend %#{$dimension}-#{$size};
23
- }
24
- }
8
+ @include spread-map-into-utilities(
9
+ $map: map.merge($spacing, $spacing-dynamic),
10
+ $class: $class,
11
+ $attribute: $attribute,
12
+ $bps: $breakpoints,
13
+ $prop: spacing
14
+ );
25
15
  }
26
16
 
27
17
  @include spread-map-into-utilities(