Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/browser/resources/ntp_search/thumbnail_page.css

Issue 10829131: Refactoring NTP5: new implementation of TilePage and MostVisitedPage (which now inherits from Thumb… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
5 .close-button {
jeremycho_google 2012/08/02 03:00:49 Since close-button is most-visited specific, renam
pedrosimonetti2 2012/08/03 18:14:12 I refactored the CSS and classNames in the code. c
6 background: no-repeat;
7 background-color: transparent;
8 /* TODO(estade): this should animate between states. */
9 background-image: -webkit-image-set(
10 url('../../../../ui/resources/default_100_percent/close_bar.png') 1x,
11 url('../../../../ui/resources/default_200_percent/close_bar.png') 2x);
12 border: 0;
13 cursor: default;
14 display: inline-block;
15 height: 16px;
16 padding: 0;
17 position: absolute;
18 width: 16px;
19 z-index: 999;
20 }
21
22 .close-button:hover,
23 .close-button:focus {
24 background-image: -webkit-image-set(
25 url('../../../../ui/resources/default_100_percent/close_bar_hover.png')
26 1x,
27 url('../../../../ui/resources/default_200_percent/close_bar_hover.png')
28 2x);
29 }
30
31 .close-button:active {
32 background-image: -webkit-image-set(
33 url('../../../../ui/resources/default_100_percent/close_bar_pressed.png')
34 1x,
35 url('../../../../ui/resources/default_200_percent/close_bar_pressed.png')
36 2x);
37 }
38
39 /* other */
40
41 .most-visited {
42 display: block;
43 height: 100%;
44 position: relative;
45 width: 100%;
46 }
47
48 .most-visited .thumbnail-wrapper {
49 display: block;
50 }
51
52 .most-visited .thumbnail {
53 background-size: 100%;
54 display: block;
55 height: 100%;
56 position: absolute;
57 width: 100%;
58 }
59
60 .most-visited .title {
61 color: #777;
62 display: none;
63 font: 11px Arial;
64 overflow: hidden;
65 position: absolute;
66 text-align: center;
67 text-overflow: ellipsis;
68 white-space: nowrap;
69 width: 100%;
70 }
71
72 .most-visited:hover .title {
73 bottom: -18px;
74 display: block;
75 }
76
77 .most-visited .close-button {
78 -webkit-transition: opacity 500ms ease-in-out;
79 opacity: 0;
80 right: 2px;
81 top: 2px;
82 }
83
84 html[dir=rtl] .most-visited .close-button {
85 left: 0;
86 right: auto;
87 }
88
89 .most-visited:hover .close-button {
90 -webkit-transition-delay: 500ms;
91 opacity: 1;
92 }
93
94 .most-visited .close-button:hover {
95 -webkit-transition: none;
96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698