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

Delta Between Two Patch Sets: static/scss/components/_groups.scss

Issue 29457564: Issue 4917 - Shrink space around accent section headings and content when section contains cards on… (Closed) Base URL: https://hg.adblockplus.org/web.acceptableads.com
Left Patch Set: Created June 6, 2017, 10:05 a.m.
Right Patch Set: Apply smaller padding to .group-container selector alone Created June 12, 2017, 8:46 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « static/css/main.css ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // This file is part of acceptableads.org. 1 // This file is part of acceptableads.org.
2 // Copyright (C) 2016 Eyeo GmbH 2 // Copyright (C) 2016 Eyeo GmbH
3 // 3 //
4 // acceptableads.org is free software: you can redistribute it and/or modify 4 // acceptableads.org is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by 5 // 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 // acceptableads.org is distributed in the hope that it will be useful, 9 // acceptableads.org 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 acceptableads.org. If not, see <http://www.gnu.org/licenses/>. 15 // along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>.
16 16
17 // display like a table (even grid) 17 // display like a table (even grid)
18 18
19 .group-container 19 .group-container
20 { 20 {
21 width: 100%; 21 width: 100%;
22 max-width: $max-width; 22 max-width: $max-width;
23 margin: 0 auto; 23 margin: 0 auto;
24 padding: $xl 0;
25 }
26
27 .bg-accent .group-container
juliandoucette 2017/06/08 21:28:54 I'm guessing you applied this to `.bg-accent .grou
ire 2017/06/12 08:39:21 It looks like the `.group-container` has, so-far,
28 {
29 padding: $md 0; 24 padding: $md 0;
30 } 25 }
31 26
32 .group-container > %headings, 27 .group-container > %headings,
33 .group-container > p 28 .group-container > p
34 { 29 {
35 margin: $xl auto; 30 margin: $md auto;
36 padding: 0 $sm; 31 padding: 0 $sm;
37 }
38
39 .bg-accent .group-container > %headings,
juliandoucette 2017/06/08 21:28:54 Note: I'd like to get away from using %headings be
ire 2017/06/12 08:39:21 I agree with you that this should be changed. But,
juliandoucette 2017/06/16 18:25:30 No objections. Please create the issue before mark
40 .bg-accent .group-container > p
41 {
42 margin: $md auto;
43 } 32 }
44 33
45 .group 34 .group
46 { 35 {
47 display: table; 36 display: table;
48 width: 100%; 37 width: 100%;
49 table-layout: fixed; 38 table-layout: fixed;
50 } 39 }
51 40
52 .group-container .group 41 .group-container .group
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 width: 100%; 274 width: 100%;
286 } 275 }
287 // un-center all cards 276 // un-center all cards
288 .group > div:nth-child(4), 277 .group > div:nth-child(4),
289 .group > div:nth-child(3), 278 .group > div:nth-child(3),
290 .group > div:nth-child(5) 279 .group > div:nth-child(5)
291 { 280 {
292 margin-left: 0; 281 margin-left: 0;
293 } 282 }
294 } 283 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld