OLD | NEW |
1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
4 body { | 4 body { |
5 background-attachment: fixed !important; | 5 background-attachment: fixed !important; |
6 background-color: white; | 6 background-color: white; |
7 cursor: default; | 7 cursor: default; |
8 font-family: arial, sans-serif; | 8 font-family: arial, sans-serif; |
9 font-size: small; | 9 font-size: small; |
10 margin: 0; | 10 margin: 0; |
11 overflow-x: hidden; | 11 overflow-x: hidden; |
12 } | 12 } |
13 | 13 |
14 #ntp-contents { | 14 #ntp-contents { |
15 text-align: -webkit-center; | 15 text-align: -webkit-center; |
16 } | 16 } |
17 | 17 |
18 .non-google-page #ntp-contents { | 18 .non-google-page #ntp-contents { |
19 position: absolute; | 19 position: absolute; |
20 top: calc(50% - 155px); | 20 top: calc(50% - 155px); |
21 width: 100%; | 21 width: 100%; |
22 } | 22 } |
23 | 23 |
| 24 #ntp-contents.classical { |
| 25 margin-top: 157px; |
| 26 } |
| 27 |
| 28 #ntp-contents.md { |
| 29 margin-top: 157px; |
| 30 } |
| 31 |
24 body.hide-fakebox-logo #logo, | 32 body.hide-fakebox-logo #logo, |
25 body.hide-fakebox-logo #fakebox { | 33 body.hide-fakebox-logo #fakebox { |
26 visibility: hidden; | 34 visibility: hidden; |
27 } | 35 } |
28 | 36 |
29 body.fakebox-disable #fakebox { | 37 body.fakebox-disable #fakebox { |
30 border-color: rgb(238, 238, 238); | 38 border-color: rgb(238, 238, 238); |
31 cursor: default; | 39 cursor: default; |
32 } | 40 } |
33 | 41 |
34 body.fakebox-disable #fakebox > input { | 42 body.fakebox-disable #fakebox > input { |
35 cursor: default; | 43 cursor: default; |
36 } | 44 } |
37 | 45 |
38 #logo { | 46 #logo { |
39 background-image: url('images/google_logo.png@2x'); | 47 background-image: url(images/google_logo.png); |
40 background-repeat: no-repeat; | 48 background-repeat: no-repeat; |
41 background-size: 269px 95px; | 49 background-size: 269px 95px; |
42 height: 95px; | 50 height: 95px; |
43 margin-bottom: 24px; | 51 margin-bottom: 24px; |
44 margin-top: 157px; | |
45 width: 269px; | 52 width: 269px; |
46 } | 53 } |
47 | 54 |
48 body.alternate-logo #logo { | 55 body.alternate-logo #logo { |
49 background-image: url('images/white_google_logo.png@2x'); | 56 -webkit-mask-image: url(images/google_logo.png@2x); |
| 57 -webkit-mask-repeat: no-repeat; |
| 58 -webkit-mask-size: 100%; |
| 59 background: #eee; |
50 } | 60 } |
51 | 61 |
52 #fakebox { | 62 #fakebox { |
53 /* Use GPU compositing if available. */ | 63 /* Use GPU compositing if available. */ |
54 -webkit-transform: translate3d(0, 0, 0); | 64 -webkit-transform: translate3d(0, 0, 0); |
55 -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; | 65 -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; |
56 background-color: #fff; | 66 background-color: #fff; |
57 border: 1px solid rgb(185, 185, 185); | 67 border: 1px solid rgb(185, 185, 185); |
58 border-radius: 1px; | 68 border-radius: 1px; |
59 border-top-color: rgb(160, 160, 160); | 69 border-top-color: rgb(160, 160, 160); |
60 cursor: text; | 70 cursor: text; |
61 font-size: 18px; | 71 font-size: 18px; |
62 height: 36px; | 72 height: 36px; |
63 line-height: 36px; | 73 line-height: 36px; |
64 max-width: 620px; | 74 max-width: 672px; |
65 position: relative; | 75 position: relative; |
66 /* #fakebox width (here and below) should be 2px less than #mv-tiles | 76 /* #fakebox width (here and below) should be 2px less than #mv-tiles |
67 to account for its border. */ | 77 to account for its border. */ |
68 width: 298px; | 78 width: 298px; |
69 } | 79 } |
70 | 80 |
71 #fakebox:hover { | 81 #fakebox:hover { |
72 border: 1px solid rgb(169, 169, 169); | 82 border: 1px solid rgb(169, 169, 169); |
73 border-top-color: rgb(144, 144, 144); | 83 border-top-color: rgb(144, 144, 144); |
74 } | 84 } |
(...skipping 21 matching lines...) Expand all Loading... |
96 body[dir=rtl] #fakebox > input { | 106 body[dir=rtl] #fakebox > input { |
97 padding-left: 0; | 107 padding-left: 0; |
98 padding-right: 8px; | 108 padding-right: 8px; |
99 right: 0; | 109 right: 0; |
100 } | 110 } |
101 | 111 |
102 #fakebox-text { | 112 #fakebox-text { |
103 color: #bbb; | 113 color: #bbb; |
104 font-family: arial, sans-serif; | 114 font-family: arial, sans-serif; |
105 font-size: 16px; | 115 font-size: 16px; |
106 height: 16px; | 116 height: 100%; |
107 left: 9px; | 117 left: 9px; |
108 margin-top: 1px; | 118 margin-top: 1px; |
| 119 overflow: hidden; |
109 position: absolute; | 120 position: absolute; |
| 121 text-align: left; |
| 122 text-overflow: ellipsis; |
110 vertical-align: middle; | 123 vertical-align: middle; |
111 visibility: hidden; | 124 visibility: hidden; |
| 125 white-space: nowrap; |
| 126 width: calc(100% - 2 * 9px); |
112 } | 127 } |
113 | 128 |
114 body[dir=rtl] #fakebox-text { | 129 body[dir=rtl] #fakebox-text { |
115 left: auto; | 130 left: auto; |
116 right: 9px; | 131 right: 9px; |
117 } | 132 } |
118 | 133 |
119 #cursor { | 134 #cursor { |
120 background: #333; | 135 background: #333; |
121 bottom: 5px; | 136 bottom: 5px; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 #most-visited { | 172 #most-visited { |
158 -webkit-user-select: none; | 173 -webkit-user-select: none; |
159 text-align: -webkit-center; | 174 text-align: -webkit-center; |
160 } | 175 } |
161 | 176 |
162 .classical #most-visited { | 177 .classical #most-visited { |
163 margin-top: 51px; | 178 margin-top: 51px; |
164 } | 179 } |
165 | 180 |
166 .md #most-visited { | 181 .md #most-visited { |
167 margin-top: 50px; | 182 margin-top: 64px; |
168 } | 183 } |
169 | 184 |
170 #mv-tiles { | 185 #mv-tiles { |
171 margin: 0; | 186 margin: 0; |
172 position: relative; | 187 position: relative; |
173 text-align: left; | 188 text-align: left; |
174 } | 189 } |
175 | 190 |
176 body[dir=rtl] #mv-tiles { | 191 body[dir=rtl] #mv-tiles { |
177 text-align: right; | 192 text-align: right; |
178 } | 193 } |
179 | 194 |
180 .classical #mv-tiles { | 195 .classical #mv-tiles { |
181 height: calc(2 * 138px); | 196 height: calc(2 * 138px); |
182 line-height: 138px; | 197 line-height: 138px; |
183 } | 198 } |
184 | 199 |
185 .md #mv-tiles { | 200 .md #mv-tiles { |
186 height: calc(2 * 126px); | 201 height: calc(2 * 146px); |
187 line-height: 126px; | 202 line-height: 146px; |
188 } | 203 } |
189 | 204 |
190 .mv-tile { | 205 .mv-tile { |
191 display: inline-block; | 206 display: inline-block; |
192 position: relative; | 207 position: relative; |
193 vertical-align: top; | 208 vertical-align: top; |
194 } | 209 } |
195 | 210 |
196 .mv-page-ready { | 211 .mv-page-ready { |
197 cursor: pointer; | 212 cursor: pointer; |
198 outline: none; | 213 outline: none; |
199 } | 214 } |
200 | 215 |
201 .classical .mv-tile { | 216 .classical .mv-tile { |
202 background: linear-gradient(#f2f2f2, #e8e8e8); | 217 background: linear-gradient(#f2f2f2, #e8e8e8); |
203 border-radius: 3px; | 218 border-radius: 3px; |
204 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09); | 219 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09); |
205 height: 85px; | 220 height: 85px; |
206 margin-left: 10px; | 221 margin-left: 10px; |
207 margin-right: 10px; /* Total horizontal margins add to TILE_MARGIN. */ | 222 margin-right: 10px; /* Total horizontal margins add to TILE_MARGIN. */ |
208 width: 140px; | 223 width: 140px; |
209 } | 224 } |
210 | 225 |
211 .classical .mv-page-ready { | 226 .classical .mv-page-ready { |
212 -webkit-transition-duration: 200ms; | 227 -webkit-transition-duration: 200ms; |
213 -webkit-transition-property: -webkit-transform, margin, opacity, width; | 228 -webkit-transition-property: -webkit-transform, margin, opacity, width; |
214 } | 229 } |
215 | 230 |
216 .md .mv-tile { | 231 .md .mv-tile { |
217 background: #f2f2f2; | 232 background: rgb(242,242,242); |
218 border-radius: 1px; | 233 border-radius: 1px; |
219 height: 114px; | 234 height: 130px; |
220 margin-left: 6px; | 235 margin-left: 8px; |
221 margin-right: 6px; | 236 margin-right: 8px; |
222 width: 146px; | 237 width: 156px; |
223 } | 238 } |
224 | 239 |
225 .md .mv-page-ready { | 240 .md .mv-page-ready { |
226 -webkit-transition-duration: 200ms; | 241 -webkit-transition-duration: 200ms; |
227 -webkit-transition-property: -webkit-transform, margin, opacity, width; | 242 -webkit-transition-property: -webkit-transform, margin, opacity, width; |
228 } | 243 } |
229 | 244 |
230 .md.dark .mv-tile { | 245 .md.dark .mv-tile { |
231 background: #333; | 246 background: rgb(51,51,51); |
232 } | 247 } |
233 | 248 |
234 .mv-tile-inner { | 249 .mv-tile-inner { |
235 visibility: hidden; | 250 visibility: hidden; |
236 } | 251 } |
237 | 252 |
238 .mv-page-ready .mv-tile-inner { | 253 .mv-page-ready .mv-tile-inner { |
239 visibility: visible; | 254 visibility: visible; |
240 } | 255 } |
241 | 256 |
(...skipping 25 matching lines...) Expand all Loading... |
267 position: absolute; | 282 position: absolute; |
268 } | 283 } |
269 | 284 |
270 .classical .mv-mask { | 285 .classical .mv-mask { |
271 box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.09); | 286 box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.09); |
272 } | 287 } |
273 | 288 |
274 .md .mv-mask { | 289 .md .mv-mask { |
275 border-color: transparent; | 290 border-color: transparent; |
276 border-radius: 2px; | 291 border-radius: 2px; |
277 height: 112px; | 292 height: calc(130px - 2px); |
278 width: 144px; | 293 width: calc(156px - 2px); |
279 } | 294 } |
280 | 295 |
281 /* Styling border. */ | 296 /* Styling border. */ |
282 .classical .mv-page-ready .mv-mask { | 297 .classical .mv-page-ready .mv-mask { |
283 border-style: solid; | 298 border-style: solid; |
284 } | 299 } |
285 | 300 |
286 .default-theme.classical .mv-page-ready .mv-mask { | 301 .default-theme.classical .mv-page-ready .mv-mask { |
287 border-color: #c0c0c0; | 302 border-color: #c0c0c0; |
288 } | 303 } |
289 | 304 |
290 .default-theme.classical .mv-page-ready:hover .mv-mask, | 305 .default-theme.classical .mv-page-ready:hover .mv-mask, |
291 .default-theme.classical .mv-page-ready:focus .mv-mask { | 306 .default-theme.classical .mv-page-ready:focus .mv-mask { |
292 border-color: #7f7f7f; | 307 border-color: #7f7f7f; |
293 } | 308 } |
294 | 309 |
295 .default-theme.md.old-hover .mv-page-ready:hover .mv-mask, | 310 .default-theme.md.old-hover .mv-page-ready:hover .mv-mask, |
296 .default-theme.md.old-hover .mv-page-ready:focus .mv-mask { | 311 .default-theme.md.old-hover .mv-page-ready:focus .mv-mask { |
297 border-color: #999; | 312 border-color: #999; |
298 } | 313 } |
299 | 314 |
300 .default-theme.md.dark .mv-page-ready:hover .mv-mask, | 315 .default-theme.md.dark .mv-page-ready:hover .mv-mask, |
301 .default-theme.md.dark .mv-page-ready:focus .mv-mask, | 316 .default-theme.md.dark .mv-page-ready:focus .mv-mask, |
302 .default-theme.md.old-hover.dark .mv-page-ready:hover .mv-mask { | 317 .default-theme.md.old-hover.dark .mv-page-ready:hover .mv-mask { |
303 border-color: #888; | 318 border-color: #888; |
304 } | 319 } |
305 | 320 |
306 /* Styling shadow. */ | 321 /* Styling shadow. */ |
307 .md .mv-page-ready .mv-mask { | 322 .default-theme.md .mv-page-ready .mv-mask { |
308 -webkit-transition: box-shadow 200ms, border 200ms; | 323 -webkit-transition: box-shadow 200ms, border 200ms; |
309 } | 324 } |
310 .default-theme.md .mv-page-ready:hover .mv-mask { | 325 .default-theme.md .mv-page-ready:hover .mv-mask { |
311 box-shadow: 0 2px 8px rgba(0,0,0,0.3); | 326 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); |
312 } | 327 } |
313 | 328 |
314 .default-theme..md.dark .mv-page-ready:hover .mv-mask, | 329 .default-theme..md.dark .mv-page-ready:hover .mv-mask, |
315 .default-theme..md.old-hover .mv-page-ready:hover .mv-mask { | 330 .default-theme..md.old-hover .mv-page-ready:hover .mv-mask { |
316 box-shadow: none; | 331 box-shadow: none; |
317 } | 332 } |
318 | 333 |
319 /* Styling background. */ | 334 /* Styling background. */ |
320 .classical .mv-page:focus .mv-mask { | 335 .classical .mv-page:focus .mv-mask { |
321 -webkit-transition: background-color 100ms ease-in-out; | 336 -webkit-transition: background-color 100ms ease-in-out; |
322 background: linear-gradient(rgba(255, 255, 255, 0), | 337 background: linear-gradient(rgba(255, 255, 255, 0), |
323 rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.9)); | 338 rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.9)); |
324 background-color: rgba(0, 0, 0, 0.35); | 339 background-color: rgba(0, 0, 0, 0.35); |
325 } | 340 } |
326 | 341 |
327 .md .mv-page:focus .mv-mask { | 342 .md .mv-page:focus .mv-mask { |
328 -webkit-transition: box-shadow 200ms, border 200ms, | 343 -webkit-transition: box-shadow 200ms, border 200ms, |
329 background-color 100ms ease-in-out, ; | 344 background-color 100ms ease-in-out; |
330 background: rgba(0, 0, 0, 0.3); | 345 background: rgba(0, 0, 0, 0.3); |
331 border-color: rgba(0, 0, 0, 0.3); | 346 border-color: rgba(0, 0, 0, 0.3); |
332 } | 347 } |
333 | 348 |
334 .mv-title { | 349 .mv-title { |
335 border: none; | 350 border: none; |
336 position: absolute; | 351 position: absolute; |
337 } | 352 } |
338 | 353 |
339 .classical .mv-title { | 354 .classical .mv-title { |
340 bottom: -27px; | 355 bottom: -27px; |
341 height: 18px; | 356 height: 18px; |
342 left: 0; | 357 left: 0; |
343 width: 140px; | 358 width: 140px; |
344 } | 359 } |
345 | 360 |
346 .md .mv-title { | 361 .md .mv-title { |
347 bottom: auto; | 362 bottom: auto; |
348 height: 15px; | 363 height: 15px; |
349 left: 28px; | 364 left: 32px; |
350 top: 7px; | 365 top: 9px; |
351 width: 112px; | 366 width: calc(156px - 32px - 4px); |
352 } | 367 } |
353 | 368 |
354 @media (-webkit-min-device-pixel-ratio: 2) { | 369 @media (-webkit-min-device-pixel-ratio: 2) { |
355 .md .mv-title { | 370 .md .mv-title { |
356 top: 6px; | 371 top: 8px; |
357 } | 372 } |
358 } | 373 } |
359 | 374 |
360 body[dir=rtl] .md .mv-title { | 375 body[dir=rtl] .md .mv-title { |
361 left: auto; | 376 left: auto; |
362 right: 28px; | 377 right: 32px; |
363 } | 378 } |
364 | 379 |
365 .mv-thumb { | 380 .mv-thumb { |
366 border: none; | 381 border: none; |
367 cursor: pointer; | 382 cursor: pointer; |
368 position: absolute; | 383 position: absolute; |
369 } | 384 } |
370 | 385 |
371 .classical .mv-thumb, | 386 .classical .mv-thumb, |
372 .classical .mv-mask { | 387 .classical .mv-mask { |
373 height: 83px; | 388 height: 83px; |
374 width: 138px; | 389 width: 138px; |
375 } | 390 } |
376 | 391 |
377 .classical .mv-thumb { | 392 .classical .mv-thumb { |
378 border-radius: 2px; | 393 border-radius: 2px; |
379 left: 1px; | 394 left: 1px; |
380 top: 1px; | 395 top: 1px; |
381 } | 396 } |
382 | 397 |
383 .classical .mv-mask { | 398 .classical .mv-mask { |
384 border-radius: 3px; | 399 border-radius: 3px; |
385 left: 0; | 400 left: 0; |
386 top: 0; | 401 top: 0; |
387 } | 402 } |
388 | 403 |
389 .md .mv-thumb, | 404 .md .mv-thumb, |
390 .md .mv-thumb-fallback { | 405 .md .mv-thumb-fallback { |
391 border-radius: 0; | 406 border-radius: 0; |
392 height: 82px; | 407 height: 94px; |
393 left: 4px; | 408 left: 4px; |
394 top: 28px; | 409 top: 32px; |
395 width: 138px; | 410 width: 148px; |
396 } | 411 } |
397 | 412 |
398 body[dir=rtl] .md .mv-thumb, | 413 body[dir=rtl] .md .mv-thumb, |
399 body[dir=rtl] .md .mv-thumb-fallback { | 414 body[dir=rtl] .md .mv-thumb-fallback { |
400 left: auto; | 415 left: auto; |
401 right: 4px; | 416 right: 4px; |
402 } | 417 } |
403 | 418 |
404 .md .mv-thumb-fallback { | 419 .md .mv-thumb-fallback { |
405 background: #fff; | 420 background-color: #fff; |
406 padding: none; | |
407 position: absolute; | 421 position: absolute; |
408 } | 422 } |
409 | 423 |
410 .md.dark .mv-thumb-fallback { | 424 .md.dark .mv-thumb-fallback { |
411 background: #555; | 425 background-color: #555; |
412 } | 426 } |
413 | 427 |
414 .md .mv-thumb-fallback .dot { | 428 .md .mv-thumb-fallback .dot { |
415 background: #f2f2f2; | 429 background-color: #f2f2f2; |
416 border-radius: 16px; | 430 border-radius: 8px; |
417 display: block; | 431 display: block; |
418 height: 32px; | 432 height: 16px; |
419 left: 50%; | 433 left: 50%; |
420 margin-left: -16px; | 434 margin-left: -8px; |
421 margin-top: -16px; | 435 margin-top: -8px; |
422 position: absolute; | 436 position: absolute; |
423 top: 50%; | 437 top: 50%; |
424 width: 32px; | 438 width: 16px; |
425 } | 439 } |
426 | 440 |
427 .md.dark .mv-thumb-fallback .dot { | 441 .md.dark .mv-thumb-fallback .dot { |
428 background: #333; | 442 background-color: #333; |
429 } | 443 } |
430 | 444 |
431 .mv-x-hide .mv-x { | 445 .mv-x-hide .mv-x { |
432 display: none; | 446 display: none; |
433 } | 447 } |
434 | 448 |
435 /* An X button to blacklist a tile or hide the notification. */ | 449 /* An X button to blacklist a tile or hide the notification. */ |
436 .mv-x { | 450 .mv-x { |
437 background-color: transparent; | 451 background-color: transparent; |
438 background-image: url(images/close_2.png); | |
439 border: none; | 452 border: none; |
440 cursor: default; | 453 cursor: pointer; |
441 height: 16px; | |
442 width: 16px; | |
443 } | 454 } |
444 | 455 |
445 .mv-page .mv-x { | 456 .mv-page .mv-x { |
446 -webkit-transition: opacity 150ms; | 457 -webkit-transition: opacity 150ms; |
447 opacity: 0; | 458 opacity: 0; |
448 position: absolute; | 459 position: absolute; |
449 } | 460 } |
450 | 461 |
451 .mv-x:hover, | 462 .classical .mv-x { |
452 #mv-notice-x:focus { | 463 background-image: url(images/close_2.png); |
| 464 height: 16px; |
| 465 width: 16px; |
| 466 } |
| 467 |
| 468 .classical .mv-x:hover, |
| 469 .classical #mv-notice-x:focus { |
453 background-image: url(images/close_2_hover.png); | 470 background-image: url(images/close_2_hover.png); |
454 } | 471 } |
455 | 472 |
456 .mv-x:active { | 473 .classical .mv-x:active, |
| 474 .classical #mv-notice-x:active { |
457 background-image: url(images/close_2_active.png); | 475 background-image: url(images/close_2_active.png); |
458 } | 476 } |
459 | 477 |
460 .classical .mv-page .mv-x { | 478 .classical .mv-page .mv-x { |
461 right: 2px; | 479 right: 2px; |
462 top: 2px; | 480 top: 2px; |
463 } | 481 } |
464 | 482 |
465 .md .mv-x { | |
466 background-color: rgba(187,187,187,0.8); | |
467 border-radius: 8px; | |
468 } | |
469 | |
470 .md.dark .mv-x { | |
471 background-color: rgba(119,119,119,0.8); | |
472 } | |
473 | |
474 .md .mv-page .mv-x { | |
475 right: 4px; | |
476 top: 5px; | |
477 } | |
478 | |
479 body[dir=rtl] .classical .mv-page .mv-x { | 483 body[dir=rtl] .classical .mv-page .mv-x { |
480 left: 2px; | 484 left: 2px; |
481 right: auto; | 485 right: auto; |
482 } | 486 } |
483 | 487 |
| 488 #mv-notice-x { |
| 489 display: inline-block; |
| 490 position: relative; |
| 491 } |
| 492 |
| 493 .md #mv-notice-x { |
| 494 -webkit-transform: translate(0,-10px); |
| 495 } |
| 496 |
| 497 .md .mv-x { |
| 498 height: 32px; |
| 499 width: 32px; |
| 500 } |
| 501 |
| 502 .md .mv-x .mv-x-inner { |
| 503 -webkit-mask-image: url(images/close_3_mask.png); |
| 504 -webkit-mask-repeat: no-repeat; |
| 505 -webkit-mask-size: 10px 10px; |
| 506 background-color: rgba(90,90,90,0.7); |
| 507 height: 10px; |
| 508 left: 50%; |
| 509 margin-left: -5px; |
| 510 margin-top: -5px; |
| 511 position: absolute; |
| 512 top: 50%; |
| 513 width: 10px; |
| 514 } |
| 515 |
| 516 .md.dark .mv-x .mv-x-inner { |
| 517 background-color: rgba(255,255,255,0.7); |
| 518 } |
| 519 |
| 520 .md .mv-x:hover .mv-x-inner, |
| 521 .md #mv-notice-x:focus .mv-x-inner { |
| 522 background-color: rgb(90,90,90); |
| 523 } |
| 524 |
| 525 .md.dark .mv-x:hover .mv-x-inner, |
| 526 .md.dark #mv-notice-x:focus .mv-x-inner { |
| 527 background-color: rgb(255,255,255); |
| 528 } |
| 529 |
| 530 .md .mv-x:active .mv-x-inner, |
| 531 .md #mv-notice-x:active .mv-x-inner { |
| 532 background-color: rgb(66,133,244); |
| 533 } |
| 534 |
| 535 .md.dark .mv-x:active .mv-x-inner, |
| 536 .md.dark #mv-notice-x:active .mv-x-inner { |
| 537 background-color: rgba(255,255,255,0.5); |
| 538 } |
| 539 |
| 540 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 541 .md .mv-x .mv-x-inner { |
| 542 -webkit-mask-image: url(images/close_3_mask.png@2x); |
| 543 } |
| 544 } |
| 545 |
| 546 .md .mv-page .mv-x { |
| 547 /* background color needs to match .md .mv-tile */ |
| 548 background: linear-gradient(to right, transparent, rgb(242,242,242) 10%); |
| 549 right: 0; |
| 550 top: 0; |
| 551 } |
| 552 |
484 body[dir=rtl] .md .mv-page .mv-x { | 553 body[dir=rtl] .md .mv-page .mv-x { |
485 left: 4px; | 554 /* background color needs to match .md .mv-tile */ |
| 555 background: linear-gradient(to left, transparent, rgb(242,242,242) 10%); |
| 556 left: 0; |
486 right: auto; | 557 right: auto; |
487 } | 558 } |
488 | 559 |
| 560 .md.dark .mv-page .mv-x { |
| 561 /* background color needs to match .md.dark .mv-tile */ |
| 562 background: linear-gradient(to right, transparent, rgba(51,51,51,0.9) 30%); |
| 563 } |
| 564 |
| 565 body[dir=rtl] .md.dark .mv-page .mv-x { |
| 566 /* background color needs to match .md.dark .mv-tile */ |
| 567 background: linear-gradient(to left, transparent, rgba(51,51,51,0.9) 30%); |
| 568 } |
| 569 |
489 .mv-page-ready:hover .mv-x { | 570 .mv-page-ready:hover .mv-x { |
490 -webkit-transition-delay: 500ms; | 571 -webkit-transition-delay: 500ms; |
491 opacity: 1; | 572 opacity: 1; |
492 } | 573 } |
493 | 574 |
494 .mv-page-ready .mv-x:hover { | 575 .mv-page-ready .mv-x:hover { |
495 -webkit-transition: none; | 576 -webkit-transition: none; |
496 } | 577 } |
497 | 578 |
498 .mv-favicon { | 579 .mv-favicon { |
499 background-size: 16px; | 580 background-size: 16px; |
500 height: 16px; | 581 height: 16px; |
501 pointer-events: none; | 582 pointer-events: none; |
502 position: absolute; | 583 position: absolute; |
503 width: 16px; | 584 width: 16px; |
504 } | 585 } |
505 | 586 |
506 .classical .mv-favicon { | 587 .classical .mv-favicon { |
507 bottom: -7px; | 588 bottom: -7px; |
508 left: 62px; | 589 left: 62px; |
509 } | 590 } |
510 | 591 |
511 .md .mv-favicon { | 592 .md .mv-favicon { |
512 left: 6px; | 593 left: 8px; |
513 top: 6px; | 594 top: 8px; |
514 } | 595 } |
515 | 596 |
516 body[dir=rtl] .md .mv-favicon { | 597 body[dir=rtl] .md .mv-favicon { |
517 left: auto; | 598 left: auto; |
518 right: 6px; | 599 right: 8px; |
519 top: 6px; | 600 top: 8px; |
| 601 } |
| 602 |
| 603 .md .mv-favicon-fallback { |
| 604 background-image: url(images/ntp_default_favicon.png); |
| 605 background-repeat: no-repeat; |
| 606 background-size: 16px 16px; |
| 607 } |
| 608 |
| 609 @media (-webkit-min-device-pixel-ratio: 1.5) { |
| 610 .md .mv-favicon-fallback { |
| 611 background-image: url(images/ntp_default_favicon.png@2x); |
| 612 } |
520 } | 613 } |
521 | 614 |
522 /* The notification shown when a tile is blacklisted. */ | 615 /* The notification shown when a tile is blacklisted. */ |
523 #mv-notice { | 616 #mv-notice { |
524 font-size: 12px; | 617 font-size: 12px; |
525 font-weight: bold; | 618 font-weight: bold; |
526 opacity: 1; | 619 opacity: 1; |
527 padding: 10px 0; | 620 padding: 10px 0; |
528 } | 621 } |
529 | 622 |
530 #mv-notice span { | 623 #mv-notice span { |
531 cursor: default; | 624 cursor: default; |
| 625 display: inline-block; |
| 626 height: 16px; |
| 627 line-height: 16px; |
| 628 vertical-align: top; |
532 } | 629 } |
533 | 630 |
534 /* Links in the notification. */ | 631 /* Links in the notification. */ |
535 #mv-notice-links span { | 632 #mv-notice-links span { |
536 -webkit-margin-start: 6px; | 633 -webkit-margin-start: 6px; |
537 color: rgb(17, 85, 204); | 634 color: rgb(17, 85, 204); |
538 cursor: pointer; | 635 cursor: pointer; |
539 outline: none; | 636 outline: none; |
540 padding: 0 4px; | 637 padding: 0 4px; |
541 } | 638 } |
542 | 639 |
543 #mv-notice-links span:hover, | 640 #mv-notice-links span:hover, |
544 #mv-notice-links span:focus, | 641 #mv-notice-links span:focus, |
545 #recent-tabs:hover { | 642 #recent-tabs:hover { |
546 text-decoration: underline; | 643 text-decoration: underline; |
547 } | 644 } |
548 | 645 |
549 .default-theme.dark #mv-msg { | 646 .default-theme.dark #mv-msg { |
550 color: #fff; | 647 color: #fff; |
551 } | 648 } |
552 | 649 |
| 650 .default-theme.dark #mv-notice-links span { |
| 651 color: #fff; |
| 652 } |
| 653 |
553 #mv-notice-links .mv-x { | 654 #mv-notice-links .mv-x { |
554 -webkit-margin-start: 8px; | 655 -webkit-margin-start: 8px; |
555 outline: none; | 656 outline: none; |
556 vertical-align: top; | 657 vertical-align: top; |
557 } | 658 } |
558 | 659 |
559 #mv-notice.mv-notice-delayed-hide { | 660 #mv-notice.mv-notice-delayed-hide { |
560 -webkit-transition-delay: 10s; | 661 -webkit-transition-delay: 10s; |
561 -webkit-transition-property: opacity; | 662 -webkit-transition-property: opacity; |
562 opacity: 0; | 663 opacity: 0; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 opacity: 0.9; | 696 opacity: 0.9; |
596 padding: 3px; | 697 padding: 3px; |
597 position: fixed; | 698 position: fixed; |
598 right: 8px; | 699 right: 8px; |
599 } | 700 } |
600 | 701 |
601 body[dir=rtl] #attribution,body[dir=rtl] #recent-tabs { | 702 body[dir=rtl] #attribution,body[dir=rtl] #recent-tabs { |
602 left: 8px; | 703 left: 8px; |
603 right: auto; | 704 right: auto; |
604 } | 705 } |
OLD | NEW |