From a53ea5935268d03369a6c9fcb0adf4f46b008a62 Mon Sep 17 00:00:00 2001 From: Jonathan Reinink Date: Sat, 28 Oct 2017 08:12:35 -0400 Subject: [PATCH] Add visibility docs --- docs/source/styles/visibility.blade.md | 70 +++++++++++ docs/source/styles/visibility.md | 154 ++++++++++++++++++++++++- 2 files changed, 220 insertions(+), 4 deletions(-) create mode 100644 docs/source/styles/visibility.blade.md diff --git a/docs/source/styles/visibility.blade.md b/docs/source/styles/visibility.blade.md new file mode 100644 index 000000000..74e775ec0 --- /dev/null +++ b/docs/source/styles/visibility.blade.md @@ -0,0 +1,70 @@ +--- +extends: _layouts.markdown +title: "Visibility" +--- + +# Visibility + + +
+ Utilities for controlling the visible of an element. +
+ + + + +### Visible Default + +Use `.visible` to make an element visible. This will typically be used as a reset when using the `.invisible` utility. + +@component('_partials.code-sample', ['class' => 'flex justify-center']) +
+@endcomponent + +### Invisible + +Use `.invisible` to hide an element, but still maintain it's space. + +@component('_partials.code-sample', ['class' => 'flex justify-center']) + +@endcomponent + + +## Responsive + +To apply an overflow utility only at a specific breakpoint, add a `{breakpoint}:` prefix to the existing class name. For example, adding the class `md:overflow-scroll` to an element would apply the `overflow-scroll` utility at medium screen sizes and above. + +For more information about Tailwind's responsive design features, check out the [Responsive Design](/workflow/responsive-design) documentation. + +@component('_partials.responsive-code-sample') +@slot('none') +
+
+
+@endslot +@slot('sm') +
+ +
+@endslot +@slot('md') +
+
+
+@endslot +@slot('lg') +
+ +
+@endslot +@slot('xl') +
+
+
+@endslot +@slot('code') +
+@endslot +@endcomponent diff --git a/docs/source/styles/visibility.md b/docs/source/styles/visibility.md index 1e071003a..d2d374bf8 100644 --- a/docs/source/styles/visibility.md +++ b/docs/source/styles/visibility.md @@ -5,8 +5,154 @@ title: "Visibility" # Visibility -