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

Side by Side Diff: static/scss/_grid.scss

Issue 29590583: Noissue - Applied responsive margin & padding mixins (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 27, 2017, 12:15 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 | « package-lock.json ('k') | static/scss/_mixins.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file is part of website-defaults 1 // This file is part of website-defaults
2 // Copyright (C) 2016-present eyeo GmbH 2 // Copyright (C) 2016-present eyeo GmbH
3 // 3 //
4 // website-defaults is free software: you can redistribute it and/or 4 // website-defaults is free software: you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License as published by 5 // modify it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or 6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version. 7 // (at your option) any later version.
8 // 8 //
9 // website-defaults is distributed in the hope that it will be useful, 9 // website-defaults 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
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details. 12 // GNU General Public License for more details.
13 // 13 //
14 // You should have received a copy of the GNU General Public License 14 // You should have received a copy of the GNU General Public License
15 // along with website-defaults. If not, see <http://www.gnu.org/licenses/>. 15 // along with website-defaults. If not, see <http://www.gnu.org/licenses/>.
16 16
17 /******************************************************************************* 17 /*******************************************************************************
18 * Grid component 18 * Grid component
19 ******************************************************************************/ 19 ******************************************************************************/
20 20
21 /** 21 /**
22 * - .row contains one or more .column(s) 22 * - .row contains one or more .column(s)
23 * - .row clears .column(s) 23 * - .row clears .column(s)
24 * - .row negates the left & right padding of it's left-most & right-most 24 * - .row negates the left & right padding of it's left-most & right-most
25 * .column(s) while preserving consistent padding between .column(s) 25 * .column(s) while preserving consistent padding between .column(s)
26 */ 26 */
27 .row 27 .row
28 { 28 {
29 margin: 0px (-$small-space); 29 @include margin-breakpoints($row-spacing, 'x', -1);
30 } 30 }
31 31
32 .row:after 32 .row:after
33 { 33 {
34 display: block; 34 display: block;
35 clear: both; 35 clear: both;
36 content: ""; 36 content: "";
37 } 37 }
38 38
39 /** 39 /**
40 * - .column is 100% width by default 40 * - .column is 100% width by default
41 * - Modifier classes are applied to .column to change it's width 41 * - Modifier classes are applied to .column to change it's width
42 * - Modifier classes behave differently on different device widths 42 * - Modifier classes behave differently on different device widths
43 */ 43 */
44 .column 44 .column
45 { 45 {
46 position: relative; 46 position: relative;
47 width: 100%; 47 width: 100%;
48 min-height: 1px; 48 min-height: 1px;
49 padding: 0px $small-space; 49 @include padding-breakpoints($column-spacing, 'x');
50 } 50 }
51 51
52 /* - .column(s) within .row .reverse appear in reverse order 52 /* - .column(s) within .row .reverse appear in reverse order
53 * - .column(s) within [dir=rtl] appear in reverse order respectively 53 * - .column(s) within [dir=rtl] appear in reverse order respectively
54 */ 54 */
55 55
56 .column, 56 .column,
57 [dir="rtl"] .reverse .column 57 [dir="rtl"] .reverse .column
58 { 58 {
59 float: left; 59 float: left;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 .one-fourth 92 .one-fourth
93 { 93 {
94 width: 25%; 94 width: 25%;
95 } 95 }
96 96
97 .three-fourths 97 .three-fourths
98 { 98 {
99 width: 75%; 99 width: 75%;
100 } 100 }
101 } 101 }
OLDNEW
« no previous file with comments | « package-lock.json ('k') | static/scss/_mixins.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld