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

Side by Side Diff: chrome/browser/resources/ntp4/new_tab.css

Issue 9303005: [NTP4] Experiment for adding Chrome Web Store link to footer. (Closed)
Patch Set: rebase Created 8 years, 10 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
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 html { 6 html {
7 font-family: segoe ui, arial, helvetica, sans-serif; 7 font-family: segoe ui, arial, helvetica, sans-serif;
8 font-size: 14px; 8 font-size: 14px;
9 /* It's necessary to put this here instead of in body in order to get the 9 /* It's necessary to put this here instead of in body in order to get the
10 background-size of 100% to work properly */ 10 background-size of 100% to work properly */
11 height: 100%; 11 height: 100%;
12 overflow: hidden; 12 overflow: hidden;
13 } 13 }
14 14
15 body { 15 body {
16 background-size: auto 100%;
17 margin: 0;
18 /* Don't highlight links when they're tapped. Safari has bugs here that 16 /* Don't highlight links when they're tapped. Safari has bugs here that
19 show up as flicker when dragging in some situations */ 17 show up as flicker when dragging in some situations */
20 -webkit-tap-highlight-color: transparent; 18 -webkit-tap-highlight-color: transparent;
21 /* Don't allow selecting text - can occur when dragging */ 19 /* Don't allow selecting text - can occur when dragging */
22 -webkit-user-select: none; 20 -webkit-user-select: none;
21 background-size: auto 100%;
22 margin: 0;
23 } 23 }
24 24
25 /* [hidden] does display:none, but its priority is too low in some cases. */ 25 /* [hidden] does display:none, but its priority is too low in some cases. */
26 [hidden] { 26 [hidden] {
27 display: none !important; 27 display: none !important;
28 } 28 }
29 29
30 #notification-container { 30 #notification-container {
31 -webkit-transition-duration: 100ms;
32 -webkit-transition-property: opacity;
31 display: block; 33 display: block;
32 margin-top: 2px; 34 margin-top: 2px;
33 position: relative; 35 position: relative;
34 text-align: center; 36 text-align: center;
35 z-index: 100; 37 z-index: 100;
36 -webkit-transition-duration: 100ms;
37 -webkit-transition-property: opacity;
38 } 38 }
39 39
40 #notification-container.inactive { 40 #notification-container.inactive {
41 -webkit-transition-duration: 200ms;
41 opacity: 0; 42 opacity: 0;
42 -webkit-transition-duration: 200ms;
43 } 43 }
44 44
45 #notification { 45 #notification {
46 background-color: #FFF199; 46 background-color: #FFF199;
47 border: 1px solid lightGrey; 47 border: 1px solid lightGrey;
48 border-radius: 6px; 48 border-radius: 6px;
49 color: black; 49 color: black;
50 display: inline-block; 50 display: inline-block;
51 font-weight: bold; 51 font-weight: bold;
52 padding: 7px 15px; 52 padding: 7px 15px;
53 } 53 }
54 54
55 #notification > div > div, 55 #notification > div > div,
56 #notification > div { 56 #notification > div {
57 display: inline-block; 57 display: inline-block;
58 } 58 }
59 59
60 #notification .close-button { 60 #notification .close-button {
61 -webkit-margin-start: 0.5em;
61 vertical-align: middle; 62 vertical-align: middle;
62 -webkit-margin-start: 0.5em;
63 } 63 }
64 64
65 .close-button { 65 .close-button {
66 background: no-repeat; 66 background: no-repeat;
67 background-color: transparent; 67 background-color: transparent;
68 /* TODO(estade): this should animate between states. */ 68 /* TODO(estade): this should animate between states. */
69 background-image: url('../../../../ui/resources/close_bar.png'); 69 background-image: url('../../../../ui/resources/close_bar.png');
70 border: 0; 70 border: 0;
71 cursor: default; 71 cursor: default;
72 display: inline-block; 72 display: inline-block;
73 height: 16px; 73 height: 16px;
74 padding: 0; 74 padding: 0;
75 width: 16px; 75 width: 16px;
76 } 76 }
77 77
78 .close-button:hover, 78 .close-button:hover,
79 .close-button:focus { 79 .close-button:focus {
80 background-image: url('../../../../ui/resources/close_bar_h.png'); 80 background-image: url('../../../../ui/resources/close_bar_h.png');
81 } 81 }
82 82
83 .close-button:active { 83 .close-button:active {
84 background-image: url('../../../../ui/resources/close_bar_p.png'); 84 background-image: url('../../../../ui/resources/close_bar_p.png');
85 } 85 }
86 86
87 .linkButton { 87 .linkButton {
88 -webkit-margin-start: 0.5em;
88 color: #06C; 89 color: #06C;
89 cursor: pointer; 90 cursor: pointer;
90 display: inline-block; 91 display: inline-block;
91 text-decoration: underline; 92 text-decoration: underline;
92 -webkit-margin-start: 0.5em;
93 } 93 }
94 94
95 #card-slider-frame { 95 #card-slider-frame {
96 /* Must match #footer height. */ 96 /* Must match #footer height. */
97 bottom: 50px; 97 bottom: 50px;
98 overflow: hidden; 98 overflow: hidden;
99 /* We want this to fill the window except for the region used 99 /* We want this to fill the window except for the region used
100 by footer */ 100 by footer */
101 position: fixed; 101 position: fixed;
102 top: 0; 102 top: 0;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 /* TODO(estade): remove this border hack and replace with a webkit-gradient 147 /* TODO(estade): remove this border hack and replace with a webkit-gradient
148 * border-image on #footer once WebKit supports border-image-slice. 148 * border-image on #footer once WebKit supports border-image-slice.
149 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */ 149 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
150 #footer-border { 150 #footer-border {
151 height: 1px; 151 height: 1px;
152 } 152 }
153 153
154 #footer-content { 154 #footer-content {
155 -webkit-box-align: center;
155 display: -webkit-box; 156 display: -webkit-box;
156 height: 49px; 157 height: 49px;
157 -webkit-box-align: center;
158 } 158 }
159 159
160 #footer-content > * { 160 #footer-content > * {
161 margin: 0 9px; 161 margin: 0 9px;
162 } 162 }
163 163
164 #logo-img { 164 #logo-img {
165 margin-top: 4px; 165 margin-top: 4px;
166 } 166 }
167 167
168 .starting-up * { 168 .starting-up * {
169 -webkit-transition: none !important; 169 -webkit-transition: none !important;
170 } 170 }
171 171
172 /* Login Status. **************************************************************/ 172 /* Login Status. **************************************************************/
173 173
174 #login-container { 174 #login-container {
175 -webkit-box-shadow: none;
175 background: transparent none; 176 background: transparent none;
176 border: none; 177 border: none;
177 cursor: pointer; 178 cursor: pointer;
178 font-size: 13px; 179 font-size: 13px;
179 /* Leave room for the scrollbar. */ 180 /* Leave room for the scrollbar. */
180 margin-left: 13px; 181 margin-left: 13px;
181 margin-right: 13px; 182 margin-right: 13px;
182 margin-top: 5px; 183 margin-top: 5px;
183 padding: 0; 184 padding: 0;
184 position: fixed; 185 position: fixed;
185 right: 0; 186 right: 0;
186 text-align: right; 187 text-align: right;
187 top: 0; 188 top: 0;
188 z-index: 100; 189 z-index: 100;
189 -webkit-box-shadow: none;
190 } 190 }
191 191
192 html[dir='rtl'] #login-container { 192 html[dir='rtl'] #login-container {
193 left: 0; 193 left: 0;
194 right: auto; 194 right: auto;
195 } 195 }
196 196
197 .login-status-icon { 197 .login-status-icon {
198 -webkit-padding-end: 37px;
198 background-position: right center; 199 background-position: right center;
199 background-repeat: no-repeat; 200 background-repeat: no-repeat;
200 min-height: 27px; 201 min-height: 27px;
201 -webkit-padding-end: 37px;
202 } 202 }
203 203
204 html[dir='rtl'] .login-status-icon { 204 html[dir='rtl'] .login-status-icon {
205 background-position-x: left; 205 background-position-x: left;
206 } 206 }
207 207
208 .profile-name:hover { 208 .profile-name:hover {
209 text-decoration: underline; 209 text-decoration: underline;
210 } 210 }
211 211
212 .link-span { 212 .link-span {
213 text-decoration: underline; 213 text-decoration: underline;
214 } 214 }
215 215
216 #login-status-bubble-contents { 216 #login-status-bubble-contents {
217 font-size: 13px; 217 font-size: 13px;
218 } 218 }
219 219
220 #login-status-message-container { 220 #login-status-message-container {
221 margin-bottom: 13px; 221 margin-bottom: 13px;
222 } 222 }
223 223
224 #login-status-learn-more { 224 #login-status-learn-more {
225 display: inline-block; 225 display: inline-block;
226 } 226 }
227 227
228 .login-status-row { 228 .login-status-row {
229 display: -webkit-box;
230 -webkit-box-align: center; 229 -webkit-box-align: center;
231 -webkit-box-orient: horizontal; 230 -webkit-box-orient: horizontal;
232 -webkit-box-pack: end; 231 -webkit-box-pack: end;
232 display: -webkit-box;
233 } 233 }
234 234
235 #login-status-advanced-container { 235 #login-status-advanced-container {
236 -webkit-box-flex: 1; 236 -webkit-box-flex: 1;
237 } 237 }
238 238
239 #login-status-dismiss { 239 #login-status-dismiss {
240 min-width: 6em; 240 min-width: 6em;
241 } 241 }
242 242
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 font-size: 8pt; 301 font-size: 8pt;
302 font-weight: bold; 302 font-weight: bold;
303 pointer-events: none; 303 pointer-events: none;
304 position: absolute; 304 position: absolute;
305 visibility: hidden; 305 visibility: hidden;
306 } 306 }
307 307
308 /* Page switcher buttons. *****************************************************/ 308 /* Page switcher buttons. *****************************************************/
309 309
310 .page-switcher { 310 .page-switcher {
311 -webkit-transition: width 150ms, right 150ms, background-color 150ms;
311 background-color: transparent; 312 background-color: transparent;
312 border: none; 313 border: none;
313 bottom: 0; 314 bottom: 0;
314 font-size: 40px; 315 font-size: 40px;
315 padding: 0; 316 padding: 0;
316 position: absolute; 317 position: absolute;
317 margin: 0; 318 margin: 0;
318 max-width: 150px; 319 max-width: 150px;
319 min-width: 90px; 320 min-width: 90px;
320 outline: none; 321 outline: none;
321 top: 0; 322 top: 0;
322 z-index: 5; 323 z-index: 5;
323 -webkit-transition: width 150ms, right 150ms, background-color 150ms;
324 } 324 }
325
326 #chrome-web-store-href {
327 /* Match transition delay of recently closed button. */
328 -webkit-transition-delay: 100ms;
329 cursor: pointer;
330 display: none;
331 margin: 0;
332 padding: 0;
333 text-decoration: none;
334 }
335
336 #chrome-web-store-title {
337 -webkit-padding-start: 16px;
338 color: #7F7F7F;
339 font-weight: bold;
340 font-size: 9pt;
341 padding-bottom: 17px;
342 padding-top: 17px;
343 }
344
345 #chrome-web-store-title:hover {
346 color: #666;
347 }
348
349 #chrome-web-store-icon {
350 -webkit-padding-end: 19px;
351 -webkit-padding-start: 2px;
352 height: 24px;
353 padding-bottom: 13px;
354 padding-top: 12px;
355 width: 24px;
356 }
357
358 /* Show the chrome-web-store button when the experiment is turned on. */
359 .enable-cws-experiment #chrome-web-store-href {
360 display: inline;
361 }
362
363 /* Reserve space for the menu button even when it's hidden. */
364 #footer.showing-trash-mode #chrome-web-store-href {
365 visibility: hidden;
366 }
367
368 #footer.showing-trash-mode #chrome-web-store-href {
369 -webkit-transition-delay: 0;
370 opacity: 0;
371 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/apps_page.js ('k') | chrome/browser/resources/ntp4/new_tab.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698