beercss 3.2.9 → 3.2.11

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.
@@ -31,10 +31,6 @@
31
31
  height: 2.5rem;
32
32
  }
33
33
 
34
- .field.medium {
35
- height: 3rem;
36
- }
37
-
38
34
  .field.large {
39
35
  height: 3.5rem;
40
36
  }
@@ -256,17 +252,20 @@ input[type=search]::-webkit-search-results-decoration {
256
252
  border-color: var(--error);
257
253
  }
258
254
 
259
- .field > :disabled {
255
+ .field:has(> :disabled) {
260
256
  opacity: 0.5;
261
257
  cursor: not-allowed;
262
258
  }
263
259
 
260
+ .field > :disabled {
261
+ cursor: not-allowed;
262
+ }
263
+
264
264
  .field.small.textarea {
265
265
  height: 4.5rem;
266
266
  }
267
267
 
268
- .field.textarea,
269
- .field.medium.textarea {
268
+ .field.textarea {
270
269
  height: 5.5rem;
271
270
  }
272
271
 
@@ -283,8 +282,7 @@ input[type=search]::-webkit-search-results-decoration {
283
282
  color: var(--on-surface);
284
283
  }
285
284
 
286
- .field.label > input,
287
- .field.label > select {
285
+ .field.label > :is(input, select) {
288
286
  padding-top: 1rem;
289
287
  }
290
288
 
@@ -296,8 +294,7 @@ input[type=search]::-webkit-search-results-decoration {
296
294
  padding-top: 1.125rem;
297
295
  }
298
296
 
299
- .field.label > textarea,
300
- .field.label.medium > textarea {
297
+ .field.label > textarea {
301
298
  padding-top: 1.375rem;
302
299
  }
303
300
 
@@ -309,100 +306,106 @@ input[type=search]::-webkit-search-results-decoration {
309
306
  padding-top: 1.875rem;
310
307
  }
311
308
 
312
- .field.small:not(.label) > textarea,
309
+ .field.small > textarea,
313
310
  .field.small.border:not(.fill) > textarea {
314
311
  padding-top: 0.625rem;
315
312
  }
316
313
 
317
- .field:not(.label) > textarea,
318
- .field.border:not(.fill) > textarea,
319
- .field.medium:not(.label) > textarea,
320
- .field.medium.border:not(.fill) > textarea {
314
+ .field > textarea,
315
+ .field > textarea:focus,
316
+ .field.border:not(.fill) > textarea {
321
317
  padding-top: 0.875rem;
322
318
  }
323
319
 
324
- .field.large:not(.label) > textarea,
320
+ .field.large > textarea,
325
321
  .field.large.border:not(.fill) > textarea {
326
322
  padding-top: 1.125rem;
327
323
  }
328
324
 
329
- .field.extra:not(.label) > textarea,
325
+ .field.extra > textarea,
330
326
  .field.extra.border:not(.fill) > textarea {
331
327
  padding-top: 1.375rem;
332
328
  }
333
329
 
334
330
  /* label */
335
- .field.label > label {
331
+ .field > label {
336
332
  position: absolute;
337
- top: 50%;
333
+ top: -0.5rem;
338
334
  left: 1rem;
335
+ display: flex;
336
+ width: calc(100% - 5rem);
337
+ height: 100%;
339
338
  font-size: 1rem;
340
- transform: translateY(-50%);
341
- transition: var(--speed2) all, 0s background-color;
342
- z-index: 0;
339
+ line-height: 4rem;
340
+ transition: left 0.2s, font-size 0.2s, line-height 0.2s;
343
341
  }
344
342
 
345
- .field.label.textarea.small > label {
346
- top: 1.25rem;
343
+ .field.small > label {
344
+ line-height: 3.5rem;
347
345
  }
348
346
 
349
- .field.label.textarea > label,
350
- .field.label.textarea.medium > label {
351
- top: 1.5rem;
347
+ .field.large > label {
348
+ line-height: 4.5rem;
352
349
  }
353
350
 
354
- .field.label.textarea.large > label {
355
- top: 1.75rem;
351
+ .field.extra > label {
352
+ line-height: 5rem;
356
353
  }
357
354
 
358
- .field.label.textarea.extra > label {
359
- top: 2rem;
355
+ .field.border.prefix:not(.fill) > :is(label.active, :focus + label, [placeholder]:not(:placeholder-shown) + label) {
356
+ left: 1rem;
360
357
  }
361
358
 
362
- .field.label.round > label {
359
+ .field.round > label,
360
+ .field.border.prefix.round:not(.fill) > :is(label.active, :focus + label, [placeholder]:not(:placeholder-shown) + label) {
363
361
  left: 1.5rem;
364
362
  }
365
363
 
366
- .field.label.prefix > label {
364
+ .field.prefix > label {
367
365
  left: 3rem;
368
366
  }
369
367
 
370
- .field.label > label.active,
371
- .field.label > [placeholder]:focus ~ label,
372
- .field.label > [placeholder]:not(:placeholder-shown) ~ label {
368
+ .field > :is(label.active, :focus + label, [placeholder]:not(:placeholder-shown) + label) {
369
+ line-height: 2.5rem;
373
370
  font-size: 0.75rem;
374
- transform: translateY(-120%);
375
- z-index: 1;
376
371
  }
377
372
 
378
- .field.label.border:not(.fill) > label.active,
379
- .field.label.border:not(.fill) > [placeholder]:focus ~ label,
380
- .field.label.border:not(.fill) > [placeholder]:not(:placeholder-shown) ~ label {
381
- font-size: 0.75rem;
382
- top: 0%;
383
- left: 1rem;
384
- transform: translateY(-50%);
385
- z-index: 1;
373
+ .field.border:not(.fill) > :is(label.active, :focus + label, [placeholder]:not(:placeholder-shown) + label) {
374
+ line-height: 1rem;
386
375
  }
387
376
 
388
- .field.label.border.round:not(.fill) > label.active,
389
- .field.label.border.round:not(.fill) > [placeholder]:focus ~ label,
390
- .field.label.border.round:not(.fill) > [placeholder]:not(:placeholder-shown) ~ label {
391
- left: 1.5rem;
392
- z-index: 1;
377
+ .field.border:not(.fill) > label::after {
378
+ content: "";
379
+ display: block;
380
+ margin-top: 0.5rem;
381
+ border-top: 0.0625rem solid var(--outline);
382
+ min-width: 1rem;
383
+ height: 1rem;
384
+ transition: none;
385
+ flex: auto;
386
+ margin-left: 0.25rem;
393
387
  }
394
388
 
395
- .field.label > :focus ~ label {
396
- color: var(--primary);
389
+ .field.border:not(.fill) > :focus + label::after {
390
+ border-top: 0.125rem solid var(--primary);
397
391
  }
398
392
 
399
- .field.invalid > label {
400
- color: var(--error) !important;
393
+ .field.label.border:not(.fill) > :is(input, select, textarea):is(:focus, [placeholder]:not(:placeholder-shown), .active) {
394
+ clip-path: polygon(-1% -1%, 0.75rem -1%, 0.75rem 0.5rem, calc(100% - 5rem) 0.5rem, calc(100% - 5rem) -1%, 101% -1%, 101% 101%, -1% 101%);
401
395
  }
402
396
 
403
- .field > label.required::after,
404
- .field.required > label::after {
405
- content: " * ";
397
+ .field.label.border.round:not(.fill) > :is(input, select, textarea):is(:focus, [placeholder]:not(:placeholder-shown), .active) {
398
+ clip-path: polygon(-1% -1%, 1.25rem -1%, 1.25rem 0.5rem, calc(100% - 5rem) 0.5rem, calc(100% - 5rem) -1%, 101% -1%, 101% 101%, -1% 101%);
399
+ }
400
+
401
+ .field > :focus + label {
402
+ color: var(--primary);
403
+ }
404
+
405
+ .field.invalid > label,
406
+ .field.invalid > label::after {
407
+ color: var(--error) !important;
408
+ border-color: var(--error) !important;
406
409
  }
407
410
 
408
411
  /* helper */
@@ -433,6 +436,5 @@ a.helper {
433
436
  }
434
437
 
435
438
  table td > .field {
436
- max-height: 100%;
437
- height: 100%;
439
+ margin: 0;
438
440
  }
@@ -48,7 +48,6 @@ footer {
48
48
  right: 0;
49
49
  z-index: 12;
50
50
  background-color: inherit;
51
- border-radius: 0;
52
51
  }
53
52
 
54
53
  :is(header, footer).fixed::before {
@@ -14,10 +14,6 @@ svg {
14
14
  border-radius: 0.5rem;
15
15
  }
16
16
 
17
- :is(img, svg, video).circle {
18
- border-radius: 50%;
19
- }
20
-
21
17
  :is(img, svg, video).tiny {
22
18
  height: 2rem;
23
19
  width: 2rem;
@@ -44,23 +40,23 @@ svg {
44
40
  margin: 0 auto;
45
41
  }
46
42
 
47
- :is(button, .button, .chip) > :is(img, svg).responsive {
43
+ :is(button, .button, .chip) > .responsive {
48
44
  width: 2.5rem;
49
45
  }
50
46
 
51
- :is(button, .button, .chip):not(.transparent) > :is(img, svg).responsive {
47
+ :is(button, .button, .chip):not(.transparent) > .responsive {
52
48
  border: 0.25rem solid transparent;
53
49
  }
54
50
 
55
- :is(button, .button, .chip).small > :is(img, svg).responsive {
51
+ :is(button, .button, .chip).small > .responsive {
56
52
  width: 2rem;
57
53
  }
58
54
 
59
- :is(button, .button, .chip).large > :is(img, svg).responsive {
55
+ :is(button, .button, .chip).large > .responsive {
60
56
  width: 3rem;
61
57
  }
62
58
 
63
- :is(button, .button, .chip).extra > :is(img, svg).responsive {
59
+ :is(button, .button, .chip).extra > .responsive {
64
60
  width: 3.5rem;
65
61
  }
66
62
 
@@ -99,7 +95,7 @@ svg {
99
95
  }
100
96
 
101
97
  :is(button, .button, .chip, .field) > :is(img, svg):not(.responsive, .tiny, .small, .medium, .large, .extra),
102
- :is(.tabs, td) :is(img, svg):not(.responsive, .tiny, .small, .medium, .large, .extra) {
98
+ :is(.tabs) :is(img, svg):not(.responsive, .tiny, .small, .medium, .large, .extra) {
103
99
  min-width: 1.5rem;
104
100
  max-width: 1.5rem;
105
101
  min-height: 1.5rem;
@@ -107,42 +103,44 @@ svg {
107
103
  }
108
104
 
109
105
  :is(button, .button, .chip) > :is(i, img, svg),
110
- :is(button, .button, .chip) > :is(img, svg).responsive {
106
+ :is(button, .button, .chip) > .responsive {
111
107
  margin: 0 -0.5rem;
112
108
  }
113
109
 
114
- :is(button, .button) > :is(img, svg).responsive {
110
+ :is(button, .button) > .responsive {
115
111
  margin-left: -1.5rem;
116
112
  }
117
113
 
118
- :is(button, .button) > span + :is(img, svg).responsive {
114
+ :is(button, .button) > span + .responsive {
115
+ margin-left: -0.5rem;
119
116
  margin-right: -1.5rem;
120
117
  }
121
118
 
122
- .chip > :is(img, svg).responsive {
119
+ .chip > .responsive {
123
120
  margin-left: -1rem;
124
121
  }
125
122
 
126
- .chip > span + :is(img, svg).responsive {
123
+ .chip > span + .responsive {
124
+ margin-left: -0.5rem;
127
125
  margin-right: -1rem;
128
126
  }
129
127
 
130
- :is(.circle, .square) > :is(img, svg).responsive {
128
+ :is(.circle, .square) > .responsive {
131
129
  margin: 0;
132
130
  }
133
131
 
134
- .extend > :is(i, img, svg) {
132
+ .extend > :is(.responsive, i) {
135
133
  margin: 0;
136
134
  position: absolute;
137
135
  left: 1rem;
138
136
  z-index: 1;
139
137
  }
140
138
 
141
- .extend > :is(img, svg).responsive {
139
+ .extend > .responsive {
142
140
  left: 0;
143
141
  width: 3.5rem;
144
142
  }
145
143
 
146
- .extend.border > :is(img, svg).responsive {
144
+ .extend.border > .responsive {
147
145
  width: 3.375rem;
148
146
  }
@@ -49,7 +49,6 @@ menu * {
49
49
 
50
50
  menu > a {
51
51
  padding: 0.75rem 1rem;
52
- border-radius: 0;
53
52
  }
54
53
 
55
54
  menu > a:not(.row) {
@@ -77,7 +76,6 @@ menu.max {
77
76
  max-height: none;
78
77
  min-height: auto;
79
78
  z-index: 100;
80
- border-radius: 0;
81
79
  transform: none !important;
82
80
  }
83
81
 
@@ -4,7 +4,6 @@ nav,
4
4
  align-items: center;
5
5
  justify-content: flex-start;
6
6
  white-space: nowrap;
7
- border-radius: 0;
8
7
  gap: 1rem;
9
8
  }
10
9
 
@@ -4,7 +4,6 @@ table {
4
4
  font-size: 0.875rem;
5
5
  color: var(--on-background);
6
6
  text-align: left;
7
- border-radius: 0;
8
7
  }
9
8
 
10
9
  table :is(th, td) {
@@ -31,18 +30,4 @@ table.medium-space :is(th, td) {
31
30
 
32
31
  table.large-space :is(th, td) {
33
32
  padding: 1rem;
34
- }
35
-
36
- td > :is(.button, button, .none, .chip),
37
- td > nav > :is(.button, button, .none, .chip) {
38
- min-height: 1.5rem;
39
- max-height: 1.5rem;
40
- }
41
-
42
- td > :is(.circle, .square):not(.tiny, .small, .medium, .large, .extra),
43
- td > nav > :is(.circle, .square):not(.tiny, .small, .medium, .large, .extra) {
44
- min-width: 1.5rem;
45
- max-width: 1.5rem;
46
- min-height: 1.5rem;
47
- max-height: 1.5rem;
48
- }
33
+ }
@@ -2,7 +2,6 @@
2
2
  display: flex;
3
3
  white-space: nowrap;
4
4
  border-bottom: 0.0625rem solid var(--outline);
5
- border-radius: 0;
6
5
  }
7
6
 
8
7
  .tabs.min {
@@ -40,10 +39,6 @@
40
39
  min-height: 2rem;
41
40
  }
42
41
 
43
- .tabs.medium > a {
44
- min-height: 2.5rem;
45
- }
46
-
47
42
  .tabs.large > a {
48
43
  min-height: 4rem;
49
44
  }
@@ -1,14 +1,28 @@
1
- .medium-round:not(i, img, video, svg),
2
- .round:not(i, img, video, svg, button, .button, .chip, .field) {
3
- border-radius: 2rem !important;
1
+ .round {
2
+ border-radius: var(---round);
4
3
  }
5
4
 
6
- .small-round:not(i, img, video, svg) {
7
- border-radius: 0.5rem !important;
5
+ .small-round,
6
+ .medium-round,
7
+ .large-round {
8
+ border-radius: var(---round) !important;
8
9
  }
9
10
 
10
- .large-round:not(i, img, video, svg) {
11
- border-radius: 3.5rem !important;
11
+ .top-round,
12
+ .bottom-round,
13
+ .left-round,
14
+ .right-round,
15
+ .medium-round,
16
+ .round {
17
+ ---round: 2rem;
18
+ }
19
+
20
+ .small-round {
21
+ ---round: 0.5rem;
22
+ }
23
+
24
+ .large-round {
25
+ ---round: 3.5rem;
12
26
  }
13
27
 
14
28
  .no-round,
@@ -17,35 +31,35 @@
17
31
  }
18
32
 
19
33
  .top-round {
20
- border-radius: 2rem 2rem 0 0 !important;
34
+ border-radius: var(---round) var(---round) 0 0 !important;
21
35
  }
22
36
 
23
37
  .bottom-round {
24
- border-radius: 0 0 2rem 2rem !important;
38
+ border-radius: 0 0 var(---round) var(---round) !important;
25
39
  }
26
40
 
27
41
  .left-round {
28
- border-radius: 2rem 0 0 2rem !important;
42
+ border-radius: var(---round) 0 0 var(---round) !important;
29
43
  }
30
44
 
31
45
  .right-round {
32
- border-radius: 0 2rem 2rem 0 !important;
46
+ border-radius: 0 var(---round) var(---round) 0 !important;
33
47
  }
34
48
 
35
49
  .top-round.left-round {
36
- border-radius: 2rem 2rem 0 !important;
50
+ border-radius: var(---round) var(---round) 0 !important;
37
51
  }
38
52
 
39
53
  .top-round.right-round {
40
- border-radius: 2rem 2rem 2rem 0 !important;
54
+ border-radius: var(---round) var(---round) var(---round) 0 !important;
41
55
  }
42
56
 
43
57
  .bottom-round.left-round {
44
- border-radius: 2rem 0 2rem 2rem !important;
58
+ border-radius: var(---round) 0 var(---round) var(---round) !important;
45
59
  }
46
60
 
47
61
  .bottom-round.right-round {
48
- border-radius: 0 2rem 2rem !important;
62
+ border-radius: 0 var(---round) var(---round) !important;
49
63
  }
50
64
 
51
65
  .circle {
@@ -92,6 +106,6 @@
92
106
  box-shadow: none;
93
107
  }
94
108
 
95
- .badge.square {
109
+ :is(nav, .row, .dialog.max, header.fixed, footer.fixed, menu > a, menu.max, table, .tabs):not(.round) {
96
110
  border-radius: 0;
97
111
  }
@@ -38,4 +38,4 @@ button,
38
38
  font-family: inherit;
39
39
  outline: inherit;
40
40
  justify-content: center;
41
- }
41
+ }
@@ -1,7 +1,6 @@
1
1
  .responsive {
2
2
  width: -webkit-fill-available;
3
3
  width: -moz-available;
4
- width: stretch;
5
4
  }
6
5
 
7
6
  @media only screen and (max-width: 600px) {