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