From 63da7791305603c08ed13ff6d2a99cf37f41d01d Mon Sep 17 00:00:00 2001 From: Julie Date: Sat, 21 Dec 2024 21:34:51 +0200 Subject: [PATCH] Added a for cards and German's comments --- 04-lection2/01-histogram/histogram.css | 2 ++ components/card/card.css | 16 +++-------- index.html | 39 +++++++++++++------------- 3 files changed, 25 insertions(+), 32 deletions(-) diff --git a/04-lection2/01-histogram/histogram.css b/04-lection2/01-histogram/histogram.css index 4b51585..2d76fc2 100644 --- a/04-lection2/01-histogram/histogram.css +++ b/04-lection2/01-histogram/histogram.css @@ -25,12 +25,14 @@ opacity: 0.8; line-height: 1.5; padding-bottom: 6px; + color: var(--black); } .histogram__value { font-family: 'Inter', sans-serif; font-size: 20px; line-height: 1.3; + color: var(--black); } .histogram__link { diff --git a/components/card/card.css b/components/card/card.css index 3c9ffba..b3d7dd6 100644 --- a/components/card/card.css +++ b/components/card/card.css @@ -6,12 +6,9 @@ background-color: var(--white); border-radius: 12px; box-shadow: 0px 2px 4px 0px rgba(33, 36, 41, 0.05); - flex: 1 1 calc(33.333% - 30px); - /* min-width: 350px; */ - width: auto; + min-width: 350px; min-height: 367px; - height: auto; - pointer-events: none; + text-decoration: none; } .card__preview { @@ -21,6 +18,7 @@ align-items: center; width: 100%; flex-grow: 1; + pointer-events: none; } .card__title { @@ -37,13 +35,7 @@ @media screen and (max-width: 1024px) { .card { - flex: 1 1 calc(50% - 20px); - } -} - -@media screen and (max-width: 768px) { - .card { - flex: 1 1 calc(100% - 10px); + flex: 1 1 50%; } } diff --git a/index.html b/index.html index d49f278..faa965a 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@

Reusable component library