X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-watch%2Fcomment%2Fvideo-comment-add.component.scss;h=1aa9255c290aa34a854b532d4c0ff9c29f2a10e8;hb=205e4f56f3da1f787f1bc2cdfcc39948a99a16b1;hp=d938e2e288943b23baeffeabc4e9dfa43c0ef7cc;hpb=f34cc2a48e534c96598490e1d13e426f05b63d0f;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 d938e2e28..1aa9255c2 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,6 +1,10 @@ @import '_variables'; @import '_mixins'; +$markdown-icon-height: 18px; +$markdown-icon-width: 30px; +$peertube-textarea-height: 60px; + form { margin-bottom: 30px; } @@ -9,9 +13,7 @@ form { display: flex; margin-bottom: 10px; - img { - @include avatar(25px); - + my-account-avatar { vertical-align: top; margin-right: 10px; } @@ -20,83 +22,55 @@ form { flex-grow: 1; margin: 0; position: relative; + } - $peertube-textarea-height: 60px; - $markdown-icon-height: 18px; - $markdown-icon-width: 30px; - - .markdown-guide { - position: absolute; - top: 5px; - right: 9px; - - ::ng-deep .help-tooltip-button { - my-global-icon { - height: $markdown-icon-height; - width: $markdown-icon-width; - - svg { - color: #C6C6C6; - fill: #C6C6C6; - border-radius: 3px; - } - } - - &:focus, &:active, &:hover { - my-global-icon svg { - background-color: #C6C6C6; - color: pvar(--mainBackgroundColor); - fill: pvar(--mainBackgroundColor); - } - } - } - } - - textarea { - @include peertube-textarea(100%, $peertube-textarea-height); - @include button-focus(pvar(--mainColorLightest)); + textarea { + @include peertube-textarea(100%, $peertube-textarea-height); + @include button-focus(pvar(--mainColorLightest)); - min-height: calc(#{$peertube-textarea-height} - 15px * 2); - padding-right: $markdown-icon-width + 15px !important; + min-height: calc(#{$peertube-textarea-height} - 15px * 2); + padding-right: $markdown-icon-width + 15px !important; - @media screen and (max-width: 600px) { - padding-right: $markdown-icon-width + 19px !important; - } + @media screen and (max-width: 600px) { + padding-right: $markdown-icon-width + 19px !important; + } - &:focus::placeholder { - opacity: 0; - } + &:focus::placeholder { + opacity: 0; } } } -.comment-buttons { - display: flex; - justify-content: flex-end; +.markdown-guide { + position: absolute; + top: 5px; + right: 9px; - button { - @include peertube-button; - @include disable-outline; - @include disable-default-a-behaviour; + ::ng-deep .help-tooltip-button { + my-global-icon { + height: $markdown-icon-height; + width: $markdown-icon-width; - &:not(:last-child) { - margin-right: .5rem; + svg { + color: #C6C6C6; + fill: #C6C6C6; + border-radius: 3px; + } } - &:last-child { - @include orange-button; + &:focus, &:active, &:hover { + my-global-icon svg { + background-color: #C6C6C6; + color: pvar(--mainBackgroundColor); + fill: pvar(--mainBackgroundColor); + } } } +} - .cancel-button { - @include tertiary-button; - - font-weight: $font-semibold; - display: inline-block; - padding: 0 10px 0 10px; - white-space: nowrap; - background: transparent; - } +.comment-buttons { + display: flex; + justify-content: flex-end; } .emoji-flex { @@ -119,7 +93,8 @@ form { } @media screen and (max-width: 600px) { - textarea, .comment-buttons button { + textarea, + .comment-buttons button { font-size: 14px !important; } @@ -129,12 +104,7 @@ form { } .modal-body { - .btn { - @include peertube-button; - @include orange-button; - } - - span { + > span { float: left; margin-bottom: 20px; }