parent
c3495ed0b3
commit
6851c3af6a
|
@ -83,6 +83,7 @@
|
||||||
"Coming soon": "Coming soon",
|
"Coming soon": "Coming soon",
|
||||||
"Comment successfully deleted": "Comment successfully deleted",
|
"Comment successfully deleted": "Comment successfully deleted",
|
||||||
"Commentator": "Commentator",
|
"Commentator": "Commentator",
|
||||||
|
"Commenting": "Commenting",
|
||||||
"Comments": "Comments",
|
"Comments": "Comments",
|
||||||
"CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}",
|
"CommentsWithCount": "{count, plural, =0 {{count} comments} one {{count} comment} few {{count} comments} other {{count} comments}}",
|
||||||
"Communities": "Communities",
|
"Communities": "Communities",
|
||||||
|
|
|
@ -87,6 +87,7 @@
|
||||||
"Comment successfully deleted": "Комментарий успешно удален",
|
"Comment successfully deleted": "Комментарий успешно удален",
|
||||||
"Comment": "Комментировать",
|
"Comment": "Комментировать",
|
||||||
"Commentator": "Комментатор",
|
"Commentator": "Комментатор",
|
||||||
|
"Commenting": "Комментирование",
|
||||||
"Comments": "Комментарии",
|
"Comments": "Комментарии",
|
||||||
"CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}",
|
"CommentsWithCount": "{count, plural, =0 {{count} комментариев} one {{count} комментарий} few {{count} комментария} other {{count} комментариев}}",
|
||||||
"Communities": "Сообщества",
|
"Communities": "Сообщества",
|
||||||
|
|
|
@ -114,6 +114,11 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.control {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mainNavigationWrapper {
|
.mainNavigationWrapper {
|
||||||
|
@ -192,15 +197,8 @@
|
||||||
padding: divide($container-padding-x, 2) !important;
|
padding: divide($container-padding-x, 2) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
|
||||||
span,
|
|
||||||
button {
|
|
||||||
padding: 0 0.4rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.view-switcher) {
|
:global(.view-switcher) {
|
||||||
margin: 0 -0.5rem;
|
margin: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -299,9 +297,6 @@
|
||||||
.burgerContainer {
|
.burgerContainer {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
padding-left: 0;
|
|
||||||
|
|
||||||
// float: right;
|
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
@include media-breakpoint-up(sm) {
|
||||||
padding-left: divide($container-padding-x, 2);
|
padding-left: divide($container-padding-x, 2);
|
||||||
|
@ -430,12 +425,15 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
@include media-breakpoint-up(xl) {
|
@include media-breakpoint-up(xl) {
|
||||||
right: 2rem;
|
right: 9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.control {
|
.control {
|
||||||
cursor: pointer;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
height: 3.2rem;
|
||||||
|
margin: 0 0.6rem;
|
||||||
|
width: 3.2rem;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: none;
|
background: none;
|
||||||
|
@ -451,11 +449,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.control + .control {
|
.control + .control {
|
||||||
margin-left: 1.2rem;
|
margin: 0 0.6rem;
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
|
||||||
margin-left: 2rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
|
@ -497,10 +491,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.settingsControlContainer {
|
||||||
|
margin-left: 1rem !important;
|
||||||
|
margin-right: 2rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
.settingsControl {
|
.settingsControl {
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
padding: 0.8rem !important;
|
|
||||||
min-width: 4rem !important;
|
min-width: 4rem !important;
|
||||||
|
padding: 0.8rem !important;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--background-color-invert);
|
background: var(--background-color-invert);
|
||||||
|
@ -516,12 +515,18 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 2.4em;
|
height: 2.8rem;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-left: 0.3rem;
|
margin: 0 0.4rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: margin-left 0.3s;
|
transition: margin-left 0.3s;
|
||||||
width: 2.4em;
|
width: 2.8rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
height: 3.2rem;
|
||||||
|
margin: 0 0.7rem;
|
||||||
|
width: 3.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
margin-left: 0.4rem !important;
|
margin-left: 0.4rem !important;
|
||||||
|
@ -543,12 +548,13 @@
|
||||||
a:link {
|
a:link {
|
||||||
border: none;
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
height: auto;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: none !important;
|
background: none;
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -571,6 +577,20 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.userControlItemSearch {
|
||||||
|
margin: 0 1rem 0 2.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.userControlItemUserpic {
|
||||||
|
height: 3.2rem;
|
||||||
|
width: 3.2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
height: 4rem;
|
||||||
|
width: 4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.userControlItemInbox,
|
.userControlItemInbox,
|
||||||
.userControlItemSearch {
|
.userControlItemSearch {
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
|
@ -579,7 +599,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.userControlItemVerbose {
|
.userControlItemVerbose {
|
||||||
margin-left: 0.9em !important;
|
align-items: stretch;
|
||||||
|
display: flex;
|
||||||
|
height: 3.2rem;
|
||||||
|
margin-left: 1rem !important;
|
||||||
|
width: 3.2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
height: 4rem;
|
||||||
|
width: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
&:first-child {
|
&:first-child {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
|
@ -590,6 +619,7 @@
|
||||||
|
|
||||||
@include media-breakpoint-up(xl) {
|
@include media-breakpoint-up(xl) {
|
||||||
background: none;
|
background: none;
|
||||||
|
margin-left: 0.8rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
|
@ -611,10 +641,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(xl) {
|
@include media-breakpoint-up(xl) {
|
||||||
margin-left: 0.5em !important;
|
margin-left: 3rem !important;
|
||||||
margin-right: 0.5em;
|
margin-right: 0;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
@ -629,16 +663,27 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a:link,
|
||||||
|
a:visited,
|
||||||
button {
|
button {
|
||||||
margin: 0 !important;
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(xl) {
|
||||||
|
border-radius: 2rem;
|
||||||
|
box-shadow: inset 0 0 0 2px #000;
|
||||||
|
padding: 0 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
a::before {
|
&:hover {
|
||||||
display: none;
|
background-color: var(--link-hover-background);
|
||||||
|
|
||||||
|
&,
|
||||||
|
.textLabel {
|
||||||
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
|
||||||
button:hover {
|
|
||||||
.icon {
|
.icon {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -646,16 +691,15 @@
|
||||||
.iconHover {
|
.iconHover {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.textLabel {
|
|
||||||
color: var(--link-hover-color);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
button {
|
||||||
.textLabel {
|
margin: 0 !important;
|
||||||
background-color: var(--link-hover-background);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a::before {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -746,3 +790,65 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0.15em;
|
top: 0.15em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.editorPopup {
|
||||||
|
border: 1px solid rgb(0 0 0 / 15%) !important;
|
||||||
|
border-radius: 1.6rem;
|
||||||
|
line-height: 1.3;
|
||||||
|
min-width: 28rem;
|
||||||
|
padding: 1.6rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModePopupOpener {
|
||||||
|
display: inline-block;
|
||||||
|
margin-right: 2rem;
|
||||||
|
position: relative;
|
||||||
|
text-align: right;
|
||||||
|
width: 9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModePopupOpenerIcon {
|
||||||
|
height: 2rem;
|
||||||
|
left: 100%;
|
||||||
|
margin-left: 0.2em;
|
||||||
|
top: 0;
|
||||||
|
transform: rotate(90deg);
|
||||||
|
position: absolute;
|
||||||
|
width: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModesList {
|
||||||
|
li {
|
||||||
|
cursor: pointer;
|
||||||
|
margin-bottom: 1.6rem;
|
||||||
|
padding-left: 3rem !important;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModesSelected {
|
||||||
|
cursor: default;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModeTitle {
|
||||||
|
color: #000;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModeDescription {
|
||||||
|
color: #696969;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.editorModeIcon {
|
||||||
|
height: 2.4rem;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
top: -0.2em;
|
||||||
|
width: 2.4rem;
|
||||||
|
}
|
||||||
|
|
|
@ -17,6 +17,8 @@ import { ShowOnlyOnClient } from '../_shared/ShowOnlyOnClient'
|
||||||
import { ProfilePopup } from './ProfilePopup'
|
import { ProfilePopup } from './ProfilePopup'
|
||||||
|
|
||||||
import { useSnackbar } from '../../context/snackbar'
|
import { useSnackbar } from '../../context/snackbar'
|
||||||
|
import { Popup } from '../_shared/Popup'
|
||||||
|
import { VotersList } from '../_shared/VotersList'
|
||||||
import styles from './Header/Header.module.scss'
|
import styles from './Header/Header.module.scss'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -51,7 +53,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
const isEditorPage = createMemo(() => page().route === 'edit' || page().route === 'editSettings')
|
const isEditorPage = createMemo(() => page().route === 'edit' || page().route === 'editSettings')
|
||||||
const isNotificationsVisible = createMemo(() => isAuthenticated() && !isEditorPage())
|
const isNotificationsVisible = createMemo(() => isAuthenticated() && !isEditorPage())
|
||||||
const isSaveButtonVisible = createMemo(() => isAuthenticated() && isEditorPage())
|
const isSaveButtonVisible = createMemo(() => isAuthenticated() && isEditorPage())
|
||||||
const isCreatePostButtonVisible = createMemo(() => isAuthenticated() && !isEditorPage())
|
const isCreatePostButtonVisible = createMemo(() => !isEditorPage())
|
||||||
const isAuthenticatedControlsVisible = createMemo(
|
const isAuthenticatedControlsVisible = createMemo(
|
||||||
() => isAuthenticated() && session()?.user?.email_verified,
|
() => isAuthenticated() && session()?.user?.email_verified,
|
||||||
)
|
)
|
||||||
|
@ -65,6 +67,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const [width, setWidth] = createSignal(0)
|
const [width, setWidth] = createSignal(0)
|
||||||
|
const [editorMode, setEditorMode] = createSignal(t('Editing'))
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
const handleResize = () => setWidth(window.innerWidth)
|
const handleResize = () => setWidth(window.innerWidth)
|
||||||
|
@ -106,7 +109,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
<Show when={isSessionLoaded()} keyed={true}>
|
<Show when={isSessionLoaded()} keyed={true}>
|
||||||
<div class={clsx('col-auto col-lg-7', styles.usernav)}>
|
<div class={clsx('col-auto col-lg-7', styles.usernav)}>
|
||||||
<div class={styles.userControl}>
|
<div class={styles.userControl}>
|
||||||
<Show when={isCreatePostButtonVisible()}>
|
<Show when={isCreatePostButtonVisible() && isAuthenticated()}>
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
||||||
<a href={getPagePath(router, 'create')}>
|
<a href={getPagePath(router, 'create')}>
|
||||||
<span class={styles.textLabel}>{t('Create post')}</span>
|
<span class={styles.textLabel}>{t('Create post')}</span>
|
||||||
|
@ -117,7 +120,7 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={!isSaveButtonVisible()}>
|
<Show when={!isSaveButtonVisible()}>
|
||||||
<div class={styles.userControlItem}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemSearch)}>
|
||||||
<a href="?m=search">
|
<a href="?m=search">
|
||||||
<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)} />
|
||||||
|
@ -143,13 +146,47 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<Show when={isSaveButtonVisible()}>
|
<Show when={isSaveButtonVisible()}>
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
<Popup
|
||||||
{renderIconedButton({
|
trigger={
|
||||||
value: t('Save'),
|
<span class={styles.editorModePopupOpener}>
|
||||||
icon: 'save',
|
<Icon name="swiper-r-arr" class={styles.editorModePopupOpenerIcon} />
|
||||||
action: handleSaveButtonClick,
|
{editorMode()}
|
||||||
})}
|
</span>
|
||||||
|
}
|
||||||
|
variant="bordered"
|
||||||
|
popupCssClass={styles.editorPopup}
|
||||||
|
>
|
||||||
|
<ul class={clsx('nodash', styles.editorModesList)}>
|
||||||
|
<li
|
||||||
|
class={clsx({ [styles.editorModesSelected]: editorMode() === t('Preview') })}
|
||||||
|
onClick={() => setEditorMode(t('Preview'))}
|
||||||
|
>
|
||||||
|
<Icon name="eye" class={styles.editorModeIcon} />
|
||||||
|
<div class={styles.editorModeTitle}>{t('Preview')}</div>
|
||||||
|
<div class={styles.editorModeDescription}>
|
||||||
|
Посмотрите, как материал будет выглядеть при публикации
|
||||||
</div>
|
</div>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class={clsx({ [styles.editorModesSelected]: editorMode() === t('Editing') })}
|
||||||
|
onClick={() => setEditorMode(t('Editing'))}
|
||||||
|
>
|
||||||
|
<Icon name="pencil-outline" class={styles.editorModeIcon} />
|
||||||
|
<div class={styles.editorModeTitle}>{t('Editing')}</div>
|
||||||
|
<div class={styles.editorModeDescription}>Изменяйте текст напрямую в редакторе</div>
|
||||||
|
</li>
|
||||||
|
<li
|
||||||
|
class={clsx({ [styles.editorModesSelected]: editorMode() === t('Commenting') })}
|
||||||
|
onClick={() => setEditorMode(t('Commenting'))}
|
||||||
|
>
|
||||||
|
<Icon name="comment" class={styles.editorModeIcon} />
|
||||||
|
<div class={styles.editorModeTitle}>{t('Commenting')}</div>
|
||||||
|
<div class={styles.editorModeDescription}>
|
||||||
|
Предлагайте правки и комментарии, чтобы сделать материал лучше
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</Popup>
|
||||||
|
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
||||||
{renderIconedButton({
|
{renderIconedButton({
|
||||||
|
@ -159,12 +196,18 @@ export const HeaderAuth = (props: Props) => {
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
<div
|
||||||
|
class={clsx(
|
||||||
|
styles.userControlItem,
|
||||||
|
styles.settingsControlContainer,
|
||||||
|
styles.userControlItemVerbose,
|
||||||
|
)}
|
||||||
|
>
|
||||||
<Popover content={t('Settings')}>
|
<Popover content={t('Settings')}>
|
||||||
{(ref) => (
|
{(ref) => (
|
||||||
<Button
|
<Button
|
||||||
ref={ref}
|
ref={ref}
|
||||||
value={<Icon name="burger" />}
|
value={<Icon name="ellipsis" />}
|
||||||
variant={'light'}
|
variant={'light'}
|
||||||
onClick={handleBurgerButtonClick}
|
onClick={handleBurgerButtonClick}
|
||||||
class={styles.settingsControl}
|
class={styles.settingsControl}
|
||||||
|
@ -173,6 +216,17 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
|
<Show when={isCreatePostButtonVisible() && !isAuthenticated()}>
|
||||||
|
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
|
||||||
|
<a href={getPagePath(router, 'create')}>
|
||||||
|
<span class={styles.textLabel}>{t('Create post')}</span>
|
||||||
|
<Icon name="pencil" class={styles.icon} />
|
||||||
|
<Icon name="pencil" class={clsx(styles.icon, styles.iconHover)} />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
|
|
||||||
<Show
|
<Show
|
||||||
when={isAuthenticatedControlsVisible()}
|
when={isAuthenticatedControlsVisible()}
|
||||||
fallback={
|
fallback={
|
||||||
|
@ -195,17 +249,21 @@ export const HeaderAuth = (props: Props) => {
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
|
</Show>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Show when={isAuthenticated()}>
|
||||||
<ProfilePopup
|
<ProfilePopup
|
||||||
onVisibilityChange={(isVisible) => {
|
onVisibilityChange={(isVisible) => {
|
||||||
props.setIsProfilePopupVisible(isVisible)
|
props.setIsProfilePopupVisible(isVisible)
|
||||||
}}
|
}}
|
||||||
containerCssClass={styles.control}
|
containerCssClass={styles.control}
|
||||||
trigger={
|
trigger={
|
||||||
<div class={styles.userControlItem}>
|
<div class={clsx(styles.userControlItem, styles.userControlItemUserpic)}>
|
||||||
<button class={styles.button}>
|
<button class={styles.button}>
|
||||||
<div classList={{ entered: page().path === `/${author()?.slug}` }}>
|
<div classList={{ entered: page().path === `/${author()?.slug}` }}>
|
||||||
<Userpic
|
<Userpic
|
||||||
size={'M'}
|
size={'L'}
|
||||||
name={author()?.name}
|
name={author()?.name}
|
||||||
userpic={author()?.pic}
|
userpic={author()?.pic}
|
||||||
class={styles.userpic}
|
class={styles.userpic}
|
||||||
|
@ -217,7 +275,6 @@ export const HeaderAuth = (props: Props) => {
|
||||||
/>
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</Show>
|
</Show>
|
||||||
</ShowOnlyOnClient>
|
</ShowOnlyOnClient>
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
.snackbar {
|
.snackbar {
|
||||||
min-height: 2px;
|
|
||||||
background-color: var(--default-color);
|
background-color: var(--default-color);
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
|
|
@ -10,18 +10,23 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.notificationsCounter {
|
.notificationsCounter {
|
||||||
background-color: #d00820;
|
align-items: center;
|
||||||
border: 2px solid #fff;
|
background-color: #E84500;
|
||||||
border-radius: 2em;
|
border-radius: 0.8rem;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 1rem;
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
height: 1.6em;
|
height: 2.2rem;
|
||||||
left: 1.1em;
|
justify-content: center;
|
||||||
line-height: 1.25em;
|
left: 1.6rem;
|
||||||
|
min-width: 2.2rem;
|
||||||
padding: 0 0.25em;
|
padding: 0 0.25em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
top: -0.5rem;
|
top: -0.5rem;
|
||||||
min-width: 1.5em;
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
left: 1.8rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -622,6 +622,10 @@ figure {
|
||||||
margin-bottom: 0.6em;
|
margin-bottom: 0.6em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
margin-right: 2.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
.link {
|
.link {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user