From 0a6271c57e49ddd79b92e38e4cda2b5622ab4826 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 29 Mar 2023 23:18:25 +0300 Subject: [PATCH] Fixed article controls style --- src/components/Article/Article.module.scss | 25 +++++++++++++++++----- src/components/Article/FullArticle.tsx | 20 +++++++++++------ 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index abdd02e7..6705a228 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -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); } } } diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 8d66d814..b1fe6a7d 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -206,8 +206,10 @@ export const FullArticle = (props: ArticleProps) => {
scrollToComments()}> - - {/*{props.article.stat?.commented || ''}*/} +
+ + {/*{props.article.stat?.commented || ''}*/} +
@@ -216,18 +218,24 @@ export const FullArticle = (props: ArticleProps) => { description={getDescription(props.article.body)} imageUrl={props.article.cover} containerCssClass={stylesHeader.control} - trigger={} + trigger={ +
+ +
+ } />
- +
+ +