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