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. */
11 -webkit-box-orient: vertical
;
14 text-decoration: none
;
30 /* filler mode: hide everything except the thumbnail --- leave a grey rectangle
40 .most-visited .close-button {
41 -webkit-transition: opacity
150ms;
49 html
[dir
=rtl
] .most-visited
.close-button
{
54 .most-visited:hover .close-button {
55 -webkit-transition-delay: 500ms;
59 .most-visited .close-button:hover {
60 -webkit-transition: none
;
63 .most-visited .favicon {
64 -webkit-margin-start: 5px;
65 background: no-repeat left
50%;
66 background-size: 16px;
68 box-sizing: border-box
;
75 html
[dir
='rtl'] .most-visited
.favicon
{
76 background-position-x: right
;
79 .most-visited .color-stripe {
80 border-bottom-left-radius: 3px 3px;
81 border-bottom-right-radius: 3px 3px;
82 /* Matches height of title. */
85 /* Matches padding-top of the title. */
92 .most-visited .title {
98 text-overflow: ellipsis
;
103 -webkit-transition: opacity
150ms;
104 background: no-repeat
;
105 /* This shows for missing thumbnails. */
106 background-color: #eee;
107 background-size: 100%;
109 /* These max dimensions are not necessary, as the sizing logic in the .js
110 * should be sufficient, but they're here for extra insurance. We never want
111 * to scale a thumbnail larger than this size. */
117 /* TODO(estade): there seems to be a webkit bug where this border is not
118 * always removed when it should be. Investigate. */
124 background: -webkit-linear-gradient
(rgba
(255, 255, 255, 0),
125 rgba
(255, 255, 255, 0) 50%,
126 rgba
(255, 255, 255, 0.9));
130 /* TODO(dbeam): Remove this when printing of -webkit-linear-gradient() works. */
137 .most-visited:focus
.thumbnail
,
138 .most-visited:hover .thumbnail {
142 .most-visited:focus
.thumbnail-shield
,
143 .most-visited:hover
.thumbnail-shield
,
144 .most-visited:active .thumbnail-shield {
145 background: -webkit-linear-gradient
(rgba
(255, 255, 255, 0),
146 rgba
(255, 255, 255, 0) 80%,
147 rgba
(255, 255, 255, 0.9));
150 /* The thumbnail gets lighter when clicked, but not when the click is on the
152 .most-visited:active .close-button:not(:active) + .thumbnail {
156 /* The thumbnail gets a shadow when clicked, but not when the click is on the
158 .most-visited:active .close-button:not(:active) + .thumbnail .thumbnail-shield {
159 -webkit-box-shadow: inset
0 1px 10px rgba
(0, 0, 0, 0.2);
164 -webkit-transition: background-color
150ms;
165 border: 1px solid transparent
;
172 .filler .thumbnail-wrapper {
176 /* 'finishing-drag' is the state we are in after dropping on the trash can.
177 * Override opacity of the tile to 1, so that the new tile animation
178 * occurs simultaneously with the trash animation. */
179 .tile.dragging.finishing-drag {
183 /* Don't display the new tile until there's something to show. */