-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
96 lines (89 loc) · 5.24 KB
/
test.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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Table [component] - SUIT</title>
<meta name="viewport" content="initial-scale=1,width=device-width">
<link rel="stylesheet" href="build/build.css">
<style>
/* CSS to help implement and/or expose the test */
</style>
<div class="Test">
<h1 class="Test-title">SUIT CSS: <a href="https://github.com/trunkclub/suitcss-components-table">Table</a> component tests</h1>
<h2 class="Test-describe">.Table</h2>
<h3 class="Test-it">renders full width by default</h3>
<div class="Test-run" id="renders">
<table class="Table">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
<h2 class="Test-describe">.Table--fixed</h2>
<h3 class="Test-it">fixed layout</h3>
<div class="Test-run">
<table class="Table Table--fixed">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
<h2 class="Test-describe">.Table--hover</h2>
<h3 class="Test-it">rows hover</h3>
<div class="Test-run">
<table class="Table Table--hover">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
<h2 class="Test-describe">.Table--striped</h2>
<h3 class="Test-it">rows striped</h3>
<div class="Test-run">
<table class="Table Table--striped">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
<h2 class="Test-describe">.Table--withBorder</h2>
<h3 class="Test-it">table border</h3>
<div class="Test-run">
<table class="Table Table--withBorder">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
<h2 class="Test-describe">.Table--compact</h2>
<h3 class="Test-it">reduce vertical padding</h3>
<div class="Test-run">
<table class="Table Table--compact">
<caption>Caption</caption>
<colgroup><col><col span="2"></colgroup>
<thead><tr><th>head row 1, cell 1</th><th>head row 1, cell 2</th><th>head row 1, cell 3</th></tr></thead>
<tfoot><tr><td>foot row 1, cell 1</td><td>foot row 1, cell 2</td><td>foot row 1, cell 3</td></tr></tfoot>
<tbody><tr><td>body row 1, cell 1</td><td>body row 1, cell 2</td><td>body row 1, cell 3</td></tr>
<tr><td>body row 2, cell 1</td><td>Some text that is much longer than the other cells</td><td>body row 2, cell 3</td></tr>
<tr><td>body row 3, cell 1</td><td>body row 3, cell 2</td><td>body row 3, cell 3</td></tr></tbody>
</table>
</div>
</div>