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

Side by Side Diff: static/scss/_utilities.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 | « static/scss/_mixins.scss ('k') | static/scss/_variables.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
(...skipping 21 matching lines...) Expand all
32 32
33 /** 33 /**
34 * Center content within a (responsive) fixed width 34 * Center content within a (responsive) fixed width
35 */ 35 */
36 .container 36 .container
37 { 37 {
38 width: $container-width; 38 width: $container-width;
39 max-width: 100%; 39 max-width: 100%;
40 margin-right: auto; 40 margin-right: auto;
41 margin-left: auto; 41 margin-left: auto;
42 padding-right: $small-space; 42 @include padding-breakpoints($container-spacing, 'x');
43 padding-left: $small-space;
44 } 43 }
45 44
45 /**
46 * Vertically separate sections of content
47 */
48 .section
49 {
50 @extend .clearfix;
51 @include padding-breakpoints($section-spacing, 'y');
52 }
53
54
46 /* Device widths 55 /* Device widths
47 ******************************************************************************/ 56 ******************************************************************************/
48 57
49 .phone-width { width: $phone-width; } 58 .phone-width { width: $phone-width; }
50 .phablet-width { width: $phablet-width; } 59 .phablet-width { width: $phablet-width; }
51 .tablet-width { width: $tablet-width; } 60 .tablet-width { width: $tablet-width; }
52 .desktop-width { width: $desktop-width; } 61 .desktop-width { width: $desktop-width; }
53 .large-desktop-width { width: $large-desktop-width; } 62 .large-desktop-width { width: $large-desktop-width; }
54 63
55 /* Clearfix 64 /* Clearfix
56 ******************************************************************************/ 65 ******************************************************************************/
57 66
58 .clearfix:after, 67 .clearfix:after,
59 .clearfix:before 68 .clearfix:before
60 { 69 {
61 display: table; 70 display: table;
62 content: " "; 71 content: " ";
63 } 72 }
64 73
65 .clearfix:after 74 .clearfix:after
66 { 75 {
67 clear: both; 76 clear: both;
68 } 77 }
OLDNEW
« no previous file with comments | « static/scss/_mixins.scss ('k') | static/scss/_variables.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld