Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
|
Moe
2016/08/19 17:10:52
you can probably inline this entire file in welcom
tmartino
2016/08/19 20:11:29
Is that the preferred way of doing it? It seemed l
Moe
2016/08/19 20:40:52
you can keep the css in a separate file if you wan
michaelpg
2016/09/06 22:21:56
That's only for Polymer components that need scope
| |
| 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 font-weight: normal; | |
| 7 margin: 0; | |
| 8 padding: 0; | |
| 9 } | |
| 10 | |
| 11 body { | |
| 12 align-items: center; | |
| 13 box-sizing: border-box; | |
| 14 color: rgba(0,0,0,.87); | |
|
Moe
2016/08/19 17:10:52
why color with opacity? is there no grey color clo
| |
| 15 display: flex; | |
| 16 flex-direction: column; | |
| 17 font: 14px/24px Roboto, 'Helvetica Neue', 'Lucida Grande', sans-serif; | |
|
Moe
2016/08/19 17:10:52
use chrome://resources/css/text_defaults_md.css if
| |
| 18 justify-content: center; | |
| 19 min-height: 100vh; | |
| 20 overflow-y: hidden; | |
| 21 padding: 16px; | |
| 22 } | |
| 23 | |
| 24 a { | |
| 25 text-decoration: none; | |
| 26 } | |
| 27 | |
| 28 | |
| 29 @keyframes slideUpContent { | |
| 30 from { | |
| 31 transform: translateY(186px); | |
| 32 } | |
| 33 } | |
| 34 | |
| 35 @keyframes fadeIn { | |
| 36 from { | |
| 37 opacity: 0; | |
| 38 } | |
| 39 } | |
| 40 | |
| 41 @keyframes fadeOut { | |
| 42 to { | |
| 43 opacity: 0; | |
| 44 } | |
| 45 } | |
| 46 | |
| 47 | |
| 48 @keyframes fadeInAndSlideUp { | |
| 49 from { | |
| 50 opacity: 0; | |
| 51 transform: translateY(8px); | |
| 52 } | |
| 53 } | |
| 54 | |
| 55 @keyframes spin { | |
| 56 from { | |
| 57 transform: rotate(-1440deg); | |
| 58 } | |
| 59 } | |
| 60 | |
| 61 @keyframes fadeInAndSlideDownShadow { | |
| 62 from { | |
| 63 opacity: .6; | |
| 64 top: 8px; | |
| 65 } | |
| 66 } | |
| 67 | |
| 68 @keyframes scaleUp { | |
| 69 0% { | |
| 70 transform: scale(.8); | |
| 71 } | |
| 72 } | |
| 73 | |
| 74 .spacer { | |
| 75 flex: 1; | |
| 76 max-height: 96px; | |
| 77 } | |
| 78 | |
| 79 .content { | |
| 80 animation: slideUpContent 600ms 1.8s cubic-bezier(.4,.2,0,1) both; | |
| 81 display: flex; | |
| 82 flex: 1; | |
| 83 flex-direction: column; | |
| 84 justify-content: center; | |
| 85 max-width: 500px; | |
| 86 text-align: center; | |
| 87 } | |
| 88 | |
| 89 .heading { | |
| 90 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4,.2,0,1) both; | |
| 91 font-size: 34px; | |
| 92 letter-spacing: -.44px; | |
| 93 line-height: 40px; | |
| 94 margin-bottom: 12px; | |
| 95 margin-top: 56px; | |
| 96 } | |
| 97 | |
| 98 .subheading { | |
| 99 animation: fadeInAndSlideUp 600ms 1.9s cubic-bezier(.4,.2,0,1) both; | |
| 100 color: rgba(0,0,0,.54); | |
| 101 font-size: 16px; | |
| 102 } | |
| 103 | |
| 104 .logo { | |
| 105 animation: fadeIn 600ms both; | |
| 106 height: 96px; | |
| 107 margin: 0 auto; | |
| 108 position: relative; | |
| 109 width: 96px; | |
| 110 } | |
| 111 | |
| 112 .logo-icon { | |
| 113 animation: scaleUp 600ms 500ms cubic-bezier(.5,-.5,0,2.25) both; | |
| 114 background: #fff; | |
| 115 border-radius: 50%; | |
| 116 height: 96px; | |
| 117 width: 96px; | |
| 118 } | |
| 119 | |
| 120 .logo-bw, | |
| 121 .logo-color { | |
| 122 animation: fadeIn 600ms 500ms both, spin 2.4s cubic-bezier(.4,.2,0,1) both; | |
| 123 left: -5px; | |
| 124 position: absolute; | |
| 125 top: -5px; | |
| 126 width: 106px; | |
| 127 } | |
| 128 | |
| 129 .logo-bw { | |
| 130 -webkit-filter: grayscale(100%); | |
| 131 } | |
| 132 | |
| 133 .logo-color { | |
| 134 animation: fadeIn 300ms 700ms both, spin 2.4s cubic-bezier(.4,.2,0,1) both; | |
| 135 } | |
| 136 | |
| 137 .logo-shadow { | |
| 138 -webkit-filter: blur(16px); | |
| 139 animation: fadeInAndSlideDownShadow 300ms 600ms both; | |
| 140 background: rgba(0,0,0,.2); | |
|
Moe
2016/08/19 17:10:52
space after commas
| |
| 141 border-radius: 50%; | |
| 142 height: 96px; | |
| 143 position: absolute; | |
| 144 top: 16px; | |
| 145 width: 96px; | |
| 146 z-index: -1; | |
| 147 } | |
| 148 | |
| 149 .signin { | |
| 150 animation: fadeInAndSlideUp 600ms 2s cubic-bezier(.4,.2,0,1) both; | |
| 151 margin-top: 48px; | |
| 152 text-align: left; | |
| 153 } | |
| 154 | |
| 155 .signin-description { | |
| 156 margin: 0 auto; | |
| 157 max-width: 344px; | |
| 158 } | |
| 159 | |
| 160 .signin-buttons { | |
| 161 align-items: center; | |
| 162 display: flex; | |
| 163 flex-direction: column; | |
| 164 margin-top: 32px; | |
| 165 } | |
| 166 | |
| 167 .action { | |
| 168 background: rgb(66, 133, 244); | |
|
Moe
2016/08/19 17:10:52
is this a standard google color? you're expected t
tmartino
2016/08/19 20:11:29
Yeah, it is, it's Google Blue 500. I actually trie
Moe
2016/08/19 20:40:52
if these styles are in a <style is='custom-style'>
| |
| 169 color: #fff; | |
|
Moe
2016/08/19 17:10:52
white
| |
| 170 font-size: 12px; | |
|
Moe
2016/08/19 17:10:52
if your WebUI page is in the content area. it shou
| |
| 171 font-weight: 500; | |
| 172 line-height: 28px; | |
| 173 min-width: 32px; | |
| 174 padding: 0 16px; | |
| 175 } | |
| 176 | |
| 177 .link { | |
| 178 color: rgb(51, 103, 214); | |
| 179 display: inline-block; | |
| 180 font-size: 12px; | |
| 181 line-height: 32px; | |
| 182 margin: 8px; | |
| 183 min-width: 56px; | |
| 184 text-align: center; | |
| 185 } | |
| 186 | |
| 187 .link:hover { | |
| 188 text-decoration: underline; | |
| 189 } | |
| 190 | |
| 191 .watermark { | |
| 192 -webkit-mask-image: url(chrome://welcome/watermark.svg); | |
| 193 -webkit-mask-repeat: no-repeat; | |
| 194 -webkit-mask-size: 100%; | |
| 195 background: rgba(0,0,0,.24); | |
|
Moe
2016/08/19 17:10:52
rgba(0, 0, 0, .24);
| |
| 196 height: 24px; | |
| 197 margin-top: 48px; | |
| 198 width: 74px; | |
| 199 } | |
| OLD | NEW |