Fixed article controls style
This commit is contained in:
parent
de984f9801
commit
0a6271c57e
|
@ -143,8 +143,8 @@ img {
|
||||||
}
|
}
|
||||||
|
|
||||||
.shoutStatsItem {
|
.shoutStatsItem {
|
||||||
|
cursor: pointer;
|
||||||
@include font-size(1.5rem);
|
@include font-size(1.5rem);
|
||||||
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0 3.2rem 1em 0;
|
margin: 0 3.2rem 1em 0;
|
||||||
|
@ -166,17 +166,32 @@ img {
|
||||||
max-height: 1.8em;
|
max-height: 1.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.shoutStatsItemInner .iconEdit {
|
||||||
|
margin-right: 0.3em;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border: none;
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
.shoutStatsItemInner {
|
||||||
.icon {
|
margin: -0.3em -0.3em 0;
|
||||||
filter: invert(1);
|
padding: 0.3em;
|
||||||
}
|
|
||||||
|
.icon {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: #000;
|
||||||
|
|
||||||
|
img {
|
||||||
|
filter: invert(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,8 +206,10 @@ export const FullArticle = (props: ArticleProps) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<div class={styles.shoutStatsItem} onClick={() => scrollToComments()}>
|
<div class={styles.shoutStatsItem} onClick={() => scrollToComments()}>
|
||||||
<Icon name="comment" class={styles.icon} />
|
<div class={styles.shoutStatsItemInner}>
|
||||||
{/*{props.article.stat?.commented || ''}*/}
|
<Icon name="comment" class={styles.icon} />
|
||||||
|
{/*{props.article.stat?.commented || ''}*/}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class={styles.shoutStatsItem}>
|
<div class={styles.shoutStatsItem}>
|
||||||
|
@ -216,18 +218,24 @@ export const FullArticle = (props: ArticleProps) => {
|
||||||
description={getDescription(props.article.body)}
|
description={getDescription(props.article.body)}
|
||||||
imageUrl={props.article.cover}
|
imageUrl={props.article.cover}
|
||||||
containerCssClass={stylesHeader.control}
|
containerCssClass={stylesHeader.control}
|
||||||
trigger={<Icon name="share-outline" class={styles.icon} />}
|
trigger={
|
||||||
|
<div class={styles.shoutStatsItemInner}>
|
||||||
|
<Icon name="share-outline" class={styles.icon} />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class={styles.shoutStatsItem} onClick={bookmark}>
|
<div class={styles.shoutStatsItem} onClick={bookmark}>
|
||||||
<Icon name="bookmark" class={styles.icon} />
|
<div class={styles.shoutStatsItemInner}>
|
||||||
|
<Icon name="bookmark" class={styles.icon} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Show when={canEdit()}>
|
<Show when={canEdit()}>
|
||||||
<div class={styles.shoutStatsItem}>
|
<div class={styles.shoutStatsItem}>
|
||||||
<a href="/edit">
|
<a href="/edit" class={styles.shoutStatsItemInner}>
|
||||||
<Icon name="edit" />
|
<Icon name="edit" class={clsx(styles.icon, styles.iconEdit)} />
|
||||||
{t('Edit')}
|
{t('Edit')}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user