From b11b586fdd1981471d350dba7a0fd15c9d2e95be Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 19 Jul 2023 00:50:27 +0300 Subject: [PATCH] Style fixes --- src/components/Author/AuthorCard.module.scss | 1 + src/components/Feed/Beside.tsx | 2 +- src/components/Nav/Header.module.scss | 20 +++++++++++++++- src/components/Nav/HeaderAuth.tsx | 1 + src/components/Topic/Card.module.scss | 7 +++--- src/components/Views/AllTopics.tsx | 24 +++++++++---------- .../_shared/SearchField.module.scss | 1 - src/components/_shared/Stat.module.scss | 2 -- .../VideoPlayer/VideoPlayer.module.scss | 8 +++---- src/styles/AllTopics.module.scss | 8 ++++--- 10 files changed, 46 insertions(+), 28 deletions(-) diff --git a/src/components/Author/AuthorCard.module.scss b/src/components/Author/AuthorCard.module.scss index 96914a9e..9c76680e 100644 --- a/src/components/Author/AuthorCard.module.scss +++ b/src/components/Author/AuthorCard.module.scss @@ -295,6 +295,7 @@ } .button { + min-height: 4rem; margin: 0 0.8rem; vertical-align: middle; diff --git a/src/components/Feed/Beside.tsx b/src/components/Feed/Beside.tsx index 60d0e918..04ff6413 100644 --- a/src/components/Feed/Beside.tsx +++ b/src/components/Feed/Beside.tsx @@ -102,7 +102,7 @@ export const Beside = (props: BesideProps) => { -
+ } diff --git a/src/components/Topic/Card.module.scss b/src/components/Topic/Card.module.scss index c043f0c5..2dee7902 100644 --- a/src/components/Topic/Card.module.scss +++ b/src/components/Topic/Card.module.scss @@ -1,6 +1,4 @@ .topicContainer { - border-bottom: 1px solid #e1e1e1; - li:last-child & { border: none; } @@ -35,10 +33,13 @@ .topicTitle { @include font-size(2.2rem); - font-weight: bold; margin-bottom: 1.2rem; margin-top: 0.5rem !important; + + a { + border: none; + } } .topicAvatar { diff --git a/src/components/Views/AllTopics.tsx b/src/components/Views/AllTopics.tsx index adc40c00..32c2181a 100644 --- a/src/components/Views/AllTopics.tsx +++ b/src/components/Views/AllTopics.tsx @@ -154,19 +154,17 @@ export const AllTopicsView = (props: AllTopicsViewProps) => { {(letter) => (

{letter}

-
-
-
-
- - {(topic) => ( -
- {topic.title} - {topic.stat.shouts} -
- )} -
-
+
+
+
+ + {(topic) => ( +
+ {topic.title} + {topic.stat.shouts} +
+ )} +
diff --git a/src/components/_shared/SearchField.module.scss b/src/components/_shared/SearchField.module.scss index 7aafb0fd..87fc6c72 100644 --- a/src/components/_shared/SearchField.module.scss +++ b/src/components/_shared/SearchField.module.scss @@ -4,7 +4,6 @@ input { border: none; - border-bottom: 1px solid #ccc; box-shadow: 0 0 0 #ccc; font-family: inherit; font-size: inherit; diff --git a/src/components/_shared/Stat.module.scss b/src/components/_shared/Stat.module.scss index 0dd60f67..e40f76b5 100644 --- a/src/components/_shared/Stat.module.scss +++ b/src/components/_shared/Stat.module.scss @@ -1,6 +1,5 @@ .statMetrics { @include font-size(1.7rem); - color: #9fa1a7; display: flex; margin: 0 0 1em; @@ -16,7 +15,6 @@ .statMetricsItem { @include font-size(1.5rem); - margin-right: 1.6rem; white-space: nowrap; diff --git a/src/components/_shared/VideoPlayer/VideoPlayer.module.scss b/src/components/_shared/VideoPlayer/VideoPlayer.module.scss index 128e8abb..88a5028f 100644 --- a/src/components/_shared/VideoPlayer/VideoPlayer.module.scss +++ b/src/components/_shared/VideoPlayer/VideoPlayer.module.scss @@ -6,6 +6,10 @@ margin: 1rem 0; position: relative; + @include media-breakpoint-up(md) { + margin: 1rem -16.6666% 2rem -25%; + } + .controls { display: flex; flex-direction: row; @@ -28,10 +32,6 @@ width: 100%; aspect-ratio: 16/9; - @include media-breakpoint-up(md) { - margin: 0 0 1em -16.6666%; - } - iframe { height: 100%; width: 100%; diff --git a/src/styles/AllTopics.module.scss b/src/styles/AllTopics.module.scss index 2ebbc5b9..a7db2f74 100644 --- a/src/styles/AllTopics.module.scss +++ b/src/styles/AllTopics.module.scss @@ -52,7 +52,6 @@ .alphabet { @include font-size(1.5rem); - color: rgba(0 0 0 / 20%); display: flex; flex-wrap: wrap; @@ -62,13 +61,16 @@ li { min-width: 1.5em; margin-right: 3%; - color: gray; + color: rgb(0 0 0 / 30%); + } + + a { + border: none; } } .articlesCounter { @include font-size(1.2rem); - margin-left: 0.5em; vertical-align: super; }