beercss 2.1.3 → 2.2.2

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 (48) hide show
  1. package/README.md +20 -8
  2. package/dist/cdn/beer.min.css +1 -1
  3. package/dist/cdn/beer.min.js +1 -1
  4. package/package.json +2 -2
  5. package/src/cdn/beer.css +18 -17
  6. package/src/cdn/beer.ts +8 -3
  7. package/src/cdn/elements/badges.css +5 -15
  8. package/src/cdn/elements/buttons.css +18 -87
  9. package/src/cdn/elements/cards.css +5 -32
  10. package/src/cdn/elements/chips.css +9 -31
  11. package/src/cdn/elements/containers.css +20 -22
  12. package/src/cdn/elements/dropdowns.css +18 -41
  13. package/src/cdn/elements/expansions.css +0 -15
  14. package/src/cdn/elements/fields.css +41 -56
  15. package/src/cdn/elements/grids.css +170 -0
  16. package/src/cdn/elements/icons.css +18 -18
  17. package/src/cdn/elements/layouts.css +31 -23
  18. package/src/cdn/elements/loaders.css +21 -28
  19. package/src/cdn/elements/media.css +76 -109
  20. package/src/cdn/elements/modals.css +30 -54
  21. package/src/cdn/elements/navigations.css +74 -72
  22. package/src/cdn/elements/overlays.css +0 -1
  23. package/src/cdn/elements/progress.css +4 -3
  24. package/src/cdn/elements/selections.css +46 -59
  25. package/src/cdn/elements/tables.css +2 -19
  26. package/src/cdn/elements/tabs.css +8 -10
  27. package/src/cdn/elements/toasts.css +4 -9
  28. package/src/cdn/elements/tooltips.css +0 -42
  29. package/src/cdn/helpers/alignments.css +12 -28
  30. package/src/cdn/helpers/dividers.css +8 -22
  31. package/src/cdn/helpers/elevates.css +16 -0
  32. package/src/cdn/helpers/forms.css +33 -62
  33. package/src/cdn/helpers/margins.css +4 -0
  34. package/src/cdn/helpers/paddings.css +5 -1
  35. package/src/cdn/helpers/positions.css +2 -2
  36. package/src/cdn/helpers/reset.css +4 -3
  37. package/src/cdn/helpers/responsive.css +3 -18
  38. package/src/cdn/helpers/scrolls.css +1 -1
  39. package/src/cdn/helpers/shadows.css +4 -25
  40. package/src/cdn/helpers/sizes.css +4 -6
  41. package/src/cdn/helpers/spaces.css +8 -7
  42. package/src/cdn/helpers/theme.css +7 -0
  43. package/src/cdn/helpers/typography.css +13 -9
  44. package/src/cdn/helpers/waves.css +5 -3
  45. package/src/cdn/settings/dark.css +4 -3
  46. package/src/cdn/settings/light.css +4 -3
  47. package/src/cdn/settings/urls.css +1 -1
  48. package/src/cdn/elements/rows.css +0 -251
@@ -5,12 +5,13 @@
5
5
  color: inherit;
6
6
  margin: 0;
7
7
  padding: 0;
8
+ border-radius: inherit;
9
+ box-sizing: border-box;
8
10
  }
9
11
 
10
12
  body {
11
13
  color: var(--on-background);
12
- background-color: var(--background);
13
- margin: 0;
14
+ background-color: var(--body);
14
15
  overflow-x: hidden;
15
16
  }
16
17
 
@@ -37,4 +38,4 @@ button,
37
38
  font-family: inherit;
38
39
  outline: inherit;
39
40
  justify-content: center;
40
- }
41
+ }
@@ -1,43 +1,28 @@
1
1
  .responsive {
2
- margin: 0;
3
2
  width: -webkit-fill-available;
4
3
  width: -moz-available;
5
4
  }
6
5
 
7
- .responsive > i,
8
- .responsive > img {
9
- margin: 0;
10
- }
11
-
12
6
  @media only screen and (max-width: 600px) {
13
- .medium-device:not(.small-device),
14
- .large-device:not(.small-device),
15
- .medium-device.large-device:not(.small-device),
16
7
  .m:not(.s),
17
8
  .l:not(.s),
18
9
  .m.l:not(.s) {
19
- display: none !important;
10
+ display: none;
20
11
  }
21
12
  }
22
13
 
23
14
  @media only screen and (min-width: 601px) and (max-width: 992px) {
24
- .small-device:not(.medium-device),
25
- .large-device:not(.medium-device),
26
- .small-device.large-device:not(.medium-device),
27
15
  .s:not(.m),
28
16
  .l:not(.m),
29
17
  .s.l:not(.m) {
30
- display: none !important;
18
+ display: none;
31
19
  }
32
20
  }
33
21
 
34
22
  @media only screen and (min-width: 993px) {
35
- .medium-device:not(.large-device),
36
- .small-device:not(.large-device),
37
- .medium-device.small-device:not(.large-device),
38
23
  .m:not(.l),
39
24
  .s:not(.l),
40
25
  .m.s:not(.l) {
41
- display: none !important;
26
+ display: none;
42
27
  }
43
28
  }
@@ -4,5 +4,5 @@
4
4
  }
5
5
 
6
6
  .no-scroll {
7
- overflow: hidden !important;
7
+ overflow: hidden;
8
8
  }
@@ -1,44 +1,23 @@
1
1
  .shadow {
2
2
  background-color: #00000050 !important;
3
- box-shadow: none !important;
4
3
  }
5
4
 
6
5
  .left-shadow {
7
6
  background-color: transparent !important;
8
- box-shadow: none !important;
9
- background-image: linear-gradient(to right, black, transparent) !important;
7
+ background-image: linear-gradient(to right, black, transparent);
10
8
  }
11
9
 
12
10
  .right-shadow {
13
11
  background-color: transparent !important;
14
- box-shadow: none !important;
15
- background-image: linear-gradient(to left, black, transparent) !important;
12
+ background-image: linear-gradient(to left, black, transparent);
16
13
  }
17
14
 
18
15
  .bottom-shadow {
19
16
  background-color: transparent !important;
20
- box-shadow: none !important;
21
- background-image: linear-gradient(to top, black, transparent) !important;
17
+ background-image: linear-gradient(to top, black, transparent);
22
18
  }
23
19
 
24
20
  .top-shadow {
25
21
  background-color: transparent !important;
26
- box-shadow: none !important;
27
- background-image: linear-gradient(to bottom, black, transparent) !important;
28
- }
29
-
30
- .no-shadow {
31
- box-shadow: none !important;
32
- }
33
-
34
- .small-shadow {
35
- box-shadow: var(--shadow1) !important;
36
- }
37
-
38
- .medium-shadow {
39
- box-shadow: var(--shadow2) !important;
40
- }
41
-
42
- .large-shadow {
43
- box-shadow: var(--shadow3) !important;
22
+ background-image: linear-gradient(to bottom, black, transparent);
44
23
  }
@@ -27,12 +27,10 @@
27
27
 
28
28
  .wrap {
29
29
  display: block;
30
+ white-space: normal;
30
31
  }
31
32
 
32
- a.no-wrap {
33
- flex-direction: row;
34
- }
35
-
36
- a.wrap {
37
- flex-direction: column;
33
+ .no-wrap:not(.dropdown) {
34
+ display: flex;
35
+ white-space: nowrap;
38
36
  }
@@ -1,15 +1,16 @@
1
- .space:not(nav, .row, table),
2
- .small-space:not(nav, .row, table) {
1
+ .tiny-space:not(nav, .row, .grid, table) {
2
+ height: 8rem;
3
+ }
4
+
5
+ .space:not(nav, .row, .grid, table),
6
+ .small-space:not(nav, .row, .grid, table) {
3
7
  height: 16rem;
4
- display: block;
5
8
  }
6
9
 
7
- .medium-space:not(nav, .row, table) {
10
+ .medium-space:not(nav, .row, .grid, table) {
8
11
  height: 32rem;
9
- display: block;
10
12
  }
11
13
 
12
- .large-space:not(nav, .row, table) {
14
+ .large-space:not(nav, .row, .grid, table) {
13
15
  height: 48rem;
14
- display: block;
15
16
  }
@@ -116,6 +116,8 @@
116
116
 
117
117
  .transparent {
118
118
  background-color: transparent !important;
119
+ box-shadow: none !important;
120
+ color: inherit !important;
119
121
  }
120
122
 
121
123
  .transparent-border {
@@ -124,4 +126,9 @@
124
126
 
125
127
  .transparent-text {
126
128
  color: transparent !important;
129
+ }
130
+
131
+ .fill:not(i) {
132
+ background-color: var(--surface-variant) !important;
133
+ color: var(--on-surface-variant) !important;
127
134
  }
@@ -14,18 +14,18 @@ h4,
14
14
  h5,
15
15
  h6 {
16
16
  font-weight: 400;
17
- margin-bottom: 8rem;
18
17
  display: flex;
19
18
  align-items: center;
19
+ margin-bottom: 8rem;
20
20
  }
21
21
 
22
- *:not(.progress) + h1,
23
- *:not(.progress) + h2,
24
- *:not(.progress) + h3,
25
- *:not(.progress) + h4,
26
- *:not(.progress) + h5,
27
- *:not(.progress) + h6 {
28
- margin-top: 8rem;
22
+ * + h1,
23
+ * + h2,
24
+ * + h3,
25
+ * + h4,
26
+ * + h5,
27
+ * + h6 {
28
+ margin-top: 16rem;
29
29
  }
30
30
 
31
31
  h1 {
@@ -58,10 +58,14 @@ h6 {
58
58
 
59
59
  .truncate {
60
60
  overflow: hidden;
61
- white-space: nowrap;
61
+ white-space: nowrap !important;
62
62
  text-overflow: ellipsis;
63
63
  }
64
64
 
65
+ .truncate > * {
66
+ white-space: nowrap !important;
67
+ }
68
+
65
69
  .small-text {
66
70
  font-size: 12rem;
67
71
  }
@@ -15,15 +15,17 @@ button::after {
15
15
  background-image: radial-gradient(circle, rgba(255,255,255,.4) 1%, transparent 1%);
16
16
  opacity: 0;
17
17
  transition: none;
18
- will-change: background-size;
19
18
  }
20
19
 
21
20
  .wave.dark::after,
22
- .chip.border::after,
23
21
  .button.none::after,
24
22
  button.none::after,
23
+ .chip.border::after,
25
24
  .button.border::after,
26
- button.border::after {
25
+ button.border::after,
26
+ .chip.transparent::after,
27
+ .button.transparent::after,
28
+ button.transparent::after {
27
29
  background-image: radial-gradient(circle, rgba(150,150,150,.2) 1%, transparent 1%);
28
30
  }
29
31
 
@@ -25,11 +25,12 @@ body.dark {
25
25
  --inverse-surface: #E6E1E5;
26
26
  --inverse-on-surface: #313033;
27
27
 
28
+ --body: #000000;
28
29
  --overlay: rgba(0,0,0,.5);
29
30
  --active: rgba(255,255,255,.2);
30
- --shadow1: 0 2rem 2rem 0 rgba(0, 0, 0, .14), 0 1rem 5rem 0 rgba(0, 0, 0, .12), 0 3rem 1rem -2rem rgba(0, 0, 0, .2);
31
- --shadow2: 0 6rem 10rem 0 rgba(0, 0, 0, .14), 0 1rem 18rem 0 rgba(0, 0, 0, .12), 0 3rem 5rem -1rem rgba(0, 0, 0, .3);
32
- --shadow3: 0 10rem 16rem 0 rgba(0, 0, 0, .14), 0 1rem 31rem 0 rgba(0, 0, 0, .12), 0 3rem 9rem 0rem rgba(0, 0, 0, .4);
31
+ --elevate1: 0 2rem 2rem 0 rgba(0, 0, 0, .14), 0 1rem 5rem 0 rgba(0, 0, 0, .12), 0 3rem 1rem -2rem rgba(0, 0, 0, .2);
32
+ --elevate2: 0 6rem 10rem 0 rgba(0, 0, 0, .14), 0 1rem 18rem 0 rgba(0, 0, 0, .12), 0 3rem 5rem -1rem rgba(0, 0, 0, .3);
33
+ --elevate3: 0 10rem 16rem 0 rgba(0, 0, 0, .14), 0 1rem 31rem 0 rgba(0, 0, 0, .12), 0 3rem 9rem 0rem rgba(0, 0, 0, .4);
33
34
  --size: 1px;
34
35
  --font: "Roboto", BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
35
36
  --speed1: .1s;
@@ -26,11 +26,12 @@ body.light {
26
26
  --inverse-surface: #313033;
27
27
  --inverse-on-surface: #F4EFF4;
28
28
 
29
+ --body: #ffffff;
29
30
  --overlay: rgba(0,0,0,.5);
30
31
  --active: rgba(0,0,0,.1);
31
- --shadow1: 0 2rem 2rem 0 rgba(0, 0, 0, .14), 0 1rem 5rem 0 rgba(0, 0, 0, .12), 0 3rem 1rem -2rem rgba(0, 0, 0, .2);
32
- --shadow2: 0 6rem 10rem 0 rgba(0, 0, 0, .14), 0 1rem 18rem 0 rgba(0, 0, 0, .12), 0 3rem 5rem -1rem rgba(0, 0, 0, .3);
33
- --shadow3: 0 10rem 16rem 0 rgba(0, 0, 0, .14), 0 1rem 31rem 0 rgba(0, 0, 0, .12), 0 3rem 9rem 0rem rgba(0, 0, 0, .4);
32
+ --elevate1: 0 2rem 2rem 0 rgba(0, 0, 0, .14), 0 1rem 5rem 0 rgba(0, 0, 0, .12), 0 3rem 1rem -2rem rgba(0, 0, 0, .2);
33
+ --elevate2: 0 6rem 10rem 0 rgba(0, 0, 0, .14), 0 1rem 18rem 0 rgba(0, 0, 0, .12), 0 3rem 5rem -1rem rgba(0, 0, 0, .3);
34
+ --elevate3: 0 10rem 16rem 0 rgba(0, 0, 0, .14), 0 1rem 31rem 0 rgba(0, 0, 0, .12), 0 3rem 9rem 0rem rgba(0, 0, 0, .4);
34
35
  --size: 1px;
35
36
  --font: "Roboto", BlinkMacSystemFont, -apple-system, "Segoe UI", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
36
37
  --speed1: .1s;
@@ -1 +1 @@
1
- @import url("https://fonts.googleapis.com/css2?family=Material+Icons&family=Material+Icons+Outlined&family=Roboto:wght@300;400;500&display=swap");
1
+ @import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&family=Roboto:wght@300;400;500&display=swap");
@@ -1,251 +0,0 @@
1
- .row {
2
- margin: 0 -8rem;
3
- min-width: 100%;
4
- }
5
-
6
- .row .row:not(.no-wrap) {
7
- margin-top: -8rem;
8
- }
9
-
10
- .row .row .row:not(.no-wrap) {
11
- margin-top: 8rem;
12
- }
13
-
14
- .row + .row,
15
- .row .row + .row {
16
- margin-top: 16rem;
17
- }
18
-
19
- .row:after {
20
- content: "";
21
- display: table;
22
- clear: both;
23
- }
24
-
25
- .row.no-space {
26
- height: auto;
27
- margin: 0;
28
- }
29
-
30
- .row.min {
31
- width: fit-content;
32
- min-width: auto;
33
- max-width: -webkit-fill-available;
34
- }
35
-
36
- .row.space,
37
- .row.small-space {
38
- margin: 0 -8rem;
39
- }
40
-
41
- .row.medium-space {
42
- margin: 0 -12rem;
43
- }
44
-
45
- .row.large-space {
46
- margin: 0 -16rem;
47
- }
48
-
49
- .row > .col {
50
- float: left;
51
- text-align: left;
52
- box-sizing: border-box;
53
- width: min-content;
54
- padding: 8rem;
55
- margin-left: auto;
56
- left: auto;
57
- right: auto;
58
- }
59
-
60
- .row.no-space > .col {
61
- padding: 0;
62
- }
63
-
64
- .row.space > .col,
65
- .row.small-space > .col {
66
- padding: 8rem;
67
- }
68
-
69
- .row.medium-space > .col {
70
- padding: 12rem;
71
- }
72
-
73
- .row.large-space > .col {
74
- padding: 16rem;
75
- }
76
-
77
- .row.no-wrap {
78
- margin-top: 0;
79
- margin-bottom: 0;
80
- display: flex;
81
- }
82
-
83
- .modal > .row.no-wrap:only-child {
84
- min-height: 100%;
85
- height: max-content;
86
- }
87
-
88
- .row + .row {
89
- margin-top: 16rem;
90
- }
91
-
92
- .row.no-wrap > .col {
93
- float: none;
94
- flex: 1;
95
- padding-top: 0;
96
- padding-bottom: 0;
97
- margin: 0;
98
- }
99
-
100
- .row.no-wrap > .col.min,
101
- .row.no-wrap.scroll > .col {
102
- flex: 0;
103
- }
104
-
105
- .row .col.s1 {
106
- width: 8.3333333333%;
107
- }
108
-
109
- .row .col.s2 {
110
- width: 16.6666666667%;
111
- }
112
-
113
- .row .col.s3 {
114
- width: 25%;
115
- }
116
-
117
- .row .col.s4 {
118
- width: 33.3333333333%;
119
- }
120
-
121
- .row .col.s5 {
122
- width: 41.6666666667%;
123
- }
124
-
125
- .row .col.s6 {
126
- width: 50%;
127
- }
128
-
129
- .row .col.s7 {
130
- width: 58.3333333333%;
131
- }
132
-
133
- .row .col.s8 {
134
- width: 66.6666666667%;
135
- }
136
-
137
- .row .col.s9 {
138
- width: 75%;
139
- }
140
-
141
- .row .col.s10 {
142
- width: 83.3333333333%;
143
- }
144
-
145
- .row .col.s11 {
146
- width: 91.6666666667%;
147
- }
148
-
149
- .row .col.s12 {
150
- width: 100%;
151
- }
152
-
153
- @media only screen and (min-width: 601px) {
154
- .row .col.m1 {
155
- width: 8.3333333333%;
156
- }
157
-
158
- .row .col.m2 {
159
- width: 16.6666666667%;
160
- }
161
-
162
- .row .col.m3 {
163
- width: 25%;
164
- }
165
-
166
- .row .col.m4 {
167
- width: 33.3333333333%;
168
- }
169
-
170
- .row .col.m5 {
171
- width: 41.6666666667%;
172
- }
173
-
174
- .row .col.m6 {
175
- width: 50%;
176
- }
177
-
178
- .row .col.m7 {
179
- width: 58.3333333333%;
180
- }
181
-
182
- .row .col.m8 {
183
- width: 66.6666666667%;
184
- }
185
-
186
- .row .col.m9 {
187
- width: 75%;
188
- }
189
-
190
- .row .col.m10 {
191
- width: 83.3333333333%;
192
- }
193
-
194
- .row .col.m11 {
195
- width: 91.6666666667%;
196
- }
197
-
198
- .row .col.m12 {
199
- width: 100%;
200
- }
201
- }
202
-
203
- @media only screen and (min-width: 993px) {
204
- .row .col.l1 {
205
- width: 8.3333333333%;
206
- }
207
-
208
- .row .col.l2 {
209
- width: 16.6666666667%;
210
- }
211
-
212
- .row .col.l3 {
213
- width: 25%;
214
- }
215
-
216
- .row .col.l4 {
217
- width: 33.3333333333%;
218
- }
219
-
220
- .row .col.l5 {
221
- width: 41.6666666667%;
222
- }
223
-
224
- .row .col.l6 {
225
- width: 50%;
226
- }
227
-
228
- .row .col.l7 {
229
- width: 58.3333333333%;
230
- }
231
-
232
- .row .col.l8 {
233
- width: 66.6666666667%;
234
- }
235
-
236
- .row .col.l9 {
237
- width: 75%;
238
- }
239
-
240
- .row .col.l10 {
241
- width: 83.3333333333%;
242
- }
243
-
244
- .row .col.l11 {
245
- width: 91.6666666667%;
246
- }
247
-
248
- .row .col.l12 {
249
- width: 100%;
250
- }
251
- }