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

Side by Side Diff: chrome/browser/resources/ntp_android/bookmarks.css

Issue 10831317: Upstream Android NTP resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved .png files to separate CL 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 | Annotate | Revision Log
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 /* Begin top bar */
6
7 #bookmarks_title_wrapper {
8 border-bottom: 1px solid #d0d0d0;
9 display: -webkit-box;
10 font-size: 17px;
11 height: 44px;
12 line-height: 44px;
13 overflow: hidden;
14 white-space: nowrap;
15 }
16
17 .section-title {
18 -webkit-box-flex: 1;
19 -webkit-box-orient: horizontal;
20 display: -webkit-box;
21 overflow: hidden;
22 position: absolute;
23 }
24
25 .section-title-mask {
26 -webkit-box-flex: 1;
27 overflow: hidden;
28 position: relative;
29 }
30
31 .overflow-left-mask {
32 background: -webkit-gradient(
33 linear,
34 left center,
35 right center,
36 from(rgba(50,50,50,0.3)),
37 to(rgba(0,0,0,0))
38 );
39 height: 100%;
40 left: 0;
41 position: absolute;
42 top: 0;
43 width: 10px;
44 }
45
46 .overflow-right-mask {
47 background: -webkit-gradient(
48 linear,
49 left center,
50 right center,
51 from(rgba(0,0,0,0)),
52 to(rgba(50,50,50,0.2))
53 );
54 height: 100%;
55 position: absolute;
56 right: 0;
57 top: 0;
58 width: 10px;
59 }
60
61 .bookmark-separator {
62 background-image: url(images/breadcrumb_mdpi.png);
63 background-position: center;
64 background-repeat: no-repeat;
65 background-size: 8px 20px; /* this matches the background image size */
66 height: 44px;
67 width: 10px;
68 }
69
70 #bookmarks_title_wrapper .title-crumb {
71 color: #555;
72 margin: 0 10px;
73 }
74
75 #bookmarks_title_wrapper .title-crumb-active {
76 font-weight: bold;
77 margin-right: 0;
78 padding-right: 10px;
79 }
80
81 /* Begin Bookmark Cell Items */
82
83 .favicon-cell {
84 -webkit-tap-highlight-color: transparent;
85 -webkit-transition: background 300ms linear;
86 display: inline-block;
87 height: 105px;
88 padding: 11px;
89 text-align: center;
90 vertical-align: top;
91 width: 80px;
92 }
93
94 .favicon-cell-active {
95 -webkit-tap-highlight-color: transparent;
96 background: rgba(51, 181, 229, .4);
97 }
98
99 .favicon-box {
100 -webkit-border-radius: 10px;
101 -webkit-box-orient: vertical;
102 -webkit-box-pack: center;
103 background-repeat: no-repeat;
104 background-size: 100% 100%;
105 display: -webkit-box;
106 height: 64px; /* icon container size */
107 margin: auto; /* horizontally center */
108 position: relative;
109 text-align: center;
110 width: 64px; /* icon container size */
111 }
112
113 .favicon-box.folder {
114 background-image: url(images/bookmark_folder_mdpi.png);
115 }
116
117 .favicon-cell .title {
118 height: 30px;
119 line-height: 18px;
120 overflow: hidden;
121 padding-bottom: 8px;
122 padding-top: 10px;
123 }
124
125 .favicon-icon {
126 background-position: center;
127 background-repeat: no-repeat;
128 height: 100%;
129 width: 100%;
130 }
131
132 .favicon-icon.document {
133 left: 0;
134 position: absolute;
135 top: 0;
136 }
137
138 .bookmark-border {
139 background-image: url(images/bookmark_border_mdpi.png);
140 background-size: 100%;
141 height: 64px;
142 left: 0;
143 position: absolute;
144 top: 0;
145 width: 64px;
146 }
147
148 .favicon-box.document {
149 /* a 'document' favicon looks like a little web page with the favicon
150 in top left corner */
151 background-image: url(images/bookmark_bg_mdpi.png);
152 margin: auto; /* horizontally center */
153 margin-bottom: 0;
154 margin-top: 0;
155 }
156
157 .favicon-box.document .fold-container {
158 position: absolute;
159 right: 7px;
160 top: 3px;
161 }
162
163 .favicon-box.document .fold {
164 box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.2);
165 height: 12px;
166 width: 12px;
167 }
168
169 .favicon-box.document .active-shade {
170 /* Shade overlay for favicon's when pressed */
171 background-color: #000;
172 height: 100%;
173 left: 0;
174 opacity: 0;
175 position: absolute;
176 top: 0;
177 width: 100%;
178 }
179
180 .favicon-box.document .active-shade:active {
181 opacity: 0.15;
182 }
183
184 .favicon-box.document .color-strip {
185 /* the color strip is an overlay across the bottom of the icon */
186 border-bottom-left-radius: 2px;
187 border-bottom-right-radius: 2px;
188 bottom: 3px;
189 height: 4px;
190 left: 7px;
191 position: absolute;
192 width: 50px;
193 }
194
195 .favicon-box.document .favicon-icon {
196 background-size: 16px 16px;
197 }
198
199 .favicon-icon.touch-icon {
200 background-size: 100%;
201 border-radius: 16px; /* remove any junk in the corners of the favicon */
202 height: 57px; /* touch-icon size */
203 margin: auto; /* horizontally center */
204 margin-bottom: 4px;
205 margin-top: 3px; /* (64 - 57) / 2 = 3.5 */
206 width: 57px; /* touch-icon size */
207 }
208
209 @media screen and (-webkit-min-device-pixel-ratio: 1.32) {
210 .favicon-box.document .fold {
211 /* this is to make the canvas scale properly */
212 height: 16px;
213 width: 16px;
214 zoom: 0.75;
215 }
216 .favicon-box.document {
217 background-image: url(images/bookmark_bg_tvdpi.png);
218 }
219 .bookmark-border {
220 background-image: url(images/bookmark_border_tvdpi.png);
221 }
222 .favicon-box.folder {
223 background-image: url(images/bookmark_folder_tvdpi.png);
224 }
225 .bookmark-separator {
226 background-image: url(images/breadcrumb_tvdpi.png);
227 }
228
229 /* tweaked spacing, presumably because of rounding error */
230 .favicon-box.document .fold-container {
231 right: 8px;
232 }
233 .favicon-box.document .color-strip {
234 left: 8px;
235 width: 48px;
236 }
237 }
238
239 @media screen and (-webkit-min-device-pixel-ratio: 1.5) {
240 .favicon-box.document .fold {
241 /* this is to make the canvas scale properly */
242 height: 18px;
243 width: 18px;
244 zoom: 0.66;
245 }
246 .favicon-box.document {
247 background-image: url(images/bookmark_bg_hdpi.png);
248 }
249 .bookmark-border {
250 background-image: url(images/bookmark_border_hdpi.png);
251 }
252 .favicon-box.folder {
253 background-image: url(images/bookmark_folder_hdpi.png);
254 }
255 .bookmark-separator {
256 background-image: url(images/breadcrumb_hdpi.png);
257 }
258 }
259
260 @media screen and (-webkit-min-device-pixel-ratio: 2.0) {
261 .favicon-box.document .fold {
262 /* this is to make the canvas scale properly */
263 height: 24px;
264 width: 24px;
265 zoom: 0.5;
266 }
267 .favicon-box.document {
268 background-image: url(images/bookmark_bg_xhdpi.png);
269 }
270 .bookmark-border {
271 background-image: url(images/bookmark_border_xhdpi.png);
272 }
273 .favicon-box.folder {
274 background-image: url(images/bookmark_folder_xhdpi.png);
275 }
276 .bookmark-separator {
277 background-image: url(images/breadcrumb_xhdpi.png);
278 }
279 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/resources/ntp_android/bookmarks_tablet.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698