| OLD | NEW |
| 1 html { | 1 html { |
| 2 /* This is needed because of chrome://theme/css/new_tab.css */ | 2 /* This is needed because of chrome://theme/css/new_tab.css */ |
| 3 height: 100%; | 3 height: 100%; |
| 4 } | 4 } |
| 5 | 5 |
| 6 body { | 6 body { |
| 7 margin: 0; | 7 margin: 0; |
| 8 height: 100%; | 8 height: 100%; |
| 9 overflow: auto; | 9 overflow: auto; |
| 10 -webkit-user-select: none; | 10 -webkit-user-select: none; |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 272 |
| 273 .section { | 273 .section { |
| 274 position: fixed; | 274 position: fixed; |
| 275 font-size: 92%; | 275 font-size: 92%; |
| 276 } | 276 } |
| 277 | 277 |
| 278 html[anim=true][enable-section-animations=true] .section { | 278 html[anim=true][enable-section-animations=true] .section { |
| 279 -webkit-transition: top .15s; | 279 -webkit-transition: top .15s; |
| 280 } | 280 } |
| 281 | 281 |
| 282 .section.disabled { | 282 .section.disabled, |
| 283 #closed-sections-bar .disabled { |
| 283 display: none !important; | 284 display: none !important; |
| 284 } | 285 } |
| 285 | 286 |
| 286 .section > h2 { | 287 .section > h2 { |
| 287 font-family: Helvetica, Arial, sans-serif; | 288 font-family: Helvetica, Arial, sans-serif; |
| 288 font-size: 133%; | 289 font-size: 133%; |
| 289 font-weight: normal; | 290 font-weight: normal; |
| 290 margin: 0; | 291 margin: 0; |
| 291 position: relative; | 292 position: relative; |
| 292 } | 293 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 306 left: auto; | 307 left: auto; |
| 307 right: -15px; | 308 right: -15px; |
| 308 -webkit-transform: rotate(180deg); | 309 -webkit-transform: rotate(180deg); |
| 309 } | 310 } |
| 310 | 311 |
| 311 html[anim=true] .section > h2 > .disclosure { | 312 html[anim=true] .section > h2 > .disclosure { |
| 312 -webkit-transition: -webkit-transform .15s; | 313 -webkit-transition: -webkit-transform .15s; |
| 313 } | 314 } |
| 314 | 315 |
| 315 .section:not(.hidden) > h2 > .disclosure { | 316 .section:not(.hidden) > h2 > .disclosure { |
| 316 -webkit-transform:rotate(90deg); | 317 -webkit-transform: rotate(90deg); |
| 317 } | 318 } |
| 318 | 319 |
| 319 .section > h2 .back { | 320 .section > h2 .back { |
| 320 position: absolute; | 321 position: absolute; |
| 321 left: 0; | 322 left: 0; |
| 322 top: 0.56em; | 323 top: 0.56em; |
| 323 width: 100%; | 324 width: 100%; |
| 324 height: 1.5em; | 325 height: 1.5em; |
| 325 z-index: 1; | 326 z-index: 1; |
| 326 } | 327 } |
| 327 | 328 |
| 328 .section > h2 span { | 329 .section > h2 span { |
| 329 -webkit-padding-end: 0.30em; | 330 -webkit-padding-end: 0.30em; |
| 330 position: relative; | 331 position: relative; |
| 331 z-index: 2; | 332 z-index: 2; |
| 332 } | 333 } |
| 333 | 334 |
| 335 .section-close-button { |
| 336 -webkit-appearance: none; |
| 337 -webkit-transition: opacity .15s; |
| 338 background-color: transparent; |
| 339 background-image: url(chrome://theme/IDR_CLOSE_BAR); |
| 340 background-position: center center; |
| 341 background-repeat no-repeat; |
| 342 border: 0; |
| 343 height: 21px; |
| 344 margin-top: -10px; |
| 345 position: absolute; |
| 346 right: -21px; |
| 347 top: 50%; |
| 348 width: 21px; |
| 349 opacity: 0; |
| 350 z-index: 3; |
| 351 } |
| 352 |
| 353 html[dir=rtl] .section-close-button { |
| 354 left: -21px; |
| 355 right: auto; |
| 356 } |
| 357 |
| 358 .section > h2:hover .section-close-button, |
| 359 .section-close-button:hover { |
| 360 opacity: 1; |
| 361 } |
| 362 |
| 363 .section-close-button:hover { |
| 364 background-image: url(chrome://theme/IDR_CLOSE_BAR_H); |
| 365 } |
| 366 |
| 367 #closed-sections-bar { |
| 368 position: fixed; |
| 369 bottom: 5px; |
| 370 } |
| 371 |
| 372 #closed-sections-bar > button { |
| 373 -webkit-appearance: none; |
| 374 background: none; |
| 375 border: 0; |
| 376 cursor: pointer; |
| 377 font: inherit; |
| 378 margin: 0; |
| 379 margin-right: 1.5em; |
| 380 padding: 0; |
| 381 |
| 382 /* Note: The font here should end up the same as .section > h2. A different |
| 383 percentage is needed because the parent element here has a different size. */ |
| 384 font-family: Helvetica, Arial, sans-serif; |
| 385 font-size: 122%; |
| 386 font-weight: normal; |
| 387 } |
| 388 |
| 389 #closed-sections-bar > button > img { |
| 390 -webkit-transform: rotate(90deg); |
| 391 position: relative; |
| 392 top: -2px; |
| 393 margin-left: 1px; |
| 394 } |
| 395 |
| 334 .maxiview { | 396 .maxiview { |
| 335 padding: 5px 0 30px; | 397 padding: 5px 0 30px; |
| 336 position: absolute; | 398 position: absolute; |
| 337 -webkit-mask-attachment: fixed; | 399 -webkit-mask-attachment: fixed; |
| 338 opacity: 1; | 400 opacity: 1; |
| 339 } | 401 } |
| 340 | 402 |
| 341 .maxiview.hiding { | 403 .maxiview.hiding { |
| 342 opacity: 0; | 404 opacity: 0; |
| 343 } | 405 } |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 } | 469 } |
| 408 } | 470 } |
| 409 | 471 |
| 410 /* Ensure we have at least 10px horizontal marging. */ | 472 /* Ensure we have at least 10px horizontal marging. */ |
| 411 @media (max-width: 712px) { | 473 @media (max-width: 712px) { |
| 412 #main { | 474 #main { |
| 413 margin-left: 10px; | 475 margin-left: 10px; |
| 414 margin-right: 10px; | 476 margin-right: 10px; |
| 415 } | 477 } |
| 416 } | 478 } |
| OLD | NEW |