X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fclass-helpers.scss;h=2d7e0cce9b544281a755575d684655a719eac423;hb=bef83a8ff4e11815f5b0d52d75cb5f5abe5db7a7;hp=87ad6a45d9d9bf137fba5c2d5507efdd2f92a120;hpb=fba911e2c89708a166636e3a93fcd8fcbc3de7e1;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss index 87ad6a45d..2d7e0cce9 100644 --- a/client/src/sass/class-helpers.scss +++ b/client/src/sass/class-helpers.scss @@ -70,21 +70,36 @@ } .input-error:not(:focus) { - border-color: $red !important; + &, + + .nav-preview, // Markdown textarea + + * + .tab-content { + border-color: $red !important; + } +} + +.input-group .input-error { + z-index: 3; } .form-error, .form-warning { display: block; margin-top: 5px; + font-size: 0.9em; } .form-error { color: $red; } -.input-error:focus + .form-error { - color: pvar(--mainForegroundColor); +// Disable red error on input focus +.input-error:focus, +.input-group:focus-within { + + .form-error, + + * + .form-error, // Markdown textarea + + * + * + .form-error { + color: pvar(--mainForegroundColor); + } } .form-group-description {