Move markdown icon on right and correct colors

pull/3085/head
kimsible 2020-08-08 00:51:27 +02:00 committed by Chocobozzz
parent ddb0303f4d
commit 438c256b26
2 changed files with 11 additions and 10 deletions

View File

@ -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 {

View File

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="24" viewBox="0 0 208 128"><rect width="198" height="118" x="5" y="5" ry="10" stroke="#000" stroke-width="10" fill="none"/><path d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"/></svg>
<svg xmlns="http://www.w3.org/2000/svg" width="40" height="24" viewBox="0 0 208 128"><rect width="198" height="118" x="5" y="5" ry="10" stroke="#C6C6C6" stroke-width="10" fill="none"/><path d="M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39zm125 0l-30-33h20V30h20v35h20z"/></svg>

Before

Width:  |  Height:  |  Size: 281 B

After

Width:  |  Height:  |  Size: 284 B