Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 1 | /*! |
| 2 | * lightable v0.0.1 |
| 3 | * Copyright 2020 Hao Zhu |
| 4 | * Licensed under MIT (https://github.com/haozhu233/kableExtra/blob/master/LICENSE) |
| 5 | */ |
| 6 | |
| 7 | .lightable-minimal { |
| 8 | border-collapse: separate; |
| 9 | border-spacing: 16px 1px; |
| 10 | width: 100%; |
Hao Zhu | d7762a4 | 2020-08-10 09:05:47 -0400 | [diff] [blame] | 11 | margin-bottom: 10px; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 12 | } |
| 13 | |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 14 | .lightable-minimal td { |
| 15 | margin-left: 5px; |
| 16 | margin-right: 5px; |
| 17 | } |
| 18 | |
| 19 | .lightable-minimal th { |
| 20 | margin-left: 5px; |
| 21 | margin-right: 5px; |
| 22 | } |
| 23 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 24 | .lightable-minimal thead tr:last-child th { |
| 25 | border-bottom: 2px solid #00000050; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 26 | empty-cells: hide; |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 27 | |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | .lightable-minimal tbody tr:first-child td { |
| 31 | padding-top: 0.5em; |
| 32 | } |
| 33 | |
Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 34 | .lightable-minimal.lightable-hover tbody tr:hover { |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 35 | background-color: #f5f5f5; |
| 36 | } |
| 37 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 38 | .lightable-minimal.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 39 | background-color: #f5f5f5; |
| 40 | } |
| 41 | |
| 42 | .lightable-classic { |
| 43 | border-top: 2px solid #111111; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 44 | width: 100%; |
Hao Zhu | d7762a4 | 2020-08-10 09:05:47 -0400 | [diff] [blame] | 45 | margin-bottom: 10px; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 46 | } |
| 47 | |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 48 | .lightable-classic td { |
| 49 | padding-left: 5px; |
| 50 | padding-right: 5px; |
| 51 | } |
| 52 | |
| 53 | .lightable-classic th { |
| 54 | padding-left: 5px; |
| 55 | padding-right: 5px; |
| 56 | } |
| 57 | |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 58 | .lightable-classic thead tr:last-child th { |
| 59 | border-bottom: 1px solid #111111; |
| 60 | } |
| 61 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 62 | .lightable-classic tbody tr:last-child td { |
| 63 | border-bottom: 2px solid #111111; |
| 64 | } |
| 65 | |
Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 66 | .lightable-classic.lightable-hover tbody tr:hover { |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 67 | background-color: #F9EEC1; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 68 | } |
| 69 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 70 | .lightable-classic.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 71 | background-color: #f5f5f5; |
| 72 | } |
| 73 | |
Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 74 | .lightable-classic-2 { |
| 75 | border-top: 3px double #111111; |
Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 76 | width: 100%; |
| 77 | margin-bottom: 10px; |
| 78 | } |
| 79 | |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 80 | .lightable-classic-2 td { |
| 81 | padding-left: 5px; |
| 82 | padding-right: 5px; |
| 83 | } |
| 84 | |
| 85 | .lightable-classic-2 th { |
| 86 | padding-left: 5px; |
| 87 | padding-right: 5px; |
| 88 | } |
| 89 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 90 | .lightable-classic-2 tbody tr:last-child td { |
| 91 | border-bottom: 3px double #111111; |
| 92 | } |
| 93 | |
Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 94 | .lightable-classic-2 thead tr:last-child th { |
| 95 | border-bottom: 1px solid #111111; |
| 96 | } |
| 97 | |
| 98 | .lightable-classic-2.lightable-hover tbody tr:hover { |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 99 | background-color: #F9EEC1; |
Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 100 | } |
| 101 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 102 | .lightable-classic-2.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 103 | background-color: #f5f5f5; |
| 104 | } |
| 105 | |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 106 | .lightable-material { |
| 107 | min-width: 100%; |
| 108 | white-space: nowrap; |
| 109 | table-layout: fixed; |
| 110 | font-family: Roboto, sans-serif; |
| 111 | border: 1px solid #EEE; |
| 112 | border-collapse: collapse; |
Hao Zhu | d7762a4 | 2020-08-10 09:05:47 -0400 | [diff] [blame] | 113 | margin-bottom: 10px; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 114 | } |
| 115 | |
| 116 | .lightable-material th { |
Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 117 | height: 56px; |
| 118 | padding-left: 16px; |
| 119 | padding-right: 16px; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 120 | } |
| 121 | |
| 122 | .lightable-material td { |
Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 123 | height: 52px; |
| 124 | padding-left: 16px; |
| 125 | padding-right: 16px; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 126 | border-top: 1px solid #eeeeee; |
| 127 | } |
| 128 | |
Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 129 | .lightable-material.lightable-hover tbody tr:hover { |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 130 | background-color: #f5f5f5; |
| 131 | } |
| 132 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 133 | .lightable-material.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 134 | background-color: #f5f5f5; |
| 135 | } |
| 136 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 137 | .lightable-material.lightable-striped tbody td { |
Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 138 | border: 0; |
Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 139 | } |
| 140 | |
| 141 | .lightable-material.lightable-striped thead tr:last-child th { |
| 142 | border-bottom: 1px solid #ddd; |
| 143 | } |
Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 144 | |
| 145 | .lightable-material-dark { |
| 146 | min-width: 100%; |
| 147 | white-space: nowrap; |
| 148 | table-layout: fixed; |
| 149 | font-family: Roboto, sans-serif; |
| 150 | border: 1px solid #FFFFFF12; |
| 151 | border-collapse: collapse; |
| 152 | margin-bottom: 10px; |
| 153 | background-color: #363640; |
| 154 | } |
| 155 | |
| 156 | .lightable-material-dark th { |
| 157 | height: 56px; |
| 158 | padding-left: 16px; |
| 159 | padding-right: 16px; |
| 160 | color: #FFFFFF60; |
| 161 | } |
| 162 | |
| 163 | .lightable-material-dark td { |
| 164 | height: 52px; |
| 165 | padding-left: 16px; |
| 166 | padding-right: 16px; |
| 167 | color: #FFFFFF; |
| 168 | border-top: 1px solid #FFFFFF12; |
| 169 | } |
| 170 | |
| 171 | .lightable-material-dark.lightable-hover tbody tr:hover { |
| 172 | background-color: #FFFFFF12; |
| 173 | } |
| 174 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 175 | .lightable-material-dark.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 176 | background-color: #FFFFFF12; |
| 177 | } |
| 178 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 179 | .lightable-material-dark.lightable-striped tbody td { |
Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 180 | border: 0; |
| 181 | } |
| 182 | |
| 183 | .lightable-material-dark.lightable-striped thead tr:last-child th { |
| 184 | border-bottom: 1px solid #FFFFFF12; |
| 185 | } |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 186 | |
| 187 | .lightable-paper { |
| 188 | width: 100%; |
| 189 | margin-bottom: 10px; |
| 190 | } |
| 191 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 192 | .lightable-paper thead tr:last-child th { |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 193 | color: #999; |
| 194 | vertical-align: bottom; |
| 195 | border-bottom: 1px solid #00000020; |
| 196 | line-height: 1.15em; |
| 197 | padding: 10px 5px; |
| 198 | } |
| 199 | |
| 200 | .lightable-paper td { |
| 201 | vertical-align: middle; |
| 202 | border-bottom: 1px solid #00000010; |
| 203 | line-height: 1.15em; |
| 204 | padding: 7px 5px; |
| 205 | } |
| 206 | |
| 207 | .lightable-paper.lightable-hover tbody tr:hover { |
| 208 | background-color: #F9EEC1; |
| 209 | } |
| 210 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 211 | .lightable-paper.lightable-striped tbody tr:nth-child(even) { |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 212 | background-color: #00000008; |
| 213 | } |
| 214 | |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 215 | .lightable-paper.lightable-striped tbody td { |
Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 216 | border: 0; |
| 217 | } |
Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 218 | |