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