1 /* Copyright 2014 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 /* TODO: Need to clean up @font-face after we remove font-family from body. */
7 font-family: 'Roboto2';
9 src: local
('Roboto'), local
('Roboto2-Regular'),
10 url
(chrome://resources
/roboto
/roboto
.woff2
) format
('woff2'),
11 url
(chrome://resources
/roboto
/roboto
.woff
) format
('woff');
14 /* TODO(pedrosimonetti): Find a better way to fix the problem when the
15 * text scaling preference is set to a high value.
17 * This CSS rule prevents the promo text from scaling as explained here:
18 * https://code.google.com/p/chromium/issues/detail?id=252828#c10
20 * For for background about the problem, see:
21 * https://code.google.com/p/chromium/issues/detail?id=466773
29 font-family: 'Roboto2', sans-serif
;
34 text-decoration: none
;
38 color: rgb
(66, 133, 244);
42 /* NOTE(pedrosimonetti): There's an implicit extra top margin that is
43 * rendered natively (currently using 24dp). So, the total padding will
44 * be 38dp (24dp + 14dp). For more info, see SEARCH_BAR_HEIGHT_STATE_PROMO
45 * in ContextualSearchPanelBase.java.
47 * We're also setting the side and bottom paddings to ensure to make sure
48 * that when computing the height of the container all margins/paddings will
51 padding: 14px 16px 12px;
61 -webkit-transform: scale
(0.95);
62 -webkit-transition-duration: 130ms;
63 -webkit-transition-property: opacity
, -webkit-transform
;
74 /* Some properties below can be overridden in landscape orientation. */
81 background-image: url
(header.svg);
82 background-repeat: no-repeat
;
84 margin: 0 auto
38px auto
;
95 @media screen and
(orientation:landscape
) {
98 /* The heading text and description text should be aligned, therefore
99 * the left margin here will be equal to the header image width (156px)
100 * plus its right margin (24px). Therefore the total left should be
101 * 156px + 24px = 180px.
108 /* The header image is supposed to be vertically centered when the promo
109 * is in landscape mode. For now, we're forcefully moving the image 4
110 * pixels up to make it centered. A better approach would be using CSS
111 * flexbox to properly center it, but this will require changing the
112 * markup and styling of the whole promo, and it could be tricky coming
113 * up with a single markup that works in both portrait and lanscape modes.
126 html
[dir
='rtl'] .landscape
{
134 display: inline-block
;
135 font-family: 'Roboto2', sans-serif
;
138 /* We use a slightly different top-bottom padding because Roboto has a
139 * rendering bug which makes an extra padding to be rendered at the bottom of
142 padding: 12px 16px 8px;
147 text-transform: uppercase
;
151 background: rgb
(66, 133, 244);
152 background-clip: padding-box
;
156 #optin-button .caption
{
160 #optout-button .caption
{
161 color: rgb
(66, 133, 244);