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

Unified Diff: static/scss/_utilities.scss

Issue 29590583: Noissue - Applied responsive margin & padding mixins (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Changed grid breakpoint and removed package-lock.json Created Oct. 27, 2017, 12:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/_utilities.scss
===================================================================
--- a/static/scss/_utilities.scss
+++ b/static/scss/_utilities.scss
@@ -34,20 +34,29 @@
* Center content within a (responsive) fixed width
*/
.container
{
width: $container-width;
max-width: 100%;
margin-right: auto;
margin-left: auto;
- padding-right: $small-space;
- padding-left: $small-space;
+ @include padding-breakpoints($container-spacing, 'x');
}
+/**
+ * Vertically separate sections of content
+ */
+.section
+{
+ @extend .clearfix;
+ @include padding-breakpoints($section-spacing, 'y');
+}
+
+
/* Device widths
******************************************************************************/
.phone-width { width: $phone-width; }
.phablet-width { width: $phablet-width; }
.tablet-width { width: $tablet-width; }
.desktop-width { width: $desktop-width; }
.large-desktop-width { width: $large-desktop-width; }

Powered by Google App Engine
This is Rietveld