Chromium Code Reviews| OLD | NEW |
|---|---|
| (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-steps p { | |
| 98 margin-bottom: 1em; | |
| 99 } | |
| 100 | |
| 101 .section--expanded .section-steps { | |
| 102 max-height: 28.75em; | |
| 103 opacity: 1; | |
| 104 transition: max-height 300ms cubic-bezier(.4, .2, 0, 1) 50ms, | |
| 105 opacity 150ms 250ms; | |
| 106 } | |
| 107 | |
| 108 .section--expanded .section-heading-text { | |
| 109 font-weight: 500; | |
| 110 } | |
| 111 | |
| 112 .section--expanded .section-heading-expand { | |
| 113 transform: rotate(180deg); | |
| 114 transition-delay: 150ms; | |
| 115 } | |
| 116 | |
| 117 .button { | |
| 118 -webkit-font-smoothing: antialiased; | |
| 119 background: rgb(66, 133, 244); | |
| 120 border-radius: 2px; | |
| 121 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); | |
| 122 color: #fff; | |
| 123 display: inline-block; | |
| 124 font-size: .75em; | |
| 125 font-weight: 500; | |
| 126 line-height: 1.75em; | |
| 127 min-width: 2em; | |
| 128 padding: 0 1em; | |
| 129 text-align: center; | |
| 130 transition: 300ms cubic-bezier(.4, .2, 0, 1); | |
| 131 will-change: box-shadow; | |
| 132 } | |
| 133 | |
| 134 .button:hover { | |
| 135 background: rgb(62, 126, 231); | |
| 136 box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .24) | |
| 137 } | |
| 138 | |
| 139 .logo-small { | |
| 140 content: -webkit-image-set(url(logo-small.png) 1x, url(logo-small2x.png) 2x); | |
| 141 display: inline; | |
| 142 height: 1.25em; | |
| 143 vertical-align: top; | |
| 144 width: 1.25em; | |
| 145 } | |
| 146 | |
| 147 .screenshot { | |
| 148 display: block; | |
| 149 height: 440px; | |
| 150 margin: 0 auto; | |
| 151 max-width: 100%; | |
| 152 position: relative; | |
| 153 top: -96px; | |
| 154 width: 720px; | |
| 155 } | |
| 156 | |
| 157 .screenshot-image { | |
| 158 box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24); | |
| 159 height: 48vw; | |
| 160 margin: 1em 0; | |
| 161 max-height: 300px; | |
| 162 max-width: 400px; | |
| 163 min-height: 150px; | |
| 164 min-width: 200px; | |
| 165 position: relative; | |
| 166 width: 64vw; | |
| 167 } | |
| 168 | |
| 169 #screenshot-image--default { | |
| 170 background: -webkit-image-set( | |
| 171 url(https://www.gstatic.com/chrome/login/win10/default-small.webp) 1x, | |
| 172 url(https://www.gstatic.com/chrome/login/win10/default-small@2x.webp) 2x); | |
| 173 background-repeat: no-repeat; | |
| 174 background-size: cover; | |
| 175 } | |
| 176 | |
| 177 #screenshot-image--taskbar { | |
| 178 background: -webkit-image-set( | |
| 179 url(https://www.gstatic.com/chrome/login/win10/pin-small.webp) 1x, | |
| 180 url(https://www.gstatic.com/chrome/login/win10/pin-small@2x.webp) 2x); | |
| 181 background-repeat: no-repeat; | |
| 182 background-size: cover; | |
| 183 } | |
| 184 | |
| 185 .screenshot-html-overlay { | |
| 186 box-sizing: border-box; | |
| 187 font-size: 6px; | |
| 188 line-height: 0; | |
| 189 position: absolute; | |
| 190 } | |
| 191 | |
| 192 #screenshot-html-overlay--browser { | |
| 193 left: 54.8%; | |
| 194 top: 53%; | |
| 195 } | |
| 196 | |
| 197 #screenshot-html-overlay--edge { | |
| 198 left: 65%; | |
| 199 top: 63.5%; | |
| 200 } | |
| 201 | |
| 202 #screenshot-html-overlay--taskbar { | |
| 203 left: 31%; | |
| 204 top: 73%; | |
| 205 } | |
| 206 | |
| 207 #screenshot-html-overlay--taskbar div { | |
| 208 color: #ccc; | |
| 209 font-family: Tahoma, Verdana, Segoe, sans-serif; | |
| 210 font-weight: 500; | |
| 211 } | |
| 212 | |
| 213 #screenshot-html-overlay--icon { | |
| 214 background-image: url(logo-small.png); | |
| 215 background-size: cover; | |
| 216 height: 8%; | |
| 217 left: 46%; | |
| 218 top: 90%; | |
| 219 width: 6%; | |
| 220 } | |
| 221 | |
| 222 @media (min-width: 312px) { | |
|
tmartino
2016/10/14 19:32:09
IIRC these are the values keeping the font at the
Patrick Monette
2016/10/14 21:37:24
Done.
| |
| 223 .screenshot-html-overlay { | |
| 224 font-size: 1.95vw; | |
| 225 } | |
| 226 } | |
| 227 | |
| 228 @media (min-width: 626px) { | |
| 229 .screenshot-html-overlay { | |
| 230 font-size: 12.2px; | |
| 231 } | |
| 232 } | |
| OLD | NEW |