OLD | NEW |
---|---|
(Empty) | |
1 /* Copyright 2015 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 body { | |
6 -webkit-user-select: none; | |
7 background: none transparent; | |
8 margin: 0; | |
9 overflow: hidden; | |
10 padding: 0; | |
11 } | |
12 | |
13 a { | |
14 display: block; | |
15 } | |
16 | |
17 a, | |
18 a:active, | |
19 a:hover, | |
20 a:visited { | |
21 color: inherit; | |
22 text-decoration: none; | |
23 } | |
24 | |
25 #most-visited { | |
26 -webkit-user-select: none; | |
27 margin: 0; | |
28 text-align: -webkit-center; | |
29 } | |
30 | |
31 #mv-tiles, | |
32 #mv-tiles-old { | |
33 -webkit-user-select: none; | |
34 font-size: 0; | |
35 height: calc(2 * 146px); | |
36 line-height: 146px; | |
37 margin: 0; | |
38 opacity: 0; | |
39 position: absolute; | |
40 /* This align correctly for both LTR and RTL */ | |
41 text-align: -webkit-auto; | |
42 transition: opacity 1s; | |
43 } | |
44 | |
45 .mv-tile, | |
46 .mv-empty-tile { | |
47 background: rgb(242,242,242); | |
48 border-color: transparent; | |
huangs
2015/03/12 06:16:55
border: 2px solid transparent;
to replace 3 lines
fserb
2015/03/12 16:05:33
Done.
| |
49 border-radius: 2px; | |
50 border-style: solid; | |
51 border-width: 1px; | |
52 color: #323232; | |
53 display: inline-block; | |
54 font-family: arial, sans-serif; | |
55 font-size: 12px; | |
56 height: calc(130px - 2px); | |
57 line-height: 100%; | |
58 margin-left: 8px; | |
59 margin-right: 8px; | |
60 opacity: 1.0; | |
huangs
2015/03/12 06:16:55
NIT: opacity 1.0 here but 1 elsewhere.
fserb
2015/03/12 16:05:32
Done.
| |
61 outline: 0; | |
62 overflow: hidden; | |
63 position: relative; | |
64 vertical-align: top; | |
65 white-space: nowrap; | |
66 width: calc(156px - 2px); | |
67 } | |
68 | |
69 .mv-tile { | |
70 -webkit-transition-duration: 200ms; | |
71 -webkit-transition-property: -webkit-transform, border, | |
72 box-shadow, margin, opacity, width; | |
73 cursor: pointer; | |
74 } | |
75 | |
76 .mv-tile:focus { | |
huangs
2015/03/12 06:16:55
Assume initial brightness is 100%, then you can do
fserb
2015/03/12 16:05:33
Done.
| |
77 -webkit-filter: brightness(75%); | |
78 } | |
79 | |
80 .mv-tile:hover:focus { | |
81 -webkit-filter: brightness(100%) !important; | |
huangs
2015/03/12 06:16:55
(If you're keeping this) I don't think you need th
fserb
2015/03/12 16:05:33
Acknowledged.
| |
82 } | |
83 | |
84 .mv-tile.blacklisted { | |
85 -webkit-transform: scale(0, 0); | |
86 border: none; | |
87 margin: 0; | |
88 width: 0; | |
89 } | |
90 | |
91 .mv-tile:hover { | |
92 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); | |
93 } | |
94 | |
95 .mv-tile.mv-blacklist { | |
96 opacity: 0; | |
97 } | |
98 | |
99 .mv-tile.mv-blacklist { | |
100 -webkit-transform: scale(0, 0); | |
101 -webkit-transform-origin: 0 41px; | |
102 margin-left: 0; | |
103 margin-right: 0; | |
104 width: 0; | |
105 } | |
106 | |
107 .mv-title { | |
108 -webkit-mask-image: | |
109 linear-gradient(to right, black, black, 100px, transparent); | |
huangs
2015/03/12 06:16:55
black or #000 (your choice).
fserb
2015/03/12 16:05:32
Done.
| |
110 border: none; | |
111 bottom: auto; | |
112 height: 15px; | |
113 left: 31px; | |
114 line-height: 14px; | |
115 padding: 0; | |
116 position: absolute; | |
117 text-overflow: clip; | |
118 top: 8px; | |
119 width: calc(156px - 32px - 4px); | |
120 } | |
121 | |
122 @media (-webkit-min-device-pixel-ratio: 2) { | |
123 .mv-title { | |
huangs
2015/03/12 06:16:55
NIT: indent.
fserb
2015/03/12 16:05:33
Done.
| |
124 top: 8px; | |
125 } | |
126 } | |
127 | |
128 html[dir!=rtl] .mv-title[style*='direction: rtl'] { | |
129 -webkit-mask-image: | |
130 linear-gradient(to left, black, black, 100px, transparent); | |
131 left: auto; | |
132 right: 8px; | |
133 text-align: right; | |
134 } | |
135 | |
136 html[dir=rtl] .mv-title { | |
137 left: 8px; | |
138 text-align: left; | |
139 } | |
140 | |
141 html[dir=rtl] .mv-title[style*='direction: rtl'] { | |
142 -webkit-mask-image: | |
143 linear-gradient(to left, black, black, 100px, transparent); | |
144 right: 31px; | |
145 text-align: right; | |
146 } | |
147 | |
148 .mv-thumb { | |
149 border: none; | |
150 border-radius: 0; | |
151 cursor: pointer; | |
152 display: block; | |
153 height: 90px; | |
154 left: 3px; | |
155 position: absolute; | |
156 top: 31px; | |
157 width: 148px; | |
158 } | |
159 | |
160 .mv-thumb img { | |
161 height: 94px; | |
162 width: 148px; | |
163 } | |
164 | |
165 .mv-thumb.failed-img { | |
166 background-color: #FFF; | |
huangs
2015/03/12 06:16:55
NIT: #fff
fserb
2015/03/12 16:05:33
Done.
| |
167 height: 94px; | |
168 width: 148px; | |
169 } | |
170 | |
171 .mv-thumb.failed-img::after { | |
172 border: 8px solid #f2f2f2; | |
173 border-radius: 50%; | |
174 content: ''; | |
175 display: block; | |
176 height: 0; | |
177 margin: 39px 66px; | |
178 width: 0; | |
179 } | |
180 | |
181 .mv-x { | |
182 -webkit-transition: opacity 150ms; | |
183 background: linear-gradient(to left, rgb(242,242,242) 60%, transparent); | |
184 border: none; | |
185 cursor: pointer; | |
186 height: 30px; | |
187 opacity: 0; | |
188 position: absolute; | |
189 right: 0; | |
190 width: 40px; | |
191 } | |
192 | |
193 .mv-x::after { | |
194 -webkit-mask-image: -webkit-image-set( | |
195 url(chrome-search://local-ntp/images/close_3_mask.png) 1x, | |
196 url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x); | |
197 -webkit-mask-position: 12px 10px; | |
198 -webkit-mask-repeat: no-repeat; | |
199 -webkit-mask-size: 10px 10px; | |
200 background-color: rgba(90,90,90,0.7); | |
201 content: ''; | |
202 display: block; | |
203 height: 32px; | |
204 position: absolute; | |
205 right: 0; | |
206 width: 32px; | |
207 } | |
208 | |
209 html[dir=rtl] .mv-x { | |
210 background: linear-gradient(to right, rgb(242,242,242) 60%, transparent); | |
211 left: -1px; | |
212 right: auto; | |
213 } | |
214 | |
215 html[dir=rtl] .mv-x::after { | |
216 left: -1px; | |
217 right: auto; | |
218 } | |
219 | |
220 .mv-x:hover::after { | |
221 background-color: rgb(90,90,90); | |
222 } | |
223 | |
224 .mv-x:active::after { | |
225 background-color: rgb(66,133,244); | |
226 } | |
227 | |
228 .mv-tile:hover .mv-x { | |
229 -webkit-transition-delay: 500ms; | |
huangs
2015/03/12 06:16:55
NIT: indent.
fserb
2015/03/12 16:05:33
Done.
| |
230 opacity: 1; | |
231 } | |
232 | |
233 .mv-favicon { | |
234 background-size: 16px; | |
235 height: 16px; | |
236 left: 7px; | |
237 margin: 0; | |
238 pointer-events: none; | |
239 position: absolute; | |
240 top: 7px; | |
241 width: 16px; | |
242 } | |
243 | |
244 html[dir=rtl] .mv-favicon { | |
huangs
2015/03/12 06:16:55
left: auto;
fserb
2015/03/12 16:05:32
Done.
| |
245 right: 7px; | |
246 } | |
247 | |
248 .mv-favicon.failed-favicon { | |
249 background-image: -webkit-image-set( | |
250 url(chrome-search://local-ntp/images/ntp_default_favicon.png) 1x, | |
251 url(chrome-search://local-ntp/images/ntp_default_favicon.png@2x) 2x); | |
252 background-repeat: no-repeat; | |
253 background-size: 16px 16px; | |
254 } | |
255 | |
256 .mv-favicon.failed-favicon img { | |
257 display: none; | |
258 } | |
OLD | NEW |