Skip to content

Commit b0d84b8

Browse files
committed
Minify styles
1 parent c21dd8f commit b0d84b8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/src/client/color-switch/color-switch.module.scss

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
border-radius: 50%;
77
border: 1px dashed gray;
88
cursor: pointer;
9-
--size: 25px;
10-
height: var(--size);
11-
width: var(--size);
9+
--s: 25px;
10+
height: var(--s);
11+
width: var(--s);
1212
transition: all 0.3s ease-in-out 0s !important;
1313
}
1414

@@ -21,7 +21,7 @@
2121
top: 0;
2222
left: 0;
2323
font-weight: 600;
24-
font-size: calc(1 * var(--size) / 2);
24+
font-size: calc(1 * var(--s) / 2);
2525
display: flex;
2626
align-items: center;
2727
justify-content: center;
@@ -31,7 +31,7 @@
3131
[data-csp="dark"] .s,
3232
[data-csp="dark"] ~ .s,
3333
[data-csp="dark"] ~ * .s {
34-
box-shadow: calc(var(--size) / 4) calc(var(--size) / -4) calc(var(--size) / 8) inset #fff;
34+
box-shadow: calc(var(--s) / 4) calc(var(--s) / -4) calc(var(--s) / 8) inset #fff;
3535
border: none;
3636
background: transparent;
3737
animation: a linear 0.5s;

lib/src/client/color-switch/color-switch.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ export const ColorSwitch = ({
3333
}: ColorSwitchProps) => {
3434
const { toggleColorScheme } = useTheme(targetSelector);
3535

36-
const cls = [styles["color-switch"], className].join(" ");
36+
const cls = [styles.s, className].join(" ");
3737
return (
3838
<button
3939
className={cls}
4040
data-testid="color-switch"
4141
// skipcq: JS-0417
4242
onClick={() => toggleColorScheme(skipSystem)}
4343
// @ts-expect-error -- setting custom attribute
44-
style={{ "--size": `${size}px` }}
44+
style={{ "--s": `${size}px` }}
4545
{...props}
4646
/>
4747
);

0 commit comments

Comments
 (0)