Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / resources / contextual_search / promo.css
blob63fe3392ee401b7ad2ca51b0702e639840192146
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. */
6 @font-face {
7 font-family: 'Roboto2';
8 font-weight: 400;
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
23 #heading,
24 #description {
25 max-height: 999999px;
28 body {
29 font-family: 'Roboto2', sans-serif;
30 margin: 0;
33 a {
34 text-decoration: none;
37 a.colored-link {
38 color: rgb(66, 133, 244);
41 #container {
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
49 * be considered.
51 padding: 14px 16px 12px;
54 #button-container {
55 margin-top: 24px;
56 text-align: end;
57 width: 100%;
60 #container.hide {
61 -webkit-transform: scale(0.95);
62 -webkit-transition-duration: 130ms;
63 -webkit-transition-property: opacity, -webkit-transform;
64 opacity: 0;
67 #description {
68 color: #7E7E7E;
69 font-size: 16px;
70 line-height: 1.38em;
71 margin: 12px 0 24px;
74 /* Some properties below can be overridden in landscape orientation. */
75 #heading {
76 font-size: 23px;
77 margin: 20px 0 12px;
78 text-align: center;
80 .header-image {
81 background-image: url(header.svg);
82 background-repeat: no-repeat;
83 height: 98px;
84 margin: 0 auto 38px auto;
85 width: 156px;
87 .portrait {
88 display: block;
90 .landscape {
91 display: none;
94 /* Landscape */
95 @media screen and (orientation:landscape) {
96 #heading {
97 margin-top: 0;
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.
103 margin-left: 180px;
104 padding-top: 8px;
105 text-align: left;
107 .header-image {
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.
115 margin: 0 24px 0 0;
116 position: relative;
117 top: -4px;
119 .portrait {
120 display: none;
122 .landscape {
123 display: block;
124 float: left;
126 html[dir='rtl'] .landscape {
127 float: right;
131 button {
132 background: none;
133 border: none;
134 display: inline-block;
135 font-family: 'Roboto2', sans-serif;
136 font-size: 14px;
137 margin: 6px 0;
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
140 * text.
142 padding: 12px 16px 8px;
143 white-space: nowrap;
146 button .caption {
147 text-transform: uppercase;
150 #optin-button {
151 background: rgb(66, 133, 244);
152 background-clip: padding-box;
153 border-radius: 3px;
156 #optin-button .caption {
157 color: white;
160 #optout-button .caption {
161 color: rgb(66, 133, 244);