From d564973aa896cbbdd89e192fe7c076e2dd7ed6a8 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Tue, 4 Aug 2020 20:57:26 +0200 Subject: add masonry to cards --- src/styles/index.css | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/styles/index.css') diff --git a/src/styles/index.css b/src/styles/index.css index e91972e..818c734 100644 --- a/src/styles/index.css +++ b/src/styles/index.css @@ -1,17 +1,20 @@ img { -webkit-user-select: none; - -ms-user-select: none; user-select: none; } -#cards { - overflow-x: auto; - flex-wrap: unset; +.center { + position: absolute; + height: 50%; + width: 50%; + top: 50%; + left: 50%; + translate-top: -50%; + translate-left: -50%; + transform: translate(-50%, -50%); } + #cards .col { - width: 18rem; - max-width: 18rem; - min-width: 18rem; overflow-y: auto; } #cards .col .card .card-header img { -- cgit v1.3