beercss 3.3.5 → 3.4.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.
Files changed (50) hide show
  1. package/README.md +13 -13
  2. package/dist/cdn/beer.min.css +1 -1
  3. package/dist/cdn/beer.min.js +1 -1
  4. package/dist/cdn/material-symbols-outlined.woff2 +0 -0
  5. package/dist/cdn/material-symbols-rounded.woff2 +0 -0
  6. package/dist/cdn/material-symbols-sharp.woff2 +0 -0
  7. package/package.json +4 -2
  8. package/src/cdn/beer.ts +43 -14
  9. package/src/cdn/elements/badges.css +81 -44
  10. package/src/cdn/elements/buttons.css +15 -15
  11. package/src/cdn/elements/cards.css +5 -5
  12. package/src/cdn/elements/chips.css +6 -6
  13. package/src/cdn/elements/containers.css +22 -21
  14. package/src/cdn/elements/dialogs.css +91 -63
  15. package/src/cdn/elements/fields.css +137 -138
  16. package/src/cdn/elements/grids.css +1 -1
  17. package/src/cdn/elements/icons.css +11 -11
  18. package/src/cdn/elements/layouts.css +19 -19
  19. package/src/cdn/elements/media.css +42 -42
  20. package/src/cdn/elements/menus.css +22 -22
  21. package/src/cdn/elements/navigations.css +42 -46
  22. package/src/cdn/elements/overlays.css +5 -5
  23. package/src/cdn/elements/pages.css +8 -0
  24. package/src/cdn/elements/progress.css +25 -25
  25. package/src/cdn/elements/selections.css +36 -26
  26. package/src/cdn/elements/sliders.css +35 -27
  27. package/src/cdn/elements/snackbars.css +25 -15
  28. package/src/cdn/elements/tables.css +5 -5
  29. package/src/cdn/elements/tabs.css +11 -11
  30. package/src/cdn/elements/tooltips.css +80 -32
  31. package/src/cdn/helpers/alignments.css +2 -2
  32. package/src/cdn/helpers/blurs.css +1 -1
  33. package/src/cdn/helpers/directions.css +10 -10
  34. package/src/cdn/helpers/dividers.css +11 -2
  35. package/src/cdn/helpers/forms.css +21 -29
  36. package/src/cdn/helpers/margins.css +4 -4
  37. package/src/cdn/helpers/paddings.css +4 -4
  38. package/src/cdn/helpers/positions.css +14 -6
  39. package/src/cdn/helpers/reset.css +9 -4
  40. package/src/cdn/helpers/responsive.css +2 -2
  41. package/src/cdn/helpers/sizes.css +9 -9
  42. package/src/cdn/helpers/spaces.css +4 -4
  43. package/src/cdn/helpers/theme.css +40 -1
  44. package/src/cdn/helpers/typography.css +2 -2
  45. package/src/cdn/helpers/waves.css +8 -8
  46. package/src/cdn/material-symbols-outlined.woff2 +0 -0
  47. package/src/cdn/material-symbols-rounded.woff2 +0 -0
  48. package/src/cdn/material-symbols-sharp.woff2 +0 -0
  49. package/src/cdn/settings/dark.css +8 -2
  50. package/src/cdn/settings/light.css +8 -2
@@ -2,13 +2,13 @@
2
2
  display: inline-flex;
3
3
  flex-direction: row !important;
4
4
  gap: 1rem;
5
- width: auto !important;
6
- max-width: none !important;
5
+ inline-size: auto !important;
6
+ max-inline-size: none !important;
7
7
  }
8
8
 
9
9
  .horizontal > * {
10
- margin-top: 0 !important;
11
- margin-bottom: 0 !important;
10
+ margin-block-start: 0 !important;
11
+ margin-block-end: 0 !important;
12
12
  }
13
13
 
14
14
  .vertical,
@@ -16,13 +16,13 @@
16
16
  display: inline-flex;
17
17
  flex-direction: column !important;
18
18
  gap: 0.25rem;
19
- height: auto !important;
20
- max-height: none !important;
21
- padding-top: 0.5rem;
22
- padding-bottom: 0.5rem;
19
+ block-size: auto !important;
20
+ max-block-size: none !important;
21
+ padding-block-start: 0.5rem;
22
+ padding-block-end: 0.5rem;
23
23
  }
24
24
 
25
25
  .vertical > * {
26
- margin-left: 0 !important;
27
- margin-right: 0 !important;
26
+ margin-inline-start: 0 !important;
27
+ margin-inline-end: 0 !important;
28
28
  }
@@ -2,8 +2,8 @@
2
2
  .small-divider,
3
3
  .medium-divider,
4
4
  .large-divider {
5
- height: 0.0625rem;
6
- background-color: var(--outline);
5
+ block-size: 0.0625rem;
6
+ background-color: var(--outline-variant);
7
7
  display: block;
8
8
  margin: 0 !important;
9
9
  }
@@ -19,3 +19,12 @@
19
19
  .small-divider {
20
20
  margin: 0.5rem 0 !important;
21
21
  }
22
+
23
+ .divider.vertical {
24
+ inline-size: 0.0625rem;
25
+ }
26
+
27
+ .divider.vertical.max {
28
+ align-self: stretch;
29
+ flex: none;
30
+ }
@@ -26,40 +26,32 @@
26
26
  }
27
27
 
28
28
  .no-round,
29
- .square {
29
+ .square,
30
+ .top-round,
31
+ .bottom-round,
32
+ .left-round,
33
+ .right-round {
30
34
  border-radius: 0 !important;
31
35
  }
32
36
 
33
37
  .top-round {
34
- border-radius: var(---round) var(---round) 0 0 !important;
38
+ border-start-start-radius: var(---round) !important;
39
+ border-start-end-radius: var(---round) !important;
35
40
  }
36
41
 
37
42
  .bottom-round {
38
- border-radius: 0 0 var(---round) var(---round) !important;
43
+ border-end-end-radius: var(---round) !important;
44
+ border-end-start-radius: var(---round) !important;
39
45
  }
40
46
 
41
47
  .left-round {
42
- border-radius: var(---round) 0 0 var(---round) !important;
48
+ border-start-start-radius: var(---round) !important;
49
+ border-end-start-radius: var(---round) !important;
43
50
  }
44
51
 
45
52
  .right-round {
46
- border-radius: 0 var(---round) var(---round) 0 !important;
47
- }
48
-
49
- .top-round.left-round {
50
- border-radius: var(---round) var(---round) 0 !important;
51
- }
52
-
53
- .top-round.right-round {
54
- border-radius: var(---round) var(---round) var(---round) 0 !important;
55
- }
56
-
57
- .bottom-round.left-round {
58
- border-radius: var(---round) 0 var(---round) var(---round) !important;
59
- }
60
-
61
- .bottom-round.right-round {
62
- border-radius: 0 var(---round) var(---round) !important;
53
+ border-start-end-radius: var(---round) !important;
54
+ border-end-end-radius: var(---round) !important;
63
55
  }
64
56
 
65
57
  .circle {
@@ -72,8 +64,8 @@
72
64
 
73
65
  :is(.circle, .square):not(i, img, video, svg),
74
66
  :is(.circle, .square).chip.medium {
75
- height: 2.5rem;
76
- width: 2.5rem;
67
+ block-size: 2.5rem;
68
+ inline-size: 2.5rem;
77
69
  padding: 0;
78
70
  }
79
71
 
@@ -83,18 +75,18 @@
83
75
 
84
76
  :is(.circle, .square).small:not(i, img, video, svg),
85
77
  :is(.circle, .square).chip {
86
- height: 2rem;
87
- width: 2rem;
78
+ block-size: 2rem;
79
+ inline-size: 2rem;
88
80
  }
89
81
 
90
82
  :is(.circle, .square).large:not(i, img, video, svg) {
91
- height: 3rem;
92
- width: 3rem;
83
+ block-size: 3rem;
84
+ inline-size: 3rem;
93
85
  }
94
86
 
95
87
  :is(.circle, .square).extra:not(i, img, video, svg) {
96
- height: 3.5rem;
97
- width: 3.5rem;
88
+ block-size: 3.5rem;
89
+ inline-size: 3.5rem;
98
90
  }
99
91
 
100
92
  :is(.circle, .square).round {
@@ -40,20 +40,20 @@
40
40
 
41
41
  .left-margin,
42
42
  .horizontal-margin {
43
- margin-left: var(---margin) !important;
43
+ margin-inline-start: var(---margin) !important;
44
44
  }
45
45
 
46
46
  .right-margin,
47
47
  .horizontal-margin {
48
- margin-right: var(---margin) !important;
48
+ margin-inline-end: var(---margin) !important;
49
49
  }
50
50
 
51
51
  .top-margin,
52
52
  .vertical-margin {
53
- margin-top: var(---margin) !important;
53
+ margin-block-start: var(---margin) !important;
54
54
  }
55
55
 
56
56
  .bottom-margin,
57
57
  .vertical-margin {
58
- margin-bottom: var(---margin) !important;
58
+ margin-block-end: var(---margin) !important;
59
59
  }
@@ -40,20 +40,20 @@
40
40
 
41
41
  .left-padding,
42
42
  .horizontal-padding {
43
- padding-left: var(---padding) !important;
43
+ padding-inline-start: var(---padding) !important;
44
44
  }
45
45
 
46
46
  .right-padding,
47
47
  .horizontal-padding {
48
- padding-right: var(---padding) !important;
48
+ padding-inline-end: var(---padding) !important;
49
49
  }
50
50
 
51
51
  .top-padding,
52
52
  .vertical-padding {
53
- padding-top: var(---padding) !important;
53
+ padding-block-start: var(---padding) !important;
54
54
  }
55
55
 
56
56
  .bottom-padding,
57
57
  .vertical-padding {
58
- padding-bottom: var(---padding) !important;
58
+ padding-block-end: var(---padding) !important;
59
59
  }
@@ -7,31 +7,39 @@
7
7
  }
8
8
 
9
9
  .left {
10
- left: 0;
10
+ inset-inline-start: 0;
11
11
  }
12
12
 
13
13
  .right {
14
- right: 0;
14
+ inset-inline-end: 0;
15
15
  }
16
16
 
17
17
  .top {
18
- top: 0;
18
+ inset-block-start: 0;
19
19
  }
20
20
 
21
21
  .bottom {
22
- bottom: 0;
22
+ inset-block-end: 0;
23
23
  }
24
24
 
25
25
  .center {
26
- left: 50%;
26
+ inset-inline-start: 50%;
27
27
  transform: translateX(-50%);
28
28
  }
29
29
 
30
+ [dir=rtl] .center {
31
+ transform: translateX(50%);
32
+ }
33
+
30
34
  .middle {
31
- top: 50%;
35
+ inset-block-start: 50%;
32
36
  transform: translateY(-50%);
33
37
  }
34
38
 
35
39
  .middle.center {
36
40
  transform: translate(-50%, -50%);
37
41
  }
42
+
43
+ [dir=rtl] .middle.center {
44
+ transform: translate(50%, -50%);
45
+ }
@@ -10,8 +10,8 @@
10
10
  }
11
11
 
12
12
  body {
13
- color: var(--on-background);
14
- background-color: var(--body);
13
+ color: var(--on-surface);
14
+ background-color: var(--surface);
15
15
  overflow-x: hidden;
16
16
  }
17
17
 
@@ -52,11 +52,16 @@ body *::-webkit-scrollbar,
52
52
  body *::-webkit-scrollbar-thumb,
53
53
  body *::-webkit-scrollbar-button {
54
54
  background: none;
55
- width: 0.4rem;
56
- height: 0.4rem;
55
+ inline-size: 0.4rem;
56
+ block-size: 0.4rem;
57
57
  }
58
58
 
59
59
  body *:is(:hover,:focus)::-webkit-scrollbar-thumb {
60
60
  background: var(--outline);
61
61
  border-radius: 1rem;
62
62
  }
63
+
64
+ pre,
65
+ code {
66
+ direction: ltr;
67
+ }
@@ -1,6 +1,6 @@
1
1
  .responsive {
2
- width: -webkit-fill-available;
3
- width: -moz-available;
2
+ inline-size: -webkit-fill-available;
3
+ inline-size: -moz-available;
4
4
  }
5
5
 
6
6
  @media only screen and (max-width: 600px) {
@@ -1,28 +1,28 @@
1
1
  .small-width {
2
- width: 12rem !important;
3
- max-width: 100%;
2
+ inline-size: 12rem !important;
3
+ max-inline-size: 100%;
4
4
  }
5
5
 
6
6
  .medium-width {
7
- width: 24rem !important;
8
- max-width: 100%;
7
+ inline-size: 24rem !important;
8
+ max-inline-size: 100%;
9
9
  }
10
10
 
11
11
  .large-width {
12
- width: 36rem !important;
13
- max-width: 100%;
12
+ inline-size: 36rem !important;
13
+ max-inline-size: 100%;
14
14
  }
15
15
 
16
16
  .small-height {
17
- height: 12rem !important;
17
+ block-size: 12rem !important;
18
18
  }
19
19
 
20
20
  .medium-height {
21
- height: 24rem !important;
21
+ block-size: 24rem !important;
22
22
  }
23
23
 
24
24
  .large-height {
25
- height: 36rem !important;
25
+ block-size: 36rem !important;
26
26
  }
27
27
 
28
28
  .wrap {
@@ -1,15 +1,15 @@
1
1
  .tiny-space:not(nav, .row, .grid, table, .tooltip) {
2
- height: 0.5rem;
2
+ block-size: 0.5rem;
3
3
  }
4
4
 
5
5
  :is(.space, .small-space):not(nav, .row, .grid, table, .tooltip) {
6
- height: 1rem;
6
+ block-size: 1rem;
7
7
  }
8
8
 
9
9
  .medium-space:not(nav, .row, .grid, table, .tooltip) {
10
- height: 2rem;
10
+ block-size: 2rem;
11
11
  }
12
12
 
13
13
  .large-space:not(nav, .row, .grid, table, .tooltip) {
14
- height: 3rem;
14
+ block-size: 3rem;
15
15
  }
@@ -75,7 +75,14 @@
75
75
  color: var(--on-background) !important;
76
76
  }
77
77
 
78
- .surface {
78
+ .surface,
79
+ .surface-dim,
80
+ .surface-bright,
81
+ .surface-container-lowest,
82
+ .surface-container-low,
83
+ .surface-container,
84
+ .surface-container-high,
85
+ .surface-container-highest {
79
86
  background-color: var(--surface) !important;
80
87
  color: var(--on-surface) !important;
81
88
  }
@@ -103,6 +110,38 @@
103
110
  border-color: var(--inverse-primary) !important;
104
111
  }
105
112
 
113
+ .surface-dim {
114
+ background-color: var(--surface-dim) !important;
115
+ }
116
+
117
+ .surface-bright {
118
+ background-color: var(--surface-bright) !important;
119
+ }
120
+
121
+ .surface-container-lowest {
122
+ background-color: var(--surface-container-lowest) !important;
123
+ }
124
+
125
+ .surface-container-low {
126
+ background-color: var(--surface-container-low) !important;
127
+ }
128
+
129
+ .surface-container {
130
+ background-color: var(--surface-container) !important;
131
+ }
132
+
133
+ .surface-container-high {
134
+ background-color: var(--surface-container-high) !important;
135
+ }
136
+
137
+ .surface-container-highest {
138
+ background-color: var(--surface-container-highest) !important;
139
+ }
140
+
141
+ .surface-container-low {
142
+ background-color: var(--surface-container-low) !important;
143
+ }
144
+
106
145
  .black {
107
146
  background-color: #000 !important;
108
147
  }
@@ -17,7 +17,7 @@ h6 {
17
17
  font-weight: 400;
18
18
  display: flex;
19
19
  align-items: center;
20
- margin-bottom: 0.5rem;
20
+ margin-block-end: 0.5rem;
21
21
  line-height: normal;
22
22
  }
23
23
 
@@ -27,7 +27,7 @@ h6 {
27
27
  * + h4,
28
28
  * + h5,
29
29
  * + h6 {
30
- margin-top: 1rem;
30
+ margin-block-start: 1rem;
31
31
  }
32
32
 
33
33
  h1 {
@@ -4,12 +4,12 @@
4
4
  :is(.button, button)::after {
5
5
  content: "";
6
6
  position: absolute;
7
- top: 0;
8
- left: 0;
7
+ inset-block-start: 0;
8
+ inset-inline-start: 0;
9
9
  z-index: 1;
10
10
  border-radius: inherit;
11
- width: 100%;
12
- height: 100%;
11
+ inline-size: 100%;
12
+ block-size: 100%;
13
13
  background-position: center;
14
14
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.4) 1%, transparent 1%);
15
15
  opacity: 0;
@@ -27,15 +27,15 @@
27
27
 
28
28
  .wave.none::after,
29
29
  :is(.button, button).none::after {
30
- top: 0;
31
- left: -0.25rem;
30
+ inset-block-start: 0;
31
+ inset-inline-start: -0.25rem;
32
32
  padding: 0 0.25rem;
33
33
  }
34
34
 
35
35
  .wave.none:not(.small, .medium, .large, .extra)::after,
36
36
  :is(.button, button).none:not(.small, .medium, .large, .extra)::after {
37
- top: -0.25rem;
38
- left: -0.25rem;
37
+ inset-block-start: -0.25rem;
38
+ inset-inline-start: -0.25rem;
39
39
  padding: 0.25rem;
40
40
  }
41
41
 
@@ -17,7 +17,7 @@ body.dark {
17
17
  --on-error-container: #ffb4ab;
18
18
  --background: #1c1b1e;
19
19
  --on-background: #e6e1e6;
20
- --surface: #1c1b1e;
20
+ --surface: #141316;
21
21
  --on-surface: #e6e1e6;
22
22
  --surface-variant: #49454e;
23
23
  --on-surface-variant: #cac4cf;
@@ -28,7 +28,13 @@ body.dark {
28
28
  --inverse-surface: #e6e1e6;
29
29
  --inverse-on-surface: #313033;
30
30
  --inverse-primary: #6750a4;
31
- --body: #000;
31
+ --surface-dim: #141316;
32
+ --surface-bright: #3a383c;
33
+ --surface-container-lowest: #0f0e11;
34
+ --surface-container-low: #1c1b1e;
35
+ --surface-container: #201f22;
36
+ --surface-container-high: #2b292d;
37
+ --surface-container-highest: #363438;
32
38
  --overlay: rgb(0 0 0 / 0.5);
33
39
  --active: rgb(255 255 255 / 0.2);
34
40
  --elevate1: 0 0.125rem 0.125rem 0 rgb(0 0 0 / 0.32);
@@ -18,7 +18,7 @@ body.light {
18
18
  --on-error-container: #410002;
19
19
  --background: #fffbff;
20
20
  --on-background: #1c1b1e;
21
- --surface: #fffbff;
21
+ --surface: #fdf8fd;
22
22
  --on-surface: #1c1b1e;
23
23
  --surface-variant: #e7e0eb;
24
24
  --on-surface-variant: #49454e;
@@ -29,7 +29,13 @@ body.light {
29
29
  --inverse-surface: #313033;
30
30
  --inverse-on-surface: #f4eff4;
31
31
  --inverse-primary: #cfbcff;
32
- --body: #FFF;
32
+ --surface-dim: #ddd8dd;
33
+ --surface-bright: #fdf8fd;
34
+ --surface-container-lowest: #ffffff;
35
+ --surface-container-low: #f7f2f7;
36
+ --surface-container: #f2ecf1;
37
+ --surface-container-high: #ece7eb;
38
+ --surface-container-highest: #e6e1e6;
33
39
  --overlay: rgb(0 0 0 / 0.5);
34
40
  --active: rgb(0 0 0 / 0.1);
35
41
  --elevate1: 0 0.125rem 0.125rem 0 rgb(0 0 0 / 0.32);