From dd480cf56aebe7bf121216041bbfd4d32fa1ad28 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Thu, 3 Aug 2017 07:59:40 -0400 Subject: [PATCH] Add position documentation. --- docs/source/position.blade.php | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/docs/source/position.blade.php b/docs/source/position.blade.php index 41df464f8..d607b1237 100644 --- a/docs/source/position.blade.php +++ b/docs/source/position.blade.php @@ -4,4 +4,42 @@

Position

+

The position utilities are primarily position display property helpers.

+ +

Using the utilities in HTML:

+ +
{{ '
+
+
' }}
+ +

Using the utilities in Less:

+ +
div {
+  .fixed;
+  .absolute;
+  .relative;
+}
+ +

Pinning absolute content

+ +

Tailwind also provides pin utilties, useful for "pinning" absolutely positioned elements using the top, right, bottom and left properties.

+ +

Using the utilities in HTML:

+ +
{{ '
+
+
' }}
+ +

Using the utilities in Less:

+ +
div {
+  .pin-t
+  .pin-r
+  .pin-b
+  .pin-l
+  .pin-y
+  .pin-x
+  .pin
+}
+ @endsection