Skip to content

Commit ee07b0c

Browse files
committed
Support thin stripes
1 parent a83a36e commit ee07b0c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/app/conf/_design-system/stripes-decoration.tsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
11
import clsx from "clsx"
22

3-
const maskEven =
3+
const maskEvenWide =
44
"repeating-linear-gradient(to right, transparent, transparent 12px, black 12px, black 24px)"
55

6-
const maskOdd =
6+
const maskOddWide =
77
"repeating-linear-gradient(to right, black, black 12px, transparent 12px, transparent 24px)"
88

9+
const maskEvenThin =
10+
"repeating-linear-gradient(to right, transparent, transparent 5.2px, black 5.2px, black 10.4px)"
11+
12+
const maskOddThin =
13+
"repeating-linear-gradient(to right, black, black 5.2px, transparent 5.2px, transparent 10.4px)"
14+
915
export interface StripesDecorationProps {
1016
evenClassName?: string
1117
oddClassName?: string
18+
thin?: boolean
1219
}
1320

1421
export function StripesDecoration(props: StripesDecorationProps) {
22+
const [maskEven, maskOdd] = props.thin
23+
? [maskEvenThin, maskOddThin]
24+
: [maskEvenWide, maskOddWide]
25+
1526
return (
1627
<>
1728
{props.evenClassName && (

0 commit comments

Comments
 (0)