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

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: Using Polymer dom-bind 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 * {
michaelpg 2016/10/22 03:19:00 err, can we be more specific? You probably mean "h
Patrick Monette 2016/10/24 20:49:39 Done.
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(/logo-large.png) 1x,
36 url(/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.expandable {
51 border-top: 1px solid var(--google-grey-300);
52 }
53
54 .section.expandable:last-child {
55 border-bottom: 1px solid var(--google-grey-300);
56 }
57
58 .section.expandable .section-heading {
59 color: var(--google-blue-500);
60 cursor: pointer;
61 }
62
63 .section-heading {
64 align-items: center;
65 display: flex;
66 padding: 1.5em 0;
67 }
68
69 .section-heading-text {
70 flex: 1;
71 font-weight: 500;
72 }
73
74 .section.expandable .section-heading-text {
75 font-weight: normal;
76 }
77
78 .section.expandable.expanded .section-heading-text {
79 font-weight: 500;
80 }
81
82 .section-heading-expand {
83 height: 1.25em;
84 opacity: 0.54;
85 transition: transform 150ms cubic-bezier(.4, .2, 0, 1) 50ms;
86 width: 1.25em;
87 }
88
89 .section.expandable.expanded .section-heading-expand {
90 transform: rotate(180deg);
91 transition-delay: 150ms;
92 }
93
94 .section-steps {
95 overflow: hidden;
96 }
97
98 .section-steps li {
99 margin-bottom: 1em;
100 margin-left: 1.25em;
michaelpg 2016/10/22 03:19:00 make RTL friendly
Patrick Monette 2016/10/24 20:49:39 First time doing this. I added a second styling fo
michaelpg 2016/10/24 21:30:08 That's fine. Technically, the style guide prefers
Patrick Monette 2016/10/24 23:11:33 Okay I went with -webkit-*-start. I like it better
101 padding-left: 1em;
102 }
103
104 .section-steps li:last-child {
105 margin-bottom: 1em;
106 }
107
108 .section.expandable .section-steps {
109 max-height: 0;
110 opacity: 0;
111 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms;
112 }
113
114 .section.expandable.expanded .section-steps {
115 max-height: 28.75em;
116 opacity: 1;
117 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms,
118 opacity 150ms 250ms;
119 }
120
121 .button {
122 -webkit-font-smoothing: antialiased;
123 background: var(--paper-blue-a200);
124 border-radius: 2px;
125 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
126 color: #fff;
127 display: inline-block;
128 font-size: .75em;
129 font-weight: 500;
130 line-height: 1.75em;
131 min-width: 2em;
132 padding: 0 1em;
133 text-align: center;
134 transition: 300ms cubic-bezier(.4, .2, 0, 1);
135 will-change: box-shadow;
136 }
137
138 .button:hover {
139 background: var(--paper-blue-a400);
140 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24)
141 }
142
143 .logo-small {
144 content: -webkit-image-set(url(/logo-small.png) 1x,
145 url(/logo-small2x.png) 2x);
146 display: inline;
147 height: 1.25em;
148 vertical-align: top;
149 width: 1.25em;
150 }
151
152 .screenshot {
153 display: block;
154 height: 440px;
155 margin: 0 auto;
156 max-width: 100%;
157 position: relative;
158 top: -96px;
159 width: 720px;
160 }
161
162 .screenshot-image {
163 box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
164 height: 48vw;
165 margin: 1em 0;
166 max-height: 300px;
167 max-width: 400px;
168 min-height: 150px;
169 min-width: 200px;
170 position: relative;
171 width: 64vw;
172 }
173
174 #screenshot-image--default {
175 background: -webkit-image-set(
176 url(https://www.gstatic.com/chrome/login/win10/default-small.webp) 1x,
michaelpg 2016/10/22 03:19:00 o_O why are we loading from the web?
Patrick Monette 2016/10/24 20:49:39 It was a conscious decision made in order to not i
tmartino 2016/10/24 21:06:20 Michael, I'm forwarding you the thread where this
michaelpg 2016/10/24 21:30:08 If laforge is ok with it and it went through a sec
177 url(https://www.gstatic.com/chrome/login/win10/default-small@2x.webp) 2x);
178 background-repeat: no-repeat;
179 background-size: cover;
180 }
181
182 #screenshot-image--taskbar {
183 background: -webkit-image-set(
184 url(https://www.gstatic.com/chrome/login/win10/pin-small.webp) 1x,
185 url(https://www.gstatic.com/chrome/login/win10/pin-small@2x.webp) 2x);
186 background-repeat: no-repeat;
187 background-size: cover;
188 }
189
190 .screenshot-html-overlay {
191 box-sizing: border-box;
192 font-size: 6px;
193 line-height: 0;
194 position: absolute;
195 }
196
197 #screenshot-html-overlay--browser {
198 left: 54.8%;
199 top: 53%;
200 }
201
202 #screenshot-html-overlay--edge {
203 left: 65%;
204 top: 63.5%;
205 }
206
207 #screenshot-html-overlay--taskbar {
208 left: 31%;
209 top: 73%;
210 }
211
212 #screenshot-html-overlay--taskbar div {
213 color: #ccc;
214 font-family: Tahoma, Verdana, Segoe, sans-serif;
215 font-weight: 500;
216 }
217
218 #screenshot-html-overlay--icon {
219 background-image: url(/logo-small.png);
220 background-size: cover;
221 height: 8%;
222 left: 46%;
223 top: 90%;
224 width: 6%;
225 }
226
227 /* This value is precisely set so that the text over the screenshot starts
228 scaling at the same time the image starts scaling too. */
michaelpg 2016/10/22 03:19:00 nit: /* This value... * scaling at... */
Patrick Monette 2016/10/24 20:49:39 Done.
229 @media (min-width: 312px) {
230 .screenshot-html-overlay {
231 font-size: 1.95vw;
232 }
233 }
234
235 /* Font-size used when the screenshot exactly reaches its max size. */
236 @media (min-width: 626px) {
237 .screenshot-html-overlay {
238 font-size: 12.2px;
239 }
240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698