diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss index e3b6b1e2fd3..78d6ae829b6 100644 --- a/app/assets/stylesheets/common/base/topic-post.scss +++ b/app/assets/stylesheets/common/base/topic-post.scss @@ -95,6 +95,8 @@ $quote-share-maxwidth: 150px; margin: 30px 0 10px; line-height: $line-height-medium; a.anchor { + opacity: 0; + transition: opacity 0.25s; &:before { content: svg-uri( '' @@ -103,23 +105,14 @@ $quote-share-maxwidth: 150px; margin-left: -20px; padding-right: 4px; position: absolute; - opacity: 0; - transition: opacity 0.25s; - } - &:hover { - // show when hovering where icon should be - &:before { - opacity: 1; - } } } - &:hover { - // show when hovering header - a.anchor { - &:before { - opacity: 1; - } - } + + // show when hovering where icon should be + // show when hovering header + .discourse-no-touch & a.anchor:hover, + .discourse-no-touch &:hover a.anchor { + opacity: 1; } }