Chromium Code Reviews| Index: chrome/browser/resources/welcome/win10/inline/welcome.css |
| diff --git a/chrome/browser/resources/welcome/win10/inline/welcome.css b/chrome/browser/resources/welcome/win10/inline/welcome.css |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..58381424b5f66f6afee1fc9ff0470181511166e5 |
| --- /dev/null |
| +++ b/chrome/browser/resources/welcome/win10/inline/welcome.css |
| @@ -0,0 +1,236 @@ |
| +/* Copyright 2016 The Chromium Authors. All rights reserved. |
| + * Use of this source code is governed by a BSD-style license that can be |
| + * found in the LICENSE file. */ |
| + |
| +* { |
|
tmartino
2016/10/12 22:06:40
Are these necessary?
Patrick Monette
2016/10/13 21:30:05
Most elements doesn't need the default padding and
|
| + font-weight: normal; |
| + margin: 0; |
| + padding: 0; |
| +} |
| + |
| +body { |
| + box-sizing: border-box; |
| + color: rgba(0, 0, 0, .87); |
|
tmartino
2016/10/12 22:06:40
I was asked to replace the alpha colors with regul
Patrick Monette
2016/10/13 21:30:05
Done.
|
| + display: flex; |
| + flex-direction: column; |
| + font: 16px/24px Roboto, 'Helvetica Neue', 'Lucida Grande', sans-serif; |
|
tmartino
2016/10/12 22:06:40
You've already included text_defaults_md in the HT
Patrick Monette
2016/10/13 21:30:05
Removed and added font-size: 100%.
|
| + justify-content: center; |
| + min-height: 100vh; |
| +} |
| + |
| +a { |
| + color: rgb(0, 120, 215); |
|
tmartino
2016/10/12 22:06:40
Where possible, let's use polymer colors instead o
Patrick Monette
2016/10/13 21:30:05
Done.
|
| + text-decoration: none; |
| +} |
| + |
| +strong { |
| + color: rgba(0, 0, 0, .87); |
|
tmartino
2016/10/12 22:06:40
This is redundant if you've already defined it in
Patrick Monette
2016/10/13 21:30:05
Removed.
|
| + font-weight: 500; |
| +} |
| + |
| +.content { |
| + margin: 0 auto; |
| + padding: 64px 24px 24px 24px; |
| +} |
| + |
| +.heading { |
| + font-size: 34px; |
|
tmartino
2016/10/12 22:06:40
In general, I've been asked to use ems for font si
Patrick Monette
2016/10/13 21:30:05
Done.
|
| + letter-spacing: -.44px; |
|
tmartino
2016/10/12 22:06:40
This probably isn't necessary.
Patrick Monette
2016/10/13 21:30:05
Removed.
|
| + margin-bottom: .25em; |
| + margin-top: 1.5em; |
| +} |
| + |
| +.subheading { |
| + color: var(--google-grey-500); |
| + font-size: 1em; |
| + margin-bottom: 1.5em; |
| + margin-top: .25em; |
| + text-align: center; |
| +} |
| + |
| +.sections { |
| + margin-bottom: 48px; |
| +} |
| + |
| +.section { |
| + border-top: 1px solid rgba(0, 0, 0, .12); |
|
tmartino
2016/10/12 22:06:40
I think this is paper-gray-300
Patrick Monette
2016/10/13 21:30:05
Done.
|
| +} |
| + |
| +.section:last-child { |
| + border-bottom: 1px solid rgba(0, 0, 0, .12); |
| +} |
| + |
| +.section-heading { |
| + align-items: center; |
| + display: flex; |
| + padding: 24px 0; |
| +} |
| + |
| +.section-heading--expandable { |
| + color: rgb(0, 120, 215); |
| + cursor: pointer; |
| +} |
| + |
| +.section-heading-text { |
| + flex: 1; |
| +} |
| + |
| +.section-heading-expand { |
| + height: 20px; |
| + opacity: 0.54; |
| + transition: transform 150ms cubic-bezier(.4, .2, 0, 1) 50ms; |
| + width: 20px; |
| +} |
| + |
| +.section-steps { |
| + max-height: 0; |
| + opacity: 0; |
| + overflow: hidden; |
| + transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, opacity 150ms; |
| +} |
| + |
| +.section-steps li { |
| + margin-bottom: 16px; |
| + margin-left: 1.25em; |
| + padding-left: 1em; |
| +} |
| + |
| +.section-steps li:last-child { |
| + margin-bottom: 16px; |
| +} |
| + |
| +.section-steps p { |
| + margin-bottom: 1em; |
| +} |
| + |
| +.section--expanded .section-steps { |
| + max-height: 460px; |
| + opacity: 1; |
| + transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, |
| + opacity 150ms 250ms; |
| +} |
| + |
| +.section--expanded .section-heading-text { |
| + font-weight: 500; |
| +} |
| + |
| +.section--expanded .section-heading-expand { |
| + transform: rotate(180deg); |
| + transition-delay: 150ms; |
| +} |
| + |
| +.button { |
| + -webkit-font-smoothing: antialiased; |
| + background: rgb(66, 133, 244); |
| + border-radius: 2px; |
| + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); |
| + color: #fff; |
| + display: inline-block; |
| + font-size: 12px; |
| + font-weight: 500; |
| + line-height: 28px; |
| + min-width: 32px; |
| + padding: 0 16px; |
| + text-align: center; |
| + transition: 300ms cubic-bezier(.4, .2, 0, 1); |
| + will-change: box-shadow; |
| +} |
| + |
| +.button:hover { |
| + background: rgb(62, 126, 231); |
| + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24) |
| +} |
| + |
| +.logo-small { |
| + content: url(logo2x.png); |
| + display: inline; |
| + height: 20px; |
| + vertical-align: top; |
| + width: 20px; |
| +} |
| + |
| +.screenshot { |
| + display: block; |
| + height: 440px; |
| + margin: 0 auto; |
| + max-width: 100%; |
| + position: relative; |
| + top: -96px; |
| + width: 720px; |
| +} |
| + |
| +.screenshot-image { |
| + box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); |
| + height: 48vw; |
| + max-height: 300px; |
| + max-width: 400px; |
| + min-height: 150px; |
| + min-width: 200px; |
| + position: relative; |
| + width: 64vw; |
| +} |
| + |
| +#screenshot-image--default { |
| + background: -webkit-image-set( |
| + url(https://www.gstatic.com/chrome/login/win10/default-small.webp) 1x, |
| + url(https://www.gstatic.com/chrome/login/win10/default-small@2x.webp) 2x); |
| + background-repeat: no-repeat; |
| + background-size: cover; |
| +} |
| + |
| +#screenshot-image--taskbar { |
| + background: -webkit-image-set( |
| + url(https://www.gstatic.com/chrome/login/win10/pin-small.webp) 1x, |
| + url(https://www.gstatic.com/chrome/login/win10/pin-small@2x.webp) 2x); |
| + background-repeat: no-repeat; |
| + background-size: cover; |
| +} |
| + |
| +.screenshot-html-overlay { |
| + box-sizing: border-box; |
| + font-size: 6px; |
| + line-height: 0; |
| + position: absolute; |
| +} |
| + |
| +#screenshot-html-overlay--browser { |
| + left: 54.8%; |
| + top: 53%; |
| +} |
| + |
| +#screenshot-html-overlay--edge { |
| + left: 65%; |
| + top: 63.5%; |
| +} |
| + |
| +#screenshot-html-overlay--taskbar { |
| + left: 31%; |
| + top: 73%; |
| +} |
| + |
| +#screenshot-html-overlay--taskbar p { |
| + color: #ccc; |
| + font-family: Tahoma, Verdana, Segoe, sans-serif; |
| + font-weight: 500; |
| +} |
| + |
| +#screenshot-html-overlay--icon { |
| + background-image: url(logo2x.png); |
| + background-size: cover; |
| + height: 8%; |
| + left: 46%; |
| + top: 90%; |
| + width: 6%; |
| +} |
| + |
| +@media (min-width: 312px) { |
| + .screenshot-html-overlay { |
| + font-size: 1.95vw; |
| + } |
| +} |
| + |
| +@media (min-width: 626px) { |
| + .screenshot-html-overlay { |
| + font-size: 12.2px; |
| + } |
| +} |