X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment-add.component.scss;h=6202ed05b1c5d0b3a0dc24717be2b163f8eee63d;hb=fa12eacc014aae8094d108634371640f2695bf9f;hp=814417f04cc143bffbca68822bde19ae5ff14963;hpb=3c176894bae9de7958605fe432bff770b9232807;p=github%2FChocobozzz%2FPeerTube.git 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..6202ed05b 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 @@ -1,5 +1,9 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables'; +@use '_mixins'; + +$markdown-icon-height: 18px; +$markdown-icon-width: 30px; +$peertube-textarea-height: 60px; form { margin-bottom: 30px; @@ -9,61 +13,63 @@ form { display: flex; margin-bottom: 10px; - img { - @include avatar(25px); - - vertical-align: top; - margin-right: 10px; + my-actor-avatar { + @include margin-right(10px); } .form-group { flex-grow: 1; margin: 0; position: relative; + } - $peertube-textarea-height: 60px; - $markdown-icon-height: 18px; - $markdown-icon-width: 30px; + textarea { + @include peertube-textarea(100%, $peertube-textarea-height); + @include button-focus(pvar(--mainColorLightest)); + @include padding-right($markdown-icon-width + 15px !important); - .markdown-guide { - position: absolute; - top: 5px; - left: 4px; + min-height: calc(#{$peertube-textarea-height} - 15px * 2); - @media screen and (max-width: 600px) { - left: 0; - } + @media screen and (max-width: 600px) { + @include padding-right($markdown-icon-width + 19px !important); + } - ::ng-deep .help-tooltip-button { - my-global-icon { - height: $markdown-icon-height; - width: $markdown-icon-width; - - svg { - opacity: 0.5; - } - } - - &:focus, &:active, &:hover { - my-global-icon svg { - opacity: 1; - } - } - } + &:focus::placeholder { + opacity: 0; } + } +} - textarea { - @include peertube-textarea(100%, $peertube-textarea-height); - @include button-focus(pvar(--mainColorLightest)); +.markdown-guide { + position: absolute; + top: 5px; + right: 9px; + + // inset-inline is not well supported by web browsers + &.is-rtl { + right: unset; + left: 9px; + } - text-indent: $markdown-icon-width; + ::ng-deep .help-tooltip-button { + my-global-icon { + height: $markdown-icon-height; + width: $markdown-icon-width; - @media screen and (max-width: 600px) { - text-indent: $markdown-icon-width + 5px; + svg { + color: #C6C6C6; + fill: #C6C6C6; + border-radius: 3px; } + } - &:focus::placeholder { - opacity: 0; + &:focus, + &:active, + &:hover { + my-global-icon svg { + background-color: #C6C6C6; + color: pvar(--mainBackgroundColor); + fill: pvar(--mainBackgroundColor); } } } @@ -72,34 +78,31 @@ form { .comment-buttons { display: flex; justify-content: flex-end; +} - button { - @include peertube-button; - @include disable-outline; - @include disable-default-a-behaviour; - - &:not(:last-child) { - margin-right: .5rem; - } +.emoji-flex { + display: flex; + flex-flow: row wrap; + align-items: center; - &:last-child { - @include orange-button; - } - } + .emoji-flex-item { + text-align: left; + margin: auto; + min-width: 227px; + flex: 1; - .cancel-button { - @include tertiary-button; + code { + @include margin-left(5px); - font-weight: $font-semibold; - display: inline-block; - padding: 0 10px 0 10px; - white-space: nowrap; - background: transparent; + display: inline-block; + vertical-align: middle; + } } } @media screen and (max-width: 600px) { - textarea, .comment-buttons button { + textarea, + .comment-buttons button { font-size: 14px !important; } @@ -109,12 +112,7 @@ form { } .modal-body { - .btn { - @include peertube-button; - @include orange-button; - } - - span { + > span { float: left; margin-bottom: 20px; }