OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-present eyeo GmbH | 3 * Copyright (C) 2006-present eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 #items | 101 #items |
102 { | 102 { |
103 overflow-y: scroll; | 103 overflow-y: scroll; |
104 flex-grow: 1; | 104 flex-grow: 1; |
105 } | 105 } |
106 | 106 |
107 #items table | 107 #items table |
108 { | 108 { |
109 line-height: 17px; | 109 line-height: 17px; |
110 | |
111 /* This background image gives every other row a gray background. | |
112 * This is simlar to "tr:nth-child(odd) background-color: #eee;". | |
113 * However, we can't do it that way, since some rows might be hidden. | |
114 */ | |
115 background-image: url(data:image/gif;base64,R0lGODdhAQBQAIABAO7u7v///ywAAAAAAQ
BQAAACC4SPqcsYD6OctMYCADs=); | |
116 background-repeat: repeat; | |
117 } | 110 } |
118 | 111 |
119 body.dark #items table | 112 #items table.foreground tr.odd |
120 { | 113 { |
121 background-image: url(data:image/gif;base64,R0lGODdhAQBQAIACACQkJExMTCwAAAAAAQ
BQAAACC4yPqcsID6OctMYCADs=); | 114 background-color: #eeeeee; |
| 115 } |
| 116 |
| 117 #items table.background tr |
| 118 { |
| 119 background-color: #fdf3fd; |
| 120 } |
| 121 |
| 122 /* it's very convenient to have a first row |
| 123 with a simple convention that when no other |
| 124 rows are available, this automatically hides */ |
| 125 #items table.background tr:only-child |
| 126 { |
| 127 display: none; |
| 128 } |
| 129 |
| 130 /* it's also straight forward to style / select */ |
| 131 #items table.background tr:first-child |
| 132 { |
| 133 height: auto; |
| 134 background-color: #c8bec8; |
| 135 } |
| 136 |
| 137 #items table.background tr.odd |
| 138 { |
| 139 background-color: #ede3ed; |
| 140 } |
| 141 |
| 142 /* missing specs for .background items */ |
| 143 body.dark #items table.foreground tr.odd |
| 144 { |
| 145 background-color: #4c4c4c; |
122 } | 146 } |
123 | 147 |
124 #items tr | 148 #items tr |
125 { | 149 { |
126 height: 40px; | 150 height: 40px; |
127 } | 151 } |
128 | 152 |
129 #items tr[data-state=blocked] | 153 #items tr[data-state=blocked] |
130 { | 154 { |
131 color: red; | 155 color: red; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 tr:not(:hover) .action | 191 tr:not(:hover) .action |
168 { | 192 { |
169 display: none; | 193 display: none; |
170 } | 194 } |
171 | 195 |
172 .url | 196 .url |
173 { | 197 { |
174 width: 100%; | 198 width: 100%; |
175 } | 199 } |
176 | 200 |
177 .resource-link { | 201 .resource-link |
| 202 { |
178 text-decoration: none; | 203 text-decoration: none; |
179 color: #303942; | 204 color: #303942; |
180 } | 205 } |
181 | 206 |
182 .resource-link:hover { | 207 .resource-link:hover |
| 208 { |
183 text-decoration: underline; | 209 text-decoration: underline; |
184 } | 210 } |
185 | 211 |
186 .action-wrapper | 212 .action-wrapper |
187 { | 213 { |
188 display: flex; | 214 display: flex; |
189 width: 100%; | 215 width: 100%; |
190 } | 216 } |
191 | 217 |
192 .action | 218 .action |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 266 |
241 .filtered-by-search | 267 .filtered-by-search |
242 { | 268 { |
243 display: none; | 269 display: none; |
244 } | 270 } |
245 | 271 |
246 body.dark #reload | 272 body.dark #reload |
247 { | 273 { |
248 color: #2a67e7; | 274 color: #2a67e7; |
249 } | 275 } |
OLD | NEW |