Revert icons

This commit is contained in:
kvakazyambra 2022-12-04 18:10:27 +03:00
parent 24370405c9
commit 2a70e3ebc5
13 changed files with 38 additions and 32 deletions

View File

@ -1,4 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <svg width="14" height="19" viewBox="0 0 14 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path d="M0 0H14V18.6667L7 14.9333L0 18.6667V0ZM2 2V15.3333L7 12.6667L12 15.3333V2H2Z" fill="#141414"/>
d="M16,2H8A3,3,0,0,0,5,5V21a1,1,0,0,0,.5.87,1,1,0,0,0,1,0L12,18.69l5.5,3.18A1,1,0,0,0,18,22a1,1,0,0,0,.5-.13A1,1,0,0,0,19,21V5A3,3,0,0,0,16,2Zm1,17.27-4.5-2.6a1,1,0,0,0-1,0L7,19.27V5A1,1,0,0,1,8,4h8a1,1,0,0,1,1,1Z" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 207 B

View File

@ -1,4 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> <svg width="14" height="19" viewBox="0 0 14 19" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" fill="#141414" <path fill-rule="evenodd" clip-rule="evenodd" d="M0 0H14V18.6667L7 14.9333L0 18.6667V0ZM2 2V15.3333L7 12.6667L12 15.3333V2H2Z" fill="#141414"/>
d="M16,2H8A3,3,0,0,0,5,5V21a1,1,0,0,0,.5.87,1,1,0,0,0,1,0L12,18.69l5.5,3.18A1,1,0,0,0,18,22a1,1,0,0,0,.5-.13A1,1,0,0,0,19,21V5A3,3,0,0,0,16,2Zm1,17.27-4.5-2.6a1,1,0,0,0-1,0L7,19.27V5A1,1,0,0,1,8,4h8a1,1,0,0,1,1,1Z" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 247 B

View File

@ -118,7 +118,7 @@ export default (props: {
containerCssClass={stylesHeader.control} containerCssClass={stylesHeader.control}
trigger={ trigger={
<button class={clsx(styles.commentControl, styles.commentControlShare)}> <button class={clsx(styles.commentControl, styles.commentControlShare)}>
<Icon name="share-new" class={styles.icon} /> <Icon name="share" class={styles.icon} />
{t('Share')} {t('Share')}
</button> </button>
} }

View File

@ -156,7 +156,7 @@ export const FullArticle = (props: ArticleProps) => {
<Show when={props.article.stat?.viewed}> <Show when={props.article.stat?.viewed}>
<div class={clsx(styles.shoutStatsItem)}> <div class={clsx(styles.shoutStatsItem)}>
<Icon name="eye" class={styles.icon} /> <Icon name="eye" class={clsx(styles.icon, styles.iconEye)} />
{props.article.stat?.viewed} {props.article.stat?.viewed}
</div> </div>
</Show> </Show>
@ -169,7 +169,7 @@ export const FullArticle = (props: ArticleProps) => {
<div class={styles.shoutStatsItem}> <div class={styles.shoutStatsItem}>
<SharePopup <SharePopup
containerCssClass={stylesHeader.control} containerCssClass={stylesHeader.control}
trigger={<Icon name="share-new" class={styles.icon} />} trigger={<Icon name="share-outline" class={styles.icon} />}
/> />
</div> </div>

View File

@ -10,16 +10,20 @@
.ratingControl { .ratingControl {
align-items: center; align-items: center;
border: 2px solid;
border-radius: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
height: 0.9em; height: 0.9em;
line-height: 0; line-height: 0;
@include font-size(3.6rem); @include font-size(3.6rem);
color: #777;
padding: 0; padding: 0;
width: 0.9em; width: 0.9em;
transition: 0.15s all linear;
&:hover { &:hover {
transform: scale(1.2); background: #000;
border-color: #000;
color: #fff;
} }
} }

View File

@ -10,13 +10,9 @@ interface RatingControlProps {
export const RatingControl = (props: RatingControlProps) => { export const RatingControl = (props: RatingControlProps) => {
return ( return (
<div class={clsx(props.class, styles.rating)}> <div class={clsx(props.class, styles.rating)}>
<button class={styles.ratingControl}> <button class={styles.ratingControl}>&minus;</button>
<Icon name="dislike" />
</button>
<span class={styles.ratingValue}>{props?.rating || ''}</span> <span class={styles.ratingValue}>{props?.rating || ''}</span>
<button class={styles.ratingControl}> <button class={styles.ratingControl}>+</button>
<Icon name="like" />
</button>
</div> </div>
) )
} }

View File

@ -12,11 +12,6 @@
} }
} }
.s24 {
width: 24px;
height: 24px;
}
.authorDetails { .authorDetails {
display: flex; display: flex;
flex: 1; flex: 1;

View File

@ -119,7 +119,7 @@ export const AuthorCard = (props: AuthorCardProps) => {
disabled={isSubscribing()} disabled={isSubscribing()}
> >
<Show when={!props.isAuthorsList}> <Show when={!props.isAuthorsList}>
<Icon name="circle-plus" iconClassName={styles.s24} class={styles.icon} /> <Icon name="author-subscribe" class={styles.icon} />
</Show> </Show>
<span class={styles.buttonLabel}>{t('Follow')}</span> <span class={styles.buttonLabel}>{t('Follow')}</span>
</button> </button>

View File

@ -37,14 +37,14 @@ export const Beside = (props: BesideProps) => {
<Show when={props.wrapper === 'author'}> <Show when={props.wrapper === 'author'}>
<a href="/authors"> <a href="/authors">
{t('All authors')} {t('All authors')}
<Icon name="arrow-circle-right" class={styles.icon} /> <Icon name="arrow-right" class={styles.icon} />
</a> </a>
</Show> </Show>
<Show when={props.wrapper === 'topic'}> <Show when={props.wrapper === 'topic'}>
<a href="/topics"> <a href="/topics">
{t('All topics')} {t('All topics')}
<Icon name="arrow-circle-right" class={styles.icon} /> <Icon name="arrow-right" class={styles.icon} />
</a> </a>
</Show> </Show>
</div> </div>

View File

@ -12,10 +12,12 @@
padding: 0 divide($container-padding-x, 2); padding: 0 divide($container-padding-x, 2);
} }
} }
.icon { .icon {
height: 1.2em; height: 1em;
width: 1.2em; width: 1em;
} }
a:hover { a:hover {
.icon { .icon {
filter: invert(1); filter: invert(1);

View File

@ -127,13 +127,16 @@ export const Header = (props: Props) => {
setIsSharePopupVisible(isVisible) setIsSharePopupVisible(isVisible)
}} }}
containerCssClass={styles.control} containerCssClass={styles.control}
trigger={<Icon name="share-new" class={styles.icon} />} trigger={<Icon name="share-outline" class={styles.icon} />}
/> />
<a href={getPagePath(router, 'inbox')} class={styles.control}> <a href={getPagePath(router, 'inbox')} class={styles.control}>
<Icon name="comments-outline" class={styles.icon} /> <Icon name="comments-outline" class={styles.icon} />
</a> </a>
<a href={getPagePath(router, 'create')} class={styles.control}> <a href={getPagePath(router, 'create')} class={styles.control}>
<Icon name="feather" class={styles.icon} /> <Icon name="pencil-outline" class={styles.icon} />
</a>
<a href="#" class={styles.control} onClick={(event) => event.preventDefault()}>
<Icon name="bookmark" class={styles.icon} />
</a> </a>
</div> </div>
</Show> </Show>

View File

@ -44,7 +44,7 @@ export const HeaderAuth = (props: HeaderAuthProps) => {
<div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}> <div class={clsx(styles.userControlItem, styles.userControlItemVerbose)}>
<a href="/create"> <a href="/create">
<span class={styles.textLabel}>{t('Create post')}</span> <span class={styles.textLabel}>{t('Create post')}</span>
<Icon name="feather" class={styles.icon} /> <Icon name="pencil" class={styles.icon} />
</a> </a>
</div> </div>

View File

@ -150,13 +150,21 @@ img {
vertical-align: baseline; vertical-align: baseline;
.icon { .icon {
height: 1.5em; height: 1.6em;
display: inline-block; display: inline-block;
margin-right: 0.2em; margin-right: 0.2em;
max-width: 1.4em;
max-height: 1.4em;
transition: filter 0.2s; transition: filter 0.2s;
vertical-align: middle; vertical-align: middle;
} }
.iconEye {
height: 1.8em;
max-width: 1.8em;
max-height: 1.8em;
}
img { img {
display: block; display: block;
} }