Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClayCSS (#1065) New Table helpers #1066

Merged
merged 3 commits into from
Aug 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions packages/clay-css/src/content/tables.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h3>Table List</h3>
</span>
</a>
</th>
<th>Status</th>
<th><span class="inline-item">Status</span></th>
<th class="table-head-title">
<span class="inline-item inline-item-before">
<a href="#1">
Expand All @@ -66,7 +66,7 @@ <h3>Table List</h3>
<span class="text-truncate" title="Modified Date">Modified Date</span>
</a>
</th>
<th>Display Date</th>
<th><span class="inline-item">Display Date</span></th>
<th class="table-head-title">
<a class="inline-item text-truncate-inline" href="#1">
<span class="text-truncate" title="Author">Author</span><span class="inline-item inline-item-after">
Expand All @@ -76,7 +76,7 @@ <h3>Table List</h3>
</span>
</a>
</th>
<th>Type</th>
<th><span class="inline-item">Type</span></th>
<th></th>
</tr>
</thead>
Expand Down Expand Up @@ -1226,6 +1226,10 @@ <h3>Table Helpers</h3>
<p><code>table-autofit</code> constrains table columns to be only as wide as its content, but must be used with <code>table-cell-expand</code>. <code>table-cell-expand</code> will fill the remaining space.</p>

<p>Use <code>table-cell-expand-small</code>, <code>table-cell-expand-smaller</code>, <code>table-cell-expand-smallest</code> with <code>table-cell-expand</code> to size columns smaller relative to the widest column.</p>

<p>We have added <code>table-cell-minw-50</code>, <code>table-cell-minw-75</code>, <code>table-cell-minw-100</code>, <code>table-cell-minw-150</code>, <code>table-cell-minw-200</code>, <code>table-cell-minw-250</code>, <code>table-cell-minw-300</code>, <code>table-cell-minw-350</code>, <code>table-cell-minw-400</code> to set <code>min-width</code> 50px, 75px, 100px, 150px, 200px, 250px, 300px, 350px, 400px on a specific table column, respectively.</p>

<p>The helpers <code>table-cell-ws-normal</code> and <code>table-cell-ws-nowrap</code> sets <code>white-space</code> to normal or nowrap on a specific table column, respectively.</p>
</blockquote>

<div class="table-responsive">
Expand All @@ -1234,14 +1238,14 @@ <h3>Table Helpers</h3>
<tr>
<th></th>
<th>ID</th>
<th class="table-cell-expand">
<th class="table-cell-minw-300 table-cell-expand">
<a class="inline-item text-truncate-inline" href="#1">
<span class="text-truncate" title="Description">Title</span>
</a>
</th>
<th class="table-cell-expand-small">Modified Date</th>
<th class="table-cell-expand-small table-cell-ws-nowrap">Modified Date</th>
<th class="table-cell-expand-smaller">Display Date</th>
<th class="table-cell-expand-smallest">Author</th>
<th class="table-cell-minw-150 table-cell-expand-smallest">Author</th>
<th>Type</th>
</tr>
</thead>
Expand All @@ -1256,16 +1260,16 @@ <h3>Table Helpers</h3>
</div>
</td>
<td>21146</td>
<td class="table-cell-expand">
<td class="table-cell-minw-300 table-cell-expand">
<div class="table-title">
<span class="text-truncate-inline">
<span class="text-truncate" title="Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.">Wings eu, pumpkin spice robusta, kopi-luwak mocha caffeine froth grounds.</span>
</span>
</div>
</td>
<td class="table-cell-expand-small">2 Hours Ago</td>
<td class="table-cell-expand-small table-cell-ws-nowrap">2 Hours Ago</td>
<td class="table-cell-expand-smaller">--</td>
<td class="table-cell-expand-smallest">Stanley Nelson</td>
<td class="table-cell-minw-150 table-cell-expand-smallest">Stanley Nelson</td>
<td>Folder</td>
</tr>
</tbody>
Expand Down
Loading