[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / chrome / browser / resources / ntp4 / new_tab.css
blobf837c0e47876b794a992c31d4612e829c757cf93
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. */
147 html[themegravity='right'] #attribution,
148 body.bare-minimum #attribution,
149 html[dir='rtl'] #attribution {
150 left: 0;
151 right: auto;
152 text-align: right;
155 #attribution > span {
156 display: block;
159 #footer {
160 background-image: linear-gradient(
161 rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9));
162 bottom: 0;
163 color: #7F7F7F;
164 font-size: 0.9em;
165 font-weight: bold;
166 overflow: hidden;
167 position: fixed;
168 width: 100%;
169 z-index: 5;
172 /* TODO(estade): remove this border hack and replace with a webkit-gradient
173 * border-image on #footer once WebKit supports border-image-slice.
174 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
175 #footer-border {
176 height: 1px;
179 #footer-content {
180 -webkit-align-items: center;
181 -webkit-justify-content: space-between;
182 display: -webkit-flex;
183 height: 49px;
186 #footer-content > * {
187 margin: 0 9px;
190 #logo-img {
191 display: inline-block;
192 margin-top: 4px;
193 overflow: hidden;
194 position: relative;
197 #promo-bubble-anchor {
198 height: 1px;
199 left: 0;
200 position: absolute;
201 top: 4px;
202 visibility: hidden;
203 width: 32px;
206 body.bare-minimum #footer {
207 background: transparent;
208 bottom: auto;
209 font-weight: normal;
210 position: absolute;
211 right: 0;
214 html[dir='rtl'] body.bare-minimum #footer {
215 left: 0;
216 right: auto;
219 body.bare-minimum #footer-border,
220 body.bare-minimum #logo-img,
221 body.bare-minimum #dot-list {
222 visibility: hidden;
225 .starting-up * {
226 -webkit-transition: none !important;
229 /* Login Status. **************************************************************/
231 #login-container {
232 background: transparent none;
233 border: none;
234 box-shadow: none;
235 color: inherit;
236 font: inherit;
237 /* Leave room for the scrollbar. */
238 margin-left: 13px;
239 margin-right: 13px;
240 margin-top: 5px;
241 padding: 0;
242 position: fixed;
243 right: 0;
244 text-align: right;
245 top: 0;
246 z-index: 10;
249 #login-container:not(.signed-in) {
250 cursor: pointer;
253 html[dir='rtl'] #login-container {
254 left: 0;
255 right: auto;
258 #login-container [is='action-link'] {
259 -webkit-margin-start: 0;
262 .login-status-icon {
263 -webkit-padding-end: 37px;
264 background-position: right center;
265 background-repeat: no-repeat;
266 min-height: 27px;
269 html[dir='rtl'] .login-status-icon {
270 background-position-x: left;
273 #login-status-bubble-contents {
274 font-size: 1.1em;
277 #login-status-message-container {
278 margin-bottom: 13px;
281 #login-status-learn-more {
282 display: inline-block;
285 .login-status-row {
286 -webkit-box-align: center;
287 -webkit-box-orient: horizontal;
288 -webkit-box-pack: end;
289 display: -webkit-box;
292 #login-status-advanced-container {
293 -webkit-box-flex: 1;
296 #login-status-dismiss {
297 min-width: 6em;
300 /* Trash. *********************************************************************/
302 #trash {
303 -webkit-padding-start: 10px;
304 -webkit-transition: top 200ms, opacity 0ms;
305 -webkit-transition-delay: 0ms, 200ms;
306 color: #222;
307 height: 100%;
308 opacity: 0;
309 position: absolute;
310 right: 0;
311 top: 50px;
312 width: auto;
315 html[dir='rtl'] #trash {
316 left: 0;
317 right: auto;
320 #footer.showing-trash-mode #trash {
321 -webkit-transition-delay: 0ms, 0ms;
322 -webkit-transition-duration: 0ms, 200ms;
323 opacity: 0.75;
324 top: 0;
327 #footer.showing-trash-mode #trash.drag-target {
328 opacity: 1;
331 #trash > .trash-text {
332 -webkit-padding-end: 7px;
333 -webkit-padding-start: 30px;
334 border: 1px dashed #7f7f7f;
335 border-radius: 4px;
336 display: inline-block;
337 padding-bottom: 9px;
338 padding-top: 10px;
339 position: relative;
340 top: 7px;
343 #trash > .lid,
344 #trash > .can {
345 left: 18px;
346 top: 18px;
349 html[dir='rtl'] #trash > .lid,
350 html[dir='rtl'] #trash > .can {
351 right: 18px;
354 #footer.showing-trash-mode #trash.drag-target .lid {
355 -webkit-transform: rotate(-45deg);
358 html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid {
359 -webkit-transform: rotate(45deg);
362 #fontMeasuringDiv {
363 /* The font attributes match the nav inputs. */
364 font-size: 0.9em;
365 font-weight: bold;
366 pointer-events: none;
367 position: absolute;
368 visibility: hidden;
371 /* Page switcher buttons. *****************************************************/
373 .page-switcher {
374 -webkit-transition: width 150ms, right 150ms, background-color 150ms;
375 background-color: transparent;
376 border: none;
377 bottom: 0;
378 font-size: 40px;
379 margin: 0;
380 max-width: 150px;
381 min-width: 90px;
382 outline: none;
383 padding: 0;
384 position: absolute;
385 top: 0;
386 z-index: 5;
389 /* Footer buttons. ************************************************************/
391 #chrome-web-store-link {
392 -webkit-order: 3;
393 -webkit-padding-end: 12px;
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 /* In trash mode, hide the menus and web store link. */
420 #footer.showing-trash-mode .menu-container {
421 -webkit-transition-delay: 0ms;
422 opacity: 0;
423 visibility: hidden;
426 #footer .menu-container {
427 -webkit-align-items: center;
428 -webkit-flex-direction: row;
429 -webkit-justify-content: flex-end;
430 /* Put menus in a box so the order can easily be swapped. */
431 display: -webkit-flex;
432 height: 100%;
433 margin: 0;
434 min-width: -webkit-min-content;
437 #other-sessions-menu-button {
438 -webkit-order: 0;
441 .other-sessions-promo-message {
442 display: none;
443 padding: 0;
446 .other-sessions-promo-message:only-child {
447 display: block;
450 .other-sessions-promo-message p {
451 margin: 0;