webui: Change all url('...') and url("...") to just url(...).
[chromium-blink-merge.git] / chrome / browser / resources / ntp4 / new_tab.css
blobc89978224eb43bc88181fbc3d7c95dc478bffbeb
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. */
5 html {
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 */
8 height: 100%;
9 overflow: hidden;
12 body {
13 /* Don't highlight links when they're tapped. Safari has bugs here that
14 show up as flicker when dragging in some situations */
15 -webkit-tap-highlight-color: transparent;
16 /* Don't allow selecting text - can occur when dragging */
17 -webkit-user-select: none;
18 background-size: auto 100%;
19 margin: 0;
22 /* [hidden] does display:none, but its priority is too low in some cases. */
23 [hidden] {
24 display: none !important;
27 #notification-container {
28 -webkit-transition: opacity 200ms;
29 bottom: 31px;
30 display: block;
31 float: left;
32 position: relative;
33 text-align: start;
34 z-index: 15;
37 html[dir='rtl'] #notification-container {
38 float: right;
41 #notification-container.card-changed {
42 -webkit-transition: none;
43 opacity: 0;
46 #notification-container.inactive {
47 -webkit-transition: opacity 200ms;
48 opacity: 0;
51 #notification {
52 display: inline-block;
53 font-weight: bold;
54 white-space: nowrap;
57 #notification > * {
58 display: inline-block;
59 white-space: normal;
62 #notification > div > div,
63 #notification > div {
64 display: inline-block;
67 /* NOTE: This is in the probable case that we start stuffing 16x16 data URI'd
68 * icons in the promo notification responses. */
69 #notification > span > img {
70 margin-bottom: -3px;
73 #notification .close-button {
74 -webkit-margin-start: 8px; /* Matching value in TilePage#repositionTile_. */
75 vertical-align: top;
78 .close-button {
79 background: no-repeat;
80 background-color: transparent;
81 /* TODO(estade): this should animate between states. */
82 background-image: -webkit-image-set(
83 url(../../../../ui/resources/default_100_percent/close_2.png) 1x,
84 url(../../../../ui/resources/default_200_percent/close_2.png) 2x);
85 border: 0;
86 cursor: default;
87 display: inline-block;
88 height: 16px;
89 padding: 0;
90 width: 16px;
93 .close-button:hover,
94 .close-button:focus {
95 background-image: -webkit-image-set(
96 url(../../../../ui/resources/default_100_percent/close_2_hover.png) 1x,
97 url(../../../../ui/resources/default_200_percent/close_2_hover.png) 2x);
100 .close-button:active {
101 background-image: -webkit-image-set(
102 url(../../../../ui/resources/default_100_percent/close_2_pressed.png)
104 url(../../../../ui/resources/default_200_percent/close_2_pressed.png)
105 2x);
108 [is='action-link'] {
109 -webkit-margin-start: 0.5em;
112 #card-slider-frame {
113 /* Must match #footer height. */
114 bottom: 50px;
115 overflow: hidden;
116 /* We want this to fill the window except for the region used
117 * by footer. */
118 position: fixed;
119 top: 0;
120 width: 100%;
123 body.bare-minimum #card-slider-frame {
124 bottom: 0;
127 #page-list {
128 /* fill the apps-frame */
129 display: -webkit-box;
130 height: 100%;
133 #attribution {
134 bottom: 0;
135 left: auto;
136 margin-left: 8px;
137 /* Leave room for the scrollbar. */
138 margin-right: 13px;
139 position: absolute;
140 right: 0;
141 text-align: left;
142 z-index: -5;
145 /* For themes that right-align their images, we flip the attribution to the
146 * left to avoid conflicts. We also do this for bare-minimum mode since there
147 * can be conflicts with the recently closed menu. */
148 html[themegravity='right'] #attribution,
149 body.bare-minimum #attribution,
150 html[dir='rtl'] #attribution {
151 left: 0;
152 right: auto;
153 text-align: right;
156 #attribution > span {
157 display: block;
160 #footer {
161 background-image: linear-gradient(
162 rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9));
163 bottom: 0;
164 color: #7F7F7F;
165 font-size: 0.9em;
166 font-weight: bold;
167 overflow: hidden;
168 position: fixed;
169 width: 100%;
170 z-index: 5;
173 /* TODO(estade): remove this border hack and replace with a webkit-gradient
174 * border-image on #footer once WebKit supports border-image-slice.
175 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
176 #footer-border {
177 height: 1px;
180 #footer-content {
181 -webkit-align-items: center;
182 -webkit-justify-content: space-between;
183 display: -webkit-flex;
184 height: 49px;
187 #footer-content > * {
188 margin: 0 9px;
191 #logo-img {
192 display: inline-block;
193 margin-top: 4px;
194 overflow: hidden;
195 position: relative;
198 #promo-bubble-anchor {
199 height: 1px;
200 left: 0;
201 position: absolute;
202 top: 4px;
203 visibility: hidden;
204 width: 32px;
207 body.bare-minimum #footer {
208 background: transparent;
209 bottom: auto;
210 font-weight: normal;
211 position: absolute;
212 right: 0;
215 html[dir='rtl'] body.bare-minimum #footer {
216 left: 0;
217 right: auto;
220 body.bare-minimum #footer-border,
221 body.bare-minimum #logo-img,
222 body.bare-minimum #dot-list {
223 visibility: hidden;
226 .starting-up * {
227 -webkit-transition: none !important;
230 /* Login Status. **************************************************************/
232 #login-container {
233 -webkit-box-shadow: none;
234 background: transparent none;
235 border: none;
236 color: inherit;
237 cursor: pointer;
238 font: inherit;
239 /* Leave room for the scrollbar. */
240 margin-left: 13px;
241 margin-right: 13px;
242 margin-top: 5px;
243 padding: 0;
244 position: fixed;
245 right: 0;
246 text-align: right;
247 top: 0;
248 z-index: 10;
251 html[dir='rtl'] #login-container {
252 left: 0;
253 right: auto;
256 .login-status-icon {
257 -webkit-padding-end: 37px;
258 background-position: right center;
259 background-repeat: no-repeat;
260 min-height: 27px;
263 html[dir='rtl'] .login-status-icon {
264 background-position-x: left;
267 .profile-name:hover,
268 .link-span {
269 text-decoration: underline;
272 #login-status-bubble-contents {
273 font-size: 1.1em;
276 #login-status-message-container {
277 margin-bottom: 13px;
280 #login-status-learn-more {
281 display: inline-block;
284 .login-status-row {
285 -webkit-box-align: center;
286 -webkit-box-orient: horizontal;
287 -webkit-box-pack: end;
288 display: -webkit-box;
291 #login-status-advanced-container {
292 -webkit-box-flex: 1;
295 #login-status-dismiss {
296 min-width: 6em;
299 /* Trash. *********************************************************************/
301 #trash {
302 -webkit-padding-start: 10px;
303 -webkit-transition: top 200ms, opacity 0;
304 -webkit-transition-delay: 0, 200ms;
305 color: #222;
306 height: 100%;
307 opacity: 0;
308 position: absolute;
309 right: 0;
310 top: 50px;
311 width: auto;
314 html[dir='rtl'] #trash {
315 left: 0;
316 right: auto;
319 #footer.showing-trash-mode #trash {
320 -webkit-transition-delay: 0, 0;
321 -webkit-transition-duration: 0, 200ms;
322 opacity: 0.75;
323 top: 0;
326 #footer.showing-trash-mode #trash.drag-target {
327 opacity: 1;
330 #trash > .trash-text {
331 -webkit-padding-end: 7px;
332 -webkit-padding-start: 30px;
333 border: 1px dashed #7f7f7f;
334 border-radius: 4px;
335 display: inline-block;
336 padding-bottom: 9px;
337 padding-top: 10px;
338 position: relative;
339 top: 7px;
342 #trash > .lid,
343 #trash > .can {
344 left: 18px;
345 top: 18px;
348 html[dir='rtl'] #trash > .lid,
349 html[dir='rtl'] #trash > .can {
350 right: 18px;
353 #footer.showing-trash-mode #trash.drag-target .lid {
354 -webkit-transform: rotate(-45deg);
357 html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid {
358 -webkit-transform: rotate(45deg);
361 #fontMeasuringDiv {
362 /* The font attributes match the nav inputs. */
363 font-size: 0.9em;
364 font-weight: bold;
365 pointer-events: none;
366 position: absolute;
367 visibility: hidden;
370 /* Page switcher buttons. *****************************************************/
372 .page-switcher {
373 -webkit-transition: width 150ms, right 150ms, background-color 150ms;
374 background-color: transparent;
375 border: none;
376 bottom: 0;
377 font-size: 40px;
378 margin: 0;
379 max-width: 150px;
380 min-width: 90px;
381 outline: none;
382 padding: 0;
383 position: absolute;
384 top: 0;
385 z-index: 5;
388 /* Footer buttons. ************************************************************/
390 #chrome-web-store-link {
391 -webkit-order: 3;
392 -webkit-padding-end: 12px;
393 /* Match transition delay of recently closed button. */
394 -webkit-transition-delay: 100ms;
395 color: inherit;
396 cursor: pointer;
397 display: inline-block;
398 margin: 0;
399 text-decoration: none;
400 white-space: nowrap;
403 #chrome-web-store-title {
404 -webkit-padding-end: 36px;
405 -webkit-padding-start: 15px;
406 background: url(chrome://theme/IDR_WEBSTORE_ICON_24) right 50% no-repeat;
407 display: inline-block;
408 line-height: 49px;
411 #chrome-web-store-link:hover {
412 color: #666;
415 html[dir='rtl'] #chrome-web-store-title {
416 background-position-x: left;
419 #vertical-separator {
420 -webkit-order: 2;
421 background-color: rgb(178, 178, 178);
422 display: none;
423 height: 20px;
424 margin: 0;
425 vertical-align: middle;
426 width: 1px;
429 /* Show the separator only if one of the menus is visible. */
430 .footer-menu-button:not([hidden]) ~ #chrome-web-store-link:not([hidden])
431 ~ #vertical-separator {
432 display: inline-block;
435 /* In trash mode, hide the menus and web store link. */
436 #footer.showing-trash-mode .menu-container {
437 -webkit-transition-delay: 0;
438 opacity: 0;
439 visibility: hidden;
442 #footer .menu-container {
443 -webkit-align-items: center;
444 -webkit-flex-direction: row;
445 -webkit-justify-content: flex-end;
446 /* Put menus in a box so the order can easily be swapped. */
447 display: -webkit-flex;
448 height: 100%;
449 margin: 0;
450 min-width: -webkit-min-content;
453 #recently-closed-menu-button {
454 -webkit-order: 1;
457 #other-sessions-menu-button {
458 -webkit-order: 0;
461 .other-sessions-promo-message {
462 display: none;
463 padding: 0;
466 .other-sessions-promo-message:only-child {
467 display: block;
470 .other-sessions-promo-message p {
471 margin: 0;