Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: skin/new-options.css

Issue 29555879: Noissue - Center the content and unfix on small screens the sidebar (Closed)
Patch Set: Created Sept. 25, 2017, 9:58 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 html 47 html
48 { 48 {
49 font-size: 16px; 49 font-size: 16px;
50 } 50 }
51 51
52 body 52 body
53 { 53 {
54 background-color: #F3F3F3; 54 background-color: #F3F3F3;
55 display: flex; 55 display: flex;
56 justify-content: center;
56 margin: 1.2rem 0.3rem; 57 margin: 1.2rem 0.3rem;
57 font-family: "Source Sans Pro", sans-serif; 58 font-family: "Source Sans Pro", sans-serif;
58 font-size: 1.25rem; 59 font-size: 1.25rem;
59 color: #494949; 60 color: #494949;
60 } 61 }
61 62
62 h1 63 h1
63 { 64 {
64 font-size: 3rem; 65 font-size: 3rem;
65 font-weight: 300; 66 font-weight: 300;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 #sidebar 414 #sidebar
414 { 415 {
415 flex-shrink: 0; 416 flex-shrink: 0;
416 } 417 }
417 418
418 #sidebar .fixed 419 #sidebar .fixed
419 { 420 {
420 top: 1.2rem; 421 top: 1.2rem;
421 bottom: 0rem; 422 bottom: 0rem;
422 height: auto; 423 height: auto;
423 position: fixed;
424 } 424 }
425 425
426 #sidebar header 426 #sidebar header
427 { 427 {
428 text-align: right; 428 text-align: right;
429 margin-right: 2rem; 429 margin-right: 2rem;
430 } 430 }
431 431
432 html[dir="rtl"] #sidebar header 432 html[dir="rtl"] #sidebar header
433 { 433 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 li a[role="tab"][aria-selected] 503 li a[role="tab"][aria-selected]
504 { 504 {
505 -moz-border-start-color: #CDCDCD; 505 -moz-border-start-color: #CDCDCD;
506 -webkit-border-start-color: #CDCDCD; 506 -webkit-border-start-color: #CDCDCD;
507 font-weight: 700; 507 font-weight: 700;
508 background-color: #FFF; 508 background-color: #FFF;
509 } 509 }
510 510
511 #sidebar footer 511 #sidebar footer
512 { 512 {
513 bottom: 0px;
514 position: absolute;
515 width: 100%; 513 width: 100%;
516 } 514 }
517 515
518 #sidebar footer p 516 #sidebar footer p
519 { 517 {
520 display: flex; 518 display: flex;
521 justify-content: center; 519 justify-content: center;
522 margin: 1.2rem 0rem; 520 margin: 1.2rem 0rem;
523 } 521 }
524 522
523 @media (min-height: 37rem)
saroyanm 2017/09/25 22:02:13 @Thomas can you please send the link to the soluti
Thomas Greiner 2017/09/26 10:40:38 This is a bit of a hack because it depends on the
Thomas Greiner 2017/09/26 10:40:38 What I was mentioning was `position: sticky` but a
saroyanm 2017/09/26 16:55:48 As we did introduce fixed root element and prevent
saroyanm 2017/09/26 16:55:48 I see.
Thomas Greiner 2017/09/27 13:27:50 Ok, since there's no good solution that we can imp
saroyanm 2017/09/27 14:56:43 Agree, done.
524 {
525 #sidebar .fixed
526 {
527 position: fixed;
528 }
529
530 #sidebar footer
531 {
532 bottom: 0px;
533 position: absolute;
534 }
535 }
536
525 /* 537 /*
526 Main content 538 Main content
527 */ 539 */
528 540
529 body[data-tab|="general"] #content-general, 541 body[data-tab|="general"] #content-general,
530 body[data-tab|="advanced"] #content-advanced, 542 body[data-tab|="advanced"] #content-advanced,
531 body[data-tab|="whitelist"] #content-whitelist, 543 body[data-tab|="whitelist"] #content-whitelist,
532 body[data-tab|="help"] #content-help 544 body[data-tab|="help"] #content-help
533 { 545 {
534 display: block; 546 display: block;
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 1450
1439 #hide-notification::after 1451 #hide-notification::after
1440 { 1452 {
1441 background-color: #099DD1; 1453 background-color: #099DD1;
1442 } 1454 }
1443 1455
1444 #hide-notification:hover::after 1456 #hide-notification:hover::after
1445 { 1457 {
1446 background-color: #5CBCE1; 1458 background-color: #5CBCE1;
1447 } 1459 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld