| OLD | NEW |
| 1 /* Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. */ | 3 * found in the LICENSE file. */ |
| 4 | 4 |
| 5 body { | 5 body { |
| 6 -webkit-user-select: none; | 6 -webkit-user-select: none; |
| 7 background: none transparent; | 7 background: none transparent; |
| 8 color: #323232; | 8 color: #323232; |
| 9 margin: 0; | 9 margin: 0; |
| 10 overflow: hidden; | 10 overflow: hidden; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 text-align: -webkit-auto; | 40 text-align: -webkit-auto; |
| 41 transition: opacity 1s; | 41 transition: opacity 1s; |
| 42 } | 42 } |
| 43 | 43 |
| 44 .thumb-ntp #mv-tiles, | 44 .thumb-ntp #mv-tiles, |
| 45 .thumb-ntp .mv-tiles-old { | 45 .thumb-ntp .mv-tiles-old { |
| 46 height: calc(146px + 130px); | 46 height: calc(146px + 130px); |
| 47 line-height: 146px; | 47 line-height: 146px; |
| 48 } | 48 } |
| 49 | 49 |
| 50 .icon-ntp #mv-tiles, | |
| 51 .icon-ntp .mv-tiles-old { | |
| 52 height: calc(2 * 112px); | |
| 53 line-height: 112px; | |
| 54 width: 100%; | |
| 55 } | |
| 56 | |
| 57 .mv-tile, | 50 .mv-tile, |
| 58 .mv-empty-tile { | 51 .mv-empty-tile { |
| 59 box-sizing: border-box; | 52 box-sizing: border-box; |
| 60 display: inline-block; | 53 display: inline-block; |
| 61 font-family: arial, sans-serif; | 54 font-family: arial, sans-serif; |
| 62 font-size: 12px; | 55 font-size: 12px; |
| 63 opacity: 1; | 56 opacity: 1; |
| 64 outline: 0; | 57 outline: 0; |
| 65 overflow: hidden; | 58 overflow: hidden; |
| 66 position: relative; | 59 position: relative; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 77 .thumb-ntp .mv-empty-tile { | 70 .thumb-ntp .mv-empty-tile { |
| 78 background: rgb(242,242,242); | 71 background: rgb(242,242,242); |
| 79 border: 1px solid transparent; | 72 border: 1px solid transparent; |
| 80 border-radius: 2px; | 73 border-radius: 2px; |
| 81 height: calc(130px - 2px); | 74 height: calc(130px - 2px); |
| 82 line-height: 100%; | 75 line-height: 100%; |
| 83 margin: 0 8px; | 76 margin: 0 8px; |
| 84 width: calc(156px - 2px); | 77 width: calc(156px - 2px); |
| 85 } | 78 } |
| 86 | 79 |
| 87 .icon-ntp .mv-tile, | |
| 88 .icon-ntp .mv-empty-tile { | |
| 89 border: none; | |
| 90 border-radius: 2px; | |
| 91 height: calc(102px + 18px - 12px); | |
| 92 margin: 0 12px 4px 12px; | |
| 93 width: calc(48px + 2 * 18px); | |
| 94 } | |
| 95 | |
| 96 .mv-tile { | 80 .mv-tile { |
| 97 -webkit-transition-duration: 200ms; | 81 -webkit-transition-duration: 200ms; |
| 98 -webkit-transition-property: -webkit-transform, border, | 82 -webkit-transition-property: -webkit-transform, border, |
| 99 box-shadow, margin, opacity, width; | 83 box-shadow, margin, opacity, width; |
| 100 cursor: pointer; | 84 cursor: pointer; |
| 101 } | 85 } |
| 102 | 86 |
| 103 .thumb-ntp .mv-tile:focus:not(:hover) { | 87 .thumb-ntp .mv-tile:focus:not(:hover) { |
| 104 -webkit-filter: brightness(75%); | 88 -webkit-filter: brightness(75%); |
| 105 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); | 89 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); |
| 106 } | 90 } |
| 107 | 91 |
| 108 .icon-ntp .mv-tile:focus { | |
| 109 background: rgba(0,0,0,0.2); | |
| 110 } | |
| 111 | |
| 112 .icon-ntp.dark .mv-tile:focus { | |
| 113 background: rgba(255,255,255,0.2); | |
| 114 } | |
| 115 | |
| 116 .mv-tile.blacklisted { | 92 .mv-tile.blacklisted { |
| 117 -webkit-transform: scale(0, 0); | 93 -webkit-transform: scale(0, 0); |
| 118 border: none !important; | 94 border: none !important; |
| 119 margin: 0; | 95 margin: 0; |
| 120 width: 0; | 96 width: 0; |
| 121 } | 97 } |
| 122 | 98 |
| 123 .thumb-ntp .mv-tile:hover { | 99 .thumb-ntp .mv-tile:hover { |
| 124 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); | 100 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); |
| 125 } | 101 } |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 text-align: left; | 148 text-align: left; |
| 173 } | 149 } |
| 174 | 150 |
| 175 html[dir=rtl] .thumb-ntp .mv-title[style*='direction: rtl'] { | 151 html[dir=rtl] .thumb-ntp .mv-title[style*='direction: rtl'] { |
| 176 -webkit-mask-image: | 152 -webkit-mask-image: |
| 177 linear-gradient(to left, black, black, 100px, transparent); | 153 linear-gradient(to left, black, black, 100px, transparent); |
| 178 right: 31px; | 154 right: 31px; |
| 179 text-align: right; | 155 text-align: right; |
| 180 } | 156 } |
| 181 | 157 |
| 182 .icon-ntp .mv-title { | |
| 183 height: 28px; | |
| 184 left: auto; | |
| 185 line-height: 117%; | |
| 186 right: auto; | |
| 187 text-align: center; | |
| 188 top: 76px; | |
| 189 width: 100%; | |
| 190 z-index: 5; | |
| 191 } | |
| 192 | |
| 193 .mv-thumb { | 158 .mv-thumb { |
| 194 border: none; | 159 border: none; |
| 195 cursor: pointer; | 160 cursor: pointer; |
| 196 display: block; | 161 display: block; |
| 197 overflow: hidden; | 162 overflow: hidden; |
| 198 position: absolute; | 163 position: absolute; |
| 199 } | 164 } |
| 200 | 165 |
| 201 .thumb-ntp .mv-thumb { | 166 .thumb-ntp .mv-thumb { |
| 202 border-radius: 0; | 167 border-radius: 0; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 223 width: 48px; | 188 width: 48px; |
| 224 } | 189 } |
| 225 | 190 |
| 226 .mv-thumb.failed-img, | 191 .mv-thumb.failed-img, |
| 227 .mv-thumb.large-icon-outer { | 192 .mv-thumb.large-icon-outer { |
| 228 background-color: #fff; | 193 background-color: #fff; |
| 229 height: 94px; | 194 height: 94px; |
| 230 width: 148px; | 195 width: 148px; |
| 231 } | 196 } |
| 232 | 197 |
| 233 .icon-ntp .mv-thumb, | |
| 234 .icon-ntp .mv-thumb-fallback { | |
| 235 background: transparent; | |
| 236 height: 48px; | |
| 237 left: 50%; | |
| 238 margin-left: -24px; | |
| 239 top: 18px; | |
| 240 width: 48px; | |
| 241 } | |
| 242 | |
| 243 /* We use ::after without content to provide an aditional element on top of the | 198 /* We use ::after without content to provide an aditional element on top of the |
| 244 * thumbnail. */ | 199 * thumbnail. */ |
| 245 .mv-thumb.failed-img::after { | 200 .mv-thumb.failed-img::after { |
| 246 border: 8px solid #f2f2f2; | 201 border: 8px solid #f2f2f2; |
| 247 border-radius: 50%; | 202 border-radius: 50%; |
| 248 content: ''; | 203 content: ''; |
| 249 display: block; | 204 display: block; |
| 250 height: 0; | 205 height: 0; |
| 251 margin: 39px 66px; | 206 margin: 39px 66px; |
| 252 width: 0; | 207 width: 0; |
| 253 } | 208 } |
| 254 | 209 |
| 255 .mv-x { | 210 .mv-x { |
| 256 -webkit-transition: opacity 150ms; | 211 -webkit-transition: opacity 150ms; |
| 257 border: none; | 212 border: none; |
| 258 cursor: pointer; | 213 cursor: pointer; |
| 259 opacity: 0; | 214 opacity: 0; |
| 260 position: absolute; | 215 position: absolute; |
| 261 } | 216 } |
| 262 | 217 |
| 263 .thumb-ntp .mv-x { | 218 .thumb-ntp .mv-x { |
| 264 background: linear-gradient(to left, rgb(242,242,242) 60%, transparent); | 219 background: linear-gradient(to left, rgb(242,242,242) 60%, transparent); |
| 265 height: 30px; | 220 height: 30px; |
| 266 right: 0; | 221 right: 0; |
| 267 width: 40px; | 222 width: 40px; |
| 268 } | 223 } |
| 269 | 224 |
| 270 .icon-ntp .mv-x { | |
| 271 background: none; | |
| 272 height: 16px; | |
| 273 right: 10px; | |
| 274 top: 10px; | |
| 275 width: 16px; | |
| 276 } | |
| 277 | |
| 278 /* We use ::after without content to provide the masked X element. The "bottom" | 225 /* We use ::after without content to provide the masked X element. The "bottom" |
| 279 * div is actually just the gradient. */ | 226 * div is actually just the gradient. */ |
| 280 .mv-x::after { | 227 .mv-x::after { |
| 281 -webkit-mask-image: -webkit-image-set( | 228 -webkit-mask-image: -webkit-image-set( |
| 282 url(chrome-search://local-ntp/images/close_3_mask.png) 1x, | 229 url(chrome-search://local-ntp/images/close_3_mask.png) 1x, |
| 283 url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x); | 230 url(chrome-search://local-ntp/images/close_3_mask.png@2x) 2x); |
| 284 -webkit-mask-position: 12px 10px; | 231 -webkit-mask-position: 12px 10px; |
| 285 -webkit-mask-repeat: no-repeat; | 232 -webkit-mask-repeat: no-repeat; |
| 286 -webkit-mask-size: 10px 10px; | 233 -webkit-mask-size: 10px 10px; |
| 287 background-color: rgba(90,90,90,0.7); | 234 background-color: rgba(90,90,90,0.7); |
| 288 content: ''; | 235 content: ''; |
| 289 display: block; | 236 display: block; |
| 290 height: 32px; | 237 height: 32px; |
| 291 position: absolute; | 238 position: absolute; |
| 292 right: 0; | 239 right: 0; |
| 293 width: 32px; | 240 width: 32px; |
| 294 } | 241 } |
| 295 | 242 |
| 296 .icon-ntp .mv-x::after { | |
| 297 -webkit-mask: none; | |
| 298 background-color: inherit; | |
| 299 background-image: -webkit-image-set( | |
| 300 url(chrome-search://local-ntp/images/close_4_button.png) 1x, | |
| 301 url(chrome-search://local-ntp/images/close_4_button.png@2x) 2x); | |
| 302 height: 16px; | |
| 303 width: 16px; | |
| 304 } | |
| 305 | |
| 306 html[dir=rtl] .thumb-ntp .mv-x { | 243 html[dir=rtl] .thumb-ntp .mv-x { |
| 307 background: linear-gradient(to right, rgb(242,242,242) 60%, transparent); | 244 background: linear-gradient(to right, rgb(242,242,242) 60%, transparent); |
| 308 left: -1px; | 245 left: -1px; |
| 309 right: auto; | 246 right: auto; |
| 310 } | 247 } |
| 311 | 248 |
| 312 html[dir=rtl] .thumb-ntp .mv-x::after { | 249 html[dir=rtl] .thumb-ntp .mv-x::after { |
| 313 left: -1px; | 250 left: -1px; |
| 314 right: auto; | 251 right: auto; |
| 315 } | 252 } |
| 316 | 253 |
| 317 html[dir=rtl] .icon-ntp .mv-x { | |
| 318 left: 10px; | |
| 319 right: auto; | |
| 320 } | |
| 321 | |
| 322 .thumb-ntp .mv-x:hover::after { | 254 .thumb-ntp .mv-x:hover::after { |
| 323 background-color: rgb(90,90,90); | 255 background-color: rgb(90,90,90); |
| 324 } | 256 } |
| 325 | 257 |
| 326 .thumb-ntp .mv-x:active::after { | 258 .thumb-ntp .mv-x:active::after { |
| 327 background-color: rgb(66,133,244); | 259 background-color: rgb(66,133,244); |
| 328 } | 260 } |
| 329 | 261 |
| 330 .icon-ntp .mv-x:hover::after, | |
| 331 .icon-ntp .mv-x:active::after { | |
| 332 background-color: inherit; | |
| 333 } | |
| 334 | |
| 335 .mv-tile:hover .mv-x { | 262 .mv-tile:hover .mv-x { |
| 336 -webkit-transition-delay: 500ms; | 263 -webkit-transition-delay: 500ms; |
| 337 opacity: 1; | 264 opacity: 1; |
| 338 } | 265 } |
| 339 | 266 |
| 340 .icon-ntp .mv-tile:hover .mv-x { | |
| 341 -webkit-transition-delay: 800ms; | |
| 342 } | |
| 343 | |
| 344 .mv-x:hover { | 267 .mv-x:hover { |
| 345 -webkit-transition: none; | 268 -webkit-transition: none; |
| 346 } | 269 } |
| 347 | 270 |
| 348 .mv-favicon { | 271 .mv-favicon { |
| 349 background-size: 16px; | 272 background-size: 16px; |
| 350 height: 16px; | 273 height: 16px; |
| 351 left: 7px; | 274 left: 7px; |
| 352 margin: 0; | 275 margin: 0; |
| 353 pointer-events: none; | 276 pointer-events: none; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 370 } | 293 } |
| 371 | 294 |
| 372 .mv-favicon img { | 295 .mv-favicon img { |
| 373 height: 100%; | 296 height: 100%; |
| 374 width: 100%; | 297 width: 100%; |
| 375 } | 298 } |
| 376 | 299 |
| 377 .mv-favicon.failed-favicon img { | 300 .mv-favicon.failed-favicon img { |
| 378 display: none; | 301 display: none; |
| 379 } | 302 } |
| OLD | NEW |