Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: chrome/browser/resources/welcome/win10/sectioned.css

Issue 2401853005: Adding client code for new Windows 10 First Run Experience (Closed)
Patch Set: Addressing comments #1 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright 2016 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. */
4
5 body {
6 box-sizing: border-box;
7 color: var(--paper-grey-900);
8 display: flex;
9 flex-direction: column;
10 font-size: 100%;
11 justify-content: center;
12 margin: 0;
13 min-height: 100vh;
14 }
15
16 a {
17 color: var(--google-blue-500);
18 text-decoration: none;
19 }
20
21 ol {
22 margin: 0;
23 padding: 0;
24 }
25
26 strong {
27 font-weight: 500;
28 }
29
30 .content {
31 padding: 64px 24px 24px 24px;
32 }
33
34 .header-logo {
35 content: -webkit-image-set(url(/logo-large.png) 1x,
36 url(/logo-large2x.png) 2x);
37 }
38
39 .text {
40 margin: 0 auto;
41 max-width: 45em;
42 }
43
44 .heading {
45 font-size: 2.125em;
46 margin-bottom: .25em;
47 margin-top: 1.5em;
48 }
49
50 .subheading {
51 color: var(--google-grey-500);
52 font-size: 1em;
53 margin-bottom: 1.5em;
54 margin-top: .25em;
55 text-align: center;
56 }
57
58 .sections {
59 margin-bottom: 3em;
60 }
61
62 .section.expandable {
63 border-top: 1px solid var(--google-grey-300);
64 }
65
66 .section.expandable:last-child {
67 border-bottom: 1px solid var(--google-grey-300);
68 }
69
70 .section.expandable .section-heading {
71 color: var(--google-blue-500);
72 cursor: pointer;
73 }
74
75 .section-heading {
76 align-items: center;
77 display: flex;
78 padding: 1.5em 0;
79 }
80
81 .section-heading-text {
82 flex: 1;
83 font-weight: 500;
84 }
85
86 .section.expandable .section-heading-text {
87 font-weight: normal;
88 }
89
90 .section.expandable.expanded .section-heading-text {
91 font-weight: 500;
92 }
93
94 .section-heading-expand {
95 height: 1.25em;
96 opacity: 0.54;
97 transition: transform 150ms cubic-bezier(.4, .2, 0, 1) 50ms;
98 width: 1.25em;
99 }
100
101 .section.expandable.expanded .section-heading-expand {
102 transform: rotate(180deg);
103 transition-delay: 150ms;
104 }
105
106 .section-steps {
107 overflow: hidden;
108 }
109
110 .section-steps li {
111 margin: 0 0 1em 1.25em;
112 padding: 0 0 0 1em;
113 }
114
115 [dir='rtl'] .section-steps li {
116 margin: 0 1.25em 1em 0;
117 padding: 0 1em 0 0;
118 }
119
120 .section-steps li:last-child {
121 margin-bottom: 1em;
122 }
123
124 .section.expandable .section-steps {
125 max-height: 0;
126 opacity: 0;
127 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
128 }
129
130 .section.expandable.expanded .section-steps {
131 max-height: 8.75em;
132 opacity: 1;
133 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
134 opacity 150ms 250ms;
135 }
136
137 .button {
138 -webkit-font-smoothing: antialiased;
139 background: var(--paper-blue-a200);
140 border-radius: 2px;
141 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
142 color: #fff;
143 display: inline-block;
144 font-size: .74em;
145 font-weight: 500;
146 line-height: 1.75em;
147 min-width: 2em;
148 padding: 0 1em;
149 text-align: center;
150 transition: 300ms cubic-bezier(.4, .2, 0, 1);
151 will-change: box-shadow;
152 }
153
154 .button:hover {
155 background: var(--paper-blue-a400);
156 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24);
157 }
158
159 .bg {
160 background: var(--paper-light-blue-700);
161 flex: 1;
162 margin-top: 96px;
163 padding: 24px;
164 }
165
166 .logo-small {
167 content: -webkit-image-set(url(/logo-small.png) 1x,
168 url(/logo-small2x.png) 2x);
169 display: inline;
170 height: 1.25em;
171 vertical-align: top;
172 width: 1.25em;
173 }
174
175 .screenshots {
176 display: block;
177 height: 440px;
178 margin: 0 auto;
179 max-width: 100%;
180 position: relative;
181 top: -96px;
182 width: 720px;
183 }
184
185 .screenshot-image {
186 box-shadow: 0 0 8px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .24);
187 height: 56vw;
188 max-height: 440px;
189 max-width: 720px;
190 min-height: 294px;
191 min-width: 480px;
192 position: absolute;
193 transition: opacity 150ms;
194 width: 92vw;
195 }
196
197 .screenshot-image.hidden {
198 opacity: 0;
199 }
200
201 #screenshot-image--default {
202 background: -webkit-image-set(
203 url(https://www.gstatic.com/chrome/login/win10/default-large.webp) 1x,
204 url(https://www.gstatic.com/chrome/login/win10/default-large@2x.webp) 2x);
205 background-repeat: no-repeat;
206 background-size: cover;
207 }
208
209 #screenshot-image--taskbar {
210 background: -webkit-image-set(
211 url(https://www.gstatic.com/chrome/login/win10/pin-large.webp) 1x,
212 url(https://www.gstatic.com/chrome/login/win10/pin-large@2x.webp) 2x);
213 background-repeat: no-repeat;
214 background-size: cover;
215 }
216
217 .screenshot-html-overlay {
218 box-sizing: border-box;
219 font-size: 7px;
220 line-height: 0;
221 position: absolute;
222 }
223
224 #screenshot-html-overlay--browser {
225 left: 35.8%;
226 top: 75.8%;
227 }
228
229 #screenshot-html-overlay--edge {
230 left: 41.5%;
231 top: 82.4%;
232 }
233
234 #screenshot-html-overlay--taskbar {
235 left: 62.2%;
236 top: 81.5%;
237 }
238
239 #screenshot-html-overlay--taskbar div {
240 color: #ccc;
241 font-family: Tahoma, Verdana, Segoe, sans-serif;
242 font-weight: 500;
243 }
244
245 #screenshot-html-overlay--icon {
246 background-image: url(/logo-small.png);
247 background-size: cover;
248 height: 5.8%;
249 left: 70.60%;
250 top: 93.1%;
251 width: 3.5%;
252 }
253
254 /* This value is precisely set so that the text over the screenshot starts
255 * scaling at the same time the image starts scaling too. */
256 @media (min-width: 520px) {
257 .screenshot-html-overlay {
258 font-size: 1.35vw;
259 }
260 }
261
262 /* Font-size used when the screenshot exactly reaches its max size. */
263 @media (min-width: 780px) {
264 .screenshot-html-overlay {
265 font-size: 10.5px;
266 }
267 }
268
269 @media (min-width: 1280px) {
270 body {
271 flex-direction: row;
272 }
273
274 .content {
275 align-items: center;
276 display: flex;
277 flex: 1;
278 justify-content: flex-end;
279 padding: 96px;
280 }
281
282 .text {
283 margin: 0 180px;
284 max-width: none;
285 width: 400px;
286 }
287
288 .bg {
289 align-items: center;
290 display: flex;
291 flex: 1;
292 margin: 0;
293 max-width: 42%;
294 padding: 0;
295 }
296
297 .screenshots {
298 margin-left: -180px;
299 max-width: none;
300 top: 0;
301 }
302 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698