forked from malarkey/320andup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_tables.sass
72 lines (62 loc) · 1.86 KB
/
_tables.sass
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
// ==========================================================
// 320 and Up by Andy Clarke
// Version: 3.0
// URL: http://stuffandnonsense.co.uk/projects/320andup/
// Apache License: v2.0. http://www.apache.org/licenses/LICENSE-2.0
// ==========================================================
/* Tables ===================================================
table
width: 100%
max-width: 100%
margin-bottom: $baselineheight
border-collapse: collapse
border-spacing: 0
background-color: $tablebackground
th,
td
padding: 8px
vertical-align: top
border-top: $tableborderwidth $tableborderstyle $tableborder
+font-size(14)
line-height: $baselineheight
text-align: left
th
font-weight: bold
thead th
vertical-align: bottom
colgroup + thead tr:first-child th,
colgroup + thead tr:first-child td,
thead:first-child tr:first-child th,
thead:first-child tr:first-child td
border-top: 0
tbody + tbody
border-top: $tableborderwidth * 2 $tableborderstyle $tableborder
tbody tr td,
tbody tr th
+transition(background-color 0.25s 0 linear)
tbody tr:hover td,
tbody tr:hover th
background-color: $tablehover
// CONDENSED ====================================================
.table-condensed
th,
td
padding: 4px 5px
// BORDERED ====================================================
.table-bordered
border: $tableborderwidth $tableborderstyle $tableborder
border-left: 0
border-collapse: separate
*border-collapse: collapsed
th,
td
border-left: $tableborderwidth $tableborderstyle $tableborder
thead:first-child tr:first-child th,
tbody:first-child tr:first-child th,
tbody:first-child tr:first-child td
border-top: 0
// STRIPED ====================================================
.table-striped
tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th
background-color: $tablestripe