Merge pull request #448 from Discours/hotfix/header-navigation-style
Header navigation style fixes
This commit is contained in:
commit
ecd038a306
|
@ -298,10 +298,6 @@
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
|
||||||
padding-left: divide($container-padding-x, 2);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include media-breakpoint-up(lg) {
|
@include media-breakpoint-up(lg) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -425,7 +421,7 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@include media-breakpoint-up(xl) {
|
@include media-breakpoint-up(xl) {
|
||||||
right: 9rem;
|
right: 1.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control {
|
.control {
|
||||||
|
@ -457,6 +453,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.articleControlsAuthorized {
|
||||||
|
right: 3.6rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
right: 9rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.userControl {
|
.userControl {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -484,7 +488,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.editorControl {
|
.editorControl {
|
||||||
border-radius: 1.2em;
|
border-radius: 2em;
|
||||||
|
font-size: 1.4rem !important;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--background-color-invert);
|
background: var(--background-color-invert);
|
||||||
|
|
|
@ -59,6 +59,7 @@ export const Header = (props: Props) => {
|
||||||
const [isTopicsVisible, setIsTopicsVisible] = createSignal(false)
|
const [isTopicsVisible, setIsTopicsVisible] = createSignal(false)
|
||||||
const [isZineVisible, setIsZineVisible] = createSignal(false)
|
const [isZineVisible, setIsZineVisible] = createSignal(false)
|
||||||
const [isFeedVisible, setIsFeedVisible] = createSignal(false)
|
const [isFeedVisible, setIsFeedVisible] = createSignal(false)
|
||||||
|
const { isAuthenticated } = useSession()
|
||||||
|
|
||||||
const toggleFixed = () => setFixed(!fixed())
|
const toggleFixed = () => setFixed(!fixed())
|
||||||
|
|
||||||
|
@ -330,7 +331,11 @@ export const Header = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
<HeaderAuth setIsProfilePopupVisible={setIsProfilePopupVisible} />
|
<HeaderAuth setIsProfilePopupVisible={setIsProfilePopupVisible} />
|
||||||
<Show when={props.title}>
|
<Show when={props.title}>
|
||||||
<div class={clsx(styles.articleControls, 'col-auto')}>
|
<div
|
||||||
|
class={clsx(styles.articleControls, 'col-auto', {
|
||||||
|
[styles.articleControlsAuthorized]: isAuthenticated(),
|
||||||
|
})}
|
||||||
|
>
|
||||||
<SharePopup
|
<SharePopup
|
||||||
title={props.title}
|
title={props.title}
|
||||||
imageUrl={props.cover}
|
imageUrl={props.cover}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user