1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-11 22:02:22 +04:00

tables docs

This commit is contained in:
chomik
2019-05-20 21:30:51 +02:00
parent a4e66aa0e0
commit 5dc2b3cbb7
6 changed files with 66 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
---
title: Tables
menu: docs.tables
---
## Basic Table
A basic Bootstrap table has a light padding and only horizontal dividers.
The `.table` class adds basic styling to a table:
{% example html %}
{% include ui/table.html %}
{% endexample %}
## No wrap
Prevents table cell content from wrapping to another line.
{% example html %}
{% include ui/table.html nowrap=true responsive=true %}
{% endexample %}
+36
View File
@@ -0,0 +1,36 @@
{% if include.responsive %}<div class="table-responsive">{% endif %}
<table class="table{% if include.nowrap %} table-nowrap{% endif %}"{% if include.sorting %} {% endif %}>
<thead>
<tr>
<th>Firstname</th>
<th>Lastname</th>
<th>Email</th>{% if include.nowrap %}
<th></th>
{% endif %}
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>john@example.com</td>{% if include.nowrap %}
<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias aliquam beatae commodi, dignissimos dolores, doloribus eaque hic inventore laudantium magni nisi obcaecati porro quibusdam ratione rem repellat sint voluptas?</td>
{% endif %}
</tr>
<tr>
<td>Mary</td>
<td>Moe</td>
<td>mary@example.com</td>{% if include.nowrap %}
<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias aliquam beatae commodi, dignissimos dolores, doloribus eaque hic inventore laudantium magni nisi obcaecati porro quibusdam ratione rem repellat sint voluptas?</td>
{% endif %}
</tr>
<tr>
<td>July</td>
<td>Dooley</td>
<td>july@example.com</td>{% if include.nowrap %}
<td>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Adipisci alias aliquam beatae commodi, dignissimos dolores, doloribus eaque hic inventore laudantium magni nisi obcaecati porro quibusdam ratione rem repellat sint voluptas?</td>
{% endif %}
</tr>
</tbody>
</table>
{% if include.responsive %}</div>{% endif %}
-1
View File
@@ -2,7 +2,6 @@
layout: default
menu: docs
title: Documentation
page-title: Documentation
---
+1 -1
View File
@@ -41,7 +41,7 @@ $teal: #2bcbba !default;
$cyan: #17a2b8 !default;
$light: #f0f2f5 !default;
$dark: #354051 !default;
$dark: #2d3748 !default;
$black: #121212 !default;
$white: #fff !default;
-1
View File
@@ -185,7 +185,6 @@ Selectgroup
.selectgroup-item {
flex-grow: 0;
margin-right: .5rem;
}
.selectgroup-button {
+7
View File
@@ -18,6 +18,13 @@
}
}
.table-nowrap {
th, td {
white-space: nowrap;
}
}
.table-md {
th,
td {