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

Unified Diff: static/scss/components/_groups.scss

Issue 29438582: Issue 5135 - Reduce font size and padding on smaller screens on acceptableads.com (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Patch Set: Remove @media screen, Resize h2, Keep icon size Created May 31, 2017, 9:53 a.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 | « static/css/main.css ('k') | static/scss/content/_reset.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/components/_groups.scss
===================================================================
--- a/static/scss/components/_groups.scss
+++ b/static/scss/components/_groups.scss
@@ -17,40 +17,61 @@
// display like a table (even grid)
.group-container
{
width: 100%;
max-width: $max-width;
margin: 0 auto;
padding: $xl 0;
+
+ @media (max-width: $desktop-breakpoint)
+ {
+ padding: $xs;
+ }
}
.group-container > %headings,
.group-container > p
{
- margin: $xl auto;
+ margin: $lg auto;
padding: 0 $sm;
}
+
+.group-container > p
+{
+ @media (max-width: $desktop-breakpoint)
+ {
+ margin: $md auto;
+ }
+}
+
+
+
.group
{
display: table;
width: 100%;
table-layout: fixed;
}
.group-container .group
{
margin-bottom: 0;
}
.group-container > %headings
juliandoucette 2017/06/09 14:08:26 NIT: I don't like `margin-top: 0` here. It seems l
ire 2017/06/14 15:41:13 I'm not sure about this. The way I see it, all `.g
{
margin-top: 0;
+
+ @media (max-width: $desktop-breakpoint)
+ {
+ margin: $md auto;
+ }
}
.group .card,
.group .item
{
display: table-cell;
vertical-align: top;
}
« no previous file with comments | « static/css/main.css ('k') | static/scss/content/_reset.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld