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

Delta Between Two Patch Sets: static/scss/components/_cards.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
Left Patch Set: Created May 16, 2017, 4:26 a.m.
Right Patch Set: Fix alignment of hr under headings Created July 6, 2017, 10:25 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
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
(...skipping 11 matching lines...) Expand all
22 color: $primary-fg; 22 color: $primary-fg;
23 border: 1px solid $primary-fg; 23 border: 1px solid $primary-fg;
24 background-color: $primary-bg; 24 background-color: $primary-bg;
25 } 25 }
26 26
27 .card %headings 27 .card %headings
28 { 28 {
29 @extend h3; 29 @extend h3;
30 height: $md + $sm; 30 height: $md + $sm;
31 margin: $sm 0 $sm 0; 31 margin: $sm 0 $sm 0;
32
33 @media (max-width: $mobile-breakpoint)
34 {
35 height: auto;
36 }
32 } 37 }
33 38
34 .card-icon 39 .card-icon
35 { 40 {
36 margin: $sm 0; 41 margin: $sm 0;
37 } 42 }
38 43
39 .center .card-icon 44 .center .card-icon
40 { 45 {
41 margin: $lg - $sm 0 $md 0; 46 margin: $lg - $sm 0 $md 0;
juliandoucette 2017/05/16 19:07:34 Awesome! (NIT: No extra line breaks please.)
ire 2017/05/16 21:32:28 ACK
42 47
48 @media (max-width: $tablet-breakpoint)
49 {
50 margin-top: $md;
51 }
52 @media (max-width: $mobile-breakpoint)
53 {
54 margin-top: $sm;
55 }
43 } 56 }
44 57
45 img.card-icon, 58 img.card-icon,
juliandoucette 2017/05/30 14:22:56 I don't think that these icons are too big on mobi
ire 2017/05/30 17:44:58 Acknowledged.
46 .card-icon img 59 .card-icon img
47 { 60 {
48 height: 48px; 61 height: 48px;
49
50 @media screen and (max-width: $tablet-breakpoint)
juliandoucette 2017/05/16 19:07:34 We have been restricting each file to one media qu
juliandoucette 2017/05/16 19:07:34 Why screen? This would be useful for print too?
ire 2017/05/16 21:32:27 Thanks! Yes I will.
ire 2017/05/16 21:32:28 Kind of a habit to write screen for most cases. Yo
juliandoucette 2017/05/17 13:09:11 Cool :) Can you [explain in markdown, upload expl
ire 2017/05/18 00:27:14 Sure. Do you mean as a separate codereview (i.e. a
51 {
52 height: 30px;
53 margin: $xs 0;
54 }
55 } 62 }
56 63
57 .card img.block 64 .card img.block
58 { 65 {
59 margin: 0; 66 margin: 0;
60 } 67 }
61 68
62 .card-summary { 69 .card-summary {
63 margin: $md 0; 70 margin: $md 0;
64 height: $lg; 71 height: $lg;
72
73 @media (max-width: $mobile-breakpoint)
74 {
75 margin: $sm;
76 height: auto;
77 }
65 } 78 }
66 79
67 // negative margin shrinks containing paragraph margin 80 // negative margin shrinks containing paragraph margin
68 .card %buttons 81 .card %buttons
69 { 82 {
70 display: block; 83 display: block;
71 width: 100%; 84 width: 100%;
72 margin-bottom: -$xs; 85 margin-bottom: -$xs;
73 } 86 }
74 87
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 .card.list a 149 .card.list a
137 { 150 {
138 text-decoration: none; 151 text-decoration: none;
139 color: $primary-fg; 152 color: $primary-fg;
140 } 153 }
141 154
142 .card.list a%active 155 .card.list a%active
143 { 156 {
144 color: $accent; 157 color: $accent;
145 } 158 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld