From 27673cfab7fb6ca5dc554f53581bf4b7fc8fc772 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Fri, 27 Oct 2017 14:07:53 -0400 Subject: [PATCH] Add responsive example for flex justify content --- .../styles/flexbox/justify-content.blade.md | 69 ++++++++++++++++--- 1 file changed, 59 insertions(+), 10 deletions(-) diff --git a/docs/source/styles/flexbox/justify-content.blade.md b/docs/source/styles/flexbox/justify-content.blade.md index 31c1bd244..0f50b479b 100644 --- a/docs/source/styles/flexbox/justify-content.blade.md +++ b/docs/source/styles/flexbox/justify-content.blade.md @@ -6,15 +6,15 @@ category: "Flexbox" # Justify Content - @endcomponent -## Center +### Center Use `.justify-center` to justify items along the center of the flex container's main axis: @@ -38,7 +38,7 @@ Use `.justify-center` to justify items along the center of the flex container's @endcomponent -## End +### End Use `.justify-end` to justify items against the end of the flex container's main axis: @@ -51,7 +51,7 @@ Use `.justify-end` to justify items against the end of the flex container's main @endcomponent -## Space between +### Space between Use `.justify-between` to justify items along the flex container's main axis such that there is an equal amount of space between each item: @@ -63,7 +63,7 @@ Use `.justify-between` to justify items along the flex container's main axis suc @endcomponent -## Space around +### Space around Use `.justify-around` to justify items along the flex container's main axis such that there is an equal amount of space around each item: @@ -74,3 +74,52 @@ Use `.justify-around` to justify items along the flex container's main axis such
3
@endcomponent + +## Responsive + +To justify flex items at a specific breakpoint, add a `{breakpoint}:` prefix to any existing utility class. For example, use `md:justify-between` to apply the `justify-between` utility at only medium screen sizes and above. + +For more information about Tailwind's responsive design features, check out the [Responsive Design](#) documentation. + +@component('_partials.responsive-code-sample') +@slot('none') +
+
1
+
2
+
3
+
+@endslot +@slot('sm') +
+
1
+
2
+
3
+
+@endslot +@slot('md') +
+
1
+
2
+
3
+
+@endslot +@slot('lg') +
+
1
+
2
+
3
+
+@endslot +@slot('xl') +
+
1
+
2
+
3
+
+@endslot +@slot('code') +
+ +
+@endslot +@endcomponent