some corrections and finishing touches to that LCARStrek works well for Firefox 55...
[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
b1d1a8bb
RK
105/* GRID */
106#topsites-heading {
107 color: #A09090;
108 font-size: 1em;
109 font-weight: normal;
110 /* Position the heading such that it doesn't affect how many cells we
111 can fit into the grid. */
112 position: absolute;
113 /* The top margin moves the heading away from the grid.
114 The horizontal margin aligns the heading with the cells. */
115 margin: -1em 10px 0;
116}
117
8d7ef0d9 118/* CELLS */
c9b0a396 119.newtab-cell {
b1d1a8bb 120 --cell-corner-radius: 10px;
8d7ef0d9
RK
121 background-color: rgba(255,159,0,.2);
122 border: 1px solid;
123 border-color: #9C9CFF;
b1d1a8bb
RK
124 border-radius: var(--cell-corner-radius);
125}
126
127body.compact .newtab-cell {
128 --cell-corner-radius: 3px;
0d686391
RK
129}
130
8d7ef0d9 131.newtab-cell:empty {
2b5a5147 132 outline: 2px dashed #A09090;
b1d1a8bb
RK
133 outline-offset: -2px;
134 -moz-outline-radius: var(--cell-corner-radius);
0d686391
RK
135}
136
8d7ef0d9
RK
137/* SITES */
138.newtab-site {
b1d1a8bb 139 border-radius: var(--cell-corner-radius);
8d7ef0d9 140 text-decoration: none;
71a617ff 141 transition-property: top, left, opacity, box-shadow, background-color;
0d686391
RK
142}
143
d74db938
RK
144.newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
145.newtab-cell:not([ignorehover]) .newtab-link:hover,
c9b0a396 146.newtab-site[dragged] {
8d7ef0d9 147 box-shadow: 0 0 10px rgba(0,132,132,.3);
0d686391
RK
148}
149
8d7ef0d9 150.newtab-site[dragged] {
71a617ff 151 transition-property: box-shadow, background-color;
8d7ef0d9 152 background-color: #002121;
0d686391
RK
153}
154
2b5a5147
RK
155/* LINKS */
156.newtab-link {
b1d1a8bb 157 border-radius: var(--cell-corner-radius);
d74db938 158 overflow: hidden;
2b5a5147
RK
159}
160
d7b7f7e1
RK
161/***
162 * If you change the sizes here, change them in newTab.css
163 * and the preference values:
164 * toolkit.pageThumbs.minWidth
165 * toolkit.pageThumbs.minHeight
166 */
8d7ef0d9
RK
167/* THUMBNAILS */
168.newtab-thumbnail {
169 background-origin: padding-box;
170 background-clip: padding-box;
171 background-repeat: no-repeat;
172 background-size: cover;
d74db938 173 height: 180px;
2b5a5147
RK
174 transition: opacity 100ms ease-out;
175}
176
b1d1a8bb
RK
177body.compact .newtab-thumbnail {
178 height: 100%;
179 border-radius: calc(var(--cell-corner-radius) + 1px);
180 outline: 1px solid hsla(0,0%,0%,.1);
181 -moz-outline-radius: var(--cell-corner-radius);
182 outline-offset: -1px;
183}
184
185.newtab-thumbnail.placeholder {
186 color: #FFCF00;
187 font-size: 85px;
188 line-height: 200%;
189}
190
191body.compact .newtab-thumbnail.placeholder {
192 font-size: 45px;
193}
194
0ef54c72 195.newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
2b5a5147 196 opacity: 0;
0d686391
RK
197}
198
1b1f3d09 199.newtab-site[type=affiliate] .newtab-thumbnail {
fff8097b 200 background-position: center center;
b1d1a8bb
RK
201}
202
203body.compact .newtab-site[type=affiliate] .newtab-thumbnail {
204 background-position: center 30%;
205}
206
1b1f3d09 207.newtab-site[type=affiliate] .newtab-thumbnail {
fff8097b
RK
208 background-size: auto;
209}
210
8d7ef0d9 211/* TITLES */
b1d1a8bb
RK
212.newtab-title {
213 background-color: #FF9F00;
214 font-size: 13px;
215 line-height: 30px;
216 border: 1px solid #9C9CFF;
217 border-radius: 0 0 var(--cell-corner-radius) var(--cell-corner-radius);
218}
219
220body.compact .newtab-title {
221 background-color: rgba(255,159,0,.85);
222 font-size: 12px;
223 line-height: 21px;
224/* border: 1px solid hsla(0,0%,80%,.8);
225 border-top-color: hsla(0,0%,0%,.1);*/
226 background-clip: padding-box;
227}
228
1b1f3d09 229.newtab-title {
8d7ef0d9 230 color: #000000;
fff8097b
RK
231}
232
1b1f3d09 233body.compact .newtab-title {
b1d1a8bb
RK
234 color: #000000;
235}
236
b1d1a8bb 237body:not(.compact) .newtab-site:hover .newtab-title {
2b5a5147 238 background-color: #FFCF00;
b1d1a8bb
RK
239/* border-color: #333;
240 border-top-color: white;*/
241}
242
243body.compact .newtab-site:hover .newtab-title {
244/* color: white;
245 background-color: hsla(0,0%,20%,.85);
246 border-color: hsla(0,0%,0%,.8);
247 border-top-color: white;*/
0d686391
RK
248}
249
2b5a5147 250.newtab-site[pinned] .newtab-title {
dae45075 251 padding-inline-start: 24px;
0d686391
RK
252}
253
2b5a5147
RK
254.newtab-site[pinned] .newtab-title::before {
255 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
256 background-size: 10px;
257 content: "";
258 height: 17px;
482e8162
RK
259 left: 5px;
260 top: 5px;
2b5a5147
RK
261 position: absolute;
262 width: 10px;
d74db938 263 margin-left: 8px;
78cd4073 264 margin-top: 0;
0d686391
RK
265}
266
dae45075 267.newtab-site[pinned] .newtab-title:dir(rtl)::before {
2b5a5147
RK
268 left: auto;
269 right: 0;
0d686391
RK
270}
271
2b5a5147
RK
272/* CONTROLS */
273.newtab-control {
274 background-color: transparent;
275 background-size: 24px;
276 border: none;
277 height: 24px;
278 width: 24px;
b1d1a8bb
RK
279 top: 4px;
280}
281
282.newtab-control-pin:dir(ltr),
283.newtab-control-block:dir(rtl) {
284 left: 4px;
285}
286
287.newtab-control-block:dir(ltr),
288.newtab-control-pin:dir(rtl) {
289 right: 4px;
290}
291
292body.compact .newtab-control {
293 top: -8px;
294}
295
296body.compact .newtab-control-pin:dir(ltr),
297body.compact .newtab-control-block:dir(rtl) {
298 left: -8px;
299}
300
301body.compact .newtab-control-block:dir(ltr),
302body.compact .newtab-control-pin:dir(rtl) {
303 right: -8px;
0d686391
RK
304}
305
2b5a5147
RK
306.newtab-control-pin,
307.newtab-site[pinned] .newtab-control-pin:hover:active {
308 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
0d686391
RK
309}
310
2b5a5147
RK
311.newtab-control-pin:hover,
312.newtab-site[pinned] .newtab-control-pin:hover {
313 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
0d686391
RK
314}
315
2b5a5147
RK
316.newtab-control-pin:hover:active,
317.newtab-site[pinned] .newtab-control-pin {
318 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
0d686391 319}
fff8097b 320
2b5a5147
RK
321.newtab-control-block {
322 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
fff8097b
RK
323}
324
2b5a5147
RK
325.newtab-control-block:hover {
326 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
fff8097b
RK
327}
328
2b5a5147
RK
329.newtab-control-block:hover:active {
330 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
fff8097b 331}
78cd4073
RK
332
333/* SEARCH */
1f756abf
RK
334#newtab-search-logo:hover {
335 background-color: #FFCF00;
336 border: none;
337}
338#newtab-search-logo[active] {
339 background-color: #FF9F00;
340 border: none;
341}
342#newtab-search-logo {
343 background-image: url("chrome://browser/skin/magnifier.png");
344}
345#newtab-search-logo.magnifier[active],
346#newtab-search-logo.magnifier:hover {
347 background-image: url("chrome://browser/skin/magnifier-hover.png");
348}
349/* Newer versions only */
350#newtab-search-icon {
351 background-image: url("chrome://browser/skin/search-indicator-magnifying-glass.svg#magnifying-glass");
352}
353#newtab-search-logo.magnifier[active],
354#newtab-search-logo.magnifier:hover {
355 background-image: url("chrome://browser/skin/magnifier-hover.png");
356}
357
78cd4073
RK
358#newtab-search-text {
359 border: 1px solid #9C9CFF;
360 background-color: #000000;
361 color: #E7ADE7;
362}
689d5552 363#newtab-search-text::placeholder {
78cd4073
RK
364 color: #8050B0;
365}
366#newtab-search-text:focus {
367 border: 1px solid #008484;
368 box-shadow: 0 0 0 1px #008484 inset;
369}
370
371#newtab-search-submit {
1f756abf 372 background-image: none;
78cd4073 373 background-color: #C09070;
1f756abf
RK
374 color: #000000;
375 box-shadow: none;
78cd4073
RK
376 border-radius: 0 300px 300px 0;
377 border: none;
dae45075 378 margin-inline-start: 3px;
78cd4073
RK
379}
380#newtab-search-text:focus + #newtab-search-submit,
381#newtab-search-text[autofocus] + #newtab-search-submit {
1f756abf 382 background-image: none;
78cd4073 383 background-color: #008484;
1f756abf 384 color: #000000;
78cd4073
RK
385 box-shadow: none;
386}
387#newtab-search-text + #newtab-search-submit:hover {
1f756abf 388 background-image: none;
78cd4073 389 background-color: #FFCF00;
1f756abf 390 color: #000000;
78cd4073
RK
391 box-shadow: none;
392}
1f756abf
RK
393/* Newer versions only */
394#newtab-search-submit[value=""],
395#newtab-search-text:focus + #newtab-search-submit[value=""],
396#newtab-search-text[autofocus] + #newtab-search-submit[value=""],
397#newtab-search-text + #newtab-search-submit[value=""]:hover {
398 background-image: url("chrome://browser/skin/search-arrow-go.svg#search-arrow-go");
399}
400
401/* CUSTOMIZE */
402#newtab-customize-overlay {
403 background: #A09090;
404}
405
406#newtab-customize-panel,
407#newtab-customize-panel-anchor,
408#newtab-customize-panel-inner-wrapper,
409.newtab-customize-panel-item,
410.newtab-customize-complex-option {
411 background-color: #000000;
412}
413
414#newtab-customize-title {
415 color: #9C9CFF;
416 background-color: #000000;
417}
418
419.newtab-customize-panel-item[selected],
420.newtab-customize-panel-subitem[selected] {
421 color: #FF9F00;
422}
423
424.newtab-customize-panel-item:not([selected]),
425.newtab-customize-panel-subitem:not([selected]) {
426 color: #A09090;
427}
428
429.newtab-customize-panel-subitem > .checkbox {
430 background-color: #000000;
431 border-color: #A09090;
432}
433
434.newtab-customize-panel-subitem[selected] > .checkbox {
435 background-color: #000000;
436 background-image: url("chrome://global/skin/menu/shared-menu-check-active.svg");
437 color: #FF9F00;
438}
439
440.newtab-customize-panel-item:not(:first-child),
441.newtab-search-panel-engine {
442 border-top: 1px solid #A09090;
443}
444
445.newtab-customize-complex-option:hover > .selectable:not([selected]),
446.selectable:hover:not([selected]),
447.newtab-customize-complex-option:hover > .selectable:not([selected]) + .newtab-customize-panel-subitem,
448.newtab-customize-panel-item:hover:not([selected]) {
449 background-color: #FFCF00;
450 color: #000000;
451}
452
453.newtab-customize-complex-option:hover > .selectable:not([selected]),
454.selectable:hover:not([selected]) {
455 background-image: url("chrome://global/skin/menu/shared-menu-check-black.svg");
456}