Elim cr-checkbox
[chromium-blink-merge.git] / chrome / browser / resources / ntp4 / new_tab.css
blob1be1e0c0577cad90d777003e4db472b16897d767
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 #page-list {
124 /* fill the apps-frame */
125 display: -webkit-box;
126 height: 100%;
129 #attribution {
130 bottom: 0;
131 margin-left: 8px;
132 /* Leave room for the scrollbar. */
133 margin-right: 13px;
134 position: absolute;
135 z-index: -5;
138 html[dir='rtl'] #attribution {
139 left: 0;
140 right: auto;
141 text-align: right;
144 #attribution > span {
145 display: block;
148 #footer {
149 background-image: linear-gradient(
150 rgba(242, 242, 242, 0.9), rgba(222, 222, 222, 0.9));
151 bottom: 0;
152 color: #7F7F7F;
153 font-size: 0.9em;
154 font-weight: bold;
155 overflow: hidden;
156 position: fixed;
157 width: 100%;
158 z-index: 5;
161 /* TODO(estade): remove this border hack and replace with a webkit-gradient
162 * border-image on #footer once WebKit supports border-image-slice.
163 * See https://bugs.webkit.org/show_bug.cgi?id=20127 */
164 #footer-border {
165 height: 1px;
168 #footer-content {
169 -webkit-align-items: center;
170 -webkit-justify-content: space-between;
171 display: -webkit-flex;
172 height: 49px;
175 #footer-content > * {
176 margin: 0 9px;
179 #logo-img {
180 display: inline-block;
181 margin-top: 4px;
182 overflow: hidden;
183 position: relative;
186 #promo-bubble-anchor {
187 height: 1px;
188 left: 0;
189 position: absolute;
190 top: 4px;
191 visibility: hidden;
192 width: 32px;
195 .starting-up * {
196 -webkit-transition: none !important;
199 /* Login Status. **************************************************************/
201 #login-container {
202 background: transparent none;
203 border: none;
204 box-shadow: none;
205 color: inherit;
206 font: inherit;
207 /* Leave room for the scrollbar. */
208 margin-left: 13px;
209 margin-right: 13px;
210 margin-top: 5px;
211 padding: 0;
212 position: fixed;
213 right: 0;
214 text-align: right;
215 top: 0;
216 z-index: 10;
219 #login-container:not(.signed-in) {
220 cursor: pointer;
223 html[dir='rtl'] #login-container {
224 left: 0;
225 right: auto;
228 #login-container [is='action-link'] {
229 -webkit-margin-start: 0;
232 .login-status-icon {
233 -webkit-padding-end: 37px;
234 background-position: right center;
235 background-repeat: no-repeat;
236 min-height: 27px;
239 html[dir='rtl'] .login-status-icon {
240 background-position-x: left;
243 #login-status-bubble-contents {
244 font-size: 1.1em;
247 #login-status-message-container {
248 margin-bottom: 13px;
251 #login-status-learn-more {
252 display: inline-block;
255 .login-status-row {
256 -webkit-box-align: center;
257 -webkit-box-orient: horizontal;
258 -webkit-box-pack: end;
259 display: -webkit-box;
262 #login-status-advanced-container {
263 -webkit-box-flex: 1;
266 #login-status-dismiss {
267 min-width: 6em;
270 /* Trash. *********************************************************************/
272 #trash {
273 -webkit-padding-start: 10px;
274 -webkit-transition: top 200ms, opacity 0ms;
275 -webkit-transition-delay: 0ms, 200ms;
276 color: #222;
277 height: 100%;
278 opacity: 0;
279 position: absolute;
280 right: 0;
281 top: 50px;
282 width: auto;
285 html[dir='rtl'] #trash {
286 left: 0;
287 right: auto;
290 #footer.showing-trash-mode #trash {
291 -webkit-transition-delay: 0ms, 0ms;
292 -webkit-transition-duration: 0ms, 200ms;
293 opacity: 0.75;
294 top: 0;
297 #footer.showing-trash-mode #trash.drag-target {
298 opacity: 1;
301 #trash > .trash-text {
302 -webkit-padding-end: 7px;
303 -webkit-padding-start: 30px;
304 border: 1px dashed #7f7f7f;
305 border-radius: 4px;
306 display: inline-block;
307 padding-bottom: 9px;
308 padding-top: 10px;
309 position: relative;
310 top: 7px;
313 #trash > .lid,
314 #trash > .can {
315 left: 18px;
316 top: 18px;
319 html[dir='rtl'] #trash > .lid,
320 html[dir='rtl'] #trash > .can {
321 right: 18px;
324 #footer.showing-trash-mode #trash.drag-target .lid {
325 -webkit-transform: rotate(-45deg);
328 html[dir='rtl'] #footer.showing-trash-mode #trash.drag-target .lid {
329 -webkit-transform: rotate(45deg);
332 #fontMeasuringDiv {
333 /* The font attributes match the nav inputs. */
334 font-size: 0.9em;
335 font-weight: bold;
336 pointer-events: none;
337 position: absolute;
338 visibility: hidden;
341 /* Page switcher buttons. *****************************************************/
343 .page-switcher {
344 -webkit-transition: width 150ms, right 150ms, background-color 150ms;
345 background-color: transparent;
346 border: none;
347 bottom: 0;
348 font-size: 40px;
349 margin: 0;
350 max-width: 150px;
351 min-width: 90px;
352 outline: none;
353 padding: 0;
354 position: absolute;
355 top: 0;
356 z-index: 5;
359 /* Footer buttons. ************************************************************/
361 #chrome-web-store-link {
362 -webkit-order: 3;
363 -webkit-padding-end: 12px;
364 -webkit-transition-delay: 100ms;
365 color: inherit;
366 cursor: pointer;
367 display: inline-block;
368 margin: 0;
369 text-decoration: none;
370 white-space: nowrap;
373 #chrome-web-store-title {
374 -webkit-padding-end: 36px;
375 -webkit-padding-start: 15px;
376 background: url(chrome://theme/IDR_WEBSTORE_ICON_24) right 50% no-repeat;
377 display: inline-block;
378 line-height: 49px;
381 #chrome-web-store-link:hover {
382 color: #666;
385 html[dir='rtl'] #chrome-web-store-title {
386 background-position-x: left;
389 /* In trash mode, hide the menus and web store link. */
390 #footer.showing-trash-mode .menu-container {
391 -webkit-transition-delay: 0ms;
392 opacity: 0;
393 visibility: hidden;
396 #footer .menu-container {
397 -webkit-align-items: center;
398 -webkit-flex-direction: row;
399 -webkit-justify-content: flex-end;
400 /* Put menus in a box so the order can easily be swapped. */
401 display: -webkit-flex;
402 height: 100%;
403 margin: 0;
404 min-width: -webkit-min-content;
407 #other-sessions-menu-button {
408 -webkit-order: 0;
411 .other-sessions-promo-message {
412 display: none;
413 padding: 0;
416 .other-sessions-promo-message:only-child {
417 display: block;
420 .other-sessions-promo-message p {
421 margin: 0;