Left: | ||
Right: |
LEFT | RIGHT |
---|---|
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; | 24 padding: $xl 0; |
25 | 25 |
26 @media screen and (max-width: $desktop-breakpoint) | 26 @media (max-width: $desktop-breakpoint) |
juliandoucette
2017/05/30 14:22:57
Note: There was an inconsistent border-left on car
ire
2017/05/30 17:44:59
Okay. Do I need to apply those changes here, or wi
juliandoucette
2017/06/07 18:05:28
You can just pull and rebase if there is a conflic
| |
27 { | 27 { |
28 padding: $xs; | 28 padding: $xs; |
29 } | 29 } |
30 } | 30 } |
31 | 31 |
32 .group-container > %headings, | 32 .group-container > %headings, |
33 .group-container > p | 33 .group-container > p |
34 { | 34 { |
35 margin: $xl auto; | 35 margin: $lg auto; |
36 padding: 0 $sm; | 36 padding: 0 $sm; |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 .group-container > p | 40 .group-container > p |
juliandoucette
2017/05/30 14:22:57
Looks good on mobile, but not on desktop. I think
ire
2017/05/30 17:44:58
Acknowledged.
| |
41 { | 41 { |
42 @media screen and (max-width: $desktop-breakpoint) | 42 @media (max-width: $desktop-breakpoint) |
43 { | 43 { |
44 margin: $md auto; | 44 margin: $md auto; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 | 48 |
49 | 49 |
50 .group | 50 .group |
51 { | 51 { |
52 display: table; | 52 display: table; |
53 width: 100%; | 53 width: 100%; |
54 table-layout: fixed; | 54 table-layout: fixed; |
55 } | 55 } |
56 | 56 |
57 .group-container .group | 57 .group-container .group |
58 { | 58 { |
59 margin-bottom: 0; | 59 margin-bottom: 0; |
60 } | 60 } |
61 | 61 |
62 .group-container > %headings | 62 .group-container > %headings |
63 { | 63 { |
64 margin-top: 0; | 64 margin-top: 0; |
65 | 65 |
66 @media screen and (max-width: $desktop-breakpoint) | 66 @media (max-width: $desktop-breakpoint) |
67 { | 67 { |
68 margin: $md auto; | 68 margin: $md auto; |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 .group .card, | 72 .group .card, |
73 .group .item | 73 .group .item |
74 { | 74 { |
75 display: table-cell; | 75 display: table-cell; |
76 vertical-align: top; | 76 vertical-align: top; |
77 } | 77 } |
78 | 78 |
79 .group.items .item::before | 79 .group.items .item::before |
80 { | 80 { |
81 margin-top: $sm; | 81 margin-top: $sm; |
82 @extend h3; | 82 @extend h3; |
83 text-align: center; | 83 text-align: center; |
84 width: 45px; | 84 width: 45px; |
85 } | 85 } |
86 | 86 |
87 // fix 1px border ltr and rtrl on desktop | 87 // fix 1px border ltr and rtrl on desktop |
88 | 88 |
89 html[dir="ltr"] .group .card + .card | 89 html[dir="ltr"] .group .card + .card |
90 { | 90 { |
91 border-left: 0; | 91 border-left: 0; |
92 } | 92 } |
93 | 93 |
94 @media(max-width: $tablet-breakpoint) | |
95 { | |
96 html[dir="ltr"] .group .card:first-child | |
97 { | |
98 border-left: 0; | |
99 } | |
100 } | |
101 | |
94 html[dir="rtl"] .group .card + .card | 102 html[dir="rtl"] .group .card + .card |
95 { | 103 { |
96 border-right: 0; | 104 border-right: 0; |
105 } | |
106 | |
107 @media(max-width: $tablet-breakpoint) | |
108 { | |
109 html[dir="rtl"] .group .card:last-child | |
110 { | |
111 border-right: 0; | |
112 } | |
97 } | 113 } |
98 | 114 |
99 // start a little lower than cards to add extra spacing on top and sides | 115 // start a little lower than cards to add extra spacing on top and sides |
100 .group.items .item | 116 .group.items .item |
101 { | 117 { |
102 position: relative; | 118 position: relative; |
103 margin-bottom: $md; | 119 margin-bottom: $md; |
104 padding: 0 $sm; | 120 padding: 0 $sm; |
105 } | 121 } |
106 | 122 |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
279 width: 100%; | 295 width: 100%; |
280 } | 296 } |
281 // un-center all cards | 297 // un-center all cards |
282 .group > div:nth-child(4), | 298 .group > div:nth-child(4), |
283 .group > div:nth-child(3), | 299 .group > div:nth-child(3), |
284 .group > div:nth-child(5) | 300 .group > div:nth-child(5) |
285 { | 301 { |
286 margin-left: 0; | 302 margin-left: 0; |
287 } | 303 } |
288 } | 304 } |
LEFT | RIGHT |