[www] article card style updated and optimized for tablet

This commit is contained in:
Roman Timashev committed 2017-10-28 19:24:19 +03:00
1 parent 1d1b19e2e9
commit dbcd89ac7f
1 file changed
+18 -4
+18 -4
View File
@@ -2,6 +2,7 @@
.ArticleCard {
--article-card-width: 30%;
--article-card-image-height: 15em;
--article-card-margin: var(--single-margin) var(--half-margin);
display: flex;
@@ -9,7 +10,7 @@
margin: var(--article-card-margin);
width: var(--article-card-width);
min-width: 15em;
min-width: 10em;
max-width: 30em;
border: 1px solid #ccc;
@@ -18,7 +19,7 @@
& > a {
display: block;
position: relative;
height: 100%;
// height: 100%;
}
}
@@ -26,11 +27,11 @@
border-radius: 2px 2px 0 0;
width: 100%;
height: 15em;
height: var(--article-card-image-height);
img {
width: 100%;
height: 15em;
height: var(--article-card-image-height);
object-fit: cover;
}
@@ -74,6 +75,19 @@
}
}
// Tablet
@media screen and (min-width: $tablet-min-width) and (max-width: $tablet-max-width) {
.ArticleCard {
--article-card-image-height: 12em;
}
@media screen and (orientation: portrait) {
}
}
// Mobile
@media (max-width: $mobile-width) {