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

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: Comments #1 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: rgb(66, 133, 244);
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: rgb(62, 126, 231);
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: rgb(0, 120, 215);
148 flex: 1;
149 margin-top: 96px;
150 padding: 24px;
151 }
152
153 .screenshots {
154 display: block;
155 height: 440px;
156 margin: 0 auto;
157 max-width: 100%;
158 position: relative;
159 top: -96px;
160 width: 720px;
161 }
162
163 .screenshot-image {
164 box-shadow: 0 0 8px rgba(0, 0, 0, .12), 0 4px 16px rgba(0, 0, 0, .24);
165 height: 56vw;
166 max-height: 440px;
167 max-width: 720px;
168 min-height: 294px;
169 min-width: 480px;
170 opacity: 0;
171 position: absolute;
172 transition: opacity 150ms;
173 width: 92vw;
174 }
175
176 #screenshot-image--default {
177 background: -webkit-image-set(
178 url(https://www.gstatic.com/chrome/login/win10/default-large.webp) 1x,
179 url(https://www.gstatic.com/chrome/login/win10/default-large@2x.webp) 2x);
180 background-repeat: no-repeat;
181 background-size: cover;
182 }
183
184 #screenshot-image--taskbar {
185 background: -webkit-image-set(
186 url(https://www.gstatic.com/chrome/login/win10/pin-large.webp) 1x,
187 url(https://www.gstatic.com/chrome/login/win10/pin-large@2x.webp) 2x);
188 background-repeat: no-repeat;
189 background-size: cover;
190 }
191
192 .screenshot-image--visible {
193 opacity: 1;
194 }
195
196 .logo-small {
197 content: -webkit-image-set(url(logo-small.png) 1x, url(logo-small2x.png) 2x);
198 display: inline;
199 height: 1.25em;
200 vertical-align: top;
201 width: 1.25em;
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 @media (min-width: 520px) {
242 .screenshot-html-overlay {
243 font-size: 1.35vw;
244 }
245 }
246
247 @media (min-width: 780px) {
248 .screenshot-html-overlay {
249 font-size: 10.5px;
250 }
251 }
252
253 @media (min-width: 1280px) {
254 body {
255 flex-direction: row;
256 }
257
258 .content {
259 align-items: center;
260 display: flex;
261 flex: 1;
262 justify-content: flex-end;
263 padding: 96px;
264 }
265
266 .text {
267 margin: 0 180px;
268 max-width: none;
269 width: 400px;
270 }
271
272 .bg {
273 align-items: center;
274 display: flex;
275 flex: 1;
276 margin: 0;
277 max-width: 42%;
278 padding: 0;
279 }
280
281 .screenshots {
282 margin-left: -180px;
283 max-width: none;
284 top: 0;
285 }
286 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698