Skip to content

Commit ddec371

Browse files
committed
Fix class order on background-position page
1 parent 254bad1 commit ddec371

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/docs/background-position.mdx

+8-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Use utilities like `bg-center`, `bg-right`, and `bg-top-left` to control the pos
3939
bg-top-left
4040
</p>
4141
<div className="group relative mx-auto h-20 w-20 rounded-lg">
42-
<div className="bg-top-left relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] outline -outline-offset-1 outline-black/10"></div>
42+
<div className="relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] bg-top-left outline -outline-offset-1 outline-black/10"></div>
4343
<img
4444
className="absolute top-0 left-0 h-32 w-32 max-w-none overflow-hidden rounded-md opacity-0 sm:group-hover:opacity-25"
4545
src="https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90"
@@ -63,7 +63,7 @@ Use utilities like `bg-center`, `bg-right`, and `bg-top-left` to control the pos
6363
bg-top-right
6464
</p>
6565
<div className="group relative mx-auto h-20 w-20 rounded-lg">
66-
<div className="bg-top-right relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] outline -outline-offset-1 outline-black/10"></div>
66+
<div className="relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] bg-top-right outline -outline-offset-1 outline-black/10"></div>
6767
<img
6868
className="absolute top-0 right-0 h-32 w-32 max-w-none overflow-hidden rounded-md opacity-0 sm:group-hover:opacity-25"
6969
src="https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90"
@@ -111,7 +111,7 @@ Use utilities like `bg-center`, `bg-right`, and `bg-top-left` to control the pos
111111
bg-bottom-left
112112
</p>
113113
<div className="group relative mx-auto h-20 w-20 rounded-lg">
114-
<div className="bg-bottom-left relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] outline -outline-offset-1 outline-black/10"></div>
114+
<div className="relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] bg-bottom-left outline -outline-offset-1 outline-black/10"></div>
115115
<img
116116
className="absolute -top-12 left-0 h-32 w-32 max-w-none overflow-hidden rounded-md opacity-0 sm:group-hover:opacity-25"
117117
src="https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90"
@@ -135,7 +135,7 @@ Use utilities like `bg-center`, `bg-right`, and `bg-top-left` to control the pos
135135
bg-bottom-right
136136
</p>
137137
<div className="group relative mx-auto h-20 w-20 rounded-lg">
138-
<div className="bg-bottom-right relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] outline -outline-offset-1 outline-black/10"></div>
138+
<div className="relative z-10 h-full w-full rounded-md bg-[url(https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90)] bg-[size:8rem] bg-bottom-right outline -outline-offset-1 outline-black/10"></div>
139139
<img
140140
className="absolute -top-12 right-0 h-32 w-32 max-w-none overflow-hidden rounded-md opacity-0 sm:group-hover:opacity-25"
141141
src="https://images.unsplash.com/photo-1554629947-334ff61d85dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1000&h=1000&q=90"
@@ -149,15 +149,15 @@ Use utilities like `bg-center`, `bg-right`, and `bg-top-left` to control the pos
149149

150150
```html
151151
<!-- [!code classes:bg-top-left,bg-top-right,bg-bottom-right,bg-bottom-left,bg-center,bg-right,bg-top,bg-bottom,bg-left] -->
152-
<div class="bg-top-left bg-[url(/img/mountains.jpg)]"></div>
152+
<div class="bg-[url(/img/mountains.jpg)] bg-top-left"></div>
153153
<div class="bg-[url(/img/mountains.jpg)] bg-top"></div>
154-
<div class="bg-top-right bg-[url(/img/mountains.jpg)]"></div>
154+
<div class="bg-[url(/img/mountains.jpg)] bg-top-right"></div>
155155
<div class="bg-[url(/img/mountains.jpg)] bg-left"></div>
156156
<div class="bg-[url(/img/mountains.jpg)] bg-center"></div>
157157
<div class="bg-[url(/img/mountains.jpg)] bg-right"></div>
158-
<div class="bg-bottom-left bg-[url(/img/mountains.jpg)]"></div>
158+
<div class="bg-[url(/img/mountains.jpg)] bg-bottom-left"></div>
159159
<div class="bg-[url(/img/mountains.jpg)] bg-bottom"></div>
160-
<div class="bg-bottom-right bg-[url(/img/mountains.jpg)]"></div>
160+
<div class="bg-[url(/img/mountains.jpg)] bg-bottom-right"></div>
161161
```
162162

163163
</Figure>

0 commit comments

Comments
 (0)