From 186912e2e858ae7798bfb740240dfee2743520c2 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Tue, 23 May 2023 01:01:04 +0300 Subject: [PATCH] View switcher unification --- src/components/Article/Article.module.scss | 8 +- src/components/Article/CommentsTree.tsx | 15 ++- src/components/Author/Full.scss | 2 - src/components/Nav/Header.module.scss | 28 ++---- src/components/Nav/Header.tsx | 7 +- src/components/Views/AllAuthors.tsx | 10 +- src/components/Views/AllTopics.tsx | 8 +- src/components/Views/Author/Author.tsx | 10 +- src/components/Views/Feed.module.scss | 4 + src/components/Views/Feed.tsx | 5 +- src/components/Views/FeedSettings.tsx | 2 +- src/components/Views/Search.tsx | 4 +- src/components/Views/Topic.tsx | 12 ++- .../_shared/Button/Button.module.scss | 5 + src/components/_shared/Button/Button.tsx | 2 +- src/pages/layoutShouts.page.tsx | 8 +- src/styles/AllTopics.module.scss | 5 +- src/styles/Feed.scss | 93 ------------------- src/styles/app.scss | 46 +++++---- 19 files changed, 86 insertions(+), 188 deletions(-) delete mode 100644 src/styles/Feed.scss diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index f1fca832..e7a90172 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -1,6 +1,5 @@ h1 { @include font-size(4rem); - line-height: 1.1; margin-top: 0.5em; } @@ -334,12 +333,7 @@ img { } .commentsViewSwitcher { - margin-top: 0; -} - -.commentsViewSwitcherButton { - padding-left: 0 !important; - padding-right: 0 !important; + margin-top: 0 !important; } .help { diff --git a/src/components/Article/CommentsTree.tsx b/src/components/Article/CommentsTree.tsx index 119d7a04..05ce0e97 100644 --- a/src/components/Article/CommentsTree.tsx +++ b/src/components/Article/CommentsTree.tsx @@ -115,35 +115,32 @@ export const CommentsTree = (props: Props) => { 0}> diff --git a/src/components/Author/Full.scss b/src/components/Author/Full.scss index 64ed0e27..d4a8c16c 100644 --- a/src/components/Author/Full.scss +++ b/src/components/Author/Full.scss @@ -16,8 +16,6 @@ .author-page { .view-switcher { - @include font-size(1.5rem); - margin-top: 0; button { diff --git a/src/components/Nav/Header.module.scss b/src/components/Nav/Header.module.scss index f9e9bb83..21e337e1 100644 --- a/src/components/Nav/Header.module.scss +++ b/src/components/Nav/Header.module.scss @@ -158,14 +158,14 @@ } .mainNavigation { - display: inline-flex; - font-weight: 500; - list-style: none; - margin: 0; + margin: 0 !important; opacity: 1; - padding: 0; transition: opacity 0.3s; + li { + margin-bottom: 0 !important; + } + @include media-breakpoint-down(md) { background: #fff; bottom: 0; @@ -180,7 +180,7 @@ z-index: 1; li { - margin-bottom: 2.4rem; + margin-bottom: 2.4rem !important; } } @@ -195,22 +195,6 @@ display: block !important; } } - - li { - margin-right: 2.4rem; - } - - a, - a:link { - border: none; - } - - .selected a { - border-bottom: 2px solid; - color: #000; - cursor: default; - pointer-events: none; - } } .headerWithTitle.headerScrolledBottom { diff --git a/src/components/Nav/Header.tsx b/src/components/Nav/Header.tsx index 87de7880..4f52d735 100644 --- a/src/components/Nav/Header.tsx +++ b/src/components/Nav/Header.tsx @@ -111,13 +111,10 @@ export const Header = (props: Props) => {
{props.title}
-