sync both themes with classic theme changes in SeaMonkey 2.31 cycle
[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
8d7ef0d9 12/* SCROLLBOX */
2b5a5147 13#newtab-scrollbox:not([page-disabled]) {
3a0880a9 14 color: #FF9F00;
8d7ef0d9 15 background-color: #000000;
0d686391
RK
16}
17
2b5a5147
RK
18#newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom {
19 background: inherit;
20}
21
56ab361a
RK
22/* UNDO */
23#newtab-undo-container {
24 padding: 4px 3px;
25 border: 1px solid;
26 border-color: #9C9CFF;
27 background-color: #000000;
28 color: #8050B0;
29}
30
31#newtab-undo-label {
32 margin-top: 0;
33 margin-bottom: 0;
34}
35
36.newtab-undo-button {
37 color: #3333FF;
38 cursor: pointer;
39 padding: 0;
40 margin: 0 4px;
41 border: 0;
42 background: transparent;
43 text-decoration: none;
44 min-width: 0;
45}
46
47.newtab-undo-button:hover {
48 text-decoration: underline;
49}
50
51.newtab-undo-button:-moz-focusring {
52 outline: 1px dotted;
53}
54
55.newtab-undo-button > .button-box {
56 padding: 0;
57}
58
59#newtab-undo-close-button {
60 padding: 0;
61 border: none;
62 list-style-image: url("chrome://global/skin/icons/close.png");
63 -moz-image-region: rect(0, 16px, 16px, 0);
56ab361a
RK
64}
65
66#newtab-undo-close-button:hover {
67 -moz-image-region: rect(0, 32px, 16px, 16px);
68}
69
56ab361a
RK
70#newtab-undo-close-button:-moz-focusring {
71 outline: 1px dotted;
72}
73
8d7ef0d9
RK
74/* TOGGLE */
75#newtab-toggle {
76 width: 16px;
77 height: 16px;
78 padding: 0;
79 border: none;
80 background: -216px 0 transparent url("chrome://browser/skin/newtab/controls.png");
0d686391
RK
81}
82
8d7ef0d9
RK
83#newtab-toggle[page-disabled] {
84 background-position: -232px 0;
0d686391
RK
85}
86
2b5a5147
RK
87/* CUSTOMIZE */
88#newtab-customize-button,
89.newtab-customize {
90 background-color: transparent;
91 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0);
92 background-size: 28px;
93 border: none;
94 border-radius: 3px;
95 height: 28px;
96 width: 28px;
97}
98
99#newtab-customize-button:-moz-any(:hover, :active, [active]) {
100 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32);
101 background-color: #FFCF00;
102}
103
8d7ef0d9
RK
104/* ROWS */
105.newtab-row {
106 margin-bottom: 20px;
0d686391
RK
107}
108
8d7ef0d9
RK
109.newtab-row:last-child {
110 margin-bottom: 0;
0d686391
RK
111}
112
fff8097b
RK
113.newtab-row > .newtab-cell {
114 /* this only applies before Directory Tiles work, row is gone afterwards. */
115 -moz-margin-end: 20px;
116}
117
8d7ef0d9
RK
118/* CELLS */
119.newtab-cell {
8d7ef0d9
RK
120 background-color: rgba(255,159,0,.2);
121 border: 1px solid;
122 border-color: #9C9CFF;
123 border-radius: 1px;
71a617ff 124 transition: border-color 100ms ease-out;
0d686391
RK
125}
126
8d7ef0d9 127.newtab-cell:empty {
2b5a5147
RK
128 outline: 2px dashed #A09090;
129 -moz-outline-radius: 2px;
0d686391
RK
130}
131
fff8097b 132.newtab-row > .newtab-cell:last-child {
8d7ef0d9 133 -moz-margin-end: 0;
0d686391
RK
134}
135
fff8097b 136.newtab-cell:hover:not(:empty):not([dragged]):not([ignorehover]) {
8d7ef0d9 137 border-color: #FFCF00;
0d686391
RK
138}
139
8d7ef0d9
RK
140/* SITES */
141.newtab-site {
142 text-decoration: none;
71a617ff 143 transition-property: top, left, opacity, box-shadow, background-color;
0d686391
RK
144}
145
fff8097b 146.newtab-cell:not([ignorehover]) > .newtab-site:hover,
8d7ef0d9
RK
147.newtab-site[dragged] {
148 box-shadow: 0 0 10px rgba(0,132,132,.3);
0d686391
RK
149}
150
8d7ef0d9 151.newtab-site[dragged] {
71a617ff 152 transition-property: box-shadow, background-color;
8d7ef0d9 153 background-color: #002121;
0d686391
RK
154}
155
2b5a5147
RK
156/* LINKS */
157.newtab-link {
158 border-radius: 3px;
159}
160
8d7ef0d9
RK
161/* THUMBNAILS */
162.newtab-thumbnail {
163 background-origin: padding-box;
164 background-clip: padding-box;
165 background-repeat: no-repeat;
166 background-size: cover;
2b5a5147
RK
167 transition: opacity 100ms ease-out;
168}
169
170.newtab-site:hover .newtab-thumbnail.enhanced-content {
171 opacity: 0;
0d686391
RK
172}
173
fff8097b 174.newtab-site[type=affiliate] .newtab-thumbnail,
2b5a5147 175.newtab-site[type=enhanced] .newtab-thumbnail,
fff8097b
RK
176.newtab-site[type=organic] .newtab-thumbnail,
177.newtab-site[type=sponsored] .newtab-thumbnail {
178 background-position: center center;
179 background-size: auto;
180}
181
8d7ef0d9 182/* TITLES */
2b5a5147 183.newtab-sponsored,
8d7ef0d9
RK
184.newtab-title {
185 padding: 0 8px;
186 background-color: rgba(255,159,0,.8);
187 color: #000000;
8d7ef0d9 188 line-height: 24px;
fff8097b
RK
189 bottom: 0 !important;
190}
191
192.newtab-site[type=sponsored] .newtab-title {
193 -moz-padding-end: 24px;
0d686391
RK
194}
195
2b5a5147
RK
196.newtab-site:hover .newtab-title {
197 background-color: #FFCF00;
0d686391
RK
198}
199
2b5a5147
RK
200.newtab-site[pinned] .newtab-title {
201 padding: 0 15px;
0d686391
RK
202}
203
2b5a5147
RK
204.newtab-site[pinned] .newtab-title::before {
205 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
206 background-size: 10px;
207 content: "";
208 height: 17px;
209 left: 0;
210 position: absolute;
211 width: 10px;
0d686391
RK
212}
213
2b5a5147
RK
214.newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before {
215 left: auto;
216 right: 0;
0d686391
RK
217}
218
2b5a5147
RK
219/* CONTROLS */
220.newtab-control {
221 background-color: transparent;
222 background-size: 24px;
223 border: none;
224 height: 24px;
225 width: 24px;
0d686391
RK
226}
227
2b5a5147
RK
228.newtab-control-pin,
229.newtab-site[pinned] .newtab-control-pin:hover:active {
230 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
0d686391
RK
231}
232
2b5a5147
RK
233.newtab-control-pin:hover,
234.newtab-site[pinned] .newtab-control-pin:hover {
235 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
0d686391
RK
236}
237
2b5a5147
RK
238.newtab-control-pin:hover:active,
239.newtab-site[pinned] .newtab-control-pin {
240 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
0d686391 241}
fff8097b 242
2b5a5147
RK
243.newtab-control-block {
244 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
fff8097b
RK
245}
246
2b5a5147
RK
247.newtab-control-block:hover {
248 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
fff8097b
RK
249}
250
2b5a5147
RK
251.newtab-control-block:hover:active {
252 background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
fff8097b 253}