diff --git a/components/card/style.module.css b/components/card/style.module.css index 668c0b3..d51d9d3 100644 --- a/components/card/style.module.css +++ b/components/card/style.module.css @@ -9,6 +9,22 @@ transition: all 0.3s cubic-bezier(.25,.8,.25,1); } +:global(.cardContainer) .card { + width: calc(100% / 3 - 10%); +} + +@media (max-width: 1000px) { + :global(.cardContainer) .card { + width: calc(100% / 2 - 10%); + } +} + +@media (max-width: 600px) { + :global(.cardContainer) .card{ + width: calc(100% / 1 - 10%); + } +} + .card:last-child { /* Fixes the odd flickering bug */ margin-bottom:0px; diff --git a/styles/layout.css b/styles/layout.css index b9ad903..5c7d128 100644 --- a/styles/layout.css +++ b/styles/layout.css @@ -69,7 +69,9 @@ main p.warning button.buttonLink { padding-right: 50px; max-width:2000px; - column-count: 3; + display: flex; + flex-direction: row; + flex-wrap: wrap; } button.buttonLink { @@ -97,16 +99,9 @@ button.buttonLink:focus { } } -@media (max-width: 1000px) { - .cardContainer { - column-count: 2; - } -} - @media (max-width: 600px) { .cardContainer { margin-top: 20px; - column-count: 1; } }