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
@@ -11,13 +11,6 @@
11
11
  align-items: center;
12
12
  }
13
13
 
14
- .checkbox > *,
15
- .radio > *,
16
- .switch > * {
17
- margin: 0;
18
- padding: 0;
19
- }
20
-
21
14
  .checkbox > input,
22
15
  .radio > input {
23
16
  width: 24rem;
@@ -34,26 +27,26 @@
34
27
  font-size: 14rem;
35
28
  }
36
29
 
37
- .checkbox > span,
38
- .radio > span {
30
+ .checkbox > span:not(:empty),
31
+ .radio > span:not(:empty) {
39
32
  padding-left: 4rem;
40
33
  }
41
34
 
42
35
  .checkbox > input + span::before,
43
- .radio > input + span::before {
44
- font-family: "Material Icons";
36
+ .radio > input + span::before,
37
+ .switch > input + span::after {
38
+ font-family: 'Material Symbols Outlined';
45
39
  font-weight: normal;
46
40
  font-style: normal;
47
41
  font-size: 24rem;
48
- line-height: inherit;
42
+ line-height: 1;
49
43
  letter-spacing: normal;
50
44
  text-transform: none;
51
- display: inline-flex;
52
- align-items: center;
45
+ display: inline-block;
53
46
  white-space: nowrap;
54
47
  word-wrap: normal;
55
48
  direction: ltr;
56
- -webkit-font-feature-settings: "liga";
49
+ -webkit-font-feature-settings: 'liga';
57
50
  -webkit-font-smoothing: antialiased;
58
51
  vertical-align: middle;
59
52
  text-align: center;
@@ -61,13 +54,13 @@
61
54
  width: 24rem;
62
55
  height: 24rem;
63
56
  margin: 0 auto;
64
- padding: 0;
65
57
  outline: none;
66
58
  color: var(--primary);
67
59
  position: absolute;
68
60
  left: -24rem;
69
61
  background-color: transparent;
70
62
  border-radius: 50%;
63
+ box-sizing: content-box;
71
64
  }
72
65
 
73
66
  .checkbox > input + span::before {
@@ -78,12 +71,8 @@
78
71
  content: "radio_button_unchecked";
79
72
  }
80
73
 
81
- .checkbox:focus > input:not([disabled]) + span::before,
82
- .checkbox:hover > input:not([disabled]) + span::before,
83
74
  .checkbox > input:not([disabled]):focus + span::before,
84
75
  .checkbox > input:not([disabled]):hover + span::before,
85
- .radio:focus > input:not([disabled]) + span::before,
86
- .radio:hover > input:not([disabled]) + span::before,
87
76
  .radio > input:not([disabled]):focus + span::before,
88
77
  .radio > input:not([disabled]):hover + span::before {
89
78
  background-color: var(--active);
@@ -94,6 +83,7 @@
94
83
  .checkbox > input:checked + span::before {
95
84
  color: var(--primary);
96
85
  content: "check_box";
86
+ font-variation-settings: 'FILL' 1;
97
87
  }
98
88
 
99
89
  .radio > input:checked + span::before {
@@ -107,27 +97,9 @@
107
97
  margin-left: 8rem;
108
98
  }
109
99
 
110
- .field > .checkbox,
111
- .field > .radio,
112
- .field > nav > .checkbox,
113
- .field > nav > .radio {
114
- margin: 0 4rem 0 12rem;
115
- }
116
-
117
- .field > .switch,
118
- .field > nav > .switch {
119
- margin: 0 4rem 0 16rem;
120
- }
121
-
122
- .checkbox > span:empty,
123
- .radio > span:empty,
124
- .switch > span:empty {
125
- padding: 0;
126
- }
127
-
128
100
  .switch > input {
129
- width: 40rem;
130
- height: 24rem;
101
+ width: 52rem;
102
+ height: 32rem;
131
103
  opacity: 0;
132
104
  }
133
105
 
@@ -136,44 +108,47 @@
136
108
  position:absolute;
137
109
  left: 0;
138
110
  top: 50%;
139
- background-color: var(--on-background);
140
- opacity: .6;
141
- width: 32rem;
142
- height: 14rem;
143
- border-radius: 8rem;
144
- animation: none;
145
- transform: translate(-40rem, -50%);
111
+ background-color: var(--active);
112
+ border: 2rem solid var(--outline);
113
+ width: 52rem;
114
+ height: 32rem;
115
+ border-radius: 32rem;
116
+ transform: translate(-52rem, -50%);
146
117
  }
147
118
 
148
119
  .switch > input:checked + span::before {
120
+ border: none;
149
121
  background-color: var(--primary);
150
122
  }
151
123
 
152
124
  .switch > input + span::after {
153
125
  content: "";
154
126
  position: absolute;
155
- border-radius: 50%;
156
- width: 20rem;
157
- height: 20rem;
158
- background-color: #ffffff;
159
- box-shadow: var(--shadow1);
160
127
  left: 0;
161
128
  top: 50%;
162
- transition: var(--speed1) transform, var(--speed1) background-color;
129
+ display: inline-flex;
130
+ align-items: center;
131
+ justify-content: center;
132
+ border-radius: 50%;
133
+ transition: var(--speed2) all;
134
+ background-color: var(--outline);
135
+ width: 16rem;
136
+ height: 16rem;
137
+ font-size: 16rem;
163
138
  transform: translate(-44rem, -50%);
164
139
  }
165
140
 
166
141
  .switch > input:checked + span::after {
167
- background-color: var(--primary);
168
- transform: translate(-24rem, -50%);
142
+ content: "check";
143
+ background-color: var(--on-primary);
144
+ width: 24rem;
145
+ height: 24rem;
146
+ transform: translate(-28rem, -50%);
169
147
  }
170
148
 
171
- .switch:focus > input:not([disabled]) + span::after,
172
- .switch:hover > input:not([disabled]) + span::after,
173
149
  .switch > input:not([disabled]):focus + span::after,
174
150
  .switch > input:not([disabled]):hover + span::after {
175
- box-shadow: 0 0 0 8rem var(--active);
176
- animation: var(--speed1) to-checked ease-out;
151
+ box-shadow: 0 0 0 12rem var(--active);
177
152
  }
178
153
 
179
154
  .checkbox > input:disabled + span,
@@ -183,6 +158,18 @@
183
158
  cursor: not-allowed;
184
159
  }
185
160
 
161
+ .field > nav,
162
+ .field > .row {
163
+ flex-grow: 1;
164
+ padding: 0 16rem;
165
+ }
166
+
167
+ .field.round > nav,
168
+ .field.round > .row {
169
+ flex-grow: 1;
170
+ padding: 0 24rem;
171
+ }
172
+
186
173
  @keyframes to-checked {
187
174
  from {
188
175
  box-shadow: 0 0 0 0 var(--active);
@@ -4,6 +4,7 @@ table {
4
4
  font-size: 14rem;
5
5
  color: var(--on-background);
6
6
  text-align: left;
7
+ border-radius: 0;
7
8
  }
8
9
 
9
10
  table td,
@@ -11,7 +12,6 @@ table th {
11
12
  width: 1%;
12
13
  text-align: inherit;
13
14
  padding: 8rem;
14
- margin: 0;
15
15
  }
16
16
 
17
17
  table th {
@@ -23,24 +23,11 @@ table.border th {
23
23
  border-bottom: 1rem solid var(--outline);
24
24
  }
25
25
 
26
- table.min {
27
- width: min-content;
28
- min-width: auto;
29
- max-width: -webkit-fill-available;
30
- }
31
-
32
26
  table.no-space td,
33
27
  table.no-space th {
34
28
  padding: 0;
35
29
  }
36
30
 
37
- table.space td,
38
- table.space th,
39
- table.small-space th,
40
- table.small-space td {
41
- padding: 8rem;
42
- }
43
-
44
31
  table.medium-space td,
45
32
  table.medium-space th {
46
33
  padding: 12rem;
@@ -61,18 +48,14 @@ td > .chip,
61
48
  td > nav > .chip {
62
49
  min-height: 24rem;
63
50
  max-height: 24rem;
64
- box-sizing: border-box;
65
51
  }
66
52
 
67
53
  td > .circle:not(.tiny, .small, .medium, .large, .extra),
68
54
  td > nav > .circle:not(.tiny, .small, .medium, .large, .extra),
69
55
  td > .square:not(.tiny, .small, .medium, .large, .extra),
70
- td > nav > .square:not(.tiny, .small, .medium, .large, .extra),
71
- td > .diamond:not(.tiny, .small, .medium, .large, .extra),
72
- td > nav > .diamond:not(.tiny, .small, .medium, .large, .extra) {
56
+ td > nav > .square:not(.tiny, .small, .medium, .large, .extra){
73
57
  min-width: 24rem;
74
58
  max-width: 24rem;
75
59
  min-height: 24rem;
76
60
  max-height: 24rem;
77
- box-sizing: border-box;
78
61
  }
@@ -1,13 +1,16 @@
1
1
  .tabs {
2
2
  display: flex;
3
- justify-content: space-around;
4
- margin-top: 16rem;
5
3
  white-space: nowrap;
6
4
  border-bottom: 1rem solid var(--outline);
5
+ border-radius: 0;
6
+ }
7
+
8
+ .tabs:not(.left-align, .right-align, .center-align) {
9
+ justify-content: space-around;
7
10
  }
8
11
 
9
- * > .tabs:first-child {
10
- margin-top: 0;
12
+ * + .tabs {
13
+ margin-top: 16rem;
11
14
  }
12
15
 
13
16
  .tabs > a {
@@ -25,7 +28,7 @@
25
28
  }
26
29
 
27
30
  .tabs > a > span {
28
- margin: 4rem;
31
+ margin: 0 8rem;
29
32
  }
30
33
 
31
34
  .tabs.small > a {
@@ -49,11 +52,6 @@
49
52
  color: var(--primary);
50
53
  }
51
54
 
52
- .tabs > a > i,
53
- .tabs > a > img {
54
- margin: 0;
55
- }
56
-
57
55
  .tabs.left-align > a,
58
56
  .tabs.center-align > a,
59
57
  .tabs.right-align > a {
@@ -1,7 +1,7 @@
1
1
  .toast {
2
2
  position: fixed;
3
3
  top: auto;
4
- bottom: 72rem;
4
+ bottom: 96rem;
5
5
  left: 50%;
6
6
  right: auto;
7
7
  width: 80%;
@@ -9,21 +9,21 @@
9
9
  z-index: 200;
10
10
  visibility: hidden;
11
11
  display: inline-block;
12
- box-shadow: var(--shadow2);
12
+ box-shadow: var(--elevate2);
13
13
  color: var(--on-error);
14
14
  background-color: var(--error-background);
15
15
  padding: 16rem;
16
16
  opacity: 1;
17
- margin: 0;
18
17
  cursor: pointer;
19
18
  transform: translate(-50%, 0);
20
19
  text-align: left;
21
20
  display: flex;
22
21
  align-items: center;
22
+ border-radius: 4rem;
23
23
  }
24
24
 
25
25
  .toast.top {
26
- top: 72rem;
26
+ top: 96rem;
27
27
  bottom: auto;
28
28
  }
29
29
 
@@ -54,12 +54,7 @@
54
54
  padding: 24rem;
55
55
  }
56
56
 
57
- .toast.round {
58
- border-radius: 24rem;
59
- }
60
-
61
57
  .toast > * {
62
- margin: 0;
63
58
  overflow: unset;
64
59
  }
65
60
 
@@ -24,10 +24,6 @@
24
24
  border-radius: 64rem;
25
25
  }
26
26
 
27
- .tooltip.border {
28
- border: 1rem solid var(--outline);
29
- }
30
-
31
27
  .tooltip.left {
32
28
  left: 0;
33
29
  top: 50%;
@@ -79,44 +75,6 @@
79
75
  display: initial;
80
76
  }
81
77
 
82
- .tooltip.margin,
83
- .tooltip.small-margin,
84
- .tooltip.medium-margin,
85
- .tooltip.large-margin {
86
- max-width: none;
87
- max-height: none;
88
- }
89
-
90
- .tooltip.small-margin {
91
- margin: -8rem 0 !important;
92
- }
93
-
94
- .tooltip.margin,
95
- .tooltip.medium-margin {
96
- margin: -16rem 0 !important;
97
- }
98
-
99
- .tooltip.large-margin {
100
- margin: -24rem 0 !important;
101
- }
102
-
103
- .tooltip.left.small-margin,
104
- .tooltip.right.small-margin {
105
- margin: 0 -8rem !important;
106
- }
107
-
108
- .tooltip.left.margin,
109
- .tooltip.left.medium-margin,
110
- .tooltip.right.margin,
111
- .tooltip.right.medium-margin {
112
- margin: 0 -16rem !important;
113
- }
114
-
115
- .tooltip.left.large-margin,
116
- .tooltip.right.large-margin {
117
- margin: 0 -24rem !important;
118
- }
119
-
120
78
  .dropdown:active ~ .tooltip,
121
79
  button:focus > .dropdown ~ .tooltip,
122
80
  .button:focus > .dropdown ~ .tooltip,
@@ -1,45 +1,29 @@
1
1
  .middle-align {
2
- display: flex !important;
3
- align-items: center;
2
+ display: flex;
3
+ align-items: center !important;
4
4
  }
5
5
 
6
6
  .bottom-align {
7
- display: flex !important;
8
- align-items: flex-end;
7
+ display: flex;
8
+ align-items: flex-end !important;
9
9
  }
10
10
 
11
11
  .top-align {
12
- display: flex !important;
13
- align-items: flex-start;
12
+ display: flex;
13
+ align-items: flex-start !important;
14
14
  }
15
15
 
16
16
  .left-align {
17
- text-align: left !important;
18
- justify-content: flex-start;
17
+ text-align: left;
18
+ justify-content: flex-start !important;
19
19
  }
20
20
 
21
21
  .right-align {
22
- text-align: right !important;
23
- justify-content: flex-end;
22
+ text-align: right;
23
+ justify-content: flex-end !important;
24
24
  }
25
25
 
26
26
  .center-align {
27
- text-align: center !important;
28
- justify-content: center;
29
- }
30
-
31
- .center-align > .row,
32
- .center-align > table {
33
- margin-left: auto;
34
- margin-right: auto;
35
- }
36
-
37
- .right-align > .row,
38
- .right-align > table {
39
- margin-left: auto;
40
- }
41
-
42
- .left-align > .row,
43
- .left-align > table {
44
- margin-right: auto;
27
+ text-align: center;
28
+ justify-content: center !important;
45
29
  }
@@ -1,34 +1,20 @@
1
1
  .divider,
2
- .small-divider {
2
+ .small-divider,
3
+ .medium-divider,
4
+ .large-divider {
3
5
  border-bottom: 1rem solid var(--outline);
4
6
  display: block;
5
- margin: 8rem 0;
7
+ margin: 0 !important;
6
8
  }
7
9
 
8
10
  .medium-divider {
9
- border-bottom: 1rem solid var(--outline);
10
- display: block;
11
- margin: 16rem 0;
11
+ margin: 16rem 0 !important;
12
12
  }
13
13
 
14
14
  .large-divider {
15
- border-bottom: 1rem solid var(--outline);
16
- display: block;
17
- margin: 24rem 0;
15
+ margin: 24rem 0 !important;
18
16
  }
19
17
 
20
- .row.divider,
21
- .row.small-divider {
22
- margin: 0 -8rem !important;
23
- padding: 8rem 0;
24
- }
25
-
26
- .row.medium-divider {
27
- margin: 0 -8rem !important;
28
- padding: 16rem 0;
29
- }
30
-
31
- .row.large-divider {
32
- margin: 0 -8rem !important;
33
- padding: 24rem 0;
18
+ .small-divider {
19
+ margin: 8rem 0 !important;
34
20
  }
@@ -0,0 +1,16 @@
1
+ .no-elevate {
2
+ box-shadow: none !important;
3
+ }
4
+
5
+ .small-elevate,
6
+ .elevate {
7
+ box-shadow: var(--elevate1) !important;
8
+ }
9
+
10
+ .medium-elevate {
11
+ box-shadow: var(--elevate2) !important;
12
+ }
13
+
14
+ .large-elevate {
15
+ box-shadow: var(--elevate3) !important;
16
+ }
@@ -1,110 +1,81 @@
1
- .flat {
2
- box-shadow: none !important;
1
+ .round:not(img, video) {
2
+ border-radius: 32rem !important;
3
3
  }
4
4
 
5
- .round {
6
- border-radius: 24rem;
5
+ .no-round {
6
+ border-radius: 0 !important;
7
7
  }
8
8
 
9
9
  .top-round {
10
- border-radius: 24rem 24rem 4rem 4rem !important;
10
+ border-radius: 32rem 32rem 0 0 !important;
11
11
  }
12
12
 
13
13
  .bottom-round {
14
- border-radius: 4rem 4rem 24rem 24rem !important;
14
+ border-radius: 0 0 32rem 32rem !important;
15
15
  }
16
16
 
17
17
  .left-round {
18
- border-radius: 24rem 4rem 4rem 24rem !important;
18
+ border-radius: 32rem 0 0 32rem !important;
19
19
  }
20
20
 
21
21
  .right-round {
22
- border-radius: 4rem 24rem 24rem 4rem !important;
22
+ border-radius: 0 32rem 32rem 0 !important;
23
23
  }
24
24
 
25
25
  .top-round.left-round {
26
- border-radius: 24rem 24rem 4rem 24rem !important;
26
+ border-radius: 32rem 32rem 0 32rem !important;
27
27
  }
28
28
 
29
29
  .top-round.right-round {
30
- border-radius: 24rem 24rem 24rem 4rem !important;
30
+ border-radius: 32rem 32rem 32rem 0 !important;
31
31
  }
32
32
 
33
33
  .bottom-round.left-round {
34
- border-radius: 24rem 4rem 24rem 24rem !important;
34
+ border-radius: 32rem 0 32rem 32rem !important;
35
35
  }
36
36
 
37
37
  .bottom-round.right-round {
38
- border-radius: 4rem 24rem 24rem 24rem !important;
38
+ border-radius: 0 32rem 32rem 32rem !important;
39
39
  }
40
40
 
41
- .circle,
42
- .square,
43
- .diamond {
44
- min-width: 40rem;
45
- min-height: 40rem;
46
- max-width: 40rem;
47
- max-height: 40rem;
41
+ .circle:not(img, video),
42
+ .square:not(img, video) {
48
43
  height: 40rem;
44
+ width: 40rem;
45
+ padding: 0;
49
46
  }
50
47
 
51
48
  .circle > span,
52
- .square > span,
53
- .diamond > span {
49
+ .square > span {
54
50
  display: none;
55
51
  }
56
52
 
57
- .diamond.small,
58
- .square.small,
59
- .circle.small {
60
- min-width: 32rem;
61
- min-height: 32rem;
62
- max-width: 32rem;
63
- max-height: 32rem;
53
+ .square.small:not(img, video),
54
+ .circle.small:not(img, video) {
64
55
  height: 32rem;
56
+ width: 32rem;
65
57
  }
66
58
 
67
- .diamond.large,
68
- .square.large,
69
- .circle.large {
70
- min-width: 48rem;
71
- min-height: 48rem;
72
- max-width: 48rem;
73
- max-height: 48rem;
59
+ .square.large:not(img, video),
60
+ .circle.large:not(img, video) {
74
61
  height: 48rem;
62
+ width: 48rem;
75
63
  }
76
64
 
77
- .diamond.extra,
78
- .square.extra,
79
- .circle.extra {
80
- min-width: 56rem;
81
- min-height: 56rem;
82
- max-width: 56rem;
83
- max-height: 56rem;
65
+ .square.extra:not(img, video),
66
+ .circle.extra:not(img, video) {
84
67
  height: 56rem;
85
- }
86
-
87
- .diamond {
88
- transform: rotate(45deg);
89
- border-radius: 4rem;
90
- padding: 0;
91
- }
92
-
93
- .diamond > i {
94
- position: absolute;
95
- top: 50%;
96
- left: 50%;
97
- transform: translate(-50%, -50%) rotate(-45deg);
98
- margin: 0;
99
- padding: 0;
68
+ width: 56rem;
100
69
  }
101
70
 
102
71
  .square.round,
103
- .circle.round,
104
- .diamond.round {
105
- border-radius: 16rem;
72
+ .circle.round {
73
+ border-radius: 16rem !important;
106
74
  }
107
75
 
108
- .diamond.round {
109
- transform: rotate(45deg);
76
+ .border:not(table, .field) {
77
+ box-sizing: border-box;
78
+ border: 1px solid var(--outline);
79
+ background-color: transparent;
80
+ box-shadow: none;
110
81
  }
@@ -2,6 +2,10 @@
2
2
  margin: 0 !important;
3
3
  }
4
4
 
5
+ .tiny-margin {
6
+ padding: 4rem !important;
7
+ }
8
+
5
9
  .small-margin {
6
10
  margin: 8rem !important;
7
11
  }
@@ -1,5 +1,9 @@
1
1
  .no-padding {
2
- padding: 0 !important;
2
+ padding: 0 !important;
3
+ }
4
+
5
+ .tiny-padding {
6
+ padding: 4rem !important;
3
7
  }
4
8
 
5
9
  .small-padding {
@@ -1,9 +1,9 @@
1
1
  .front {
2
- z-index: 10!important;
2
+ z-index: 10;
3
3
  }
4
4
 
5
5
  .back {
6
- z-index: -10!important;
6
+ z-index: -10;
7
7
  }
8
8
 
9
9
  .left {