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

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: Adding Readme 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 -webkit-margin-start: 1.25em;
112 -webkit-padding-start: 1em;
113 margin-bottom: 1em;
114 }
115
116 .section-steps li:last-child {
117 margin-bottom: 1em;
118 }
119
120 .section.expandable .section-steps {
121 max-height: 0;
122 opacity: 0;
123 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
124 }
125
126 .section.expandable.expanded .section-steps {
127 max-height: 8.75em;
128 opacity: 1;
129 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
130 opacity 150ms 250ms;
131 }
132
133 .button {
134 -webkit-font-smoothing: antialiased;
135 background: var(--paper-blue-a200);
136 border-radius: 2px;
137 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
138 color: #fff;
139 display: inline-block;
140 font-size: .74em;
141 font-weight: 500;
142 line-height: 1.75em;
143 min-width: 2em;
144 padding: 0 1em;
145 text-align: center;
146 transition: 300ms cubic-bezier(.4, .2, 0, 1);
147 will-change: box-shadow;
148 }
149
150 .button:hover {
151 background: var(--paper-blue-a400);
152 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24);
153 }
154
155 .bg {
156 background: var(--paper-light-blue-700);
157 flex: 1;
158 margin-top: 96px;
159 padding: 24px;
160 }
161
162 .logo-small {
163 content: -webkit-image-set(url(/logo-small.png) 1x,
164 url(/logo-small2x.png) 2x);
165 display: inline;
166 height: 1.25em;
167 vertical-align: top;
168 width: 1.25em;
169 }
170
171 .screenshots {
172 display: block;
173 height: 440px;
174 margin: 0 auto;
175 max-width: 100%;
176 position: relative;
177 top: -96px;
178 width: 720px;
179 }
180
181 .screenshot-image {
182 box-shadow: 0 0 8px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .24);
183 height: 56vw;
184 max-height: 440px;
185 max-width: 720px;
186 min-height: 294px;
187 min-width: 480px;
188 position: absolute;
189 transition: opacity 150ms;
190 width: 92vw;
191 }
192
193 .screenshot-image.hidden {
194 opacity: 0;
195 }
196
197 #screenshot-image--default {
198 background: -webkit-image-set(
199 url(https://www.gstatic.com/chrome/login/win10/default-large.webp) 1x,
200 url(https://www.gstatic.com/chrome/login/win10/default-large@2x.webp) 2x);
201 background-repeat: no-repeat;
202 background-size: cover;
203 }
204
205 #screenshot-image--taskbar {
206 background: -webkit-image-set(
207 url(https://www.gstatic.com/chrome/login/win10/pin-large.webp) 1x,
208 url(https://www.gstatic.com/chrome/login/win10/pin-large@2x.webp) 2x);
209 background-repeat: no-repeat;
210 background-size: cover;
211 }
212
213 .screenshot-html-overlay {
214 box-sizing: border-box;
215 font-size: 7px;
216 line-height: 0;
217 position: absolute;
218 }
219
220 #screenshot-html-overlay--browser {
221 left: 35.8%;
222 top: 75.8%;
223 }
224
225 #screenshot-html-overlay--edge {
226 left: 41.5%;
227 top: 82.4%;
228 }
229
230 #screenshot-html-overlay--taskbar {
231 left: 62.2%;
232 top: 81.5%;
233 }
234
235 #screenshot-html-overlay--taskbar div {
236 color: #ccc;
237 font-family: Tahoma, Verdana, Segoe, sans-serif;
238 font-weight: 500;
239 }
240
241 #screenshot-html-overlay--icon {
242 background-image: url(/logo-small.png);
243 background-size: cover;
244 height: 5.8%;
245 left: 70.60%;
246 top: 93.1%;
247 width: 3.5%;
248 }
249
250 /* This value is precisely set so that the text over the screenshot starts
251 * scaling at the same time the image starts scaling too. */
252 @media (min-width: 520px) {
253 .screenshot-html-overlay {
254 font-size: 1.35vw;
255 }
256 }
257
258 /* Font-size used when the screenshot exactly reaches its max size. */
259 @media (min-width: 780px) {
260 .screenshot-html-overlay {
261 font-size: 10.5px;
262 }
263 }
264
265 @media (min-width: 1280px) {
266 body {
267 flex-direction: row;
268 }
269
270 .content {
271 align-items: center;
272 display: flex;
273 flex: 1;
274 justify-content: flex-end;
275 padding: 96px;
276 }
277
278 .text {
279 margin: 0 180px;
280 max-width: none;
281 width: 400px;
282 }
283
284 .bg {
285 align-items: center;
286 display: flex;
287 flex: 1;
288 margin: 0;
289 max-width: 42%;
290 padding: 0;
291 }
292
293 .screenshots {
294 margin-left: -180px;
295 max-width: none;
296 top: 0;
297 }
298 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/welcome/win10/inline.js ('k') | chrome/browser/resources/welcome/win10/sectioned.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698