Skip to content

Commit 2b28e89

Browse files
committed
Use class table partial for z-index docs
1 parent 123109b commit 2b28e89

File tree

1 file changed

+39
-53
lines changed

1 file changed

+39
-53
lines changed

docs/source/docs/z-index.blade.md

Lines changed: 39 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -9,59 +9,45 @@ features:
99
focus: false
1010
---
1111

12-
<div class="border-t border-grey-lighter">
13-
<table class="w-full text-left table-collapse">
14-
<colgroup>
15-
<col class="w-1/5">
16-
<col class="w-1/3">
17-
<col>
18-
</colgroup>
19-
<thead>
20-
<tr>
21-
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Class</th>
22-
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Properties</th>
23-
<th class="text-sm font-semibold text-grey-darker p-2 bg-grey-lightest">Description</th>
24-
</tr>
25-
</thead>
26-
<tbody class="align-baseline">
27-
<tr>
28-
<td class="p-2 border-t border-smoke font-mono text-xs text-purple-dark">.z-0</td>
29-
<td class="p-2 border-t border-smoke font-mono text-xs text-blue-dark">z-index: 0;</td>
30-
<td class="p-2 border-t border-smoke text-sm text-grey-darker">Set the z-index of the element to 0.</td>
31-
</tr>
32-
<tr>
33-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-10</td>
34-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: 10;</td>
35-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the z-index of the element to 10.</td>
36-
</tr>
37-
<tr>
38-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-20</td>
39-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: 20;</td>
40-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the z-index of the element to 20.</td>
41-
</tr>
42-
<tr>
43-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-30</td>
44-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: 30;</td>
45-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the z-index of the element to 30.</td>
46-
</tr>
47-
<tr>
48-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-40</td>
49-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: 40;</td>
50-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the z-index of the element to 40.</td>
51-
</tr>
52-
<tr>
53-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-50</td>
54-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: 50;</td>
55-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Set the z-index of the element to 50.</td>
56-
</tr>
57-
<tr>
58-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-purple-dark">.z-auto</td>
59-
<td class="p-2 border-t border-smoke-light font-mono text-xs text-blue-dark">z-index: auto;</td>
60-
<td class="p-2 border-t border-smoke-light text-sm text-grey-darker">Don't create a new stacking context.</td>
61-
</tr>
62-
</tbody>
63-
</table>
64-
</div>
12+
@include('_partials.class-table', [
13+
'rows' => [
14+
[
15+
'.z-0',
16+
'z-index: 0;',
17+
"Set the z-index of the element to 0.",
18+
],
19+
[
20+
'.z-10',
21+
'z-index: 10;',
22+
"Set the z-index of the element to 10.",
23+
],
24+
[
25+
'.z-20',
26+
'z-index: 20;',
27+
"Set the z-index of the element to 20.",
28+
],
29+
[
30+
'.z-30',
31+
'z-index: 30;',
32+
"Set the z-index of the element to 30.",
33+
],
34+
[
35+
'.z-40',
36+
'z-index: 40;',
37+
"Set the z-index of the element to 40.",
38+
],
39+
[
40+
'.z-50',
41+
'z-index: 50;',
42+
"Set the z-index of the element to 50.",
43+
],
44+
[
45+
'.z-auto',
46+
'z-index: auto;',
47+
"Don't create a new stacking context.",
48+
],
49+
]
50+
])
6551

6652
## Usage
6753

0 commit comments

Comments
 (0)