| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 body { | 4 body { |
| 5 background-attachment: fixed !important; | 5 background-attachment: fixed !important; |
| 6 background-color: white; | 6 background-color: white; |
| 7 cursor: default; | 7 cursor: default; |
| 8 font-family: arial, sans-serif; | 8 font-family: arial, sans-serif; |
| 9 font-size: small; | 9 font-size: small; |
| 10 margin: 0; | 10 margin: 0; |
| 11 overflow-x: hidden; | 11 overflow-x: hidden; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #ntp-contents { | 14 #ntp-contents { |
| 15 text-align: -webkit-center; | 15 text-align: -webkit-center; |
| 16 } | 16 } |
| 17 | 17 |
| 18 #ntp-contents.classical { |
| 19 margin-top: 157px; |
| 20 } |
| 21 |
| 22 #ntp-contents.md { |
| 23 margin-top: 157px; |
| 24 } |
| 25 |
| 18 .non-google-page #ntp-contents { | 26 .non-google-page #ntp-contents { |
| 27 margin-top: 0; |
| 19 position: absolute; | 28 position: absolute; |
| 20 top: calc(50% - 155px); | 29 top: calc(50% - 155px); |
| 21 width: 100%; | 30 width: 100%; |
| 22 } | 31 } |
| 23 | 32 |
| 24 body.hide-fakebox-logo #logo, | 33 body.hide-fakebox-logo #logo, |
| 25 body.hide-fakebox-logo #fakebox { | 34 body.hide-fakebox-logo #fakebox { |
| 26 visibility: hidden; | 35 visibility: hidden; |
| 27 } | 36 } |
| 28 | 37 |
| 29 body.fakebox-disable #fakebox { | 38 body.fakebox-disable #fakebox { |
| 30 border-color: rgb(238, 238, 238); | 39 border-color: rgb(238, 238, 238); |
| 31 cursor: default; | 40 cursor: default; |
| 32 } | 41 } |
| 33 | 42 |
| 34 body.fakebox-disable #fakebox > input { | 43 body.fakebox-disable #fakebox > input { |
| 35 cursor: default; | 44 cursor: default; |
| 36 } | 45 } |
| 37 | 46 |
| 38 #logo { | 47 #logo { |
| 39 background-image: url('images/google_logo.png@2x'); | 48 background-image: url('images/google_logo.png@2x'); |
| 40 background-repeat: no-repeat; | 49 background-repeat: no-repeat; |
| 41 background-size: 269px 95px; | 50 background-size: 269px 95px; |
| 42 height: 95px; | 51 height: 95px; |
| 43 margin-bottom: 24px; | 52 margin-bottom: 24px; |
| 44 margin-top: 157px; | |
| 45 width: 269px; | 53 width: 269px; |
| 46 } | 54 } |
| 47 | 55 |
| 48 body.alternate-logo #logo { | 56 body.alternate-logo #logo { |
| 49 background-image: url('images/white_google_logo.png@2x'); | 57 -webkit-mask-image: url('images/google_logo.png@2x'); |
| 58 -webkit-mask-repeat: no-repeat; |
| 59 -webkit-mask-size: 100%; |
| 60 background: #eee; |
| 50 } | 61 } |
| 51 | 62 |
| 52 #fakebox { | 63 #fakebox { |
| 53 /* Use GPU compositing if available. */ | 64 /* Use GPU compositing if available. */ |
| 54 -webkit-transform: translate3d(0, 0, 0); | 65 -webkit-transform: translate3d(0, 0, 0); |
| 55 -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; | 66 -webkit-transition: -webkit-transform 100ms linear, border-color 100ms linear; |
| 56 background-color: #fff; | 67 background-color: #fff; |
| 57 border: 1px solid rgb(185, 185, 185); | 68 border: 1px solid rgb(185, 185, 185); |
| 58 border-radius: 1px; | 69 border-radius: 1px; |
| 59 border-top-color: rgb(160, 160, 160); | 70 border-top-color: rgb(160, 160, 160); |
| 60 cursor: text; | 71 cursor: text; |
| 61 font-size: 18px; | 72 font-size: 18px; |
| 62 height: 36px; | 73 height: 36px; |
| 63 line-height: 36px; | 74 line-height: 36px; |
| 64 max-width: 620px; | 75 max-width: 672px; |
| 65 position: relative; | 76 position: relative; |
| 66 /* #fakebox width (here and below) should be 2px less than #mv-tiles | 77 /* #fakebox width (here and below) should be 2px less than #mv-tiles |
| 67 to account for its border. */ | 78 to account for its border. */ |
| 68 width: 298px; | 79 width: 298px; |
| 69 } | 80 } |
| 70 | 81 |
| 71 #fakebox:hover { | 82 #fakebox:hover { |
| 72 border: 1px solid rgb(169, 169, 169); | 83 border: 1px solid rgb(169, 169, 169); |
| 73 border-top-color: rgb(144, 144, 144); | 84 border-top-color: rgb(144, 144, 144); |
| 74 } | 85 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 96 body[dir=rtl] #fakebox > input { | 107 body[dir=rtl] #fakebox > input { |
| 97 padding-left: 0; | 108 padding-left: 0; |
| 98 padding-right: 8px; | 109 padding-right: 8px; |
| 99 right: 0; | 110 right: 0; |
| 100 } | 111 } |
| 101 | 112 |
| 102 #fakebox-text { | 113 #fakebox-text { |
| 103 color: #bbb; | 114 color: #bbb; |
| 104 font-family: arial, sans-serif; | 115 font-family: arial, sans-serif; |
| 105 font-size: 16px; | 116 font-size: 16px; |
| 106 height: 16px; | 117 height: 100%; |
| 107 left: 9px; | 118 left: 9px; |
| 108 margin-top: 1px; | 119 margin-top: 1px; |
| 120 overflow: hidden; |
| 109 position: absolute; | 121 position: absolute; |
| 122 text-align: left; |
| 123 text-overflow: ellipsis; |
| 110 vertical-align: middle; | 124 vertical-align: middle; |
| 111 visibility: hidden; | 125 visibility: inherit; |
| 126 white-space: nowrap; |
| 127 width: calc(100% - 2 * 9px); |
| 112 } | 128 } |
| 113 | 129 |
| 114 body[dir=rtl] #fakebox-text { | 130 body[dir=rtl] #fakebox-text { |
| 115 left: auto; | 131 left: auto; |
| 116 right: 9px; | 132 right: 9px; |
| 117 } | 133 } |
| 118 | 134 |
| 119 #cursor { | 135 #cursor { |
| 120 background: #333; | 136 background: #333; |
| 121 bottom: 5px; | 137 bottom: 5px; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 135 0% { | 151 0% { |
| 136 opacity: 1; | 152 opacity: 1; |
| 137 } | 153 } |
| 138 61.55% { | 154 61.55% { |
| 139 opacity: 0; | 155 opacity: 0; |
| 140 } | 156 } |
| 141 } | 157 } |
| 142 | 158 |
| 143 body.fakebox-drag-focused #fakebox-text, | 159 body.fakebox-drag-focused #fakebox-text, |
| 144 body.fakebox-focused #fakebox-text { | 160 body.fakebox-focused #fakebox-text { |
| 145 visibility: inherit; | 161 visibility: hidden; |
| 146 } | 162 } |
| 147 | 163 |
| 148 body.fakebox-drag-focused #cursor { | 164 body.fakebox-drag-focused #cursor { |
| 149 visibility: inherit; | 165 visibility: inherit; |
| 150 } | 166 } |
| 151 | 167 |
| 152 body.fakebox-focused #cursor { | 168 body.fakebox-focused #cursor { |
| 153 -webkit-animation: blink 1.3s step-end infinite; | 169 -webkit-animation: blink 1.3s step-end infinite; |
| 154 visibility: inherit; | 170 visibility: inherit; |
| 155 } | 171 } |
| 156 | 172 |
| 157 #most-visited { | 173 #most-visited { |
| 158 -webkit-user-select: none; | 174 -webkit-user-select: none; |
| 159 text-align: -webkit-center; | 175 text-align: -webkit-center; |
| 160 } | 176 } |
| 161 | 177 |
| 162 .classical #most-visited { | 178 .classical #most-visited { |
| 163 margin-top: 51px; | 179 margin-top: 51px; |
| 164 } | 180 } |
| 165 | 181 |
| 166 .md #most-visited { | 182 .md #most-visited { |
| 167 margin-top: 50px; | 183 margin-top: 64px; |
| 168 } | 184 } |
| 169 | 185 |
| 170 #mv-tiles { | 186 #mv-tiles { |
| 171 margin: 0; | 187 margin: 0; |
| 172 position: relative; | 188 position: relative; |
| 173 text-align: left; | 189 text-align: left; |
| 174 } | 190 } |
| 175 | 191 |
| 176 body[dir=rtl] #mv-tiles { | 192 body[dir=rtl] #mv-tiles { |
| 177 text-align: right; | 193 text-align: right; |
| 178 } | 194 } |
| 179 | 195 |
| 180 .classical #mv-tiles { | 196 .classical #mv-tiles { |
| 181 height: calc(2 * 138px); | 197 height: calc(2 * 138px); |
| 182 line-height: 138px; | 198 line-height: 138px; |
| 183 } | 199 } |
| 184 | 200 |
| 185 .md #mv-tiles { | 201 .md #mv-tiles { |
| 186 height: calc(2 * 126px); | 202 height: calc(2 * 146px); |
| 187 line-height: 126px; | 203 line-height: 146px; |
| 188 } | 204 } |
| 189 | 205 |
| 190 .mv-tile { | 206 .mv-tile { |
| 191 display: inline-block; | 207 display: inline-block; |
| 192 position: relative; | 208 position: relative; |
| 193 vertical-align: top; | 209 vertical-align: top; |
| 194 } | 210 } |
| 195 | 211 |
| 196 .mv-page-ready { | 212 .mv-page-ready { |
| 197 cursor: pointer; | 213 cursor: pointer; |
| 198 outline: none; | 214 outline: none; |
| 199 } | 215 } |
| 200 | 216 |
| 201 .classical .mv-tile { | 217 .classical .mv-tile { |
| 202 background: linear-gradient(#f2f2f2, #e8e8e8); | 218 background: linear-gradient(#f2f2f2, #e8e8e8); |
| 203 border-radius: 3px; | 219 border-radius: 3px; |
| 204 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09); | 220 box-shadow: inset 0 2px 3px rgba(0, 0, 0, .09); |
| 205 height: 85px; | 221 height: 85px; |
| 206 margin-left: 10px; | 222 margin-left: 10px; |
| 207 margin-right: 10px; /* Total horizontal margins add to TILE_MARGIN. */ | 223 margin-right: 10px; /* Total horizontal margins add to TILE_MARGIN. */ |
| 208 width: 140px; | 224 width: 140px; |
| 209 } | 225 } |
| 210 | 226 |
| 211 .classical .mv-page-ready { | 227 .classical .mv-page-ready { |
| 212 -webkit-transition-duration: 200ms; | 228 -webkit-transition-duration: 200ms; |
| 213 -webkit-transition-property: -webkit-transform, margin, opacity, width; | 229 -webkit-transition-property: -webkit-transform, margin, opacity, width; |
| 214 } | 230 } |
| 215 | 231 |
| 216 .md .mv-tile { | 232 .md .mv-tile { |
| 217 background: #f2f2f2; | 233 background: rgb(242,242,242); |
| 218 border-radius: 1px; | 234 border-radius: 1px; |
| 219 height: 114px; | 235 height: 130px; |
| 220 margin-left: 6px; | 236 margin-left: 8px; |
| 221 margin-right: 6px; | 237 margin-right: 8px; |
| 222 width: 146px; | 238 width: 156px; |
| 223 } | 239 } |
| 224 | 240 |
| 225 .md .mv-page-ready { | 241 .md .mv-page-ready { |
| 226 -webkit-transition-duration: 200ms; | 242 -webkit-transition-duration: 200ms; |
| 227 -webkit-transition-property: -webkit-transform, margin, opacity, width; | 243 -webkit-transition-property: -webkit-transform, margin, opacity, width; |
| 228 } | 244 } |
| 229 | 245 |
| 230 .md.dark .mv-tile { | 246 .md.dark .mv-tile { |
| 231 background: #333; | 247 background: rgb(51,51,51); |
| 232 } | 248 } |
| 233 | 249 |
| 234 .mv-tile-inner { | 250 .mv-tile-inner { |
| 235 visibility: hidden; | 251 visibility: hidden; |
| 236 } | 252 } |
| 237 | 253 |
| 238 .mv-page-ready .mv-tile-inner { | 254 .mv-page-ready .mv-tile-inner { |
| 239 visibility: visible; | 255 visibility: visible; |
| 240 } | 256 } |
| 241 | 257 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 267 position: absolute; | 283 position: absolute; |
| 268 } | 284 } |
| 269 | 285 |
| 270 .classical .mv-mask { | 286 .classical .mv-mask { |
| 271 box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.09); | 287 box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.09); |
| 272 } | 288 } |
| 273 | 289 |
| 274 .md .mv-mask { | 290 .md .mv-mask { |
| 275 border-color: transparent; | 291 border-color: transparent; |
| 276 border-radius: 2px; | 292 border-radius: 2px; |
| 277 height: 112px; | 293 height: calc(130px - 2px); |
| 278 width: 144px; | 294 width: calc(156px - 2px); |
| 279 } | 295 } |
| 280 | 296 |
| 281 /* Styling border. */ | 297 /* Styling border. */ |
| 282 .classical .mv-page-ready .mv-mask { | 298 .classical .mv-page-ready .mv-mask { |
| 283 border-style: solid; | 299 border-style: solid; |
| 284 } | 300 } |
| 285 | 301 |
| 286 .default-theme.classical .mv-page-ready .mv-mask { | 302 .default-theme.classical .mv-page-ready .mv-mask { |
| 287 border-color: #c0c0c0; | 303 border-color: #c0c0c0; |
| 288 } | 304 } |
| 289 | 305 |
| 290 .default-theme.classical .mv-page-ready:hover .mv-mask, | 306 .default-theme.classical .mv-page-ready:hover .mv-mask, |
| 291 .default-theme.classical .mv-page-ready:focus .mv-mask { | 307 .default-theme.classical .mv-page-ready:focus .mv-mask { |
| 292 border-color: #7f7f7f; | 308 border-color: #7f7f7f; |
| 293 } | 309 } |
| 294 | 310 |
| 295 .default-theme.md.old-hover .mv-page-ready:hover .mv-mask, | 311 .default-theme.md.old-hover .mv-page-ready:hover .mv-mask, |
| 296 .default-theme.md.old-hover .mv-page-ready:focus .mv-mask { | 312 .default-theme.md.old-hover .mv-page-ready:focus .mv-mask { |
| 297 border-color: #999; | 313 border-color: #999; |
| 298 } | 314 } |
| 299 | 315 |
| 300 .default-theme.md.dark .mv-page-ready:hover .mv-mask, | 316 .default-theme.md.dark .mv-page-ready:hover .mv-mask, |
| 301 .default-theme.md.dark .mv-page-ready:focus .mv-mask, | 317 .default-theme.md.dark .mv-page-ready:focus .mv-mask, |
| 302 .default-theme.md.old-hover.dark .mv-page-ready:hover .mv-mask { | 318 .default-theme.md.old-hover.dark .mv-page-ready:hover .mv-mask { |
| 303 border-color: #888; | 319 border-color: #888; |
| 304 } | 320 } |
| 305 | 321 |
| 306 /* Styling shadow. */ | 322 /* Styling shadow. */ |
| 307 .md .mv-page-ready .mv-mask { | 323 .default-theme.md .mv-page-ready .mv-mask { |
| 308 -webkit-transition: box-shadow 200ms, border 200ms; | 324 -webkit-transition: box-shadow 200ms, border 200ms; |
| 309 } | 325 } |
| 310 .default-theme.md .mv-page-ready:hover .mv-mask { | 326 .default-theme.md .mv-page-ready:hover .mv-mask { |
| 311 box-shadow: 0 2px 8px rgba(0,0,0,0.3); | 327 box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1), 0 4px 8px 0 rgba(0,0,0,0.2); |
| 312 } | 328 } |
| 313 | 329 |
| 314 .default-theme..md.dark .mv-page-ready:hover .mv-mask, | 330 .default-theme..md.dark .mv-page-ready:hover .mv-mask, |
| 315 .default-theme..md.old-hover .mv-page-ready:hover .mv-mask { | 331 .default-theme..md.old-hover .mv-page-ready:hover .mv-mask { |
| 316 box-shadow: none; | 332 box-shadow: none; |
| 317 } | 333 } |
| 318 | 334 |
| 319 /* Styling background. */ | 335 /* Styling background. */ |
| 320 .classical .mv-page:focus .mv-mask { | 336 .classical .mv-page:focus .mv-mask { |
| 321 -webkit-transition: background-color 100ms ease-in-out; | 337 -webkit-transition: background-color 100ms ease-in-out; |
| 322 background: linear-gradient(rgba(255, 255, 255, 0), | 338 background: linear-gradient(rgba(255, 255, 255, 0), |
| 323 rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.9)); | 339 rgba(255, 255, 255, 0) 80%, rgba(255, 255, 255, 0.9)); |
| 324 background-color: rgba(0, 0, 0, 0.35); | 340 background-color: rgba(0, 0, 0, 0.35); |
| 325 } | 341 } |
| 326 | 342 |
| 327 .md .mv-page:focus .mv-mask { | 343 .md .mv-page:focus .mv-mask { |
| 328 -webkit-transition: box-shadow 200ms, border 200ms, | 344 -webkit-transition: box-shadow 200ms, border 200ms, |
| 329 background-color 100ms ease-in-out, ; | 345 background-color 100ms ease-in-out; |
| 330 background: rgba(0, 0, 0, 0.3); | 346 background: rgba(0, 0, 0, 0.3); |
| 331 border-color: rgba(0, 0, 0, 0.3); | 347 border-color: rgba(0, 0, 0, 0.3); |
| 332 } | 348 } |
| 333 | 349 |
| 334 .mv-title { | 350 .mv-title { |
| 335 border: none; | 351 border: none; |
| 336 position: absolute; | 352 position: absolute; |
| 337 } | 353 } |
| 338 | 354 |
| 339 .classical .mv-title { | 355 .classical .mv-title { |
| 340 bottom: -27px; | 356 bottom: -27px; |
| 341 height: 18px; | 357 height: 18px; |
| 342 left: 0; | 358 left: 0; |
| 343 width: 140px; | 359 width: 140px; |
| 344 } | 360 } |
| 345 | 361 |
| 346 .md .mv-title { | 362 .md .mv-title { |
| 347 bottom: auto; | 363 bottom: auto; |
| 348 height: 15px; | 364 height: 15px; |
| 349 left: 28px; | 365 left: 32px; |
| 350 top: 7px; | 366 top: 9px; |
| 351 width: 112px; | 367 width: calc(156px - 32px - 4px); |
| 352 } | 368 } |
| 353 | 369 |
| 354 @media (-webkit-min-device-pixel-ratio: 2) { | 370 @media (-webkit-min-device-pixel-ratio: 2) { |
| 355 .md .mv-title { | 371 .md .mv-title { |
| 356 top: 6px; | 372 top: 8px; |
| 357 } | 373 } |
| 358 } | 374 } |
| 359 | 375 |
| 360 body[dir=rtl] .md .mv-title { | 376 body[dir=rtl] .md .mv-title { |
| 361 left: auto; | 377 left: auto; |
| 362 right: 28px; | 378 right: 32px; |
| 363 } | 379 } |
| 364 | 380 |
| 365 .mv-thumb { | 381 .mv-thumb { |
| 366 border: none; | 382 border: none; |
| 367 cursor: pointer; | 383 cursor: pointer; |
| 368 position: absolute; | 384 position: absolute; |
| 369 } | 385 } |
| 370 | 386 |
| 371 .classical .mv-thumb, | 387 .classical .mv-thumb, |
| 372 .classical .mv-mask { | 388 .classical .mv-mask { |
| 373 height: 83px; | 389 height: 83px; |
| 374 width: 138px; | 390 width: 138px; |
| 375 } | 391 } |
| 376 | 392 |
| 377 .classical .mv-thumb { | 393 .classical .mv-thumb { |
| 378 border-radius: 2px; | 394 border-radius: 2px; |
| 379 left: 1px; | 395 left: 1px; |
| 380 top: 1px; | 396 top: 1px; |
| 381 } | 397 } |
| 382 | 398 |
| 383 .classical .mv-mask { | 399 .classical .mv-mask { |
| 384 border-radius: 3px; | 400 border-radius: 3px; |
| 385 left: 0; | 401 left: 0; |
| 386 top: 0; | 402 top: 0; |
| 387 } | 403 } |
| 388 | 404 |
| 389 .md .mv-thumb, | 405 .md .mv-thumb, |
| 390 .md .mv-thumb-fallback { | 406 .md .mv-thumb-fallback { |
| 391 border-radius: 0; | 407 border-radius: 0; |
| 392 height: 82px; | 408 height: 94px; |
| 393 left: 4px; | 409 left: 4px; |
| 394 top: 28px; | 410 top: 32px; |
| 395 width: 138px; | 411 width: 148px; |
| 396 } | 412 } |
| 397 | 413 |
| 398 body[dir=rtl] .md .mv-thumb, | 414 body[dir=rtl] .md .mv-thumb, |
| 399 body[dir=rtl] .md .mv-thumb-fallback { | 415 body[dir=rtl] .md .mv-thumb-fallback { |
| 400 left: auto; | 416 left: auto; |
| 401 right: 4px; | 417 right: 4px; |
| 402 } | 418 } |
| 403 | 419 |
| 404 .md .mv-thumb-fallback { | 420 .md .mv-thumb-fallback { |
| 405 background: #fff; | 421 background-color: #fff; |
| 406 padding: none; | |
| 407 position: absolute; | 422 position: absolute; |
| 408 } | 423 } |
| 409 | 424 |
| 410 .md.dark .mv-thumb-fallback { | 425 .md.dark .mv-thumb-fallback { |
| 411 background: #555; | 426 background-color: #555; |
| 412 } | 427 } |
| 413 | 428 |
| 414 .md .mv-thumb-fallback .dot { | 429 .md .mv-thumb-fallback .dot { |
| 415 background: #f2f2f2; | 430 background-color: #f2f2f2; |
| 416 border-radius: 16px; | 431 border-radius: 8px; |
| 417 display: block; | 432 display: block; |
| 418 height: 32px; | 433 height: 16px; |
| 419 left: 50%; | 434 left: 50%; |
| 420 margin-left: -16px; | 435 margin-left: -8px; |
| 421 margin-top: -16px; | 436 margin-top: -8px; |
| 422 position: absolute; | 437 position: absolute; |
| 423 top: 50%; | 438 top: 50%; |
| 424 width: 32px; | 439 width: 16px; |
| 425 } | 440 } |
| 426 | 441 |
| 427 .md.dark .mv-thumb-fallback .dot { | 442 .md.dark .mv-thumb-fallback .dot { |
| 428 background: #333; | 443 background-color: #333; |
| 429 } | 444 } |
| 430 | 445 |
| 431 .mv-x-hide .mv-x { | 446 .mv-x-hide .mv-x { |
| 432 display: none; | 447 display: none; |
| 433 } | 448 } |
| 434 | 449 |
| 435 /* An X button to blacklist a tile or hide the notification. */ | 450 /* An X button to blacklist a tile or hide the notification. */ |
| 436 .mv-x { | 451 .mv-x { |
| 437 background-color: transparent; | 452 background-color: transparent; |
| 438 background-image: url(images/close_2.png); | |
| 439 border: none; | 453 border: none; |
| 440 cursor: default; | 454 cursor: pointer; |
| 441 height: 16px; | |
| 442 width: 16px; | |
| 443 } | 455 } |
| 444 | 456 |
| 445 .mv-page .mv-x { | 457 .mv-page .mv-x { |
| 446 -webkit-transition: opacity 150ms; | 458 -webkit-transition: opacity 150ms; |
| 447 opacity: 0; | 459 opacity: 0; |
| 448 position: absolute; | 460 position: absolute; |
| 449 } | 461 } |
| 450 | 462 |
| 451 .mv-x:hover, | 463 .classical .mv-x { |
| 452 #mv-notice-x:focus { | 464 background-image: url('images/close_2.png'); |
| 453 background-image: url(images/close_2_hover.png); | 465 height: 16px; |
| 466 width: 16px; |
| 454 } | 467 } |
| 455 | 468 |
| 456 .mv-x:active { | 469 .classical .mv-x:hover, |
| 457 background-image: url(images/close_2_active.png); | 470 .classical #mv-notice-x:focus { |
| 471 background-image: url('images/close_2_hover.png'); |
| 472 } |
| 473 |
| 474 .classical .mv-x:active, |
| 475 .classical #mv-notice-x:active { |
| 476 background-image: url('images/close_2_active.png'); |
| 458 } | 477 } |
| 459 | 478 |
| 460 .classical .mv-page .mv-x { | 479 .classical .mv-page .mv-x { |
| 461 right: 2px; | 480 right: 2px; |
| 462 top: 2px; | 481 top: 2px; |
| 463 } | 482 } |
| 464 | 483 |
| 465 .md .mv-x { | |
| 466 background-color: rgba(187,187,187,0.8); | |
| 467 border-radius: 8px; | |
| 468 } | |
| 469 | |
| 470 .md.dark .mv-x { | |
| 471 background-color: rgba(119,119,119,0.8); | |
| 472 } | |
| 473 | |
| 474 .md .mv-page .mv-x { | |
| 475 right: 4px; | |
| 476 top: 5px; | |
| 477 } | |
| 478 | |
| 479 body[dir=rtl] .classical .mv-page .mv-x { | 484 body[dir=rtl] .classical .mv-page .mv-x { |
| 480 left: 2px; | 485 left: 2px; |
| 481 right: auto; | 486 right: auto; |
| 482 } | 487 } |
| 483 | 488 |
| 489 #mv-notice-x { |
| 490 display: inline-block; |
| 491 position: relative; |
| 492 } |
| 493 |
| 494 .md #mv-notice-x { |
| 495 -webkit-transform: translate(0,-8px); |
| 496 } |
| 497 |
| 498 .md .mv-x { |
| 499 height: 32px; |
| 500 width: 32px; |
| 501 } |
| 502 |
| 503 .md .mv-x .mv-x-inner { |
| 504 -webkit-mask-image: -webkit-image-set( |
| 505 url('images/close_3_mask.png') 1x, |
| 506 url('images/close_3_mask.png@2x') 2x); |
| 507 -webkit-mask-repeat: no-repeat; |
| 508 -webkit-mask-size: 10px 10px; |
| 509 background-color: rgba(90,90,90,0.7); |
| 510 height: 10px; |
| 511 left: 50%; |
| 512 margin-left: -5px; |
| 513 margin-top: -5px; |
| 514 position: absolute; |
| 515 top: 50%; |
| 516 width: 10px; |
| 517 } |
| 518 |
| 519 .md.dark .mv-x .mv-x-inner { |
| 520 background-color: rgba(255,255,255,0.7); |
| 521 } |
| 522 |
| 523 .md .mv-x:hover .mv-x-inner, |
| 524 .md #mv-notice-x:focus .mv-x-inner { |
| 525 background-color: rgb(90,90,90); |
| 526 } |
| 527 |
| 528 .md.dark .mv-x:hover .mv-x-inner, |
| 529 .md.dark #mv-notice-x:focus .mv-x-inner { |
| 530 background-color: rgb(255,255,255); |
| 531 } |
| 532 |
| 533 .md .mv-x:active .mv-x-inner, |
| 534 .md #mv-notice-x:active .mv-x-inner { |
| 535 background-color: rgb(66,133,244); |
| 536 } |
| 537 |
| 538 .md.dark .mv-x:active .mv-x-inner, |
| 539 .md.dark #mv-notice-x:active .mv-x-inner { |
| 540 background-color: rgba(255,255,255,0.5); |
| 541 } |
| 542 |
| 543 .md .mv-page .mv-x { |
| 544 /* background color needs to match .md .mv-tile */ |
| 545 background: linear-gradient(to right, transparent, rgb(242,242,242) 10%); |
| 546 right: 0; |
| 547 top: 0; |
| 548 } |
| 549 |
| 484 body[dir=rtl] .md .mv-page .mv-x { | 550 body[dir=rtl] .md .mv-page .mv-x { |
| 485 left: 4px; | 551 /* background color needs to match .md .mv-tile */ |
| 552 background: linear-gradient(to left, transparent, rgb(242,242,242) 10%); |
| 553 left: 0; |
| 486 right: auto; | 554 right: auto; |
| 487 } | 555 } |
| 488 | 556 |
| 557 .md.dark .mv-page .mv-x { |
| 558 /* background color needs to match .md.dark .mv-tile */ |
| 559 background: linear-gradient(to right, transparent, rgba(51,51,51,0.9) 30%); |
| 560 } |
| 561 |
| 562 body[dir=rtl] .md.dark .mv-page .mv-x { |
| 563 /* background color needs to match .md.dark .mv-tile */ |
| 564 background: linear-gradient(to left, transparent, rgba(51,51,51,0.9) 30%); |
| 565 } |
| 566 |
| 489 .mv-page-ready:hover .mv-x { | 567 .mv-page-ready:hover .mv-x { |
| 490 -webkit-transition-delay: 500ms; | 568 -webkit-transition-delay: 500ms; |
| 491 opacity: 1; | 569 opacity: 1; |
| 492 } | 570 } |
| 493 | 571 |
| 494 .mv-page-ready .mv-x:hover { | 572 .mv-page-ready .mv-x:hover { |
| 495 -webkit-transition: none; | 573 -webkit-transition: none; |
| 496 } | 574 } |
| 497 | 575 |
| 498 .mv-favicon { | 576 .mv-favicon { |
| 499 background-size: 16px; | 577 background-size: 16px; |
| 500 height: 16px; | 578 height: 16px; |
| 501 pointer-events: none; | 579 pointer-events: none; |
| 502 position: absolute; | 580 position: absolute; |
| 503 width: 16px; | 581 width: 16px; |
| 504 } | 582 } |
| 505 | 583 |
| 506 .classical .mv-favicon { | 584 .classical .mv-favicon { |
| 507 bottom: -7px; | 585 bottom: -7px; |
| 508 left: 62px; | 586 left: 62px; |
| 509 } | 587 } |
| 510 | 588 |
| 511 .md .mv-favicon { | 589 .md .mv-favicon { |
| 512 left: 6px; | 590 left: 8px; |
| 513 top: 6px; | 591 top: 8px; |
| 514 } | 592 } |
| 515 | 593 |
| 516 body[dir=rtl] .md .mv-favicon { | 594 body[dir=rtl] .md .mv-favicon { |
| 517 left: auto; | 595 left: auto; |
| 518 right: 6px; | 596 right: 8px; |
| 519 top: 6px; | 597 top: 8px; |
| 598 } |
| 599 |
| 600 .md .mv-favicon-fallback { |
| 601 background-image: -webkit-image-set( |
| 602 url('images/ntp_default_favicon.png') 1x, |
| 603 url('images/ntp_default_favicon.png@2x') 2x); |
| 604 background-repeat: no-repeat; |
| 605 background-size: 16px 16px; |
| 520 } | 606 } |
| 521 | 607 |
| 522 /* The notification shown when a tile is blacklisted. */ | 608 /* The notification shown when a tile is blacklisted. */ |
| 523 #mv-notice { | 609 #mv-notice { |
| 524 font-size: 12px; | 610 font-size: 12px; |
| 525 font-weight: bold; | 611 font-weight: bold; |
| 526 opacity: 1; | 612 opacity: 1; |
| 527 padding: 10px 0; | 613 padding: 10px 0; |
| 528 } | 614 } |
| 529 | 615 |
| 530 #mv-notice span { | 616 #mv-notice span { |
| 531 cursor: default; | 617 cursor: default; |
| 618 display: inline-block; |
| 619 height: 16px; |
| 620 line-height: 16px; |
| 621 vertical-align: top; |
| 532 } | 622 } |
| 533 | 623 |
| 534 /* Links in the notification. */ | 624 /* Links in the notification. */ |
| 535 #mv-notice-links span { | 625 #mv-notice-links span { |
| 536 -webkit-margin-start: 6px; | 626 -webkit-margin-start: 6px; |
| 537 color: rgb(17, 85, 204); | 627 color: rgb(17, 85, 204); |
| 538 cursor: pointer; | 628 cursor: pointer; |
| 539 outline: none; | 629 outline: none; |
| 540 padding: 0 4px; | 630 padding: 0 4px; |
| 541 } | 631 } |
| 542 | 632 |
| 543 #mv-notice-links span:hover, | 633 #mv-notice-links span:hover, |
| 544 #mv-notice-links span:focus, | 634 #mv-notice-links span:focus, |
| 545 #recent-tabs:hover { | 635 #recent-tabs:hover { |
| 546 text-decoration: underline; | 636 text-decoration: underline; |
| 547 } | 637 } |
| 548 | 638 |
| 549 .default-theme.dark #mv-msg { | 639 .default-theme.dark #mv-msg { |
| 550 color: #fff; | 640 color: #fff; |
| 551 } | 641 } |
| 552 | 642 |
| 643 .default-theme.dark #mv-notice-links span { |
| 644 color: #fff; |
| 645 } |
| 646 |
| 553 #mv-notice-links .mv-x { | 647 #mv-notice-links .mv-x { |
| 554 -webkit-margin-start: 8px; | 648 -webkit-margin-start: 8px; |
| 555 outline: none; | 649 outline: none; |
| 556 vertical-align: top; | 650 vertical-align: top; |
| 557 } | 651 } |
| 558 | 652 |
| 559 #mv-notice.mv-notice-delayed-hide { | 653 #mv-notice.mv-notice-delayed-hide { |
| 560 -webkit-transition-delay: 10s; | 654 -webkit-transition-delay: 10s; |
| 561 -webkit-transition-property: opacity; | 655 -webkit-transition-property: opacity; |
| 562 opacity: 0; | 656 opacity: 0; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 opacity: 0.9; | 689 opacity: 0.9; |
| 596 padding: 3px; | 690 padding: 3px; |
| 597 position: fixed; | 691 position: fixed; |
| 598 right: 8px; | 692 right: 8px; |
| 599 } | 693 } |
| 600 | 694 |
| 601 body[dir=rtl] #attribution,body[dir=rtl] #recent-tabs { | 695 body[dir=rtl] #attribution,body[dir=rtl] #recent-tabs { |
| 602 left: 8px; | 696 left: 8px; |
| 603 right: auto; | 697 right: auto; |
| 604 } | 698 } |
| OLD | NEW |