Skip to content

Commit ea1ffb3

Browse files
committed
Tweak snippets on mask-repeat page
1 parent 6580345 commit ea1ffb3

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

src/docs/mask-repeat.mdx

+12-6
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ Use the `mask-repeat` utility to repeat the mask image both vertically and horiz
3636
}
3737
</Example>
3838

39+
{/* prettier-ignore */}
3940
```html
4041
<!-- [!code classes:mask-repeat] -->
41-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-repeat ..."></div>
42+
<div class="mask-repeat mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)] ..."></div>
4243
```
4344

4445
</Figure>
@@ -59,9 +60,10 @@ Use the `mask-repeat-x` utility to only repeat the mask image horizontally:
5960
}
6061
</Example>
6162

63+
{/* prettier-ignore */}
6264
```html
6365
<!-- [!code classes:mask-repeat-x] -->
64-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-repeat-x ..."></div>
66+
<div class="mask-repeat-x mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)]..."></div>
6567
```
6668

6769
</Figure>
@@ -82,9 +84,10 @@ Use the `mask-repeat-y` utility to only repeat the mask image vertically:
8284
}
8385
</Example>
8486

87+
{/* prettier-ignore */}
8588
```html
8689
<!-- [!code classes:mask-repeat-y] -->
87-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-repeat-y ..."></div>
90+
<div class="mask-repeat-y mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)]..."></div>
8891
```
8992

9093
</Figure>
@@ -105,9 +108,10 @@ Use the `mask-repeat-space` utility to repeat the mask image without clipping:
105108
}
106109
</Example>
107110

111+
{/* prettier-ignore */}
108112
```html
109113
<!-- [!code classes:mask-repeat-space] -->
110-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-repeat-space ..."></div>
114+
<div class="mask-repeat-space mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)] ..."></div>
111115
```
112116

113117
</Figure>
@@ -128,9 +132,10 @@ Use the `mask-repeat-round` utility to repeat the mask image without clipping, s
128132
}
129133
</Example>
130134

135+
{/* prettier-ignore */}
131136
```html
132137
<!-- [!code classes:mask-repeat-round] -->
133-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-repeat-round ..."></div>
138+
<div class="mask-repeat-round mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)] ..."></div>
134139
```
135140

136141
</Figure>
@@ -151,9 +156,10 @@ Use the `mask-no-repeat` utility to prevent a mask image from repeating:
151156
}
152157
</Example>
153158

159+
{/* prettier-ignore */}
154160
```html
155161
<!-- [!code classes:mask-no-repeat] -->
156-
<div class="mask-[url(/img/circle.png)] mask-size-[50px_50px] mask-no-repeat ..."></div>
162+
<div class="mask-no-repeat mask-[url(/img/circle.png)] mask-size-[50px_50px] bg-[url(/img/mountains.jpg)] ..."></div>
157163
```
158164

159165
</Figure>

0 commit comments

Comments
 (0)