lint
This commit is contained in:
parent
b7d5260f8d
commit
4d8e89201a
|
@ -75,6 +75,7 @@ img {
|
||||||
&[data-float='left'],
|
&[data-float='left'],
|
||||||
&[data-float='right'] {
|
&[data-float='right'] {
|
||||||
@include font-size(2.2rem);
|
@include font-size(2.2rem);
|
||||||
|
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
|
||||||
@include media-breakpoint-up(sm) {
|
@include media-breakpoint-up(sm) {
|
||||||
|
@ -423,7 +424,7 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
.shoutStatsItemViews {
|
.shoutStatsItemViews {
|
||||||
color: rgb(0 0 0 / 0.4);
|
color: rgb(0 0 0 / 40%);
|
||||||
cursor: default;
|
cursor: default;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
|
@ -466,7 +467,8 @@ img {
|
||||||
.shoutStatsItemAdditionalDataItem {
|
.shoutStatsItemAdditionalDataItem {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
//margin-left: 2rem;
|
|
||||||
|
// margin-left: 2rem;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
position: relative;
|
position: relative;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background: rgb(0 0 0 / 0.1);
|
background: rgb(0 0 0 / 10%);
|
||||||
|
|
||||||
@include media-breakpoint-down(sm) {
|
@include media-breakpoint-down(sm) {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
|
|
@ -64,7 +64,7 @@ export const AuthorBadge = (props: Props) => {
|
||||||
return isSubscribing() ? t('subscribing...') : t('Subscribe')
|
return isSubscribing() ? t('subscribing...') : t('Subscribe')
|
||||||
})
|
})
|
||||||
|
|
||||||
const unsubscribeValue = () => {
|
const unsubscribeValue = createMemo(() => {
|
||||||
if (props.iconButtons) {
|
if (props.iconButtons) {
|
||||||
return <Icon name="author-unsubscribe" class={stylesButton.icon} />
|
return <Icon name="author-unsubscribe" class={stylesButton.icon} />
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ export const AuthorBadge = (props: Props) => {
|
||||||
<span class={styles.actionButtonLabelHovered}>{t('Unfollow')}</span>
|
<span class={styles.actionButtonLabelHovered}>{t('Unfollow')}</span>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx(styles.AuthorBadge, { [styles.nameOnly]: props.nameOnly })}>
|
<div class={clsx(styles.AuthorBadge, { [styles.nameOnly]: props.nameOnly })}>
|
||||||
|
|
|
@ -97,20 +97,22 @@ export const AuthorCard = (props: Props) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const followButtonText = () => {
|
const followButtonText = createMemo(() => {
|
||||||
if (isSubscribing()) {
|
if (isSubscribing()) {
|
||||||
return t('subscribing...')
|
return t('subscribing...')
|
||||||
} else if (subscribed()) {
|
}
|
||||||
|
|
||||||
|
if (subscribed()) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<span class={stylesButton.buttonSubscribeLabel}>{t('Following')}</span>
|
<span class={stylesButton.buttonSubscribeLabel}>{t('Following')}</span>
|
||||||
<span class={stylesButton.buttonSubscribeLabelHovered}>{t('Unfollow')}</span>
|
<span class={stylesButton.buttonSubscribeLabelHovered}>{t('Unfollow')}</span>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
} else {
|
|
||||||
return t('Follow')
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
return t('Follow')
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={clsx(styles.author, 'row')}>
|
<div class={clsx(styles.author, 'row')}>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { createEffect, createSignal, Show } from 'solid-js'
|
import { createEffect, createSignal, Show } from 'solid-js'
|
||||||
import type { Editor, JSONContent } from '@tiptap/core'
|
import type { Editor } from '@tiptap/core'
|
||||||
import { Icon } from '../../_shared/Icon'
|
import { Icon } from '../../_shared/Icon'
|
||||||
import { InlineForm } from '../InlineForm'
|
import { InlineForm } from '../InlineForm'
|
||||||
import styles from './EditorFloatingMenu.module.scss'
|
import styles from './EditorFloatingMenu.module.scss'
|
||||||
|
|
|
@ -40,8 +40,10 @@
|
||||||
width: 54px;
|
width: 54px;
|
||||||
height: 54px;
|
height: 54px;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--background-color-invert);
|
background: var(--background-color-invert);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,8 +38,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
margin: auto;
|
|
||||||
// max-width: 800px;
|
// max-width: 800px;
|
||||||
|
margin: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 24px 0;
|
padding: 24px 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -177,12 +177,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.prev {
|
&.prev {
|
||||||
background-image: linear-gradient(to right, #000, rgb(0 0 0 / 0));
|
background-image: linear-gradient(to right, #000, rgb(0 0 0 / 0%));
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.next {
|
&.next {
|
||||||
background-image: linear-gradient(to left, #000, rgb(0 0 0 / 0));
|
background-image: linear-gradient(to left, #000, rgb(0 0 0 / 0%));
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
@ -239,11 +239,11 @@
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
&.prev {
|
&.prev {
|
||||||
left: -var(--navigation-reserve);
|
left: calc(0px - var(--navigation-reserve));
|
||||||
}
|
}
|
||||||
|
|
||||||
&.next {
|
&.next {
|
||||||
right: -var(--navigation-reserve);
|
right: calc(0px - var(--navigation-reserve));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user