1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
|
/* Copyright (c) 2011 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
.most-visited {
position: absolute;
}
.most-visited {
display: -webkit-box;
position: absolute;
text-decoration: none;
-webkit-box-orient: vertical;
}
.most-visited:focus {
outline: none;
}
.most-visited > .title {
font-size: 100%;
font-weight: normal;
height: 16px;
line-height: 16px;
margin: 0;
margin-top: 4px;
opacity: 1;
padding: 0 3px;
}
.edit-mode-border {
display: -webkit-box;
-webkit-box-orient: vertical;
}
.fills-parent {
bottom: 0;
display: -webkit-box;
left: 0;
position: absolute;
right: 0;
top: 0;
}
/* filler mode: hide everything except the thumbnail --- leave a grey rectangle
* in its place. */
.filler * {
visibility: hidden;
}
.filler {
pointer-events: none;
}
/* The point of edit-bar-wrapper is to clip the edit bar. Otherwise it can show
* through from behind the thumbnail (some themes have a partially transparent
* thumbnail border color). */
.edit-bar-wrapper {
height: 23px;
overflow: hidden;
width: 100%;
}
/* The edit bar appears on hover. */
.edit-bar {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
box-sizing: border-box;
cursor: move;
display: -webkit-box;
font-size: 100%;
height: 100%;
line-height: 20px;
padding: 3px;
padding-bottom: 0;
position: relative;
top: 23px;
width: 100%;
-webkit-box-align: stretch;
-webkit-box-orient: horizontal;
-webkit-transition: top .15s;
}
.most-visited:focus .edit-bar,
.most-visited:hover .edit-bar {
top: 0;
}
.most-visited:hover .edit-bar {
/* Delay the appearance of the edit bar on hover. */
-webkit-transition-delay: .5s;
}
.edit-bar > * {
display: block;
position: relative;
}
.edit-bar > .spacer {
-webkit-box-flex: 1;
}
.edit-bar > .pin,
.edit-bar > .remove {
width: 16px;
height: 16px;
cursor: pointer;
background-image: no-repeat 50% 50%;
}
.edit-bar > .pin {
background-image: url('../ntp/ntp_pin_off.png');
}
.edit-bar > .pin:hover {
background-image: url('../ntp/ntp_pin_off_h.png');
}
.edit-bar > .pin:active {
background-image: url('../ntp/ntp_pin_off_p.png');
}
.pinned .edit-bar > .pin {
background-image: url('../ntp/ntp_pin_on.png');
}
.pinned .edit-bar > .pin:hover {
background-image: url(../ntp/ntp_pin_on_h.png');
}
.pinned .edit-bar > .pin:active {
background-image: url(../ntp/ntp_pin_on_p.png');
}
.edit-bar > .remove {
background-image: url('../ntp/ntp_close.png');
}
.edit-bar > .remove:hover {
background-image: url('../ntp/ntp_close_h.png');
}
.edit-bar > .remove:active {
background-image: url('../ntp/ntp_close_p.png');
}
.most-visited > .title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
background: no-repeat 0 50%;
background-size: 16px;
/* We cannot use -webkit-padding-start here because even if we set the
direction we always want the icon on the same side. */
padding-left: 20px;
padding-right: 0;
}
.thumbnail {
background: no-repeat;
background-size: 100%;
border-radius: 5px;
}
.filler .thumbnail {
border: 1px solid;
visibility: visible;
}
.thumbnail-wrapper {
border: 3px solid transparent;
border-radius: 5px;
box-shadow: 0px 2px 2px hsla(0, 0%, 0%, 0);
display: block;
position: relative;
z-index: 5;
-webkit-box-flex: 1;
-webkit-transition: background-color .15s,
border-top-left-radius 0, border-top-right-radius 0, box-shadow .15s;
/* The border radiuses have 0 transition duration but .15s delay, meaning they
* will snap into place after .15s. */
-webkit-transition-delay: 0, .15s, .15s, 0;
}
.filler .thumbnail-wrapper {
visibility: visible;
}
.most-visited:focus .thumbnail-wrapper,
.most-visited:hover .thumbnail-wrapper {
border-top-left-radius: 0;
border-top-right-radius: 0;
box-shadow: 0px 2px 2px hsla(0, 0%, 0%, .5);
}
.most-visited:hover .thumbnail-wrapper {
/* Make the corner radius transitions match the edit bar's slide. */
-webkit-transition-delay: 0, .5s, .5s, 0;
}
.most-visited:focus .thumbnail-wrapper {
/* In the focus case, the transition is not delayed. */
-webkit-transition-delay: 0, 0, 0, 0;
}
|