Debian Codegraph @

debian/missing-sources/wyrm/sass/wyrm_core/_table.sass

raw
1 // Tables
2 //
3 // Located in `wyrm_core/_tables.sass`. Table classes are additive so you can mix and match as you need.
4 //
5 // Markup:
6 // <table class="wy-table {$modifiers}">
7 // <thead>
8 // <tr>
9 // <th>Game</th>
10 // <th>Developer</th>
11 // <th>Description</th>
12 // </tr>
13 // </thead>
14 // <tbody>
15 // <tr>
16 // <td>
17 // Baldur's Gate II
18 // </td>
19 // <td>
20 // Bioware
21 // </td>
22 // <td>
23 // Boo has a space hamster. Imoen whines a bunch.
24 // </td>
25 // </tr>
26 // <tr>
27 // <td>
28 // Icewind Dale II
29 // </td>
30 // <td>
31 // Black Isle
32 // </td>
33 // <td>
34 // Fly around on an airship, then kill tons of ice monsters.
35 // </td>
36 // </tr>
37 // <tr>
38 // <td>
39 // Temple of Elemental Evil
40 // </td>
41 // <td>
42 // Trokia
43 // </td>
44 // <td>
45 // Turn based! Do everything 10 times slower.
46 // </td>
47 // </tr>
48 // </tbody>
49 // </table>
50 //
51 // .full-width - 100% width
52 // .wy-table-bordered - Border the table itself.
53 // .wy-table-bordered-rows - Border just the rows.
54 // .wy-table-bordered-all - Border the columns, rows, and the table.
55 // .wy-table-striped - Alternating row colors.
56 //
57 // Styleguide 3
58
59
60 .wy-table
61 border-collapse: collapse
62 border-spacing: 0
63 empty-cells: show
64 margin-bottom: $base-line-height
65 caption
66 color: #000
67 font: italic 85%/1 arial, sans-serif
68 padding: 1em 0
69 text-align: center
70 td, th
71 font-size: $table-font-size
72 margin: 0
73 overflow: visible
74 padding: $table-padding-size
75 td:first-child, th:first-child
76 border-left-width: 0
77 thead
78 color: #000
79 text-align: left
80 vertical-align: bottom
81 white-space: nowrap
82 th
83 font-weight: $base-font-family-bold
84 border-bottom: solid 2px $table-border-color
85 td
86 background-color: transparent
87 vertical-align: middle
88
89 .wy-table td p
90 line-height: $base-line-height * .75
91 &:last-child
92 margin-bottom: 0
93 .wy-table .wy-table-cell-min
94 width: 1%
95 padding-right: 0
96 input[type=checkbox], input[type=checkbox]
97 margin: 0
98
99 .wy-table-secondary
100 color: $text-medium
101 font-size: 90%
102 .wy-table-tertiary
103 color: $text-medium
104 font-size: 80%
105
106 // Striped
107
108 .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td
109 background-color: $table-stripe-color
110
111 .wy-table-backed
112 background-color: $table-stripe-color
113
114
115 /* BORDERED TABLES
116
117 .wy-table-bordered-all
118 border: 1px solid $table-border-color
119 td
120 border-bottom: 1px solid $table-border-color
121 border-left: 1px solid $table-border-color
122 tbody > tr:last-child td
123 border-bottom-width: 0
124
125 .wy-table-bordered
126 border: 1px solid $table-border-color
127
128 .wy-table-bordered-rows
129 td
130 border-bottom: 1px solid $table-border-color
131 tbody > tr:last-child td
132 border-bottom-width: 0
133
134 .wy-table-horizontal
135 tbody > tr:last-child td
136 border-bottom-width: 0
137 td, th
138 border-width: 0 0 1px 0
139 border-bottom: 1px solid $table-border-color
140 tbody > tr:last-child td
141 border-bottom-width: 0
142 /* RESPONSIVE TABLES
143
144 .wy-table-responsive
145 margin-bottom: $base-line-height
146 max-width: 100%
147 overflow: auto
148 table
149 margin-bottom: 0 !important
150 td, th
151 white-space: nowrap