From 4ca01e5a027e44a3712c4c2b05bb98b2e5232875 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 1 Nov 2023 00:21:30 +0300 Subject: [PATCH] Header buttons style fixes --- src/components/Nav/Header/Header.module.scss | 27 +++++++++++- src/components/Nav/Header/Header.tsx | 5 +++ src/components/Nav/HeaderAuth.tsx | 43 ++++++++++++-------- 3 files changed, 55 insertions(+), 20 deletions(-) diff --git a/src/components/Nav/Header/Header.module.scss b/src/components/Nav/Header/Header.module.scss index 37a11d66..7f34ffc7 100644 --- a/src/components/Nav/Header/Header.module.scss +++ b/src/components/Nav/Header/Header.module.scss @@ -482,6 +482,28 @@ width: 100%; } } + + .editorControl { + border-radius: 1.2em; + + &:hover { + background: var(--background-color-invert); + } + } + + .settingsControl { + border-radius: 100%; + padding: 0.8rem !important; + min-width: 4rem !important; + + &:hover { + background: var(--background-color-invert); + + img { + filter: invert(1); + } + } + } } .userControlItem { @@ -620,13 +642,14 @@ } .textLabel { - background-color: var(--link-hover-background); color: var(--link-hover-color); } } a:hover { - // background-color: var(--link-hover-background) !important; + .textLabel { + background-color: var(--link-hover-background); + } } } diff --git a/src/components/Nav/Header/Header.tsx b/src/components/Nav/Header/Header.tsx index 7dbe5026..22179cee 100644 --- a/src/components/Nav/Header/Header.tsx +++ b/src/components/Nav/Header/Header.tsx @@ -24,6 +24,7 @@ import { apiClient } from '../../../utils/apiClient' import { RANDOM_TOPICS_COUNT } from '../../Views/Home' import { Link } from './Link' import { Subscribe } from '../../_shared/Subscribe' +import { SearchModal } from '../SearchModal/SearchModal' type Props = { title?: string @@ -183,6 +184,10 @@ export const Header = (props: Props) => { + + + +