diff --git a/source/docs/positioning.blade.md b/source/docs/positioning.blade.md index b16732f0a..1bf18f208 100644 --- a/source/docs/positioning.blade.md +++ b/source/docs/positioning.blade.md @@ -37,45 +37,75 @@ features: "Position an element relatively until its containing block crosses a specified threshold, then position it relative to the viewport.", ], [ - '.pin-t', + '.top-0', "top: 0;", "Anchor absolutely positioned element to the top edge of the nearest positioned parent.", ], [ - '.pin-r', + '.right-0', "right: 0;", "Anchor absolutely positioned element to the right edge of the nearest positioned parent.", ], [ - '.pin-b', + '.bottom-0', "bottom: 0;", "Anchor absolutely positioned element to the bottom edge of the nearest positioned parent.", ], [ - '.pin-l', + '.left-0', "left: 0;", "Anchor absolutely positioned element to the left edge of the nearest positioned parent.", ], [ - '.pin-y', + '.inset-y-0', "top: 0;\nbottom: 0;", "Anchor absolutely positioned element to the top and bottom edges of the nearest positioned parent.", ], [ - '.pin-x', + '.inset-x-0', "right: 0;\nleft: 0;", "Anchor absolutely positioned element to the left and right edges of the nearest positioned parent.", ], [ - '.pin', + '.inset-0', "top: 0;\nright: 0;\nbottom: 0;\nleft: 0;", "Anchor absolutely positioned element to all the edges of the nearest positioned parent.", ], [ - '.pin-none', + '.inset-auto', "top: auto;\nright: auto;\nbottom: auto;\nleft: auto;", "Reset absolutely positioned element to all the edges from a given breakpoint onwards.", ], + [ + '.top-auto', + "top: auto;", + "Reset absolutely positioned element to the top edge", + ], + [ + '.bottom-auto', + "bottom: auto;", + "Reset absolutely positioned element to the bottom edge", + ], + [ + '.left-auto', + "left: auto;", + "Reset absolutely positioned element to the left edge", + ], + [ + '.right-auto', + "right: auto;", + "Reset absolutely positioned element to the right edge", + ], + [ + '.inset-y-auto', + "top: auto;\nbottom: auto;", + "Reset absolutely positioned element to the top and bottom edge", + ], + [ + '.inset-x-auto', + "left: auto;\nright: auto;", + "Reset absolutely positioned element to the left and right edge", + ], ] ]) @@ -89,7 +119,7 @@ Any offsets will be ignored and the element will not act as a position reference
Static parent
-Absolute child
Relative parent
-Absolute child
Relative parent
Static parent
-Static child
Relative parent
Static parent
-Absolute child
Scroll me!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum. Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa. Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales ligula in libero.
Sed dignissim lacinia nunc. Curabitur tortor. Pellentesque nibh. Aenean quam. In scelerisque sem at dolor. Maecenas mattis. Sed convallis tristique sem. Proin ut ligula vel nunc egestas porttitor. Morbi lectus risus, iaculis vel, suscipit quis, luctus non, massa. Fusce ac turpis quis ligula lacinia aliquet. Mauris ipsum. Nulla metus metus, ullamcorper vel, tincidunt sed, euismod in, nibh. Quisque volutpat condimentum velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
@@ -227,7 +257,7 @@ Offsets are calculated relative to the viewport and the element *will* act as aQuisque cursus...
Integer lacinia...
Nullam mauris...
pin
top|right|bottom|left|inset
All (default)t
Topr
Rightb
Bottoml
Lefty
Top and Bottomx
Left and Right0
0auto
auto.pin-x.pin-t
+.inset-x-0.top-0
.pin-y.pin-r
+.inset-y-0.right-0
.pin-x.pin-b
+.inset-x-0.bottom-0
.pin-y.pin-l
+.inset-y-0.left-0
.pin
+.inset-0
.pin-l.pin-t
+.left-0.top-0
.pin-t.pin-r
+.top-0.right-0
.pin-r.pin-b
+.right-0.bottom-0
.pin-b.pin-l
+.bottom-0.left-0