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

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

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

Powered by Google App Engine
This is Rietveld 408576698