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

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

Issue 10689164: [NTP4] Remove promo text horizontal transitions on NTP opening. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bug Created 8 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/tile_page.js » ('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 html { 5 html {
6 /* It's necessary to put this here instead of in body in order to get the 6 /* It's necessary to put this here instead of in body in order to get the
7 background-size of 100% to work properly */ 7 background-size of 100% to work properly */
8 height: 100%; 8 height: 100%;
9 overflow: hidden; 9 overflow: hidden;
10 } 10 }
11 11
12 body { 12 body {
13 /* Don't highlight links when they're tapped. Safari has bugs here that 13 /* Don't highlight links when they're tapped. Safari has bugs here that
14 show up as flicker when dragging in some situations */ 14 show up as flicker when dragging in some situations */
15 -webkit-tap-highlight-color: transparent; 15 -webkit-tap-highlight-color: transparent;
16 /* Don't allow selecting text - can occur when dragging */ 16 /* Don't allow selecting text - can occur when dragging */
17 -webkit-user-select: none; 17 -webkit-user-select: none;
18 background-size: auto 100%; 18 background-size: auto 100%;
19 margin: 0; 19 margin: 0;
20 } 20 }
21 21
22 /* [hidden] does display:none, but its priority is too low in some cases. */ 22 /* [hidden] does display:none, but its priority is too low in some cases. */
23 [hidden] { 23 [hidden] {
24 display: none !important; 24 display: none !important;
25 } 25 }
26 26
27 #notification-container { 27 #notification-container {
28 -webkit-transition: opacity 200ms, margin-left 200ms; 28 -webkit-transition: opacity 200ms;
29 bottom: 31px; 29 bottom: 31px;
30 display: block; 30 display: block;
31 float: left; 31 float: left;
32 position: relative; 32 position: relative;
33 text-align: start; 33 text-align: start;
34 z-index: 15; 34 z-index: 15;
35 } 35 }
36 36
37 html[dir='rtl'] #notification-container { 37 html[dir='rtl'] #notification-container {
38 float: right; 38 float: right;
39 } 39 }
40 40
41 #notification-container.card-changed { 41 #notification-container.card-changed {
42 -webkit-transition: none; 42 -webkit-transition: none;
43 opacity: 0; 43 opacity: 0;
44 } 44 }
45 45
46 #notification-container.inactive { 46 #notification-container.inactive {
47 -webkit-transition: opacity 200ms; 47 -webkit-transition: opacity 200ms;
48 opacity: 0; 48 opacity: 0;
49 } 49 }
50 50
51 #notification { 51 #notification {
52 display: inline-block; 52 display: inline-block;
53 font-weight: bold; 53 font-weight: bold;
54 white-space: nowrap;
55 }
56
57 #notification > * {
58 display: inline-block;
59 white-space: normal;
54 } 60 }
55 61
56 #notification > div > div, 62 #notification > div > div,
57 #notification > div { 63 #notification > div {
58 display: inline-block; 64 display: inline-block;
59 } 65 }
60 66
61 /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd 67 /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd
62 * icons in the promo notification responses. */ 68 * icons in the promo notification responses. */
63 #notification > span > img { 69 #notification > span > img {
64 margin-bottom: -3px; 70 margin-bottom: -3px;
65 } 71 }
66 72
67 #notification .close-button { 73 #notification .close-button {
68 -webkit-margin-start: 0.5em; 74 -webkit-margin-start: 8px; /* Matching value in TilePage#repositionTile_. */
69 vertical-align: middle; 75 vertical-align: top;
70 } 76 }
71 77
72 .close-button { 78 .close-button {
73 background: no-repeat; 79 background: no-repeat;
74 background-color: transparent; 80 background-color: transparent;
75 /* TODO(estade): this should animate between states. */ 81 /* TODO(estade): this should animate between states. */
76 background-image: -webkit-image-set( 82 background-image: -webkit-image-set(
77 url('../../../../ui/resources/default_100_percent/close_bar.png') 1x, 83 url('../../../../ui/resources/default_100_percent/close_bar.png') 1x,
78 url('../../../../ui/resources/default_200_percent/close_bar.png') 2x); 84 url('../../../../ui/resources/default_200_percent/close_bar.png') 2x);
79 border: 0; 85 border: 0;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 -webkit-box-align: center; 183 -webkit-box-align: center;
178 display: -webkit-box; 184 display: -webkit-box;
179 height: 49px; 185 height: 49px;
180 } 186 }
181 187
182 #footer-content > * { 188 #footer-content > * {
183 margin: 0 9px; 189 margin: 0 9px;
184 } 190 }
185 191
186 #logo-img { 192 #logo-img {
193 /* TODO(thakis): Remove once http://crbug.com/135179 is fixed */
194 content: url('chrome://theme/IDR_PRODUCT_LOGO');
187 margin-top: 4px; 195 margin-top: 4px;
188
189 /* TODO: Remove once http://crbug.com/135179 is fixed */
190 content: url('chrome://theme/IDR_PRODUCT_LOGO');
191 } 196 }
192 197
193 body.bare-minimum #footer { 198 body.bare-minimum #footer {
194 background: transparent; 199 background: transparent;
195 bottom: auto; 200 bottom: auto;
196 font-weight: normal; 201 font-weight: normal;
197 position: absolute; 202 position: absolute;
198 right: 0; 203 right: 0;
199 } 204 }
200 205
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 padding: 0; 446 padding: 0;
442 } 447 }
443 448
444 .other-sessions-promo-message:only-child { 449 .other-sessions-promo-message:only-child {
445 display: block; 450 display: block;
446 } 451 }
447 452
448 .other-sessions-promo-message p { 453 .other-sessions-promo-message p {
449 margin: 0; 454 margin: 0;
450 } 455 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/ntp4/tile_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698