77ecbc1b9b541e05c20fc19db2060b82cfbcc798
[themes.git] / LCARStrek / browser / newtab / newTab.css
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
5 :root {
6   -moz-appearance: none;
7   font-size: 75%;
8   background-color: transparent;
9   padding: 0;
10 }
11
12 /* SCROLLBOX */
13 #newtab-scrollbox:not([page-disabled]) {
14   color: #FF9F00;
15   background-color: #000000;
16 }
17
18 #newtab-scrollbox:not([page-disabled]) #newtab-margin-bottom {
19   background: inherit;
20 }
21
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);
64 }
65
66 #newtab-undo-close-button:hover {
67   -moz-image-region: rect(0, 32px, 16px, 16px);
68 }
69
70 #newtab-undo-close-button:-moz-focusring {
71   outline: 1px dotted;
72 }
73
74 /* CUSTOMIZE */
75 #newtab-customize-button,
76 .newtab-customize {
77   background-color: transparent;
78   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 32, 32, 0);
79   background-size: 28px;
80   border: none;
81   border-radius: 3px;
82   height: 28px;
83   width: 28px;
84 }
85
86 #newtab-customize-button:-moz-any(:hover, :active, [active]) {
87   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 64, 32, 32);
88   background-color: #FFCF00;
89 }
90
91 /* CELLS */
92 .newtab-cell,
93 .newtab-intro-cell,
94 .newtab-intro-cell-hover {
95   background-color: rgba(255,159,0,.2);
96   border: 1px solid;
97   border-color: #9C9CFF;
98   border-radius: 1px;
99 }
100
101 .newtab-cell:empty {
102   outline: 2px dashed #A09090;
103   -moz-outline-radius: 2px;
104 }
105
106 /* SITES */
107 .newtab-site {
108   border-radius: inherit;
109   text-decoration: none;
110   transition-property: top, left, opacity, box-shadow, background-color;
111 }
112
113 .newtab-cell:not([ignorehover]) .newtab-control:hover ~ .newtab-link,
114 .newtab-cell:not([ignorehover]) .newtab-link:hover,
115 .newtab-site[dragged],
116 .newtab-intro-cell-hover .newtab-link {
117   box-shadow: 0 0 10px rgba(0,132,132,.3);
118 }
119
120 .newtab-intro-cell .newtab-thumbnail,
121 .newtab-intro-cell-hover .newtab-thumbnail {
122   background-color: #cae1f4;
123   background-image: url("chrome://browser/skin/newtab/whimsycorn.png");
124 }
125
126 .newtab-site[dragged] {
127   transition-property: box-shadow, background-color;
128   background-color: #002121;
129 }
130
131 /* LINKS */
132 .newtab-link {
133   border-radius: 10px;
134   overflow: hidden;
135 }
136
137 /* THUMBNAILS */
138 .newtab-thumbnail {
139   background-origin: padding-box;
140   background-clip: padding-box;
141   background-repeat: no-repeat;
142   background-size: cover;
143   border-radius: 8px 8px 0px 0px;
144   height: 180px;
145   transition: opacity 100ms ease-out;
146 }
147
148 .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content {
149   opacity: 0;
150 }
151
152 .newtab-site[type=affiliate] .newtab-thumbnail,
153 .newtab-site[type=enhanced] .newtab-thumbnail,
154 .newtab-site[type=organic] .newtab-thumbnail,
155 .newtab-site[type=sponsored] .newtab-thumbnail {
156   background-position: center center;
157   background-size: auto;
158 }
159
160 /* TITLES */
161 /*#newtab-intro-what,*/
162 .newtab-sponsored,
163 .newtab-title,
164 .newtab-suggested {
165   padding: 0 8px;
166   background-color: rgba(255,159,0,.8);
167   color: #000000;
168   line-height: 24px;
169   bottom: 0 !important;
170 }
171
172 /*
173 .newtab-suggested {
174   background-color: #9C9CFF;
175 }
176
177 .newtab-suggested:hover {
178   background-color: #FFCF00;
179   border: 1px solid #9C9CFF;
180 }
181
182 .newtab-suggested[active] {
183   background-color: #FF9F00;
184   border: 0;
185 }
186 */
187 .newtab-site:hover .newtab-title {
188   background-color: #FFCF00;
189 }
190
191 .newtab-site[pinned] .newtab-title {
192   -moz-padding-start: 24px;
193 }
194
195 .newtab-site[pinned] .newtab-title::before {
196   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266);
197   background-size: 10px;
198   content: "";
199   height: 17px;
200   left: 5px;
201   top: 5px;
202   position: absolute;
203   width: 10px;
204   margin-left: 8px;
205   margin-top: 6px;
206 }
207
208 .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before {
209   left: auto;
210   right: 0;
211 }
212
213 /* CONTROLS */
214 .newtab-control {
215   background-color: transparent;
216   background-size: 24px;
217   border: none;
218   height: 24px;
219   width: 24px;
220 }
221
222 .newtab-control-pin,
223 .newtab-site[pinned] .newtab-control-pin:hover:active {
224   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64);
225 }
226
227 .newtab-control-pin:hover,
228 .newtab-site[pinned] .newtab-control-pin:hover {
229   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96);
230 }
231
232 .newtab-control-pin:hover:active,
233 .newtab-site[pinned] .newtab-control-pin {
234   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128);
235 }
236
237 .newtab-control-block {
238   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160);
239 }
240
241 .newtab-control-block:hover {
242   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192);
243 }
244
245 .newtab-control-block:hover:active {
246   background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224);
247 }