diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss index 420e7519680..bb5295071f4 100644 --- a/app/assets/stylesheets/common/base/topic-post.scss +++ b/app/assets/stylesheets/common/base/topic-post.scss @@ -20,8 +20,16 @@ } } -.cooked .highlight{ +.cooked .highlight { background-color: scale-color($highlight, $lightness: 40%); padding: 2px; margin: -2px; } + +.contents .cooked a { + word-wrap: break-word; +} + +.contents .cooked { + word-wrap: break-word; +} \ No newline at end of file diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss index 392bc6d9e5e..85cceaa3b5e 100644 --- a/app/assets/stylesheets/desktop/topic-post.scss +++ b/app/assets/stylesheets/desktop/topic-post.scss @@ -600,12 +600,7 @@ iframe { position: relative; } -.contents .cooked a { - word-wrap: break-word; -} - .contents .cooked { - word-wrap: break-word; h1, h2, h3, h4, h5, h6 { margin: 30px 0 10px; } }