Add badges + cheatsheet table for line height docs

This commit is contained in:
Jonathan Reinink 2017-10-31 12:54:17 -04:00
parent 97c4500c2f
commit 33b9de70d8

View File

@ -5,8 +5,52 @@ title: "Line Height"
# Line Height
<div class="subnav">
<a class="subnav-link" href="#usage">Usage</a>
<a class="subnav-link" href="#responsive">Responsive</a>
<a class="subnav-link" href="#customizing">Customizing</a>
<div class="text-xl text-slate-light mb-4">
Utilities for controlling the leading (line height) of an element.
</div>
@include('_partials.feature-badges', [
'responsive' => true,
'customizable' => true,
'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-2/5">
<col class="w-2/5">
</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 font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-none</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-tight</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1.25;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1.25</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-normal</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 1.5;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>1.5</code>.</td>
</tr>
<tr>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.leading-loose</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">line-height: 2;</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the line height of an element to <code>2</code>.</td>
</tr>
</tbody>
</table>
</div>