Add badges + cheatsheet table for text color docs

This commit is contained in:
Jonathan Reinink 2017-10-31 14:09:07 -04:00
parent 6b47a4e149
commit 44cc311fdf

View File

@ -5,8 +5,34 @@ title: "Text Color"
# Text Color
<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 text color of an element.
</div>
@include('_partials.feature-badges', [
'responsive' => true,
'customizable' => true,
'hover' => true,
'focus' => false
])
<div class="border-t border-grey-lighter">
<table class="w-full text-left" style="border-collapse: collapse;">
<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">
@foreach ($page->config['colors'] as $name => $value)
<tr>
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark whitespace-no-wrap">.text-{{ $name }}</td>
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark whitespace-no-wrap">color: {{ $value }};</td>
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the text color of an element to {{ str_replace('-', ' ' , $name) }}.</td>
</tr>
@endforeach
</tbody>
</table>
</div>