From 20c6d6b6bb5961ab6bf2325009c953b793ad3d84 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Sat, 28 Oct 2017 15:53:13 +0300 Subject: [PATCH] [www] Person card optimized to mobile --- src/style/components/PersonCard.scss | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/style/components/PersonCard.scss b/src/style/components/PersonCard.scss index 4982794b..0dbbaa14 100644 --- a/src/style/components/PersonCard.scss +++ b/src/style/components/PersonCard.scss @@ -1,10 +1,14 @@ +@import "../variables"; + .PersonCard { + --person-card-width: 30%; + display: flex; flex-direction: column; margin: var(--single-margin) 0; - width: 30%; + width: var(--person-card-width); min-width: 15em; max-width: 30em; @@ -69,3 +73,11 @@ } } + +// Mobile + +@media (max-width: $mobile-width) { + .PersonCard { + --person-card-width: 100%; + } +}