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

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: 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 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 -webkit-margin-start: 1.25em;
101 -webkit-padding-start: 1em;
102 margin-bottom: 1em;
103 }
104
105 .section-steps li:last-child {
106 margin-bottom: 1em;
107 }
108
109 .section.expandable .section-steps {
110 max-height: 0;
111 opacity: 0;
112 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
113 }
114
115 .section.expandable.expanded .section-steps {
116 max-height: 28.75em;
117 opacity: 1;
118 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
119 opacity 150ms 250ms;
120 }
121
122 .button {
123 -webkit-font-smoothing: antialiased;
124 background: var(--paper-blue-a200);
125 border-radius: 2px;
126 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
127 color: #fff;
128 display: inline-block;
129 font-size: .75em;
130 font-weight: 500;
131 line-height: 1.75em;
132 min-width: 2em;
133 padding: 0 1em;
134 text-align: center;
135 transition: 300ms cubic-bezier(.4, .2, 0, 1);
136 will-change: box-shadow;
137 }
138
139 .button:hover {
140 background: var(--paper-blue-a400);
141 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24)
142 }
143
144 .logo-small {
145 content: -webkit-image-set(url(/logo-small.png) 1x,
146 url(/logo-small2x.png) 2x);
147 display: inline;
148 height: 1.25em;
149 vertical-align: top;
150 width: 1.25em;
151 }
152
153 .screenshot {
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 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
165 height: 48vw;
166 margin: 1em 0;
167 max-height: 300px;
168 max-width: 400px;
169 min-height: 150px;
170 min-width: 200px;
171 position: relative;
172 width: 64vw;
173 }
174
175 #screenshot-image--default {
176 background: -webkit-image-set(
177 url(https://www.gstatic.com/chrome/login/win10/default-small.webp) 1x,
178 url(https://www.gstatic.com/chrome/login/win10/default-small@2x.webp) 2x);
179 background-repeat: no-repeat;
180 background-size: cover;
181 }
182
183 #screenshot-image--taskbar {
184 background: -webkit-image-set(
185 url(https://www.gstatic.com/chrome/login/win10/pin-small.webp) 1x,
186 url(https://www.gstatic.com/chrome/login/win10/pin-small@2x.webp) 2x);
187 background-repeat: no-repeat;
188 background-size: cover;
189 }
190
191 .screenshot-html-overlay {
192 box-sizing: border-box;
193 font-size: 6px;
194 line-height: 0;
195 position: absolute;
196 }
197
198 #screenshot-html-overlay--browser {
199 left: 54.8%;
200 top: 53%;
201 }
202
203 #screenshot-html-overlay--edge {
204 left: 65%;
205 top: 63.5%;
206 }
207
208 #screenshot-html-overlay--taskbar {
209 left: 31%;
210 top: 73%;
211 }
212
213 #screenshot-html-overlay--taskbar div {
214 color: #ccc;
215 font-family: Tahoma, Verdana, Segoe, sans-serif;
216 font-weight: 500;
217 }
218
219 #screenshot-html-overlay--icon {
220 background-image: url(/logo-small.png);
221 background-size: cover;
222 height: 8%;
223 left: 46%;
224 top: 90%;
225 width: 6%;
226 }
227
228 /* This value is precisely set so that the text over the screenshot starts
229 * scaling at the same time the image starts scaling too. */
230 @media (min-width: 312px) {
231 .screenshot-html-overlay {
232 font-size: 1.95vw;
233 }
234 }
235
236 /* Font-size used when the screenshot exactly reaches its max size. */
237 @media (min-width: 626px) {
238 .screenshot-html-overlay {
239 font-size: 12.2px;
240 }
241 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/welcome/win10/README.md ('k') | chrome/browser/resources/welcome/win10/inline.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698