-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add class-table partial to make class tables more maintainable
- Loading branch information
1 parent
2f1d89d
commit 35c7671
Showing
3 changed files
with
82 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="border-t border-grey-lighter"> | ||
<table class="w-full text-left table-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 ($rows as $row) | ||
<tr> | ||
<td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-purple-dark whitespace-no-wrap">{{ $row[0] }}</td> | ||
<td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} font-mono text-xs text-blue-dark whitespace-pre">{{ $row[1] }}</td> | ||
<td class="p-2 border-t {{ $loop->first ? 'border-smoke' : 'border-smoke-light' }} text-sm text-grey-darker">{{ $row[2] }}</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters