diff --git a/public/icons/rating-control-checked.svg b/public/icons/rating-control-checked.svg new file mode 100644 index 00000000..8479d52a --- /dev/null +++ b/public/icons/rating-control-checked.svg @@ -0,0 +1,5 @@ + diff --git a/public/icons/rating-control-less.svg b/public/icons/rating-control-less.svg new file mode 100644 index 00000000..151b041f --- /dev/null +++ b/public/icons/rating-control-less.svg @@ -0,0 +1,4 @@ + diff --git a/public/icons/rating-control-more.svg b/public/icons/rating-control-more.svg new file mode 100644 index 00000000..0ada4203 --- /dev/null +++ b/public/icons/rating-control-more.svg @@ -0,0 +1,5 @@ + diff --git a/src/components/Article/Article.module.scss b/src/components/Article/Article.module.scss index f5c0a5cf..c908cf1b 100644 --- a/src/components/Article/Article.module.scss +++ b/src/components/Article/Article.module.scss @@ -177,10 +177,10 @@ img { } .shoutStatsItem { + align-items: center; @include font-size(1.5rem); - font-weight: 500; - display: inline-block; + display: flex; margin: 0 6% 1em 0; vertical-align: baseline; cursor: pointer; @@ -190,25 +190,30 @@ img { } .icon { - height: 1.6em; display: inline-block; margin-right: 0.2em; - max-width: 1.4em; - max-height: 1.4em; transition: filter 0.2s; vertical-align: middle; } - .iconEye { - height: 1.8em; - max-width: 1.8em; - max-height: 1.8em; - } - img { display: block; } + .iconHover { + display: none; + } + + &:hover { + .icon { + display: none; + } + + .iconHover { + display: inline-block; + } + } + a { border: none; text-decoration: none; @@ -225,21 +230,11 @@ img { } .shoutStatsItemInner { - margin: -0.3em -0.3em 0; - padding: 0.3em; cursor: pointer; .icon { margin-right: 0; } - - &:hover { - background: #000; - - img { - filter: invert(1); - } - } } .shoutStatsItemLikes { @@ -275,8 +270,6 @@ img { } .shoutStatsItemViews { - margin-left: 2rem; - margin-right: 0; cursor: default; } @@ -285,6 +278,7 @@ img { display: inline-block; margin-left: 2rem; margin-right: 0; + margin-bottom: 0; cursor: default; @include media-breakpoint-down(sm) { diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 5f15083a..158d915f 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -196,10 +196,20 @@ export const FullArticle = (props: ArticleProps) => { {(triggerRef: (el) => void) => (