third and last part of syncing LCARStrek with Firefox 51 browser windows theme changes
[themes.git] / LCARStrek / browser / newtab / newTab.css
CommitLineData
fff8097b
RK
1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
8d7ef0d9
RK
5:root {
6 -moz-appearance: none;
56ab361a 7 font-size: 75%;
8d7ef0d9 8 background-color: transparent;
0d686391 9 padding: 0;
0d686391
RK
10}
11
78cd4073
RK
12body {
13 background-color: #000000
14}
15
56ab361a
RK
16/* UNDO */
17#newtab-undo-container {
18 padding: 4px 3px;
19 border: 1px solid;
20 border-color: #9C9CFF;
21 background-color: #000000;
22 color: #8050B0;
23}
24
25#newtab-undo-label {
26 margin-top: 0;
27 margin-bottom: 0;
28}
29
30.newtab-undo-button {
31 color: #3333FF;
32 cursor: pointer;
33 padding: 0;
34 margin: 0 4px;
35 border: 0;
36 background: transparent;
37 text-decoration: none;
38 min-width: 0;
39}
40
41.newtab-undo-button:hover {
42 text-decoration: underline;
43}
44
45.newtab-undo-button:-moz-focusring {
46 outline: 1px dotted;
47}
48
49.newtab-undo-button > .button-box {
50 padding: 0;
51}
52
53#newtab-undo-close-button {
54 padding: 0;
55 border: none;
56 list-style-image: url("chrome://global/skin/icons/close.png");
57 -moz-image-region: rect(0, 16px, 16px, 0);
56ab361a
RK
58}
59
60#newtab-undo-close-button:hover {
61 -moz-image-region: rect(0, 32px, 16px, 16px);
62}
63
b1dfcf32
RK
64#newtab-undo-close-button {
65 -moz-appearance: none;
66 padding: 0;
67 border: none;
68 height: 16px;
69 width: 16px;
70 float: right;
71 right: 0;
72 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 16, 16, 0);
73 background-color: transparent;
74}
75
76#newtab-undo-close-button:hover,
77#newtab-undo-close-button:active {
78 background-image: -moz-image-rect(url("chrome://global/skin/icons/close.png"), 0, 32, 16, 16);
56ab361a
RK
79}
80
2b5a5147
RK
81/* CUSTOMIZE */
82#newtab-customize-button,
83.newtab-customize {
84 background-color: transparent;
85 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0);
86 background-size: 28px;
87 border: none;
88 border-radius: 3px;
89 height: 28px;
90 width: 28px;
91}
92
d23bf94a
RK
93#newtab-customize-button {
94 font-size: 28px;
95 padding: 0;
96 /* only display the text label when CSS backgrounds are disabled (e.g. in high contrast mode) */
97 color: transparent;
98}
99
2b5a5147
RK
100#newtab-customize-button:-moz-any(:hover, :active, [active]) {
101 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32);
102 background-color: #FFCF00;
103}
104
8d7ef0d9 105/* CELLS */
c9b0a396 106.newtab-cell {
8d7ef0d9
RK
107 background-color: rgba(255,159,0,.2);
108 border: 1px solid;
109 border-color: #9C9CFF;
78cd4073 110 border-radius: 10px;
0d686391
RK
111}
112
8d7ef0d9 113.newtab-cell:empty {
2b5a5147
RK
114 outline: 2px dashed #A09090;
115 -moz-outline-radius: 2px;
0d686391
RK
116}
117
8d7ef0d9
RK
118/* SITES */
119.newtab-site {
d4d77dc0 120 border-radius: inherit;
8d7ef0d9 121 text-decoration: none;
71a617ff 122 transition-property: top, left, opacity, box-shadow, background-color;
0d686391
RK
123}
124
d74db938
RK
125.newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
126.newtab-cell:not([ignorehover]) .newtab-link:hover,
c9b0a396 127.newtab-site[dragged] {
8d7ef0d9 128 box-shadow: 0 0 10px rgba(0,132,132,.3);
0d686391
RK
129}
130
8d7ef0d9 131.newtab-site[dragged] {
71a617ff 132 transition-property: box-shadow, background-color;
8d7ef0d9 133 background-color: #002121;
0d686391
RK
134}
135
2b5a5147
RK
136/* LINKS */
137.newtab-link {
d74db938
RK
138 border-radius: 10px;
139 overflow: hidden;
2b5a5147
RK
140}
141
d7b7f7e1
RK
142/***
143 * If you change the sizes here, change them in newTab.css
144 * and the preference values:
145 * toolkit.pageThumbs.minWidth
146 * toolkit.pageThumbs.minHeight
147 */
8d7ef0d9
RK
148/* THUMBNAILS */
149.newtab-thumbnail {
150 background-origin: padding-box;
151 background-clip: padding-box;
152 background-repeat: no-repeat;
153 background-size: cover;
d74db938
RK
154 border-radius: 8px 8px 0px 0px;
155 height: 180px;
2b5a5147
RK
156 transition: opacity 100ms ease-out;
157}
158
0ef54c72 159.newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
2b5a5147 160 opacity: 0;
0d686391
RK
161}
162
fff8097b 163.newtab-site[type=affiliate] .newtab-thumbnail,
2b5a5147 164.newtab-site[type=enhanced] .newtab-thumbnail,
fff8097b
RK
165.newtab-site[type=organic] .newtab-thumbnail,
166.newtab-site[type=sponsored] .newtab-thumbnail {
167 background-position: center center;
168 background-size: auto;
169}
170
8d7ef0d9 171/* TITLES */
2b5a5147 172.newtab-sponsored,
0ef54c72
RK
173.newtab-title,
174.newtab-suggested {
8d7ef0d9
RK
175 padding: 0 8px;
176 background-color: rgba(255,159,0,.8);
177 color: #000000;
78cd4073 178 border: none;
8d7ef0d9 179 line-height: 24px;
fff8097b
RK
180 bottom: 0 !important;
181}
182
d74db938 183/*
0ef54c72
RK
184.newtab-suggested {
185 background-color: #9C9CFF;
186}
187
188.newtab-suggested:hover {
189 background-color: #FFCF00;
190 border: 1px solid #9C9CFF;
191}
192
193.newtab-suggested[active] {
194 background-color: #FF9F00;
195 border: 0;
196}
d74db938 197*/
2b5a5147
RK
198.newtab-site:hover .newtab-title {
199 background-color: #FFCF00;
0d686391
RK
200}
201
2b5a5147 202.newtab-site[pinned] .newtab-title {
dae45075 203 padding-inline-start: 24px;
0d686391
RK
204}
205
2b5a5147
RK
206.newtab-site[pinned] .newtab-title::before {
207 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
208 background-size: 10px;
209 content: "";
210 height: 17px;
482e8162
RK
211 left: 5px;
212 top: 5px;
2b5a5147
RK
213 position: absolute;
214 width: 10px;
d74db938 215 margin-left: 8px;
78cd4073 216 margin-top: 0;
0d686391
RK
217}
218
dae45075 219.newtab-site[pinned] .newtab-title:dir(rtl)::before {
2b5a5147
RK
220 left: auto;
221 right: 0;
0d686391
RK
222}
223
2b5a5147
RK
224/* CONTROLS */
225.newtab-control {
226 background-color: transparent;
227 background-size: 24px;
228 border: none;
229 height: 24px;
230 width: 24px;
0d686391
RK
231}
232
2b5a5147
RK
233.newtab-control-pin,
234.newtab-site[pinned] .newtab-control-pin:hover:active {
235 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
0d686391
RK
236}
237
2b5a5147
RK
238.newtab-control-pin:hover,
239.newtab-site[pinned] .newtab-control-pin:hover {
240 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
0d686391
RK
241}
242
2b5a5147
RK
243.newtab-control-pin:hover:active,
244.newtab-site[pinned] .newtab-control-pin {
245 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
0d686391 246}
fff8097b 247
2b5a5147
RK
248.newtab-control-block {
249 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
fff8097b
RK
250}
251
2b5a5147
RK
252.newtab-control-block:hover {
253 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
fff8097b
RK
254}
255
2b5a5147
RK
256.newtab-control-block:hover:active {
257 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
fff8097b 258}
78cd4073
RK
259
260/* SEARCH */
1f756abf
RK
261#newtab-search-logo:hover {
262 background-color: #FFCF00;
263 border: none;
264}
265#newtab-search-logo[active] {
266 background-color: #FF9F00;
267 border: none;
268}
269#newtab-search-logo {
270 background-image: url("chrome://browser/skin/magnifier.png");
271}
272#newtab-search-logo.magnifier[active],
273#newtab-search-logo.magnifier:hover {
274 background-image: url("chrome://browser/skin/magnifier-hover.png");
275}
276/* Newer versions only */
277#newtab-search-icon {
278 background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass");
279}
280#newtab-search-logo.magnifier[active],
281#newtab-search-logo.magnifier:hover {
282 background-image: url("chrome://browser/skin/magnifier-hover.png");
283}
284
78cd4073
RK
285#newtab-search-text {
286 border: 1px solid #9C9CFF;
287 background-color: #000000;
288 color: #E7ADE7;
289}
689d5552 290#newtab-search-text::placeholder {
78cd4073
RK
291 color: #8050B0;
292}
293#newtab-search-text:focus {
294 border: 1px solid #008484;
295 box-shadow: 0 0 0 1px #008484 inset;
296}
297
298#newtab-search-submit {
1f756abf 299 background-image: none;
78cd4073 300 background-color: #C09070;
1f756abf
RK
301 color: #000000;
302 box-shadow: none;
78cd4073
RK
303 border-radius: 0 300px 300px 0;
304 border: none;
dae45075 305 margin-inline-start: 3px;
78cd4073
RK
306}
307#newtab-search-text:focus + #newtab-search-submit,
308#newtab-search-text[autofocus] + #newtab-search-submit {
1f756abf 309 background-image: none;
78cd4073 310 background-color: #008484;
1f756abf 311 color: #000000;
78cd4073
RK
312 box-shadow: none;
313}
314#newtab-search-text + #newtab-search-submit:hover {
1f756abf 315 background-image: none;
78cd4073 316 background-color: #FFCF00;
1f756abf 317 color: #000000;
78cd4073
RK
318 box-shadow: none;
319}
1f756abf
RK
320/* Newer versions only */
321#newtab-search-submit[value=""],
322#newtab-search-text:focus + #newtab-search-submit[value=""],
323#newtab-search-text[autofocus] + #newtab-search-submit[value=""],
324#newtab-search-text + #newtab-search-submit[value=""]:hover {
325 background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go");
326}
327
328/* CUSTOMIZE */
329#newtab-customize-overlay {
330 background: #A09090;
331}
332
333#newtab-customize-panel,
334#newtab-customize-panel-anchor,
335#newtab-customize-panel-inner-wrapper,
336.newtab-customize-panel-item,
337.newtab-customize-complex-option {
338 background-color: #000000;
339}
340
341#newtab-customize-title {
342 color: #9C9CFF;
343 background-color: #000000;
344}
345
346.newtab-customize-panel-item[selected],
347.newtab-customize-panel-subitem[selected] {
348 color: #FF9F00;
349}
350
351.newtab-customize-panel-item:not([selected]),
352.newtab-customize-panel-subitem:not([selected]) {
353 color: #A09090;
354}
355
356.newtab-customize-panel-subitem > .checkbox {
357 background-color: #000000;
358 border-color: #A09090;
359}
360
361.newtab-customize-panel-subitem[selected] > .checkbox {
362 background-color: #000000;
363 background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg");
364 color: #FF9F00;
365}
366
367.newtab-customize-panel-item:not(:first-child),
368.newtab-search-panel-engine {
369 border-top: 1px solid #A09090;
370}
371
372.newtab-customize-complex-option:hover > .selectable:not([selected]),
373.selectable:hover:not([selected]),
374.newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem,
375.newtab-customize-panel-item:hover:not([selected]) {
376 background-color: #FFCF00;
377 color: #000000;
378}
379
380.newtab-customize-complex-option:hover > .selectable:not([selected]),
381.selectable:hover:not([selected]) {
382 background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg");
383}