Header buttons style fixes
This commit is contained in:
parent
d64449fb33
commit
4ca01e5a02
|
@ -482,6 +482,28 @@
|
||||||
width: 100%;
|
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 {
|
.userControlItem {
|
||||||
|
@ -620,13 +642,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.textLabel {
|
.textLabel {
|
||||||
background-color: var(--link-hover-background);
|
|
||||||
color: var(--link-hover-color);
|
color: var(--link-hover-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
// background-color: var(--link-hover-background) !important;
|
.textLabel {
|
||||||
|
background-color: var(--link-hover-background);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,7 @@ import { apiClient } from '../../../utils/apiClient'
|
||||||
import { RANDOM_TOPICS_COUNT } from '../../Views/Home'
|
import { RANDOM_TOPICS_COUNT } from '../../Views/Home'
|
||||||
import { Link } from './Link'
|
import { Link } from './Link'
|
||||||
import { Subscribe } from '../../_shared/Subscribe'
|
import { Subscribe } from '../../_shared/Subscribe'
|
||||||
|
import { SearchModal } from '../SearchModal/SearchModal'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
title?: string
|
title?: string
|
||||||
|
@ -183,6 +184,10 @@ export const Header = (props: Props) => {
|
||||||
<ConfirmModal />
|
<ConfirmModal />
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
||||||
|
<Modal variant="wide" name="search">
|
||||||
|
<SearchModal />
|
||||||
|
</Modal>
|
||||||
|
|
||||||
<div class={clsx(styles.mainHeaderInner, 'wide-container')}>
|
<div class={clsx(styles.mainHeaderInner, 'wide-container')}>
|
||||||
<nav class={clsx('row', styles.headerInner, { ['fixed']: fixed() })}>
|
<nav class={clsx('row', styles.headerInner, { ['fixed']: fixed() })}>
|
||||||
<div class={clsx(styles.burgerContainer, 'col-auto')}>
|
<div class={clsx(styles.burgerContainer, 'col-auto')}>
|
||||||
|
|
|
@ -86,8 +86,9 @@ export const HeaderAuth = (props: Props) => {
|
||||||
fallback={
|
fallback={
|
||||||
<Button
|
<Button
|
||||||
value={<span class={styles.textLabel}>{buttonProps.value}</span>}
|
value={<span class={styles.textLabel}>{buttonProps.value}</span>}
|
||||||
variant={'outline'}
|
variant={'light'}
|
||||||
onClick={buttonProps.action}
|
onClick={buttonProps.action}
|
||||||
|
class={styles.editorControl}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
@ -95,9 +96,10 @@ export const HeaderAuth = (props: Props) => {
|
||||||
{(ref) => (
|
{(ref) => (
|
||||||
<Button
|
<Button
|
||||||
ref={ref}
|
ref={ref}
|
||||||
variant={'outline'}
|
variant={'light'}
|
||||||
onClick={buttonProps.action}
|
onClick={buttonProps.action}
|
||||||
value={<Icon name={buttonProps.icon} class={styles.icon} />}
|
value={<Icon name={buttonProps.icon} class={styles.icon} />}
|
||||||
|
class={styles.editorControl}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Popover>
|
</Popover>
|
||||||
|
@ -120,12 +122,14 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
|
<Show when={!isSaveButtonVisible()}>
|
||||||
<div class={styles.userControlItem}>
|
<div class={styles.userControlItem}>
|
||||||
<a href="#">
|
<a href="#">
|
||||||
<Icon name="search" class={styles.icon} />
|
<Icon name="search" class={styles.icon} />
|
||||||
<Icon name="search" class={clsx(styles.icon, styles.iconHover)} />
|
<Icon name="search" class={clsx(styles.icon, styles.iconHover)} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</Show>
|
||||||
|
|
||||||
<Show when={isNotificationsVisible()}>
|
<Show when={isNotificationsVisible()}>
|
||||||
<div class={styles.userControlItem} onClick={handleBellIconClick}>
|
<div class={styles.userControlItem} onClick={handleBellIconClick}>
|
||||||
|
@ -172,8 +176,9 @@ export const HeaderAuth = (props: Props) => {
|
||||||
<Button
|
<Button
|
||||||
ref={ref}
|
ref={ref}
|
||||||
value={<Icon name="burger" />}
|
value={<Icon name="burger" />}
|
||||||
variant={'outline'}
|
variant={'light'}
|
||||||
onClick={handleBurgerButtonClick}
|
onClick={handleBurgerButtonClick}
|
||||||
|
class={styles.settingsControl}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Popover>
|
</Popover>
|
||||||
|
@ -191,6 +196,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
<Show when={!isSaveButtonVisible()}>
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemInbox)}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemInbox)}>
|
||||||
<a href="/inbox">
|
<a href="/inbox">
|
||||||
{/*FIXME: replace with route*/}
|
{/*FIXME: replace with route*/}
|
||||||
|
@ -200,6 +206,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
</Show>
|
||||||
<ProfilePopup
|
<ProfilePopup
|
||||||
onVisibilityChange={(isVisible) => {
|
onVisibilityChange={(isVisible) => {
|
||||||
props.setIsProfilePopupVisible(isVisible)
|
props.setIsProfilePopupVisible(isVisible)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user