beercss 3.13.2 → 3.13.3
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.
- package/LICENSE +21 -21
- package/README.md +328 -328
- package/custom-element/index.d.ts +18 -18
- package/custom-element/index.js +7 -7
- package/dist/cdn/arch.svg +3 -3
- package/dist/cdn/arrow.svg +3 -3
- package/dist/cdn/beer.css +4792 -4792
- package/dist/cdn/beer.custom-element.js +38 -38
- package/dist/cdn/beer.custom-element.min.js +1 -1
- package/dist/cdn/beer.js +635 -635
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +4793 -4793
- package/dist/cdn/beer.scoped.min.css +1 -1
- package/dist/cdn/boom.svg +3 -3
- package/dist/cdn/bun.svg +3 -3
- package/dist/cdn/burst.svg +3 -3
- package/dist/cdn/circle.svg +3 -3
- package/dist/cdn/clamshell.svg +3 -3
- package/dist/cdn/diamond.svg +3 -3
- package/dist/cdn/fan.svg +3 -3
- package/dist/cdn/flower.svg +3 -3
- package/dist/cdn/gem.svg +3 -3
- package/dist/cdn/ghost-ish.svg +3 -3
- package/dist/cdn/heart.svg +3 -3
- package/dist/cdn/leaf-clover4.svg +3 -3
- package/dist/cdn/leaf-clover8.svg +3 -3
- package/dist/cdn/loading-indicator.svg +18 -18
- package/dist/cdn/oval.svg +3 -3
- package/dist/cdn/pentagon.svg +3 -3
- package/dist/cdn/pill.svg +3 -3
- package/dist/cdn/pixel-circle.svg +3 -3
- package/dist/cdn/pixel-triangle.svg +3 -3
- package/dist/cdn/puffy-diamond.svg +3 -3
- package/dist/cdn/puffy.svg +3 -3
- package/dist/cdn/semicircle.svg +3 -3
- package/dist/cdn/sided-cookie12.svg +3 -3
- package/dist/cdn/sided-cookie4.svg +3 -3
- package/dist/cdn/sided-cookie6.svg +3 -3
- package/dist/cdn/sided-cookie7.svg +3 -3
- package/dist/cdn/sided-cookie9.svg +3 -3
- package/dist/cdn/slanted.svg +3 -3
- package/dist/cdn/soft-boom.svg +3 -3
- package/dist/cdn/soft-burst.svg +3 -3
- package/dist/cdn/square.svg +3 -3
- package/dist/cdn/sunny.svg +3 -3
- package/dist/cdn/triangle.svg +3 -3
- package/dist/cdn/very-sunny.svg +3 -3
- package/dist/cdn/wavy-circle.svg +3 -3
- package/dist/cdn/wavy.svg +4 -4
- package/index.d.ts +18 -18
- package/index.js +6 -6
- package/package.json +76 -76
- package/scoped/index.d.ts +18 -18
- package/scoped/index.js +6 -6
- package/src/cdn/beer.css +52 -52
- package/src/cdn/beer.ts +120 -120
- package/src/cdn/customElement.js +38 -38
- package/src/cdn/elements/badges.css +74 -74
- package/src/cdn/elements/bars.css +91 -91
- package/src/cdn/elements/buttons.css +106 -106
- package/src/cdn/elements/cards.css +26 -26
- package/src/cdn/elements/chips.css +38 -38
- package/src/cdn/elements/dialogs.css +151 -151
- package/src/cdn/elements/dialogs.ts +69 -69
- package/src/cdn/elements/dividers.css +48 -48
- package/src/cdn/elements/expansions.css +10 -10
- package/src/cdn/elements/fields.css +439 -439
- package/src/cdn/elements/fields.ts +165 -165
- package/src/cdn/elements/grids.css +171 -171
- package/src/cdn/elements/icons.css +77 -77
- package/src/cdn/elements/layouts.css +35 -35
- package/src/cdn/elements/lists.css +71 -71
- package/src/cdn/elements/mainLayouts.css +57 -57
- package/src/cdn/elements/media.css +112 -112
- package/src/cdn/elements/menus.css +294 -294
- package/src/cdn/elements/menus.ts +40 -40
- package/src/cdn/elements/navigations.css +462 -462
- package/src/cdn/elements/overlays.css +31 -31
- package/src/cdn/elements/pages.css +41 -41
- package/src/cdn/elements/pages.ts +6 -6
- package/src/cdn/elements/progress.css +207 -207
- package/src/cdn/elements/progress.ts +34 -34
- package/src/cdn/elements/selections.css +256 -256
- package/src/cdn/elements/shapes.css +258 -258
- package/src/cdn/elements/sliders.css +357 -357
- package/src/cdn/elements/sliders.ts +74 -74
- package/src/cdn/elements/snackbars.css +47 -47
- package/src/cdn/elements/snackbars.ts +26 -26
- package/src/cdn/elements/tables.css +65 -65
- package/src/cdn/elements/tabs.css +52 -52
- package/src/cdn/elements/tooltips.css +131 -131
- package/src/cdn/helpers/alignments.css +29 -29
- package/src/cdn/helpers/blurs.css +21 -21
- package/src/cdn/helpers/colors.css +930 -930
- package/src/cdn/helpers/directions.css +28 -28
- package/src/cdn/helpers/elevates.css +16 -16
- package/src/cdn/helpers/forms.css +75 -75
- package/src/cdn/helpers/margins.css +49 -49
- package/src/cdn/helpers/opacities.css +19 -19
- package/src/cdn/helpers/paddings.css +45 -45
- package/src/cdn/helpers/positions.css +45 -45
- package/src/cdn/helpers/reset.css +94 -94
- package/src/cdn/helpers/responsive.css +22 -22
- package/src/cdn/helpers/ripples.css +33 -33
- package/src/cdn/helpers/ripples.ts +30 -30
- package/src/cdn/helpers/scrolls.css +8 -8
- package/src/cdn/helpers/shadows.css +23 -23
- package/src/cdn/helpers/sizes.css +45 -45
- package/src/cdn/helpers/spaces.css +19 -19
- package/src/cdn/helpers/theme.css +186 -186
- package/src/cdn/helpers/theme.ts +83 -83
- package/src/cdn/helpers/typography.css +225 -225
- package/src/cdn/helpers/waves.css +43 -43
- package/src/cdn/helpers/zoom.css +19 -19
- package/src/cdn/interfaces.ts +3 -3
- package/src/cdn/settings/dark.css +38 -38
- package/src/cdn/settings/fonts.css +35 -35
- package/src/cdn/settings/globals.css +18 -18
- package/src/cdn/settings/light.css +39 -39
- package/src/cdn/shapes/arch.svg +3 -3
- package/src/cdn/shapes/arrow.svg +3 -3
- package/src/cdn/shapes/boom.svg +3 -3
- package/src/cdn/shapes/bun.svg +3 -3
- package/src/cdn/shapes/burst.svg +3 -3
- package/src/cdn/shapes/circle.svg +3 -3
- package/src/cdn/shapes/clamshell.svg +3 -3
- package/src/cdn/shapes/diamond.svg +3 -3
- package/src/cdn/shapes/fan.svg +3 -3
- package/src/cdn/shapes/flower.svg +3 -3
- package/src/cdn/shapes/gem.svg +3 -3
- package/src/cdn/shapes/ghost-ish.svg +3 -3
- package/src/cdn/shapes/heart.svg +3 -3
- package/src/cdn/shapes/leaf-clover4.svg +3 -3
- package/src/cdn/shapes/leaf-clover8.svg +3 -3
- package/src/cdn/shapes/loading-indicator.svg +18 -18
- package/src/cdn/shapes/oval.svg +3 -3
- package/src/cdn/shapes/pentagon.svg +3 -3
- package/src/cdn/shapes/pill.svg +3 -3
- package/src/cdn/shapes/pixel-circle.svg +3 -3
- package/src/cdn/shapes/pixel-triangle.svg +3 -3
- package/src/cdn/shapes/puffy-diamond.svg +3 -3
- package/src/cdn/shapes/puffy.svg +3 -3
- package/src/cdn/shapes/semicircle.svg +3 -3
- package/src/cdn/shapes/sided-cookie12.svg +3 -3
- package/src/cdn/shapes/sided-cookie4.svg +3 -3
- package/src/cdn/shapes/sided-cookie6.svg +3 -3
- package/src/cdn/shapes/sided-cookie7.svg +3 -3
- package/src/cdn/shapes/sided-cookie9.svg +3 -3
- package/src/cdn/shapes/slanted.svg +3 -3
- package/src/cdn/shapes/soft-boom.svg +3 -3
- package/src/cdn/shapes/soft-burst.svg +3 -3
- package/src/cdn/shapes/square.svg +3 -3
- package/src/cdn/shapes/sunny.svg +3 -3
- package/src/cdn/shapes/triangle.svg +3 -3
- package/src/cdn/shapes/very-sunny.svg +3 -3
- package/src/cdn/shapes/wavy-circle.svg +3 -3
- package/src/cdn/shapes/wavy.svg +4 -4
- package/src/cdn/utils.ts +154 -154
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
* {
|
|
2
|
-
-webkit-tap-highlight-color: transparent;
|
|
3
|
-
position: relative;
|
|
4
|
-
vertical-align: middle;
|
|
5
|
-
color: inherit;
|
|
6
|
-
margin: 0;
|
|
7
|
-
padding: 0;
|
|
8
|
-
border-radius: inherit;
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
*::after,
|
|
13
|
-
*::before {
|
|
14
|
-
all: unset;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body {
|
|
18
|
-
color: var(--on-surface);
|
|
19
|
-
background-color: var(--surface);
|
|
20
|
-
overflow-x: hidden;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
label {
|
|
24
|
-
font-size: 0.75rem;
|
|
25
|
-
vertical-align: baseline;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
a,
|
|
29
|
-
b,
|
|
30
|
-
i,
|
|
31
|
-
span,
|
|
32
|
-
strong,
|
|
33
|
-
em,
|
|
34
|
-
code {
|
|
35
|
-
vertical-align: baseline;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
a,
|
|
39
|
-
button,
|
|
40
|
-
.button {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
text-decoration: none;
|
|
43
|
-
display: inline-flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
border: none;
|
|
46
|
-
font-family: inherit;
|
|
47
|
-
outline: inherit;
|
|
48
|
-
justify-content: center;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
:is(nav, .tabs, .field) > a,
|
|
52
|
-
button,
|
|
53
|
-
.button,
|
|
54
|
-
.chip,
|
|
55
|
-
i,
|
|
56
|
-
label {
|
|
57
|
-
user-select: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
@media (pointer: fine) {
|
|
61
|
-
body ::-webkit-scrollbar,
|
|
62
|
-
body ::-webkit-scrollbar-thumb,
|
|
63
|
-
body ::-webkit-scrollbar-button {
|
|
64
|
-
background: none;
|
|
65
|
-
inline-size: 0.4rem;
|
|
66
|
-
block-size: 0.4rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
body :is(:focus, :hover)::-webkit-scrollbar-thumb,
|
|
70
|
-
body :has(:focus, :hover)::-webkit-scrollbar-thumb {
|
|
71
|
-
background: var(--outline);
|
|
72
|
-
border-radius: 1rem;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:not(.grid, nav, .row) > :not(progress.max) + :is(address, article, blockquote, code, .field, fieldset, form, .grid, h1, h2, h3, h4, h5, h6, nav, ol, p, pre, .row, section, aside, table, .tabs, ul):not([class*='margin'], .right, .left, .top, .bottom) {
|
|
77
|
-
margin-block-start: 1rem;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
:has(> [class*='margin']) {
|
|
81
|
-
padding: 0.1px;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:is(a, button, .button, .chip):focus-visible {
|
|
85
|
-
outline: 0.125rem solid var(--primary);
|
|
86
|
-
outline-offset: 0.25rem;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
:is(nav, .row, li).group > :focus-visible {
|
|
90
|
-
z-index: 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:is(button, .button, .chip) > :is(span, i, img, svg) {
|
|
94
|
-
pointer-events: none;
|
|
1
|
+
* {
|
|
2
|
+
-webkit-tap-highlight-color: transparent;
|
|
3
|
+
position: relative;
|
|
4
|
+
vertical-align: middle;
|
|
5
|
+
color: inherit;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
border-radius: inherit;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
*::after,
|
|
13
|
+
*::before {
|
|
14
|
+
all: unset;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
body {
|
|
18
|
+
color: var(--on-surface);
|
|
19
|
+
background-color: var(--surface);
|
|
20
|
+
overflow-x: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
label {
|
|
24
|
+
font-size: 0.75rem;
|
|
25
|
+
vertical-align: baseline;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
a,
|
|
29
|
+
b,
|
|
30
|
+
i,
|
|
31
|
+
span,
|
|
32
|
+
strong,
|
|
33
|
+
em,
|
|
34
|
+
code {
|
|
35
|
+
vertical-align: baseline;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
a,
|
|
39
|
+
button,
|
|
40
|
+
.button {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
text-decoration: none;
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
border: none;
|
|
46
|
+
font-family: inherit;
|
|
47
|
+
outline: inherit;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(nav, .tabs, .field) > a,
|
|
52
|
+
button,
|
|
53
|
+
.button,
|
|
54
|
+
.chip,
|
|
55
|
+
i,
|
|
56
|
+
label {
|
|
57
|
+
user-select: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@media (pointer: fine) {
|
|
61
|
+
body ::-webkit-scrollbar,
|
|
62
|
+
body ::-webkit-scrollbar-thumb,
|
|
63
|
+
body ::-webkit-scrollbar-button {
|
|
64
|
+
background: none;
|
|
65
|
+
inline-size: 0.4rem;
|
|
66
|
+
block-size: 0.4rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
body :is(:focus, :hover)::-webkit-scrollbar-thumb,
|
|
70
|
+
body :has(:focus, :hover)::-webkit-scrollbar-thumb {
|
|
71
|
+
background: var(--outline);
|
|
72
|
+
border-radius: 1rem;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:not(.grid, nav, .row) > :not(progress.max) + :is(address, article, blockquote, code, .field, fieldset, form, .grid, h1, h2, h3, h4, h5, h6, nav, ol, p, pre, .row, section, aside, table, .tabs, ul):not([class*='margin'], .right, .left, .top, .bottom) {
|
|
77
|
+
margin-block-start: 1rem;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:has(> [class*='margin']) {
|
|
81
|
+
padding: 0.1px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:is(a, button, .button, .chip):focus-visible {
|
|
85
|
+
outline: 0.125rem solid var(--primary);
|
|
86
|
+
outline-offset: 0.25rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:is(nav, .row, li).group > :focus-visible {
|
|
90
|
+
z-index: 1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:is(button, .button, .chip) > :is(span, i, img, svg) {
|
|
94
|
+
pointer-events: none;
|
|
95
95
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
.responsive {
|
|
2
|
-
inline-size: -webkit-fill-available;
|
|
3
|
-
inline-size: -moz-available;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@media only screen and (max-width: 600px) {
|
|
7
|
-
:is(.m, .l):not(.s) {
|
|
8
|
-
display: none !important;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media only screen and (min-width: 601px) and (max-width: 992px) {
|
|
13
|
-
:is(.s, .l):not(.m) {
|
|
14
|
-
display: none !important;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@media only screen and (min-width: 993px) {
|
|
19
|
-
:is(.m, .s):not(.l) {
|
|
20
|
-
display: none !important;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
.responsive {
|
|
2
|
+
inline-size: -webkit-fill-available;
|
|
3
|
+
inline-size: -moz-available;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@media only screen and (max-width: 600px) {
|
|
7
|
+
:is(.m, .l):not(.s) {
|
|
8
|
+
display: none !important;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@media only screen and (min-width: 601px) and (max-width: 992px) {
|
|
13
|
+
:is(.s, .l):not(.m) {
|
|
14
|
+
display: none !important;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@media only screen and (min-width: 993px) {
|
|
19
|
+
:is(.m, .s):not(.l) {
|
|
20
|
+
display: none !important;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
.ripple {
|
|
2
|
-
--_duration: 600ms;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.fast-ripple {
|
|
6
|
-
--_duration: 200ms;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.slow-ripple {
|
|
10
|
-
--_duration: 1800ms;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ripple-js {
|
|
14
|
-
position: absolute;
|
|
15
|
-
inset: 0;
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
overflow: hidden;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ripple-js > div {
|
|
21
|
-
position: absolute;
|
|
22
|
-
border-radius: 50%;
|
|
23
|
-
background: currentColor;
|
|
24
|
-
opacity: 0.3;
|
|
25
|
-
transform: scale(0);
|
|
26
|
-
animation: to-ripple var(--_duration) linear;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@keyframes to-ripple {
|
|
30
|
-
to {
|
|
31
|
-
transform: scale(4);
|
|
32
|
-
opacity: 0;
|
|
33
|
-
}
|
|
1
|
+
.ripple {
|
|
2
|
+
--_duration: 600ms;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.fast-ripple {
|
|
6
|
+
--_duration: 200ms;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.slow-ripple {
|
|
10
|
+
--_duration: 1800ms;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ripple-js {
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ripple-js > div {
|
|
21
|
+
position: absolute;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
background: currentColor;
|
|
24
|
+
opacity: 0.3;
|
|
25
|
+
transform: scale(0);
|
|
26
|
+
animation: to-ripple var(--_duration) linear;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes to-ripple {
|
|
30
|
+
to {
|
|
31
|
+
transform: scale(4);
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
34
|
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { queryAll, onWeak } from "../utils";
|
|
2
|
-
|
|
3
|
-
function onPointerDownRipple(e: PointerEvent) {
|
|
4
|
-
updateRipple(e);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
function updateRipple(e: PointerEvent) {
|
|
8
|
-
const element = e.currentTarget as HTMLElement;
|
|
9
|
-
const rect = element.getBoundingClientRect();
|
|
10
|
-
const diameter = Math.max(rect.width, rect.height);
|
|
11
|
-
const radius = diameter / 2;
|
|
12
|
-
const x = e.clientX - rect.left - radius;
|
|
13
|
-
const y = e.clientY - rect.top - radius;
|
|
14
|
-
|
|
15
|
-
const rippleContainer = document.createElement("div");
|
|
16
|
-
rippleContainer.className = "ripple-js";
|
|
17
|
-
|
|
18
|
-
const ripple = document.createElement("div");
|
|
19
|
-
ripple.style.inlineSize = ripple.style.blockSize = `${diameter}px`;
|
|
20
|
-
ripple.style.left = `${x}px`;
|
|
21
|
-
ripple.style.top = `${y}px`;
|
|
22
|
-
ripple.addEventListener("animationend", () => { rippleContainer.remove(); });
|
|
23
|
-
|
|
24
|
-
rippleContainer.appendChild(ripple);
|
|
25
|
-
element.appendChild(rippleContainer);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function updateAllRipples() {
|
|
29
|
-
const ripples = queryAll(".slow-ripple, .ripple, .fast-ripple");
|
|
30
|
-
for(let i=0; i<ripples.length; i++) onWeak(ripples[i], "pointerdown", onPointerDownRipple);
|
|
1
|
+
import { queryAll, onWeak } from "../utils";
|
|
2
|
+
|
|
3
|
+
function onPointerDownRipple(e: PointerEvent) {
|
|
4
|
+
updateRipple(e);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function updateRipple(e: PointerEvent) {
|
|
8
|
+
const element = e.currentTarget as HTMLElement;
|
|
9
|
+
const rect = element.getBoundingClientRect();
|
|
10
|
+
const diameter = Math.max(rect.width, rect.height);
|
|
11
|
+
const radius = diameter / 2;
|
|
12
|
+
const x = e.clientX - rect.left - radius;
|
|
13
|
+
const y = e.clientY - rect.top - radius;
|
|
14
|
+
|
|
15
|
+
const rippleContainer = document.createElement("div");
|
|
16
|
+
rippleContainer.className = "ripple-js";
|
|
17
|
+
|
|
18
|
+
const ripple = document.createElement("div");
|
|
19
|
+
ripple.style.inlineSize = ripple.style.blockSize = `${diameter}px`;
|
|
20
|
+
ripple.style.left = `${x}px`;
|
|
21
|
+
ripple.style.top = `${y}px`;
|
|
22
|
+
ripple.addEventListener("animationend", () => { rippleContainer.remove(); });
|
|
23
|
+
|
|
24
|
+
rippleContainer.appendChild(ripple);
|
|
25
|
+
element.appendChild(rippleContainer);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function updateAllRipples() {
|
|
29
|
+
const ripples = queryAll(".slow-ripple, .ripple, .fast-ripple");
|
|
30
|
+
for(let i=0; i<ripples.length; i++) onWeak(ripples[i], "pointerdown", onPointerDownRipple);
|
|
31
31
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
.scroll {
|
|
2
|
-
overflow: auto;
|
|
3
|
-
min-inline-size: 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.no-scroll {
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
}
|
|
1
|
+
.scroll {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
min-inline-size: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.no-scroll {
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.shadow {
|
|
2
|
-
background-color: #00000050;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:is(.left-shadow, .right-shadow, .top-shadow, .bottom-shadow) {
|
|
6
|
-
background-color: transparent !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.left-shadow {
|
|
10
|
-
background-image: linear-gradient(to right, black, transparent) !important;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.right-shadow {
|
|
14
|
-
background-image: linear-gradient(to left, black, transparent) !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.bottom-shadow {
|
|
18
|
-
background-image: linear-gradient(to top, black, transparent) !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.top-shadow {
|
|
22
|
-
background-image: linear-gradient(to bottom, black, transparent) !important;
|
|
23
|
-
}
|
|
1
|
+
.shadow {
|
|
2
|
+
background-color: #00000050;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:is(.left-shadow, .right-shadow, .top-shadow, .bottom-shadow) {
|
|
6
|
+
background-color: transparent !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.left-shadow {
|
|
10
|
+
background-image: linear-gradient(to right, black, transparent) !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.right-shadow {
|
|
14
|
+
background-image: linear-gradient(to left, black, transparent) !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.bottom-shadow {
|
|
18
|
+
background-image: linear-gradient(to top, black, transparent) !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.top-shadow {
|
|
22
|
+
background-image: linear-gradient(to bottom, black, transparent) !important;
|
|
23
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
[class*=-width] {
|
|
2
|
-
max-inline-size: 100%;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.auto-width {
|
|
6
|
-
inline-size: auto;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.small-width {
|
|
10
|
-
inline-size: 12rem !important;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.medium-width {
|
|
14
|
-
inline-size: 24rem !important;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.large-width {
|
|
18
|
-
inline-size: 36rem !important;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.auto-height {
|
|
22
|
-
block-size: auto;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.small-height {
|
|
26
|
-
block-size: 12rem !important;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.medium-height {
|
|
30
|
-
block-size: 24rem !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.large-height {
|
|
34
|
-
block-size: 36rem !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.wrap {
|
|
38
|
-
display: block;
|
|
39
|
-
white-space: normal;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.no-wrap:not(menu) {
|
|
43
|
-
display: flex;
|
|
44
|
-
white-space: nowrap;
|
|
45
|
-
}
|
|
1
|
+
[class*=-width] {
|
|
2
|
+
max-inline-size: 100%;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.auto-width {
|
|
6
|
+
inline-size: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.small-width {
|
|
10
|
+
inline-size: 12rem !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.medium-width {
|
|
14
|
+
inline-size: 24rem !important;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.large-width {
|
|
18
|
+
inline-size: 36rem !important;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.auto-height {
|
|
22
|
+
block-size: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.small-height {
|
|
26
|
+
block-size: 12rem !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.medium-height {
|
|
30
|
+
block-size: 24rem !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.large-height {
|
|
34
|
+
block-size: 36rem !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.wrap {
|
|
38
|
+
display: block;
|
|
39
|
+
white-space: normal;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.no-wrap:not(menu) {
|
|
43
|
+
display: flex;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.tiny-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
2
|
-
block-size: 0.5rem;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
:is(.space, .small-space):not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
6
|
-
block-size: 1rem;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.medium-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
10
|
-
block-size: 2rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.large-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
14
|
-
block-size: 3rem;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.extra-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
18
|
-
block-size: 4rem;
|
|
19
|
-
}
|
|
1
|
+
.tiny-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
2
|
+
block-size: 0.5rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:is(.space, .small-space):not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
6
|
+
block-size: 1rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.medium-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
10
|
+
block-size: 2rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.large-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
14
|
+
block-size: 3rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.extra-space:not(nav, .row, .grid, table, .tooltip, .list, menu, .shape) {
|
|
18
|
+
block-size: 4rem;
|
|
19
|
+
}
|