beercss 3.2.13 → 3.3.0

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.
@@ -1,30 +1,142 @@
1
- .progress {
1
+ progress {
2
+ position: relative;
3
+ width: 100%;
4
+ height: 0.5rem;
5
+ color: var(--primary);
6
+ background: var(--surface-variant);
7
+ border-radius: 0;
8
+ flex: none;
9
+ border: none;
10
+ clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
11
+ }
12
+
13
+ progress.small {
14
+ width: 4rem;
15
+ }
16
+
17
+ progress.medium {
18
+ width: 8rem;
19
+ }
20
+
21
+ progress.large {
22
+ width: 12rem;
23
+ }
24
+
25
+ progress:not(.circle, [value])::after {
26
+ content: "";
2
27
  position: absolute;
3
- background-color: var(--active);
4
28
  top: 0;
5
29
  bottom: 0;
6
30
  left: 0;
7
31
  right: 0;
8
- transition: var(--speed4) clip-path;
9
- clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
32
+ width: 100%;
33
+ height: 100%;
34
+ clip-path: none;
35
+ background: currentColor;
36
+ animation: 1.6s to-linear ease infinite;
10
37
  }
11
38
 
12
- .progress.left {
13
- clip-path: polygon(0% 0%, 0% 100%, 0% 100%, 0% 0%);
39
+ progress:not(.circle, [value])::-moz-progress-bar {
40
+ animation: 1.6s to-linear ease infinite;
14
41
  }
15
42
 
16
- .progress.right {
17
- clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%);
43
+ progress::-webkit-progress-bar {
44
+ background: none;
18
45
  }
19
46
 
20
- .progress.top {
21
- clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
47
+
48
+ progress::-webkit-progress-value {
49
+ background: currentColor;
50
+ }
51
+
52
+ progress::-moz-progress-bar {
53
+ background: currentColor;
54
+ }
55
+
56
+ progress.circle {
57
+ display: inline-block;
58
+ width: 2.5rem;
59
+ height: 2.5rem;
60
+ border-radius: 50%;
61
+ border: 0.3rem solid currentColor;
62
+ animation: 1.6s to-circular linear infinite;
63
+ background: none;
64
+ flex: none;
65
+ clip-path: none;
66
+ }
67
+
68
+ progress.circle::-moz-progress-bar {
69
+ background: none;
22
70
  }
23
71
 
24
- .progress.bottom {
25
- clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
72
+ progress.circle.small {
73
+ width: 1.5rem;
74
+ height: 1.5rem;
75
+ border-width: 0.2rem;
26
76
  }
27
77
 
28
- .progress + * {
29
- margin-top: 0;
78
+ progress.circle.large {
79
+ width: 3.5rem;
80
+ height: 3.5rem;
81
+ border-width: 0.4rem;
82
+ }
83
+
84
+ :is(nav, .row, .field) > progress:not(.circle, .small, .medium, .large) {
85
+ flex: auto;
86
+ }
87
+
88
+ @keyframes to-linear {
89
+ 0% {
90
+ transform: translate(0%);
91
+ width: 0%;
92
+ }
93
+
94
+ 100% {
95
+ transform: translate(100%);
96
+ width: 100%;
97
+ }
98
+ }
99
+
100
+ @keyframes to-circular {
101
+ 0% {
102
+ transform: rotate(0deg);
103
+ clip-path: polygon(50% 50%, 0% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
104
+ }
105
+
106
+ 20% {
107
+ clip-path: polygon(50% 50%, 0% 0%, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
108
+ }
109
+
110
+ 30% {
111
+ clip-path: polygon(50% 50%, 0% 0%, 50% 0%, 100% 0%, 100% 50%, 100% 50%, 100% 50%, 100% 50%, 100% 50%);
112
+ }
113
+
114
+ 40% {
115
+ clip-path: polygon(50% 50%, 0% 0%, 50% 0%, 100% 0%, 100% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%);
116
+ }
117
+
118
+ 50% {
119
+ clip-path: polygon(50% 50%, 50% 0%, 50% 0%, 100% 0%, 100% 50%, 100% 100%, 50% 100%, 50% 100%, 50% 100%);
120
+ }
121
+
122
+ 60% {
123
+ clip-path: polygon(50% 50%, 100% 50%, 100% 50%, 100% 50%, 100% 50%, 100% 100%, 50% 100%, 0% 100%, 0% 100%);
124
+ }
125
+
126
+ 70% {
127
+ clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%, 0% 50%);
128
+ }
129
+
130
+ 80% {
131
+ clip-path: polygon(50% 50%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 100%, 0% 50%);
132
+ }
133
+
134
+ 90% {
135
+ transform: rotate(360deg);
136
+ clip-path: polygon(50% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%);
137
+ }
138
+
139
+ 100% {
140
+ clip-path: polygon(50% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%, 0% 50%);
141
+ }
30
142
  }
@@ -1,24 +1,27 @@
1
1
  .slider {
2
+ ---start: 0%;
3
+ ---end: 0%;
4
+ ---value1: "";
5
+ ---value2: "";
6
+
2
7
  display: flex;
3
8
  align-items: center !important;
4
9
  width: auto;
10
+ height: 1.25rem;
5
11
  margin: 1.125rem;
6
- flex: auto;
12
+ flex: none;
7
13
  }
8
14
 
9
15
  .slider.small {
10
16
  width: 4rem;
11
- flex: none;
12
17
  }
13
18
 
14
19
  .slider.medium {
15
20
  width: 8rem;
16
- flex: none;
17
21
  }
18
22
 
19
23
  .slider.large {
20
24
  width: 12rem;
21
- flex: none;
22
25
  }
23
26
 
24
27
  .slider.vertical {
@@ -105,7 +108,7 @@
105
108
  cursor: not-allowed;
106
109
  }
107
110
 
108
- .slider > input:disabled + span {
111
+ .slider > input:disabled ~ :is(span, .tooltip) {
109
112
  background: #9E9E9E;
110
113
  }
111
114
 
@@ -116,6 +119,8 @@
116
119
  border-radius: 1rem;
117
120
  background: var(--primary);
118
121
  z-index: 0;
122
+ left: var(---start);
123
+ right: var(---end);
119
124
  }
120
125
 
121
126
  .field > .slider {
@@ -123,10 +128,52 @@
123
128
  }
124
129
 
125
130
  .slider::before {
126
- content: '';
131
+ content: "";
127
132
  position: absolute;
128
133
  width: 100%;
129
134
  height: 0.25rem;
130
135
  border-radius: 1rem;
131
136
  background: var(--active);
132
- }
137
+ }
138
+
139
+ .slider > .tooltip {
140
+ top: 0.25rem;
141
+ opacity: 0;
142
+ left: calc(100% - var(---end));
143
+ right: auto;
144
+ bottom: auto;
145
+ width: 1.75rem;
146
+ height: 1.75rem;
147
+ background-color: var(--primary);
148
+ border-radius: 50% 50% 0;
149
+ transition: var(--speed2) ease top, var(--speed2) ease opacity;
150
+ transform: translate(-50%, -50%) rotate(45deg) !important;
151
+ }
152
+
153
+ .slider > .tooltip + .tooltip {
154
+ left: auto;
155
+ right: calc(100% - var(---start));
156
+ transform: translate(50%, -50%) rotate(45deg) !important;
157
+ }
158
+
159
+ .slider > .tooltip::before {
160
+ content: var(---value1);
161
+ transform: rotate(-45deg);
162
+ }
163
+
164
+ .slider > .tooltip + .tooltip::before {
165
+ content: var(---value2);
166
+ }
167
+
168
+ .slider:hover > .tooltip {
169
+ top: -0.25rem;
170
+ opacity: 1;
171
+ }
172
+
173
+ .slider.vertical > .tooltip {
174
+ display: none;
175
+ }
176
+
177
+ :is(nav, .row, .field) > .slider:not(.circle, .small, .medium, .large) {
178
+ flex: auto;
179
+ }
@@ -1,4 +1,4 @@
1
- .toast {
1
+ .snackbar {
2
2
  ---transform: translate(-50%, 1rem);
3
3
 
4
4
  position: fixed;
@@ -24,25 +24,25 @@
24
24
  gap: 0.5rem;
25
25
  }
26
26
 
27
- .toast.top {
27
+ .snackbar.top {
28
28
  top: 6rem;
29
29
  bottom: auto;
30
30
  }
31
31
 
32
- .toast.active {
32
+ .snackbar.active {
33
33
  visibility: visible;
34
- animation: var(--speed2) to-toast;
34
+ animation: var(--speed2) to-snackbar;
35
35
  }
36
36
 
37
- .toast.active.top {
37
+ .snackbar.active.top {
38
38
  ---transform: translate(-50%, -1rem);
39
39
  }
40
40
 
41
- .toast > .max {
41
+ .snackbar > .max {
42
42
  flex: auto;
43
43
  }
44
44
 
45
- @keyframes to-toast {
45
+ @keyframes to-snackbar {
46
46
  0% {
47
47
  opacity: 0;
48
48
  transform: var(---transform);
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  @media only screen and (min-width: 993px) {
58
- .toast {
58
+ .snackbar {
59
59
  width: 40%;
60
60
  }
61
61
  }
@@ -30,4 +30,4 @@ table.medium-space :is(th, td) {
30
30
 
31
31
  table.large-space :is(th, td) {
32
32
  padding: 1rem;
33
- }
33
+ }
@@ -52,6 +52,6 @@
52
52
  color: var(--primary);
53
53
  }
54
54
 
55
- .tabs:is(.left-align, .center-align .right-align) > a {
55
+ .tabs:is(.left-align, .center-align, .right-align) > a {
56
56
  width: auto;
57
57
  }
@@ -2,7 +2,8 @@
2
2
  .small-divider,
3
3
  .medium-divider,
4
4
  .large-divider {
5
- border-bottom: 0.0625rem solid var(--outline);
5
+ height: 0.0625rem;
6
+ background-color: var(--outline);
6
7
  display: block;
7
8
  margin: 0 !important;
8
9
  }
@@ -70,7 +70,8 @@
70
70
  border-radius: 2.5rem;
71
71
  }
72
72
 
73
- :is(.circle, .square):not(i, img, video, svg) {
73
+ :is(.circle, .square):not(i, img, video, svg),
74
+ :is(.circle, .square).chip.medium {
74
75
  height: 2.5rem;
75
76
  width: 2.5rem;
76
77
  padding: 0;
@@ -80,7 +81,8 @@
80
81
  display: none;
81
82
  }
82
83
 
83
- :is(.circle, .square).small:not(i, img, video, svg) {
84
+ :is(.circle, .square).small:not(i, img, video, svg),
85
+ :is(.circle, .square).chip {
84
86
  height: 2rem;
85
87
  width: 2rem;
86
88
  }
@@ -106,6 +108,10 @@
106
108
  box-shadow: none;
107
109
  }
108
110
 
111
+ .no-border {
112
+ border-color: transparent !important;
113
+ }
114
+
109
115
  :is(nav, .row, dialog.max, header.fixed, footer.fixed, menu > a, menu.max, table, .tabs):not(.round) {
110
116
  border-radius: 0;
111
117
  }
@@ -1,20 +1,59 @@
1
+ :is(.no-margin, .auto-margin, .tiny-margin, .small-margin, .medium-margin, .margin, .large-margin):not(.left-margin, .right-margin, .top-margin, .bottom-margin, .horizontal-margin, .vertical-margin) {
2
+ margin: var(---margin) !important;
3
+ }
4
+
5
+ .no-margin,
6
+ .auto-margin,
7
+ .tiny-margin,
8
+ .small-margin,
9
+ .medium-margin,
10
+ .margin,
11
+ .large-margin,
12
+ .left-margin,
13
+ .right-margin,
14
+ .top-margin,
15
+ .bottom-margin,
16
+ .horizontal-margin,
17
+ .vertical-margin {
18
+ ---margin: 1rem;
19
+ }
20
+
1
21
  .no-margin {
2
- margin: 0 !important;
22
+ ---margin: 0;
23
+ }
24
+
25
+ .auto-margin {
26
+ ---margin: auto;
3
27
  }
4
28
 
5
29
  .tiny-margin {
6
- margin: 0.25rem !important;
30
+ ---margin: 0.25rem;
7
31
  }
8
32
 
9
33
  .small-margin {
10
- margin: 0.5rem !important;
34
+ ---margin: 0.5rem;
11
35
  }
12
36
 
13
- .medium-margin,
14
- .margin {
15
- margin: 1rem !important;
37
+ .large-margin {
38
+ ---margin: 1.5rem;
16
39
  }
17
40
 
18
- .large-margin {
19
- margin: 1.5rem !important;
41
+ .left-margin,
42
+ .horizontal-margin {
43
+ margin-left: var(---margin) !important;
44
+ }
45
+
46
+ .right-margin,
47
+ .horizontal-margin {
48
+ margin-right: var(---margin) !important;
49
+ }
50
+
51
+ .top-margin,
52
+ .vertical-margin {
53
+ margin-top: var(---margin) !important;
54
+ }
55
+
56
+ .bottom-margin,
57
+ .vertical-margin {
58
+ margin-bottom: var(---margin) !important;
20
59
  }
@@ -1,7 +1,19 @@
1
1
  .no-opacity {
2
- opacity: 0;
2
+ opacity: 1 !important;
3
3
  }
4
4
 
5
5
  .opacity {
6
- opacity: 1;
6
+ opacity: 0 !important;
7
+ }
8
+
9
+ .small-opacity {
10
+ opacity: 0.75 !important;
11
+ }
12
+
13
+ .medium-opacity {
14
+ opacity: 0.5 !important;
15
+ }
16
+
17
+ .large-opacity {
18
+ opacity: 0.25 !important;
7
19
  }
@@ -1,20 +1,59 @@
1
+ :is(.no-padding, .auto-padding, .tiny-padding, .small-padding, .medium-padding, .padding, .large-padding):not(.left-padding, .right-padding, .top-padding, .bottom-padding, .horizontal-padding, .vertical-padding) {
2
+ padding: var(---padding) !important;
3
+ }
4
+
5
+ .no-padding,
6
+ .auto-padding,
7
+ .tiny-padding,
8
+ .small-padding,
9
+ .medium-padding,
10
+ .padding,
11
+ .large-padding,
12
+ .left-padding,
13
+ .right-padding,
14
+ .top-padding,
15
+ .bottom-padding,
16
+ .horizontal-padding,
17
+ .vertical-padding {
18
+ ---padding: 1rem;
19
+ }
20
+
1
21
  .no-padding {
2
- padding: 0 !important;
22
+ ---padding: 0;
23
+ }
24
+
25
+ .auto-padding {
26
+ ---padding: auto;
3
27
  }
4
28
 
5
29
  .tiny-padding {
6
- padding: 0.25rem !important;
30
+ ---padding: 0.25rem;
7
31
  }
8
32
 
9
33
  .small-padding {
10
- padding: 0.5rem !important;
34
+ ---padding: 0.5rem;
11
35
  }
12
36
 
13
- .medium-padding,
14
- .padding {
15
- padding: 1rem !important;
37
+ .large-padding {
38
+ ---padding: 1.5rem;
16
39
  }
17
40
 
18
- .large-padding {
19
- padding: 1.5rem !important;
41
+ .left-padding,
42
+ .horizontal-padding {
43
+ padding-left: var(---padding) !important;
44
+ }
45
+
46
+ .right-padding,
47
+ .horizontal-padding {
48
+ padding-right: var(---padding) !important;
49
+ }
50
+
51
+ .top-padding,
52
+ .vertical-padding {
53
+ padding-top: var(---padding) !important;
54
+ }
55
+
56
+ .bottom-padding,
57
+ .vertical-padding {
58
+ padding-bottom: var(---padding) !important;
20
59
  }
@@ -38,4 +38,25 @@ button,
38
38
  font-family: inherit;
39
39
  outline: inherit;
40
40
  justify-content: center;
41
- }
41
+ }
42
+
43
+ a,
44
+ button,
45
+ .button,
46
+ i,
47
+ label {
48
+ user-select: none;
49
+ }
50
+
51
+ body *::-webkit-scrollbar,
52
+ body *::-webkit-scrollbar-thumb,
53
+ body *::-webkit-scrollbar-button {
54
+ background: none;
55
+ width: 0.4rem;
56
+ height: 0.4rem;
57
+ }
58
+
59
+ body *:is(:hover,:focus)::-webkit-scrollbar-thumb {
60
+ background: var(--outline);
61
+ border-radius: 1rem;
62
+ }
@@ -92,7 +92,7 @@
92
92
 
93
93
  .inverse-primary {
94
94
  background-color: var(--inverse-primary);
95
- color: var(--inverse-on-primary);
95
+ color: var(--primary);
96
96
  }
97
97
 
98
98
  .inverse-primary-text {
@@ -1,6 +1,7 @@
1
1
  .wave::after,
2
+ .chip::after,
2
3
  .wave.light::after,
3
- :is(.chip, .button, button)::after {
4
+ :is(.button, button)::after {
4
5
  content: "";
5
6
  position: absolute;
6
7
  top: 0;
@@ -17,9 +18,10 @@
17
18
 
18
19
  .wave.dark::after,
19
20
  .wave.row::after,
21
+ .chip::after,
20
22
  :is(.button, button).none::after,
21
- :is(.chip, .button, button).border::after,
22
- :is(.chip, .button, button).transparent::after {
23
+ :is(.button, button).border::after,
24
+ :is(.button, button).transparent::after {
23
25
  background-image: radial-gradient(circle, rgb(150 150 150 / 0.2) 1%, transparent 1%);
24
26
  }
25
27
 
@@ -1,31 +1,33 @@
1
1
  body.dark {
2
- --primary: #D0BCFF;
3
- --on-primary: #371E73;
4
- --primary-container: #4F378B;
5
- --on-primary-container: #EADDFF;
6
- --secondary: #CCC2DC;
7
- --on-secondary: #332D41;
8
- --secondary-container: #4A4458;
9
- --on-secondary-container: #E8DEF8;
10
- --tertiary: #EFB8C8;
11
- --on-tertiary: #492532;
12
- --tertiary-container: #633B48;
13
- --on-tertiary-container: #FFD8E4;
14
- --error: #F2B8B5;
15
- --on-error: #601410;
16
- --error-container: #8C1D18;
17
- --on-error-container: #F9DEDC;
18
- --background: #1C1B1F;
19
- --on-background: #E6E1E5;
20
- --surface: #1C1B1F;
21
- --on-surface: #E6E1E5;
22
- --outline: #938F99;
23
- --surface-variant: #49454F;
24
- --on-surface-variant: #CAC4D0;
25
- --inverse-surface: #E6E1E5;
2
+ --primary: #cfbcff;
3
+ --on-primary: #381e72;
4
+ --primary-container: #4f378a;
5
+ --on-primary-container: #e9ddff;
6
+ --secondary: #cbc2db;
7
+ --on-secondary: #332d41;
8
+ --secondary-container: #4a4458;
9
+ --on-secondary-container: #e8def8;
10
+ --tertiary: #efb8c8;
11
+ --on-tertiary: #4a2532;
12
+ --tertiary-container: #633b48;
13
+ --on-tertiary-container: #ffd9e3;
14
+ --error: #ffb4ab;
15
+ --on-error: #690005;
16
+ --error-container: #93000a;
17
+ --on-error-container: #ffb4ab;
18
+ --background: #1c1b1e;
19
+ --on-background: #e6e1e6;
20
+ --surface: #1c1b1e;
21
+ --on-surface: #e6e1e6;
22
+ --surface-variant: #49454e;
23
+ --on-surface-variant: #cac4cf;
24
+ --outline: #948f99;
25
+ --outline-variant: #49454e;
26
+ --shadow: #000000;
27
+ --scrim: #000000;
28
+ --inverse-surface: #e6e1e6;
26
29
  --inverse-on-surface: #313033;
27
- --inverse-primary: #6750A4;
28
- --inverse-on-primary: #FFF;
30
+ --inverse-primary: #6750a4;
29
31
  --body: #000;
30
32
  --overlay: rgb(0 0 0 / 0.5);
31
33
  --active: rgb(255 255 255 / 0.2);