Index: static/scss/components/_cards.scss |
=================================================================== |
--- a/static/scss/components/_cards.scss |
+++ b/static/scss/components/_cards.scss |
@@ -11,31 +11,46 @@ |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
// GNU General Public License for more details. |
// |
// You should have received a copy of the GNU General Public License |
// along with acceptableads.org. If not, see <http://www.gnu.org/licenses/>. |
// Cards |
+// 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
|
+$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.
|
+$card--header-height: 100px; |
+$card--content-height: 180px; |
+ |
.card |
{ |
padding: $md; |
color: $primary-fg; |
border: 1px solid $primary-fg; |
background-color: $primary-bg; |
} |
.card %headings |
{ |
@extend h3; |
height: $md + $sm; |
margin: $sm 0 $sm 0; |
} |
+.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
|
+{ |
+ height: auto; |
+ |
+ @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.
|
+ { |
+ height: 120px; |
+ } |
+} |
+ |
.card-icon |
{ |
margin: $sm 0; |
} |
.center .card-icon |
{ |
margin: $lg - $sm 0 $md 0; |
@@ -131,8 +146,18 @@ |
text-decoration: none; |
color: $primary-fg; |
} |
.card.list a%active |
{ |
color: $accent; |
} |
+ |
+@supports (display: grid) |
+{ |
+ |
+ .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
|
+ { |
+ display: inline-grid; |
+ } |
+ |
+} |