From 6518e8265af4a333c4744979a148d4919844ddcd Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Sun, 19 Nov 2017 15:55:58 -0500 Subject: [PATCH] Use class table partial for sizing docs pages --- docs/source/docs/height.blade.md | 192 ++++++++--------- docs/source/docs/max-height.blade.md | 42 ++-- docs/source/docs/max-width.blade.md | 122 +++++------ docs/source/docs/min-height.blade.md | 52 ++--- docs/source/docs/min-width.blade.md | 42 ++-- docs/source/docs/width.blade.md | 302 +++++++++++++-------------- 6 files changed, 334 insertions(+), 418 deletions(-) diff --git a/docs/source/docs/height.blade.md b/docs/source/docs/height.blade.md index 3d6d9ef99..8a20aedd6 100644 --- a/docs/source/docs/height.blade.md +++ b/docs/source/docs/height.blade.md @@ -11,106 +11,92 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.h-1height: 0.25rem;Set the element's height to 0.25rem.
.h-2height: 0.5rem;Set the element's height to 0.5rem.
.h-3height: 0.75rem;Set the element's height to 0.75rem.
.h-4height: 1rem;Set the element's height to 1rem.
.h-6height: 1.5rem;Set the element's height to 1.5rem.
.h-8height: 2rem;Set the element's height to 2rem.
.h-10height: 2.5rem;Set the element's height to 2.5rem.
.h-12height: 3rem;Set the element's height to 3rem.
.h-16height: 4rem;Set the element's height to 4rem.
.h-24height: 6rem;Set the element's height to 6rem.
.h-32height: 8rem;Set the element's height to 8rem.
.h-48height: 12rem;Set the element's height to 12rem.
.h-64height: 16rem;Set the element's height to 16rem.
.h-autoheight: auto;Set the element's height to auto.
.h-pxheight: 1px;Set the element's height to 1px.
.h-fullheight: 100%;Set the element's height to 100%.
.h-screenheight: 100vh;Set the element's height to 100vh.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.h-1', + 'height: 0.25rem;', + "Set the element's height to 0.25rem.", + ], + [ + '.h-2', + 'height: 0.5rem;', + "Set the element's height to 0.5rem.", + ], + [ + '.h-3', + 'height: 0.75rem;', + "Set the element's height to 0.75rem.", + ], + [ + '.h-4', + 'height: 1rem;', + "Set the element's height to 1rem.", + ], + [ + '.h-6', + 'height: 1.5rem;', + "Set the element's height to 1.5rem.", + ], + [ + '.h-8', + 'height: 2rem;', + "Set the element's height to 2rem.", + ], + [ + '.h-10', + 'height: 2.5rem;', + "Set the element's height to 2.5rem.", + ], + [ + '.h-12', + 'height: 3rem;', + "Set the element's height to 3rem.", + ], + [ + '.h-16', + 'height: 4rem;', + "Set the element's height to 4rem.", + ], + [ + '.h-24', + 'height: 6rem;', + "Set the element's height to 6rem.", + ], + [ + '.h-32', + 'height: 8rem;', + "Set the element's height to 8rem.", + ], + [ + '.h-48', + 'height: 12rem;', + "Set the element's height to 12rem.", + ], + [ + '.h-64', + 'height: 16rem;', + "Set the element's height to 16rem.", + ], + [ + '.h-auto', + 'height: auto;', + "Set the element's height to auto.", + ], + [ + '.h-px', + 'height: 1px;', + "Set the element's height to 1px.", + ], + [ + '.h-full', + 'height: 100%;', + "Set the element's height to 100%.", + ], + [ + '.h-screen', + 'height: 100vh;', + "Set the element's height to 100vh.", + ], + ] +]) diff --git a/docs/source/docs/max-height.blade.md b/docs/source/docs/max-height.blade.md index 887e62ed0..89d8bc012 100644 --- a/docs/source/docs/max-height.blade.md +++ b/docs/source/docs/max-height.blade.md @@ -11,31 +11,17 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.max-h-fullmax-height: 100%;Set the element's maximum height to 100%.
.max-h-screenmax-height: 100vh;Set the element's maximum height to 100vh.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.max-h-full', + 'max-height: 100%;', + "Set the element's maximum height to 100%.", + ], + [ + '.max-h-screen', + 'max-height: 100vh;', + "Set the element's maximum height to 100vh.", + ], + ] +]) diff --git a/docs/source/docs/max-width.blade.md b/docs/source/docs/max-width.blade.md index d7a3c5e05..9aa5e05a4 100644 --- a/docs/source/docs/max-width.blade.md +++ b/docs/source/docs/max-width.blade.md @@ -11,71 +11,57 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.max-w-xsmax-width: 20rem;Set the element's maximum width to 20rem.
.max-w-smmax-width: 30rem;Set the element's maximum width to 30rem.
.max-w-mdmax-width: 40rem;Set the element's maximum width to 40rem.
.max-w-lgmax-width: 50rem;Set the element's maximum width to 50rem.
.max-w-xlmax-width: 60rem;Set the element's maximum width to 60rem.
.max-w-2xlmax-width: 70rem;Set the element's maximum width to 70rem.
.max-w-3xlmax-width: 80rem;Set the element's maximum width to 80rem.
.max-w-4xlmax-width: 90rem;Set the element's maximum width to 90rem.
.max-w-5xlmax-width: 100rem;Set the element's maximum width to 100rem.
.max-w-fullmax-width: 100%;Set the element's maximum width to 100%.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.max-w-xs', + 'max-width: 20rem;', + "Set the element's maximum width to 20rem.", + ], + [ + '.max-w-sm', + 'max-width: 30rem;', + "Set the element's maximum width to 30rem.", + ], + [ + '.max-w-md', + 'max-width: 40rem;', + "Set the element's maximum width to 40rem.", + ], + [ + '.max-w-lg', + 'max-width: 50rem;', + "Set the element's maximum width to 50rem.", + ], + [ + '.max-w-xl', + 'max-width: 60rem;', + "Set the element's maximum width to 60rem.", + ], + [ + '.max-w-2xl', + 'max-width: 70rem;', + "Set the element's maximum width to 70rem.", + ], + [ + '.max-w-3xl', + 'max-width: 80rem;', + "Set the element's maximum width to 80rem.", + ], + [ + '.max-w-4xl', + 'max-width: 90rem;', + "Set the element's maximum width to 90rem.", + ], + [ + '.max-w-5xl', + 'max-width: 100rem;', + "Set the element's maximum width to 100rem.", + ], + [ + '.max-w-full', + 'max-width: 100%;', + "Set the element's maximum width to 100%.", + ], + ] +]) diff --git a/docs/source/docs/min-height.blade.md b/docs/source/docs/min-height.blade.md index 247162589..a0495f98c 100644 --- a/docs/source/docs/min-height.blade.md +++ b/docs/source/docs/min-height.blade.md @@ -11,36 +11,22 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.min-h-0min-height: 0;Set the element's minimum height to 0.
.min-h-fullmin-height: 100%;Set the element's minimum height to 100%.
.min-h-screenmin-height: 100vh;Set the element's minimum height to 100vh.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.min-h-0', + 'min-height: 0;', + "Set the element's minimum height to 0.", + ], + [ + '.min-h-full', + 'min-height: 100%;', + "Set the element's minimum height to 100%.", + ], + [ + '.min-h-screen', + 'min-height: 100vh;', + "Set the element's minimum height to 100vh.", + ], + ] +]) diff --git a/docs/source/docs/min-width.blade.md b/docs/source/docs/min-width.blade.md index b1055d746..954df1953 100644 --- a/docs/source/docs/min-width.blade.md +++ b/docs/source/docs/min-width.blade.md @@ -11,31 +11,17 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.min-w-0min-width: 0;Set the element's minimum width to 0.
.min-w-fullmin-width: 100%;Set the element's minimum width to 100%.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.min-w-0', + 'min-width: 0;', + "Set the element's minimum width to 0.", + ], + [ + '.min-w-full', + 'min-width: 100%;', + "Set the element's minimum width to 100%.", + ], + ] +]) diff --git a/docs/source/docs/width.blade.md b/docs/source/docs/width.blade.md index 440ab7cc4..9631eb17c 100644 --- a/docs/source/docs/width.blade.md +++ b/docs/source/docs/width.blade.md @@ -11,161 +11,147 @@ features: @include('_partials.work-in-progress') -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ClassPropertiesDescription
.w-1width: 0.25rem;Set the element's width to 0.25rem.
.w-2width: 0.5rem;Set the element's width to 0.5rem.
.w-3width: 0.75rem;Set the element's width to 0.75rem.
.w-4width: 1rem;Set the element's width to 1rem.
.w-6width: 1.5rem;Set the element's width to 1.5rem.
.w-8width: 2rem;Set the element's width to 2rem.
.w-10width: 2.5rem;Set the element's width to 2.5rem.
.w-12width: 3rem;Set the element's width to 3rem.
.w-16width: 4rem;Set the element's width to 4rem.
.w-24width: 6rem;Set the element's width to 6rem.
.w-32width: 8rem;Set the element's width to 8rem.
.w-48width: 12rem;Set the element's width to 12rem.
.w-64width: 16rem;Set the element's width to 16rem.
.w-autowidth: auto;Set the element's width to auto.
.w-pxwidth: 1px;Set the element's width to 1px.
.w-1/2width: 50%;Set the element's width to 50%.
.w-1/3width: 33.33333%;Set the element's width to 33.33333%.
.w-2/3width: 66.66667%;Set the element's width to 66.66667%.
.w-1/4width: 25%;Set the element's width to 25%.
.w-3/4width: 75%;Set the element's width to 75%.
.w-1/5width: 20%;Set the element's width to 20%.
.w-2/5width: 40%;Set the element's width to 40%.
.w-3/5width: 60%;Set the element's width to 60%.
.w-4/5width: 80%;Set the element's width to 80%.
.w-1/6width: 16.66667%;Set the element's width to 16.66667%.
.w-5/6width: 83.33333%;Set the element's width to 83.33333%.
.w-fullwidth: 100%;Set the element's width to 100%.
.w-screenwidth: 100vw;Set the element's width to 100vw.
-
+@include('_partials.class-table', [ + 'rows' => [ + [ + '.w-1', + 'width: 0.25rem;', + "Set the element's width to 0.25rem.", + ], + [ + '.w-2', + 'width: 0.5rem;', + "Set the element's width to 0.5rem.", + ], + [ + '.w-3', + 'width: 0.75rem;', + "Set the element's width to 0.75rem.", + ], + [ + '.w-4', + 'width: 1rem;', + "Set the element's width to 1rem.", + ], + [ + '.w-6', + 'width: 1.5rem;', + "Set the element's width to 1.5rem.", + ], + [ + '.w-8', + 'width: 2rem;', + "Set the element's width to 2rem.", + ], + [ + '.w-10', + 'width: 2.5rem;', + "Set the element's width to 2.5rem.", + ], + [ + '.w-12', + 'width: 3rem;', + "Set the element's width to 3rem.", + ], + [ + '.w-16', + 'width: 4rem;', + "Set the element's width to 4rem.", + ], + [ + '.w-24', + 'width: 6rem;', + "Set the element's width to 6rem.", + ], + [ + '.w-32', + 'width: 8rem;', + "Set the element's width to 8rem.", + ], + [ + '.w-48', + 'width: 12rem;', + "Set the element's width to 12rem.", + ], + [ + '.w-64', + 'width: 16rem;', + "Set the element's width to 16rem.", + ], + [ + '.w-auto', + 'width: auto;', + "Set the element's width to auto.", + ], + [ + '.w-px', + 'width: 1px;', + "Set the element's width to 1px.", + ], + [ + '.w-1/2', + 'width: 50%;', + "Set the element's width to 50%.", + ], + [ + '.w-1/3', + 'width: 33.33333%;', + "Set the element's width to 33.33333%.", + ], + [ + '.w-2/3', + 'width: 66.66667%;', + "Set the element's width to 66.66667%.", + ], + [ + '.w-1/4', + 'width: 25%;', + "Set the element's width to 25%.", + ], + [ + '.w-3/4', + 'width: 75%;', + "Set the element's width to 75%.", + ], + [ + '.w-1/5', + 'width: 20%;', + "Set the element's width to 20%.", + ], + [ + '.w-2/5', + 'width: 40%;', + "Set the element's width to 40%.", + ], + [ + '.w-3/5', + 'width: 60%;', + "Set the element's width to 60%.", + ], + [ + '.w-4/5', + 'width: 80%;', + "Set the element's width to 80%.", + ], + [ + '.w-1/6', + 'width: 16.66667%;', + "Set the element's width to 16.66667%.", + ], + [ + '.w-5/6', + 'width: 83.33333%;', + "Set the element's width to 83.33333%.", + ], + [ + '.w-full', + 'width: 100%;', + "Set the element's width to 100%.", + ], + [ + '.w-screen', + 'width: 100vw;', + "Set the element's width to 100vw.", + ], + ] +])