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

Unified Diff: static/scss/_utilities.scss

Issue 29591555: Issue 5940 - Created default section styles (Closed) Base URL: https://hg.adblockplus.org/website-defaults
Patch Set: Created Oct. 29, 2017, 1:13 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/_utilities.scss
===================================================================
--- a/static/scss/_utilities.scss
+++ b/static/scss/_utilities.scss
@@ -38,16 +38,45 @@
width: $container-width;
max-width: 100%;
margin-right: auto;
margin-left: auto;
padding-right: $small-space;
padding-left: $small-space;
}
+/**
+ * Vertically space sections of content
+ */
+.section
ire 2017/10/30 08:07:20 TOL: I'm a bit hesitant about this because this is
juliandoucette 2017/10/30 12:16:46 Nah, I think I like your section more. I want to b
+{
+ @extend .clearfix;
+ margin-top: $small-space;
ire 2017/10/30 08:07:20 Using these variables has the same problem as usin
juliandoucette 2017/10/30 12:16:46 Agreed.
+ margin-bottom: $small-space;
+ padding-top: $small-space;
+ padding-bottom: $small-space;
+
+ @media(min-width: $tablet-breakpoint)
ire 2017/10/30 08:07:20 NIT: I think we should decide on if we put a space
juliandoucette 2017/10/30 12:16:46 Agreed.
+ {
+ padding-top: $medium-space;
+ padding-bottom: $medium-space;
+ padding-top: $medium-space;
+ padding-bottom: $medium-space;
+ }
+
+ @media(min-width: $desktop-breakpoint)
+ {
+ padding-top: $large-space;
+ padding-bottom: $large-space;
+ padding-top: $large-space;
+ padding-bottom: $large-space;
+ }
+}
+
+
/* 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; }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld