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

Side by Side Diff: chrome/browser/resources/local_ntp/most_visited_single.css

Issue 997203003: Adds a new NTP endpoint for the single frame of the fast NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 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: 1px solid transparent;
49 border-radius: 2px;
50 color: #323232;
51 display: inline-block;
52 font-family: arial, sans-serif;
53 font-size: 12px;
54 height: calc(130px - 2px);
55 line-height: 100%;
56 maring: 0 8px;
huangs 2015/03/13 03:49:52 TYPO: maring
fserb 2015/03/13 17:22:44 ops. Done.
57 opacity: 1;
58 outline: 0;
59 overflow: hidden;
60 position: relative;
61 vertical-align: top;
62 white-space: nowrap;
63 width: calc(156px - 2px);
64 }
65
66 .mv-tile {
67 -webkit-transition-duration: 200ms;
68 -webkit-transition-property: -webkit-transform, border,
69 box-shadow, margin, opacity, width;
70 cursor: pointer;
71 }
72
73 .mv-tile:focus:not(:hover) {
74 -webkit-filter: brightness(75%);
75 }
76
77 .mv-tile.blacklisted {
78 -webkit-transform: scale(0, 0);
79 border: none;
80 margin: 0;
81 width: 0;
82 }
83
84 .mv-tile:hover {
85 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2);
86 }
87
88 .mv-tile.mv-blacklist {
89 opacity: 0;
90 }
91
92 .mv-tile.mv-blacklist {
93 -webkit-transform: scale(0, 0);
94 -webkit-transform-origin: 0 41px;
95 margin-left: 0;
96 margin-right: 0;
97 width: 0;
98 }
99
100 .mv-title {
101 -webkit-mask-image:
102 linear-gradient(to right, #000, #000, 100px, transparent);
103 border: none;
104 bottom: auto;
105 height: 15px;
106 left: 31px;
107 line-height: 14px;
108 padding: 0;
109 position: absolute;
110 text-overflow: clip;
111 top: 8px;
112 width: calc(156px - 32px - 4px);
113 }
114
115 @media (-webkit-min-device-pixel-ratio: 2) {
116 .mv-title {
117 top: 8px;
118 }
119 }
120
121 html[dir!=rtl] .mv-title[style*='direction: rtl'] {
122 -webkit-mask-image:
123 linear-gradient(to left, black, black, 100px, transparent);
124 left: auto;
125 right: 8px;
126 text-align: right;
127 }
128
129 html[dir=rtl] .mv-title {
130 left: 8px;
131 text-align: left;
132 }
133
134 html[dir=rtl] .mv-title[style*='direction: rtl'] {
135 -webkit-mask-image:
136 linear-gradient(to left, black, black, 100px, transparent);
137 right: 31px;
138 text-align: right;
139 }
140
141 .mv-thumb {
142 border: none;
143 border-radius: 0;
144 cursor: pointer;
145 display: block;
146 height: 90px;
147 left: 3px;
148 position: absolute;
149 top: 31px;
150 width: 148px;
151 }
152
153 .mv-thumb img {
154 height: 94px;
155 width: 148px;
156 }
157
158 .mv-thumb.failed-img {
159 background-color: #fff;
160 height: 94px;
161 width: 148px;
162 }
163
164 .mv-thumb.failed-img::after {
165 border: 8px solid #f2f2f2;
166 border-radius: 50%;
167 content: '';
huangs 2015/03/13 03:49:52 Short comment on why content is here (your cool tr
fserb 2015/03/13 17:22:44 Done.
168 display: block;
169 height: 0;
170 margin: 39px 66px;
171 width: 0;
172 }
173
174 .mv-x {
175 -webkit-transition: opacity 150ms;
176 background: linear-gradient(to left, rgb(242,242,242) 60%, transparent);
177 border: none;
178 cursor: pointer;
179 height: 30px;
180 opacity: 0;
181 position: absolute;
182 right: 0;
183 width: 40px;
184 }
185
186 .mv-x::after {
187 -webkit-mask-image: -webkit-image-set(
188 url(chrome-search://local-ntp/images/close_3_mask.png) 1x,
189 url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x);
190 -webkit-mask-position: 12px 10px;
191 -webkit-mask-repeat: no-repeat;
192 -webkit-mask-size: 10px 10px;
193 background-color: rgba(90,90,90,0.7);
194 content: '';
195 display: block;
196 height: 32px;
197 position: absolute;
198 right: 0;
199 width: 32px;
200 }
201
202 html[dir=rtl] .mv-x {
203 background: linear-gradient(to right, rgb(242,242,242) 60%, transparent);
204 left: -1px;
205 right: auto;
206 }
207
208 html[dir=rtl] .mv-x::after {
209 left: -1px;
210 right: auto;
211 }
212
213 .mv-x:hover::after {
214 background-color: rgb(90,90,90);
215 }
216
217 .mv-x:active::after {
218 background-color: rgb(66,133,244);
219 }
220
221 .mv-tile:hover .mv-x {
222 -webkit-transition-delay: 500ms;
223 opacity: 1;
224 }
225
226 .mv-favicon {
227 background-size: 16px;
228 height: 16px;
229 left: 7px;
230 margin: 0;
231 pointer-events: none;
232 position: absolute;
233 top: 7px;
234 width: 16px;
235 }
236
237 html[dir=rtl] .mv-favicon {
238 left: auto;
239 right: 7px;
240 }
241
242 .mv-favicon.failed-favicon {
243 background-image: -webkit-image-set(
244 url(chrome-search://local-ntp/images/ntp_default_favicon.png) 1x,
245 url(chrome-search://local-ntp/images/ntp_default_favicon.png@2x) 2x);
246 background-repeat: no-repeat;
247 background-size: 16px 16px;
248 }
249
250 .mv-favicon.failed-favicon img {
251 display: none;
252 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698