Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright 2015 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 /* TODO: Need to discuss with NTP folks before we remove font-family from the | |
| 6 * body tag. */ | |
| 7 body { | |
| 8 background-attachment: fixed !important; | |
| 9 background-color: white; | |
| 10 cursor: default; | |
| 11 font-family: arial, sans-serif; | |
| 12 font-size: small; | |
| 13 margin: 0; | |
| 14 overflow-x: hidden; | |
| 15 } | |
| 16 | |
| 17 #ntp-contents { | |
| 18 text-align: -webkit-center; | |
| 19 } | |
| 20 | |
| 21 .non-google-page #ntp-contents { | |
| 22 position: absolute; | |
| 23 top: calc(50% - 155px); | |
| 24 width: 100%; | |
| 25 } | |
| 26 | |
| 27 body.hide-fakebox-logo #logo, | |
| 28 body.hide-fakebox-logo #fakebox { | |
| 29 visibility: hidden; | |
| 30 } | |
| 31 | |
| 32 body.fakebox-disable #fakebox { | |
| 33 border-color: rgb(238, 238, 238); | |
| 34 cursor: default; | |
| 35 } | |
| 36 | |
| 37 body.fakebox-disable #fakebox > input { | |
| 38 cursor: default; | |
| 39 } | |
| 40 | |
| 41 #logo { | |
| 42 background-image: url(images/google_logo.png@2x); | |
| 43 background-repeat: no-repeat; | |
| 44 background-size: 269px 95px; | |
| 45 height: 95px; | |
| 46 margin-bottom: 24px; | |
| 47 margin-top: 157px; | |
| 48 width: 269px; | |
| 49 } | |
| 50 | |
| 51 body.alternate-logo #logo { | |
| 52 -webkit-mask-image: url(images/google_logo.png@2x); | |
| 53 -webkit-mask-repeat: no-repeat; | |
| 54 -webkit-mask-size: 100%; | |
| 55 background: #eee; | |
| 56 } | |
| 57 | |
| 58 #fakebox { | |
| 59 -webkit-transform: translate3d(0, 0, 0); | |
| 60 -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; | |
| 61 background-color: #fff; | |
| 62 border: 1px solid rgb(185, 185, 185); | |
| 63 border-radius: 1px; | |
| 64 border-top-color: rgb(160, 160, 160); | |
| 65 cursor: text; | |
| 66 font-size: 18px; | |
| 67 height: 36px; | |
| 68 line-height: 36px; | |
| 69 max-width: 672px; | |
| 70 position: relative; | |
| 71 width: 298px; | |
| 72 } | |
| 73 | |
| 74 #fakebox:hover { | |
| 75 border: 1px solid rgb(169, 169, 169); | |
| 76 border-top-color: rgb(144, 144, 144); | |
| 77 } | |
| 78 | |
| 79 body.fakebox-focused #fakebox { | |
| 80 border: 1px solid rgb(77, 144, 254); | |
| 81 } | |
| 82 | |
| 83 #fakebox > input { | |
| 84 bottom: 0; | |
| 85 box-sizing: border-box; | |
| 86 left: 0; | |
| 87 margin: 0; | |
| 88 opacity: 0; | |
| 89 padding-left: 8px; | |
| 90 position: absolute; | |
| 91 top: 0; | |
| 92 width: 100%; | |
| 93 } | |
| 94 | |
| 95 html[dir=rtl] #fakebox > input { | |
| 96 padding-left: 0; | |
| 97 padding-right: 8px; | |
| 98 right: 0; | |
| 99 } | |
| 100 | |
| 101 #fakebox-text { | |
| 102 bottom: 0; | |
| 103 color: #bbb; | |
| 104 font-family: arial, sans-serif; | |
| 105 font-size: 16px; | |
| 106 left: 9px; | |
| 107 margin-top: 1px; | |
| 108 overflow: hidden; | |
| 109 position: absolute; | |
| 110 right: 9px; | |
| 111 text-align: initial; | |
| 112 text-overflow: ellipsis; | |
| 113 top: 0; | |
| 114 vertical-align: middle; | |
| 115 visibility: inherit; | |
| 116 white-space: nowrap; | |
| 117 } | |
| 118 | |
| 119 html[dir=rtl] #fakebox-text { | |
| 120 left: auto; | |
| 121 right: 9px; | |
| 122 } | |
| 123 | |
| 124 #cursor { | |
| 125 background: #333; | |
| 126 bottom: 5px; | |
| 127 left: 9px; | |
| 128 position: absolute; | |
| 129 top: 5px; | |
| 130 visibility: hidden; | |
| 131 width: 1px; | |
| 132 } | |
| 133 | |
| 134 html[dir=rtl] #cursor { | |
| 135 left: auto; | |
| 136 right: 9px; | |
| 137 } | |
| 138 | |
| 139 @-webkit-keyframes blink { | |
| 140 0% { | |
| 141 opacity: 1; | |
| 142 } | |
| 143 61.55% { | |
| 144 opacity: 0; | |
| 145 } | |
| 146 } | |
| 147 | |
| 148 body.fakebox-drag-focused #fakebox-text, | |
| 149 body.fakebox-focused #fakebox-text { | |
| 150 visibility: hidden; | |
| 151 } | |
| 152 | |
| 153 body.fakebox-drag-focused #cursor { | |
| 154 visibility: inherit; | |
| 155 } | |
| 156 | |
| 157 body.fakebox-focused #cursor { | |
| 158 -webkit-animation: blink 1.3s step-end infinite; | |
| 159 visibility: inherit; | |
| 160 } | |
| 161 | |
| 162 #most-visited { | |
| 163 -webkit-user-select: none; | |
| 164 margin-top: 64px; | |
| 165 text-align: -webkit-center; | |
| 166 } | |
| 167 | |
| 168 /* Non-Google pages have no Fakebox, so don't need top margin. */ | |
| 169 .non-google-page #most-visited { | |
| 170 margin-top: 0; | |
| 171 } | |
| 172 | |
| 173 #mv-tiles { | |
|
huangs
2015/03/12 06:29:19
Remove tile-related stuff that got moved?
fserb
2015/03/12 17:06:55
Done.
| |
| 174 height: calc(2 * 146px); | |
| 175 line-height: 146px; | |
| 176 margin: 0; | |
| 177 position: relative; | |
| 178 text-align: left; | |
| 179 } | |
| 180 | |
| 181 html[dir=rtl] #mv-tiles { | |
| 182 text-align: right; | |
| 183 } | |
| 184 | |
| 185 .mv-page-ready { | |
| 186 -webkit-transition-duration: 200ms; | |
| 187 -webkit-transition-property: -webkit-transform, margin, opacity, width; | |
| 188 cursor: pointer; | |
| 189 outline: none; | |
| 190 } | |
| 191 | |
| 192 .mv-tile-inner { | |
| 193 visibility: hidden; | |
| 194 } | |
| 195 | |
| 196 .mv-page-ready .mv-tile-inner { | |
| 197 visibility: visible; | |
| 198 } | |
| 199 | |
| 200 #mv-notice-x { | |
| 201 -webkit-mask-image: -webkit-image-set( | |
| 202 url(chrome-search://local-ntp/images/close_3_mask.png) 1x, | |
| 203 url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x); | |
| 204 -webkit-mask-position: 3px 3px; | |
| 205 -webkit-mask-repeat: no-repeat; | |
| 206 -webkit-mask-size: 10px 10px; | |
| 207 background-color: rgba(90,90,90,0.7); | |
| 208 cursor: pointer; | |
| 209 display: inline-block; | |
| 210 height: 16px; | |
| 211 margin-left: 20px; | |
| 212 outline: none; | |
| 213 vertical-align: middle; | |
| 214 width: 16px; | |
| 215 } | |
| 216 | |
| 217 html[dir=rtl] #mv-notice-x { | |
| 218 margin-left: 0; | |
| 219 margin-right: 20px; | |
| 220 } | |
| 221 | |
| 222 #mv-notice-x:hover { | |
| 223 background-color: rgba(90,90,90, 1.0); | |
| 224 } | |
| 225 | |
| 226 #mv-notice-x:active { | |
| 227 background-color: rgb(66,133,244); | |
| 228 } | |
| 229 | |
| 230 /* The notification shown when a tile is blacklisted. */ | |
| 231 #mv-notice { | |
| 232 font-size: 12px; | |
| 233 font-weight: bold; | |
| 234 opacity: 1; | |
| 235 padding: 10px 0; | |
| 236 } | |
| 237 | |
| 238 #mv-notice span { | |
| 239 cursor: default; | |
| 240 display: inline-block; | |
| 241 height: 16px; | |
| 242 line-height: 16px; | |
| 243 vertical-align: top; | |
| 244 } | |
| 245 | |
| 246 /* Links in the notification. */ | |
| 247 #mv-notice-links span { | |
| 248 -webkit-margin-start: 6px; | |
| 249 color: rgb(17, 85, 204); | |
| 250 cursor: pointer; | |
| 251 outline: none; | |
| 252 padding: 0 4px; | |
| 253 } | |
| 254 | |
| 255 #mv-notice-links span:hover, | |
| 256 #mv-notice-links span:focus, | |
| 257 #recent-tabs:hover { | |
| 258 text-decoration: underline; | |
| 259 } | |
| 260 | |
| 261 .default-theme.dark #mv-msg { | |
| 262 color: #fff; | |
| 263 } | |
| 264 | |
| 265 .default-theme.dark #mv-notice-links span { | |
| 266 color: #fff; | |
| 267 } | |
| 268 | |
| 269 #mv-notice.mv-notice-delayed-hide { | |
| 270 -webkit-transition-delay: 10s; | |
| 271 -webkit-transition-property: opacity; | |
| 272 opacity: 0; | |
| 273 } | |
| 274 | |
| 275 #mv-notice.mv-notice-hide { | |
| 276 display: none; | |
| 277 } | |
| 278 | |
| 279 #attribution { | |
| 280 -webkit-user-select: none; | |
| 281 bottom: 0; | |
| 282 color: #fff; | |
| 283 cursor: default; | |
| 284 display: inline-block; | |
| 285 font-size: 13px; | |
| 286 position: fixed; | |
| 287 right: 8px; | |
| 288 text-align: left; | |
| 289 z-index: -1; | |
| 290 } | |
| 291 | |
| 292 html[dir=rtl] #attribution { | |
| 293 text-align: right; | |
| 294 } | |
| 295 | |
| 296 #recent-tabs { | |
| 297 background: #fff; | |
| 298 border: 1px solid #c0c0c0; | |
| 299 border-radius: 2px; | |
| 300 bottom: 0; | |
| 301 color: rgb(17, 85, 204); | |
| 302 cursor: pointer; | |
| 303 font-family: Arial; | |
| 304 font-size: 14px; | |
| 305 opacity: 0.9; | |
| 306 padding: 3px; | |
| 307 position: fixed; | |
| 308 right: 8px; | |
| 309 } | |
| 310 | |
| 311 html[dir=rtl] #attribution, | |
| 312 html[dir=rtl] #recent-tabs { | |
| 313 left: 8px; | |
| 314 right: auto; | |
| 315 } | |
| 316 | |
| 317 #mv-single { | |
| 318 border: 0; | |
| 319 height: 100%; | |
| 320 width: 100%; | |
| 321 } | |
| OLD | NEW |