Commit | Line | Data |
---|---|---|
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 | ||
2b5a5147 RK |
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 | ||
8d7ef0d9 | 91 | /* CELLS */ |
d74db938 RK |
92 | .newtab-cell, |
93 | .newtab-intro-cell, | |
94 | .newtab-intro-cell-hover { | |
8d7ef0d9 RK |
95 | background-color: rgba(255,159,0,.2); |
96 | border: 1px solid; | |
97 | border-color: #9C9CFF; | |
98 | border-radius: 1px; | |
0d686391 RK |
99 | } |
100 | ||
8d7ef0d9 | 101 | .newtab-cell:empty { |
2b5a5147 RK |
102 | outline: 2px dashed #A09090; |
103 | -moz-outline-radius: 2px; | |
0d686391 RK |
104 | } |
105 | ||
8d7ef0d9 RK |
106 | /* SITES */ |
107 | .newtab-site { | |
d4d77dc0 | 108 | border-radius: inherit; |
8d7ef0d9 | 109 | text-decoration: none; |
71a617ff | 110 | transition-property: top, left, opacity, box-shadow, background-color; |
0d686391 RK |
111 | } |
112 | ||
d74db938 RK |
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 { | |
8d7ef0d9 | 117 | box-shadow: 0 0 10px rgba(0,132,132,.3); |
0d686391 RK |
118 | } |
119 | ||
d74db938 RK |
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 | ||
8d7ef0d9 | 126 | .newtab-site[dragged] { |
71a617ff | 127 | transition-property: box-shadow, background-color; |
8d7ef0d9 | 128 | background-color: #002121; |
0d686391 RK |
129 | } |
130 | ||
2b5a5147 RK |
131 | /* LINKS */ |
132 | .newtab-link { | |
d74db938 RK |
133 | border-radius: 10px; |
134 | overflow: hidden; | |
2b5a5147 RK |
135 | } |
136 | ||
8d7ef0d9 RK |
137 | /* THUMBNAILS */ |
138 | .newtab-thumbnail { | |
139 | background-origin: padding-box; | |
140 | background-clip: padding-box; | |
141 | background-repeat: no-repeat; | |
142 | background-size: cover; | |
d74db938 RK |
143 | border-radius: 8px 8px 0px 0px; |
144 | height: 180px; | |
2b5a5147 RK |
145 | transition: opacity 100ms ease-out; |
146 | } | |
147 | ||
0ef54c72 | 148 | .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content { |
2b5a5147 | 149 | opacity: 0; |
0d686391 RK |
150 | } |
151 | ||
fff8097b | 152 | .newtab-site[type=affiliate] .newtab-thumbnail, |
2b5a5147 | 153 | .newtab-site[type=enhanced] .newtab-thumbnail, |
fff8097b RK |
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 | ||
8d7ef0d9 | 160 | /* TITLES */ |
58036cb8 | 161 | /*#newtab-intro-what,*/ |
2b5a5147 | 162 | .newtab-sponsored, |
0ef54c72 RK |
163 | .newtab-title, |
164 | .newtab-suggested { | |
8d7ef0d9 RK |
165 | padding: 0 8px; |
166 | background-color: rgba(255,159,0,.8); | |
167 | color: #000000; | |
8d7ef0d9 | 168 | line-height: 24px; |
fff8097b RK |
169 | bottom: 0 !important; |
170 | } | |
171 | ||
d74db938 | 172 | /* |
0ef54c72 RK |
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 | } | |
d74db938 | 186 | */ |
2b5a5147 RK |
187 | .newtab-site:hover .newtab-title { |
188 | background-color: #FFCF00; | |
0d686391 RK |
189 | } |
190 | ||
2b5a5147 | 191 | .newtab-site[pinned] .newtab-title { |
d74db938 | 192 | -moz-padding-start: 24px; |
0d686391 RK |
193 | } |
194 | ||
2b5a5147 RK |
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; | |
482e8162 RK |
200 | left: 5px; |
201 | top: 5px; | |
2b5a5147 RK |
202 | position: absolute; |
203 | width: 10px; | |
d74db938 RK |
204 | margin-left: 8px; |
205 | margin-top: 6px; | |
0d686391 RK |
206 | } |
207 | ||
2b5a5147 RK |
208 | .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before { |
209 | left: auto; | |
210 | right: 0; | |
0d686391 RK |
211 | } |
212 | ||
2b5a5147 RK |
213 | /* CONTROLS */ |
214 | .newtab-control { | |
215 | background-color: transparent; | |
216 | background-size: 24px; | |
217 | border: none; | |
218 | height: 24px; | |
219 | width: 24px; | |
0d686391 RK |
220 | } |
221 | ||
2b5a5147 RK |
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); | |
0d686391 RK |
225 | } |
226 | ||
2b5a5147 RK |
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); | |
0d686391 RK |
230 | } |
231 | ||
2b5a5147 RK |
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); | |
0d686391 | 235 | } |
fff8097b | 236 | |
2b5a5147 RK |
237 | .newtab-control-block { |
238 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); | |
fff8097b RK |
239 | } |
240 | ||
2b5a5147 RK |
241 | .newtab-control-block:hover { |
242 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); | |
fff8097b RK |
243 | } |
244 | ||
2b5a5147 RK |
245 | .newtab-control-block:hover:active { |
246 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); | |
fff8097b | 247 | } |