| 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 { | ||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 43 | border-top: 0.16em solid #111111; |
| Hao Zhu | 33387bc | 2020-10-05 22:52:43 -0400 | [diff] [blame^] | 44 | border-bottom: 0.16em solid #111111; |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 45 | width: 100%; |
| Hao Zhu | d7762a4 | 2020-08-10 09:05:47 -0400 | [diff] [blame] | 46 | margin-bottom: 10px; |
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 47 | margin: 10px 5px; |
| 48 | } | ||||
| 49 | |||||
| 50 | .lightable-classic caption { | ||||
| 51 | color: #222222; | ||||
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 52 | } |
| 53 | |||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 54 | .lightable-classic td { |
| 55 | padding-left: 5px; | ||||
| 56 | padding-right: 5px; | ||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 57 | color: #222222; |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 58 | } |
| 59 | |||||
| 60 | .lightable-classic th { | ||||
| 61 | padding-left: 5px; | ||||
| 62 | padding-right: 5px; | ||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 63 | font-weight: normal; |
| 64 | color: #222222; | ||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 65 | } |
| 66 | |||||
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 67 | .lightable-classic thead tr:last-child th { |
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 68 | border-bottom: 0.10em solid #111111; |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 69 | } |
| 70 | |||||
| Hao Zhu | 33387bc | 2020-10-05 22:52:43 -0400 | [diff] [blame^] | 71 | .lightable-classic tfoot tr td { |
| 72 | border: 0; | ||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 73 | } |
| 74 | |||||
| Hao Zhu | 33387bc | 2020-10-05 22:52:43 -0400 | [diff] [blame^] | 75 | .lightable-classic tfoot tr:first-child td { |
| 76 | border-top: 0.14em solid #111111; | ||||
| 77 | } | ||||
| 78 | |||||
| 79 | |||||
| 80 | |||||
| Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 81 | .lightable-classic.lightable-hover tbody tr:hover { |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 82 | background-color: #F9EEC1; |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 83 | } |
| 84 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 85 | .lightable-classic.lightable-striped tbody tr:nth-child(even) { |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 86 | background-color: #f5f5f5; |
| 87 | } | ||||
| 88 | |||||
| Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 89 | .lightable-classic-2 { |
| 90 | border-top: 3px double #111111; | ||||
| Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 91 | width: 100%; |
| 92 | margin-bottom: 10px; | ||||
| 93 | } | ||||
| 94 | |||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 95 | .lightable-classic-2 caption { |
| 96 | color: #222222; | ||||
| 97 | } | ||||
| 98 | |||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 99 | .lightable-classic-2 td { |
| 100 | padding-left: 5px; | ||||
| 101 | padding-right: 5px; | ||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 102 | color: #222222; |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 103 | } |
| 104 | |||||
| 105 | .lightable-classic-2 th { | ||||
| 106 | padding-left: 5px; | ||||
| 107 | padding-right: 5px; | ||||
| Hao Zhu | 82ee3c4 | 2020-08-19 20:24:40 -0400 | [diff] [blame] | 108 | font-weight: normal; |
| 109 | color: #222222; | ||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 110 | } |
| 111 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 112 | .lightable-classic-2 tbody tr:last-child td { |
| 113 | border-bottom: 3px double #111111; | ||||
| 114 | } | ||||
| 115 | |||||
| Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 116 | .lightable-classic-2 thead tr:last-child th { |
| 117 | border-bottom: 1px solid #111111; | ||||
| 118 | } | ||||
| 119 | |||||
| 120 | .lightable-classic-2.lightable-hover tbody tr:hover { | ||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 121 | background-color: #F9EEC1; |
| Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 122 | } |
| 123 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 124 | .lightable-classic-2.lightable-striped tbody tr:nth-child(even) { |
| Hao Zhu | d8a2e33 | 2020-08-11 01:26:32 -0400 | [diff] [blame] | 125 | background-color: #f5f5f5; |
| 126 | } | ||||
| 127 | |||||
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 128 | .lightable-material { |
| 129 | min-width: 100%; | ||||
| 130 | white-space: nowrap; | ||||
| 131 | table-layout: fixed; | ||||
| 132 | font-family: Roboto, sans-serif; | ||||
| 133 | border: 1px solid #EEE; | ||||
| 134 | border-collapse: collapse; | ||||
| Hao Zhu | d7762a4 | 2020-08-10 09:05:47 -0400 | [diff] [blame] | 135 | margin-bottom: 10px; |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 136 | } |
| 137 | |||||
| 138 | .lightable-material th { | ||||
| Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 139 | height: 56px; |
| 140 | padding-left: 16px; | ||||
| 141 | padding-right: 16px; | ||||
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 142 | } |
| 143 | |||||
| 144 | .lightable-material td { | ||||
| Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 145 | height: 52px; |
| 146 | padding-left: 16px; | ||||
| 147 | padding-right: 16px; | ||||
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 148 | border-top: 1px solid #eeeeee; |
| 149 | } | ||||
| 150 | |||||
| Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 151 | .lightable-material.lightable-hover tbody tr:hover { |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 152 | background-color: #f5f5f5; |
| 153 | } | ||||
| 154 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 155 | .lightable-material.lightable-striped tbody tr:nth-child(even) { |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 156 | background-color: #f5f5f5; |
| 157 | } | ||||
| 158 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 159 | .lightable-material.lightable-striped tbody td { |
| Hao Zhu | 81c335c | 2020-08-10 09:20:41 -0400 | [diff] [blame] | 160 | border: 0; |
| Hao Zhu | ad4ea39 | 2020-08-10 01:24:50 -0400 | [diff] [blame] | 161 | } |
| 162 | |||||
| 163 | .lightable-material.lightable-striped thead tr:last-child th { | ||||
| 164 | border-bottom: 1px solid #ddd; | ||||
| 165 | } | ||||
| Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 166 | |
| 167 | .lightable-material-dark { | ||||
| 168 | min-width: 100%; | ||||
| 169 | white-space: nowrap; | ||||
| 170 | table-layout: fixed; | ||||
| 171 | font-family: Roboto, sans-serif; | ||||
| 172 | border: 1px solid #FFFFFF12; | ||||
| 173 | border-collapse: collapse; | ||||
| 174 | margin-bottom: 10px; | ||||
| 175 | background-color: #363640; | ||||
| 176 | } | ||||
| 177 | |||||
| 178 | .lightable-material-dark th { | ||||
| 179 | height: 56px; | ||||
| 180 | padding-left: 16px; | ||||
| 181 | padding-right: 16px; | ||||
| 182 | color: #FFFFFF60; | ||||
| 183 | } | ||||
| 184 | |||||
| 185 | .lightable-material-dark td { | ||||
| 186 | height: 52px; | ||||
| 187 | padding-left: 16px; | ||||
| 188 | padding-right: 16px; | ||||
| 189 | color: #FFFFFF; | ||||
| 190 | border-top: 1px solid #FFFFFF12; | ||||
| 191 | } | ||||
| 192 | |||||
| 193 | .lightable-material-dark.lightable-hover tbody tr:hover { | ||||
| 194 | background-color: #FFFFFF12; | ||||
| 195 | } | ||||
| 196 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 197 | .lightable-material-dark.lightable-striped tbody tr:nth-child(even) { |
| Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 198 | background-color: #FFFFFF12; |
| 199 | } | ||||
| 200 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 201 | .lightable-material-dark.lightable-striped tbody td { |
| Hao Zhu | 9bf1998 | 2020-08-11 00:50:33 -0400 | [diff] [blame] | 202 | border: 0; |
| 203 | } | ||||
| 204 | |||||
| 205 | .lightable-material-dark.lightable-striped thead tr:last-child th { | ||||
| 206 | border-bottom: 1px solid #FFFFFF12; | ||||
| 207 | } | ||||
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 208 | |
| 209 | .lightable-paper { | ||||
| 210 | width: 100%; | ||||
| 211 | margin-bottom: 10px; | ||||
| Hao Zhu | 9399dcc | 2020-08-26 17:27:38 -0400 | [diff] [blame] | 212 | color: #444; |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 213 | } |
| 214 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 215 | .lightable-paper thead tr:last-child th { |
| Hao Zhu | 9399dcc | 2020-08-26 17:27:38 -0400 | [diff] [blame] | 216 | color: #666; |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 217 | vertical-align: bottom; |
| 218 | border-bottom: 1px solid #00000020; | ||||
| 219 | line-height: 1.15em; | ||||
| 220 | padding: 10px 5px; | ||||
| 221 | } | ||||
| 222 | |||||
| 223 | .lightable-paper td { | ||||
| 224 | vertical-align: middle; | ||||
| 225 | border-bottom: 1px solid #00000010; | ||||
| 226 | line-height: 1.15em; | ||||
| 227 | padding: 7px 5px; | ||||
| 228 | } | ||||
| 229 | |||||
| 230 | .lightable-paper.lightable-hover tbody tr:hover { | ||||
| 231 | background-color: #F9EEC1; | ||||
| 232 | } | ||||
| 233 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 234 | .lightable-paper.lightable-striped tbody tr:nth-child(even) { |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 235 | background-color: #00000008; |
| 236 | } | ||||
| 237 | |||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 238 | .lightable-paper.lightable-striped tbody td { |
| Hao Zhu | 33b865f | 2020-08-18 02:10:43 -0400 | [diff] [blame] | 239 | border: 0; |
| 240 | } | ||||
| Hao Zhu | 8b16a6c | 2020-08-18 16:59:20 -0400 | [diff] [blame] | 241 | |