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

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

Powered by Google App Engine
This is Rietveld 408576698