From 85d7a585ccbb8b4e03cd704a15adadbde33488fc Mon Sep 17 00:00:00 2001 From: Valentyn Date: Mon, 9 Dec 2024 18:47:02 +0200 Subject: [PATCH] add size for reviews +

--- src/index.html | 129 +++++++++++++++++++++++------------------- src/styles/main.scss | 21 ++++++- src/styles/stars.scss | 13 ++--- 3 files changed, 98 insertions(+), 65 deletions(-) diff --git a/src/index.html b/src/index.html index 15f3035942..4287194bb8 100644 --- a/src/index.html +++ b/src/index.html @@ -143,15 +143,16 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

-
Price:
$2,199
@@ -180,13 +181,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -217,13 +220,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -254,13 +259,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -291,13 +298,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -328,13 +337,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -365,13 +376,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

@@ -402,13 +415,15 @@

Product code: 195434

-
-
-
-
-
-
-
Reviews: 5
+
+
+
+
+
+
+
+
+

Reviews: 5

diff --git a/src/styles/main.scss b/src/styles/main.scss index ad72410e6c..e8f8895c0d 100644 --- a/src/styles/main.scss +++ b/src/styles/main.scss @@ -37,7 +37,7 @@ main { } .card:hover .card__title { - color: #34568b; + color: var(--font-family); } .card__code { @@ -50,6 +50,25 @@ main { margin-left: 16px; } +.card__reviews { + display: flex; + justify-content: space-between; + margin-top: 16px; +} + +.card__reviews-text { + font-family: var(--font-family); + color: var(--main-accent); + text-align: right; + margin-top: 0; + margin-right: 16px; + font-size: 10px; + + font-weight: 400; + line-height: 140%; + margin-bottom: 26px; +} + .card__price { font-family: var(--font-family); display: flex; diff --git a/src/styles/stars.scss b/src/styles/stars.scss index b37dd4ce71..53876daedd 100644 --- a/src/styles/stars.scss +++ b/src/styles/stars.scss @@ -1,9 +1,7 @@ .stars { gap: 4px; - margin-top: 16px; display: flex; margin-left: 16px; - margin-bottom: 24px; &__star { background-image: url(/src/images/star.svg); @@ -13,15 +11,16 @@ height: 16px; } - &__reviews { + &__reviews-text { font-family: var(--font-family); - margin-left: 18px; + color: var(--main-accent); + text-align: right; + margin-top: 0; margin-right: 16px; - font-weight: 400; font-size: 10px; + margin-bottom: 0; + font-weight: 400; line-height: 140%; - color: var(--main-accent); - text-align: right; } }