Add badges + cheatsheet table for align content docs

This commit is contained in:
Adam Wathan 2017-10-29 19:42:46 -04:00
parent de7482feb6
commit 04d72053e2

View file

@ -6,18 +6,64 @@ category: "Flexbox"
# Align Content
<div class="text-xl text-slate-light">
<div class="text-xl text-slate-light mb-4">
Utilities for controlling how lines are positioned in multi-line flex containers.
</div>
<div class="subnav">
<a class="subnav-link" href="#usage" name="usage">Usage</a>
<a class="subnav-link" href="#responsive">Responsive</a>
@include('_partials.feature-badges', [
'responsive' => true,
'customizable' => false,
'hover' => false,
'focus' => false
])
<div class="border-t border-grey-lighter">
<table class="w-full text-left" style="border-collapse: collapse;">
<colgroup>
<col class="w-1/5">
<col class="w-1/3">
<col>
</colgroup>
<thead>
<tr>
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th>
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th>
</tr>
</thead>
<tbody class="align-baseline">
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.content-start</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">align-content: flex-start;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Pack lines against the start of the cross axis.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.content-center</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">align-content: center;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Pack lines in the center of the cross axis.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.content-end</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">align-content: flex-end;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Pack lines against the end of the cross axis.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.content-between</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">align-content: space-between;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Distribute lines along the cross axis by adding an equal amount of space between each line.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.content-around</td>
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">align-content: space-around;</td>
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Distribute lines along the cross axis by adding an equal amount of space around each line.</td>
</tr>
</tbody>
</table>
</div>
### Start <span class="ml-2 font-semibold text-slate-light text-sm uppercase tracking-wide">Default</span>
Use `.content-start` to pack lines in a flex container against the start of the main axis:
Use `.content-start` to pack lines in a flex container against the start of the cross axis:
@component('_partials.code-sample')
<div class="flex content-start flex-wrap bg-smoke-light h-48">
@ -41,7 +87,7 @@ Use `.content-start` to pack lines in a flex container against the start of the
### Center
Use `.content-center` to pack lines in a flex container in the center of the main axis:
Use `.content-center` to pack lines in a flex container in the center of the cross axis:
@component('_partials.code-sample')
<div class="flex content-center flex-wrap bg-smoke-light h-48">
@ -65,7 +111,7 @@ Use `.content-center` to pack lines in a flex container in the center of the mai
### End
Use `.content-end` to pack lines in a flex container against the end of the main axis:
Use `.content-end` to pack lines in a flex container against the end of the cross axis:
@component('_partials.code-sample')
<div class="flex content-end flex-wrap bg-smoke-light h-48">