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

Side by Side Diff: chrome/browser/resources/welcome/win10/inline.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 margin: 0 auto;
32 padding: 4em 1.5em 1.5em 1.5em;
33 }
34
35 .header-logo {
36 content: -webkit-image-set(url(/logo-large.png) 1x,
37 url(/logo-large2x.png) 2x);
38 }
39
40 .heading {
41 font-size: 2.125em;
42 line-height: 1.6em;
43 margin-bottom: 0.5em;
44 margin-top: 1.2em;
45 }
46
47 .sections {
48 margin-bottom: 3em;
49 }
50
51 .section.expandable {
52 border-top: 1px solid var(--google-grey-300);
53 }
54
55 .section.expandable:last-child {
56 border-bottom: 1px solid var(--google-grey-300);
57 }
58
59 .section.expandable .section-heading {
60 color: var(--google-blue-500);
61 cursor: pointer;
62 }
63
64 .section-heading {
65 align-items: center;
66 display: flex;
67 padding: 1.5em 0;
68 }
69
70 .section-heading-text {
71 flex: 1;
72 font-weight: 500;
73 }
74
75 .section.expandable .section-heading-text {
76 font-weight: normal;
77 }
78
79 .section.expandable.expanded .section-heading-text {
80 font-weight: 500;
81 }
82
83 .section-heading-expand {
84 height: 1.25em;
85 opacity: 0.54;
86 transition: transform 150ms cubic-bezier(.4, .2, 0, 1) 50ms;
87 width: 1.25em;
88 }
89
90 .section.expandable.expanded .section-heading-expand {
91 transform: rotate(180deg);
92 transition-delay: 150ms;
93 }
94
95 .section-steps {
96 overflow: hidden;
97 }
98
99 .section-steps li {
100 margin: 0 0 1em 1.25em;
101 padding: 0 0 0 1em;
102 }
103
104 [dir='rtl'] .section-steps li {
105 margin: 0 1.25em 1em 0;
106 padding: 0 1em 0 0;
107 }
108
109 .section-steps li:last-child {
110 margin-bottom: 1em;
111 }
112
113 .section.expandable .section-steps {
114 max-height: 0;
115 opacity: 0;
116 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
117 }
118
119 .section.expandable.expanded .section-steps {
120 max-height: 28.75em;
121 opacity: 1;
122 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
123 opacity 150ms 250ms;
124 }
125
126 .button {
127 -webkit-font-smoothing: antialiased;
128 background: var(--paper-blue-a200);
129 border-radius: 2px;
130 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
131 color: #fff;
132 display: inline-block;
133 font-size: .75em;
134 font-weight: 500;
135 line-height: 1.75em;
136 min-width: 2em;
137 padding: 0 1em;
138 text-align: center;
139 transition: 300ms cubic-bezier(.4, .2, 0, 1);
140 will-change: box-shadow;
141 }
142
143 .button:hover {
144 background: var(--paper-blue-a400);
145 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24)
146 }
147
148 .logo-small {
149 content: -webkit-image-set(url(/logo-small.png) 1x,
150 url(/logo-small2x.png) 2x);
151 display: inline;
152 height: 1.25em;
153 vertical-align: top;
154 width: 1.25em;
155 }
156
157 .screenshot {
158 display: block;
159 height: 440px;
160 margin: 0 auto;
161 max-width: 100%;
162 position: relative;
163 top: -96px;
164 width: 720px;
165 }
166
167 .screenshot-image {
168 box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
169 height: 48vw;
170 margin: 1em 0;
171 max-height: 300px;
172 max-width: 400px;
173 min-height: 150px;
174 min-width: 200px;
175 position: relative;
176 width: 64vw;
177 }
178
179 #screenshot-image--default {
180 background: -webkit-image-set(
181 url(https://www.gstatic.com/chrome/login/win10/default-small.webp) 1x,
182 url(https://www.gstatic.com/chrome/login/win10/default-small@2x.webp) 2x);
183 background-repeat: no-repeat;
184 background-size: cover;
185 }
186
187 #screenshot-image--taskbar {
188 background: -webkit-image-set(
189 url(https://www.gstatic.com/chrome/login/win10/pin-small.webp) 1x,
190 url(https://www.gstatic.com/chrome/login/win10/pin-small@2x.webp) 2x);
191 background-repeat: no-repeat;
192 background-size: cover;
193 }
194
195 .screenshot-html-overlay {
196 box-sizing: border-box;
197 font-size: 6px;
198 line-height: 0;
199 position: absolute;
200 }
201
202 #screenshot-html-overlay--browser {
203 left: 54.8%;
204 top: 53%;
205 }
206
207 #screenshot-html-overlay--edge {
208 left: 65%;
209 top: 63.5%;
210 }
211
212 #screenshot-html-overlay--taskbar {
213 left: 31%;
214 top: 73%;
215 }
216
217 #screenshot-html-overlay--taskbar div {
218 color: #ccc;
219 font-family: Tahoma, Verdana, Segoe, sans-serif;
220 font-weight: 500;
221 }
222
223 #screenshot-html-overlay--icon {
224 background-image: url(/logo-small.png);
225 background-size: cover;
226 height: 8%;
227 left: 46%;
228 top: 90%;
229 width: 6%;
230 }
231
232 /* This value is precisely set so that the text over the screenshot starts
233 * scaling at the same time the image starts scaling too. */
234 @media (min-width: 312px) {
235 .screenshot-html-overlay {
236 font-size: 1.95vw;
237 }
238 }
239
240 /* Font-size used when the screenshot exactly reaches its max size. */
241 @media (min-width: 626px) {
242 .screenshot-html-overlay {
243 font-size: 12.2px;
244 }
245 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698