Left: | ||
Right: |
OLD | NEW |
---|---|
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 // Cards | 17 // Cards |
18 | 18 |
19 // Variables | |
juliandoucette
2017/06/09 14:51:12
Why did you put these variables here and not in _v
ire
2017/06/12 14:28:53
This was actually an error. I put it here while I
| |
20 $card--max-width: 350px; | |
juliandoucette
2017/06/09 14:51:12
NIT: Please stay consistent with the variable nami
ire
2017/06/12 14:28:54
Acknowledged.
| |
21 $card--header-height: 100px; | |
22 $card--content-height: 180px; | |
23 | |
19 .card | 24 .card |
20 { | 25 { |
21 padding: $md; | 26 padding: $md; |
22 color: $primary-fg; | 27 color: $primary-fg; |
23 border: 1px solid $primary-fg; | 28 border: 1px solid $primary-fg; |
24 background-color: $primary-bg; | 29 background-color: $primary-bg; |
25 } | 30 } |
26 | 31 |
27 .card %headings | 32 .card %headings |
28 { | 33 { |
29 @extend h3; | 34 @extend h3; |
30 height: $md + $sm; | 35 height: $md + $sm; |
31 margin: $sm 0 $sm 0; | 36 margin: $sm 0 $sm 0; |
32 } | 37 } |
33 | 38 |
39 .card article h3 | |
juliandoucette
2017/06/09 14:51:12
Why only h3?
ire
2017/06/12 14:28:53
I was targeting a specific case, the committee pag
| |
40 { | |
41 height: auto; | |
42 | |
43 @media (min-width: 700px) | |
juliandoucette
2017/06/09 14:51:12
It seems like you are doing this to align the butt
ire
2017/06/12 14:28:53
Yes.
| |
44 { | |
45 height: 120px; | |
46 } | |
47 } | |
48 | |
34 .card-icon | 49 .card-icon |
35 { | 50 { |
36 margin: $sm 0; | 51 margin: $sm 0; |
37 } | 52 } |
38 | 53 |
39 .center .card-icon | 54 .center .card-icon |
40 { | 55 { |
41 margin: $lg - $sm 0 $md 0; | 56 margin: $lg - $sm 0 $md 0; |
42 } | 57 } |
43 | 58 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 .card.list a | 144 .card.list a |
130 { | 145 { |
131 text-decoration: none; | 146 text-decoration: none; |
132 color: $primary-fg; | 147 color: $primary-fg; |
133 } | 148 } |
134 | 149 |
135 .card.list a%active | 150 .card.list a%active |
136 { | 151 { |
137 color: $accent; | 152 color: $accent; |
138 } | 153 } |
154 | |
155 @supports (display: grid) | |
156 { | |
157 | |
158 .card | |
juliandoucette
2017/06/09 14:51:12
When does this apply? It seems to be overpowered b
ire
2017/06/12 14:28:53
You're right, my error again, sorry. This should b
| |
159 { | |
160 display: inline-grid; | |
161 } | |
162 | |
163 } | |
OLD | NEW |