From 31a345b182e842522ff854b26e5d808ce941cb44 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 28 Oct 2017 19:24:27 +0300 Subject: [PATCH] [www] person card style updated and optimized for tablet --- src/style/components/PersonCard.scss | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/style/components/PersonCard.scss b/src/style/components/PersonCard.scss index 0dbbaa14..e8e8ddb7 100644 --- a/src/style/components/PersonCard.scss +++ b/src/style/components/PersonCard.scss @@ -2,6 +2,7 @@ .PersonCard { --person-card-width: 30%; + --person-card-height: 24em; display: flex; flex-direction: column; @@ -9,7 +10,7 @@ margin: var(--single-margin) 0; width: var(--person-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: 3px; width: 100%; - height: 24em; + height: var(--person-card-height); img { width: 100%; - height: 24em; + height: var(--person-card-height); object-fit: cover; } @@ -55,6 +56,7 @@ bottom: 0; } + //Animation .PersonCard-Picture { @@ -74,6 +76,18 @@ } +// Tablet + +@media screen and (min-width: $tablet-min-width) and (max-width: $tablet-max-width) { + .PersonCard { + --person-card-height: 20em; + } + + @media screen and (orientation: portrait) { + } +} + + // Mobile @media (max-width: $mobile-width) {