From 438c256b2672fa9539b703e6f28d4b70ef3dccfb Mon Sep 17 00:00:00 2001 From: kimsible Date: Sat, 8 Aug 2020 00:51:27 +0200 Subject: [PATCH] Move markdown icon on right and correct colors --- .../comment/video-comment-add.component.scss | 19 ++++++++++--------- client/src/assets/images/misc/markdown.svg | 2 +- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss index 814417f04..daaf337c8 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss +++ b/client/src/app/+videos/+video-watch/comment/video-comment-add.component.scss @@ -28,11 +28,7 @@ form { .markdown-guide { position: absolute; top: 5px; - left: 4px; - - @media screen and (max-width: 600px) { - left: 0; - } + right: 9px; ::ng-deep .help-tooltip-button { my-global-icon { @@ -40,13 +36,17 @@ form { width: $markdown-icon-width; svg { - opacity: 0.5; + color: #C6C6C6; + fill: #C6C6C6; + border-radius: 3px; } } &:focus, &:active, &:hover { my-global-icon svg { - opacity: 1; + background-color: #C6C6C6; + color: pvar(--mainBackgroundColor); + fill: pvar(--mainBackgroundColor); } } } @@ -56,10 +56,11 @@ form { @include peertube-textarea(100%, $peertube-textarea-height); @include button-focus(pvar(--mainColorLightest)); - text-indent: $markdown-icon-width; + min-height: calc(#{$peertube-textarea-height} - 15px * 2); + padding-right: $markdown-icon-width + 15px !important; @media screen and (max-width: 600px) { - text-indent: $markdown-icon-width + 5px; + padding-right: $markdown-icon-width + 19px !important; } &:focus::placeholder { diff --git a/client/src/assets/images/misc/markdown.svg b/client/src/assets/images/misc/markdown.svg index ee0f15303..0e2831320 100644 --- a/client/src/assets/images/misc/markdown.svg +++ b/client/src/assets/images/misc/markdown.svg @@ -1 +1 @@ - +