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 RK |
91 | /* CELLS */ |
92 | .newtab-cell { | |
8d7ef0d9 RK |
93 | background-color: rgba(255,159,0,.2); |
94 | border: 1px solid; | |
95 | border-color: #9C9CFF; | |
96 | border-radius: 1px; | |
0d686391 RK |
97 | } |
98 | ||
8d7ef0d9 | 99 | .newtab-cell:empty { |
2b5a5147 RK |
100 | outline: 2px dashed #A09090; |
101 | -moz-outline-radius: 2px; | |
0d686391 RK |
102 | } |
103 | ||
8d7ef0d9 RK |
104 | /* SITES */ |
105 | .newtab-site { | |
d4d77dc0 | 106 | border-radius: inherit; |
8d7ef0d9 | 107 | text-decoration: none; |
71a617ff | 108 | transition-property: top, left, opacity, box-shadow, background-color; |
0d686391 RK |
109 | } |
110 | ||
fff8097b | 111 | .newtab-cell:not([ignorehover]) > .newtab-site:hover, |
8d7ef0d9 RK |
112 | .newtab-site[dragged] { |
113 | box-shadow: 0 0 10px rgba(0,132,132,.3); | |
0d686391 RK |
114 | } |
115 | ||
8d7ef0d9 | 116 | .newtab-site[dragged] { |
71a617ff | 117 | transition-property: box-shadow, background-color; |
8d7ef0d9 | 118 | background-color: #002121; |
0d686391 RK |
119 | } |
120 | ||
2b5a5147 RK |
121 | /* LINKS */ |
122 | .newtab-link { | |
123 | border-radius: 3px; | |
124 | } | |
125 | ||
8d7ef0d9 RK |
126 | /* THUMBNAILS */ |
127 | .newtab-thumbnail { | |
128 | background-origin: padding-box; | |
129 | background-clip: padding-box; | |
130 | background-repeat: no-repeat; | |
131 | background-size: cover; | |
2b5a5147 RK |
132 | transition: opacity 100ms ease-out; |
133 | } | |
134 | ||
0ef54c72 | 135 | .newtab-cell:not([ignorehover]) .newtab-site:hover .newtab-thumbnail.enhanced-content { |
2b5a5147 | 136 | opacity: 0; |
0d686391 RK |
137 | } |
138 | ||
fff8097b | 139 | .newtab-site[type=affiliate] .newtab-thumbnail, |
2b5a5147 | 140 | .newtab-site[type=enhanced] .newtab-thumbnail, |
fff8097b RK |
141 | .newtab-site[type=organic] .newtab-thumbnail, |
142 | .newtab-site[type=sponsored] .newtab-thumbnail { | |
143 | background-position: center center; | |
144 | background-size: auto; | |
145 | } | |
146 | ||
8d7ef0d9 | 147 | /* TITLES */ |
58036cb8 | 148 | /*#newtab-intro-what,*/ |
2b5a5147 | 149 | .newtab-sponsored, |
0ef54c72 RK |
150 | .newtab-title, |
151 | .newtab-suggested { | |
8d7ef0d9 RK |
152 | padding: 0 8px; |
153 | background-color: rgba(255,159,0,.8); | |
154 | color: #000000; | |
8d7ef0d9 | 155 | line-height: 24px; |
fff8097b RK |
156 | bottom: 0 !important; |
157 | } | |
158 | ||
0ef54c72 RK |
159 | .newtab-suggested { |
160 | background-color: #9C9CFF; | |
161 | } | |
162 | ||
163 | .newtab-suggested:hover { | |
164 | background-color: #FFCF00; | |
165 | border: 1px solid #9C9CFF; | |
166 | } | |
167 | ||
168 | .newtab-suggested[active] { | |
169 | background-color: #FF9F00; | |
170 | border: 0; | |
171 | } | |
2b5a5147 RK |
172 | .newtab-site:hover .newtab-title { |
173 | background-color: #FFCF00; | |
0d686391 RK |
174 | } |
175 | ||
2b5a5147 RK |
176 | .newtab-site[pinned] .newtab-title { |
177 | padding: 0 15px; | |
0d686391 RK |
178 | } |
179 | ||
2b5a5147 RK |
180 | .newtab-site[pinned] .newtab-title::before { |
181 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 7, 278, 28, 266); | |
182 | background-size: 10px; | |
183 | content: ""; | |
184 | height: 17px; | |
482e8162 RK |
185 | left: 5px; |
186 | top: 5px; | |
2b5a5147 RK |
187 | position: absolute; |
188 | width: 10px; | |
0d686391 RK |
189 | } |
190 | ||
2b5a5147 RK |
191 | .newtab-site[pinned] .newtab-title:-moz-locale-dir(rtl)::before { |
192 | left: auto; | |
193 | right: 0; | |
0d686391 RK |
194 | } |
195 | ||
2b5a5147 RK |
196 | /* CONTROLS */ |
197 | .newtab-control { | |
198 | background-color: transparent; | |
199 | background-size: 24px; | |
200 | border: none; | |
201 | height: 24px; | |
202 | width: 24px; | |
0d686391 RK |
203 | } |
204 | ||
2b5a5147 RK |
205 | .newtab-control-pin, |
206 | .newtab-site[pinned] .newtab-control-pin:hover:active { | |
207 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 96, 32, 64); | |
0d686391 RK |
208 | } |
209 | ||
2b5a5147 RK |
210 | .newtab-control-pin:hover, |
211 | .newtab-site[pinned] .newtab-control-pin:hover { | |
212 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 128, 32, 96); | |
0d686391 RK |
213 | } |
214 | ||
2b5a5147 RK |
215 | .newtab-control-pin:hover:active, |
216 | .newtab-site[pinned] .newtab-control-pin { | |
217 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 160, 32, 128); | |
0d686391 | 218 | } |
fff8097b | 219 | |
2b5a5147 RK |
220 | .newtab-control-block { |
221 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 192, 32, 160); | |
fff8097b RK |
222 | } |
223 | ||
2b5a5147 RK |
224 | .newtab-control-block:hover { |
225 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 224, 32, 192); | |
fff8097b RK |
226 | } |
227 | ||
2b5a5147 RK |
228 | .newtab-control-block:hover:active { |
229 | background-image: -moz-image-rect(url("chrome://browser/skin/newtab/controls.svg"), 0, 256, 32, 224); | |
fff8097b | 230 | } |