-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtables.html
182 lines (172 loc) · 5.19 KB
/
tables.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
---
layout: default
title: Tables
subnav:
- Default
- Rows
- Columns
- Cells
---
<section>
<h2 id="Default" class="m-b-1-xs">Default Table</h2>
<p class="m-b-2-xs">Our base table style should not require any atomic classes. Additionally, the width of columns in tables can be set by using Leap's <a href="grid.html">grid classes</a>.</p>
<table class="m-b-2-xs col-70-lg">
<tbody>
<tr>
<th class="col-20-xs">Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table>
<div class="guide-code m-b-4-xs">
<pre><code class="language-html"><table>
<tbody>
<tr>
<th class="col-20-xs">Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table></code></pre>
</div>
<h2 id="Rows" class="m-b-1-xs">Table with Rows</h2>
<p class="m-b-2-xs">You can add borders on all the rows in a table by adding the class <code>.table-border-rows</code> class. Additionally, you can change the color of the border by adding an additional modifier to the end of the class.</p>
<div class="col-container">
<div class="col col-50-lg">
<p class="bold">Table Border Colors</p>
<ul class="list-unstyled m-b-3-xs">
<li><code>.table-border-rows</code></li>
<li><code>.table-border-rows-light</code></li>
<li><code>.table-border-rows-mid</code></li>
<li><code>.table-border-rows-dark</code></li>
</ul>
</div>
</div>
<table class="table-border-rows-light m-b-2-xs col-70-lg">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table>
<div class="guide-code m-b-4-xs">
<pre><code class="language-html"><table class="table-border-rows-light">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table></code></pre>
</div>
<h2 id="Columns" class="m-b-1-xs">Table with Columns</h2>
<p class="m-b-2-xs">You can add borders on all the columns in a table by adding the class <code>.table-border-columns</code> class. Additionally, you can change the color of the border by adding an additional modifier to the end of the class.</p>
<div class="col-container">
<div class="col col-50-lg">
<p class="bold">Table Border Colors</p>
<ul class="list-unstyled m-b-3-xs">
<li><code>.table-border-columns</code></li>
<li><code>.table-border-columns-light</code></li>
<li><code>.table-border-columns-mid</code></li>
<li><code>.table-border-columns-dark</code></li>
</ul>
</div>
</div>
<table class="table-border-columns-dark">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table>
<div class="guide-code m-b-4-xs">
<pre><code class="language-html"><table class="table-border-column-dark">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table></code></pre>
</div>
<h2 id="Cells" class="m-b-1-xs">Table with Cells</h2>
<p class="m-b-2-xs">You can add borders on all the cells in a table by adding the class <code>.table-border-cells</code> class.</p>
<div class="col-container">
<div class="col col-50-lg">
<p class="bold">Table Border Colors</p>
<ul class="list-unstyled m-b-3-xs">
<li><code>.table-border-cells</code></li>
<li><code>.table-border-cells-light</code></li>
<li><code>.table-border-cells-mid</code></li>
<li><code>.table-border-cells-dark</code></li>
</ul>
</div>
</div>
<table class="table-border-cells">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table>
<div class="guide-code m-b-4-xs">
<pre><code class="language-html"><table class="table-border-cells">
<tbody>
<tr>
<th>Heading 1</th>
<th>Heading 2</th>
<th>Heading 3</th>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
<td>Cell 3</td>
</tr>
</tbody>
</table></code></pre>
</div>
</section>