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: Fixed border-box colon Created Oct. 5, 2017, 5:17 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') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*******************************************************************************
2 * Base styles
3 ******************************************************************************/
4 html {
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) {
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 375
284 [dir="ltr"] .alert 376 [dir="ltr"] .alert
285 { 377 {
286 border-left: 5px solid #d14841; 378 border-left: 5px solid #d14841;
287 } 379 }
288 380
289 [dir="rtl"] .alert 381 [dir="rtl"] .alert
290 { 382 {
291 border-right: 5px solid #d14841; 383 border-right: 5px solid #d14841;
292 } 384 }
OLDNEW
« no previous file with comments | « no previous file | static/css/main-desktop.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld