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

Side by Side Diff: static/css/main.css

Issue 29564718: Issue 5742 - Added container and 4 column grid to adblockplus.org (Closed) Base URL: https://bitbucket.org/adblockplus/adblockplus.org
Patch Set: Created Oct. 4, 2017, 7:05 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 | static/css/main-desktop.css » ('j') | static/css/main-desktop.css » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*******************************************************************************
2 * Base styles
juliandoucette 2017/10/04 19:13:52 Note: This will be automated ASAP.
ire 2017/10/04 22:17:10 Sorry, not sure what you mean. What will be automa
3 ******************************************************************************/
4 html {
ire 2017/10/04 22:17:10 The formatting doesn't follow our coding style.
ire 2017/10/09 09:34:51 I realised I forgot to follow up on this. Can you
5 color: #212121;
6 background-color: #fff;
7 font-family: sans-serif;
8 line-height: 1.5; }
9
10 /**
11 * Stretch content full-width
12 */
13 .full-width {
14 display: block;
15 width: 100%;
16 margin: 1em 0px; }
17
18 /**
19 * Center content within a (responsive) fixed width
20 */
21 .container {
22 width: auto;
23 max-width: 100%;
24 margin: 0px auto;
25 padding: 0px 1em; }
26
27 @media (min-width: 768px) {
28 .container {
29 width: 720px; } }
30
31 @media (min-width: 1200px) {
32 .container {
33 width: 1170px; } }
34
35 /*******************************************************************************
36 * Grid component
37 ******************************************************************************/
38 /**
39 * - .row contains one or more .column(s)
40 * - .row clears .column(s)
41 * - .row negates the left & right padding of it's left-most & right-most
42 * .column(s) while preserving consistent padding between .column(s)
43 */
44 .row {
45 margin: 0px -1em; }
46
47 .row:after {
48 display: block;
49 clear: both;
50 content: ""; }
51
52 /**
53 * - .column is 100% width by default
54 * - Modifier classes are applied to .column to change it's width
55 * - Modifier classes behave differently on different device widths
56 */
57 .column {
58 position: relative;
59 width: 100%;
60 min-height: 1px;
61 padding: 0px 1em; }
62
63 /* - .column(s) within .row .reverse appear in reverse order
64 * - .column(s) within [dir=rtl] appear in reverse order respectively
65 */
66 .column,
67 [dir="rtl"] .reverse .column {
68 float: left; }
69
70 .row,
71 .column {
72 box-sizing: border-box: }
73
74 .reverse .column,
75 [dir="rtl"] .column {
76 float: right; }
77
78 @media (min-width: 768px) {
79 .one-half,
80 .one-fourth {
81 width: 50%; } }
82
83 @media (min-width: 1200px) {
juliandoucette 2017/10/04 19:13:52 Note: I customized this breakpoint and width to ma
ire 2017/10/04 22:17:10 Acknowledged.
84 .one-third {
85 width: 33.333333%; }
86 .two-thirds {
87 width: 66.666667%; }
88 .one-fourth {
89 width: 25%; }
90 .three-fourths {
91 width: 75%; } }
92
1 * 93 *
2 { 94 {
3 font-family: Arial, sans; 95 font-family: Arial, sans;
4 font-size: 16px; 96 font-size: 16px;
5 } 97 }
6 98
7 body 99 body
8 { 100 {
9 margin: 0; 101 margin: 0;
10 line-height: 1.5; 102 line-height: 1.5;
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 523
432 [dir="ltr"] .alert 524 [dir="ltr"] .alert
433 { 525 {
434 border-left: 5px solid #d14841; 526 border-left: 5px solid #d14841;
435 } 527 }
436 528
437 [dir="rtl"] .alert 529 [dir="rtl"] .alert
438 { 530 {
439 border-right: 5px solid #d14841; 531 border-right: 5px solid #d14841;
440 } 532 }
OLDNEW
« no previous file with comments | « no previous file | static/css/main-desktop.css » ('j') | static/css/main-desktop.css » ('J')

Powered by Google App Engine
This is Rietveld