]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/class-helpers.scss
Translated using Weblate (Russian)
[github/Chocobozzz/PeerTube.git] / client / src / sass / class-helpers.scss
index f09d848829a9677c89b9098665546b4ec7e3d271..2d7e0cce9b544281a755575d684655a719eac423 100644 (file)
 
 .input-error:not(:focus) {
   &,
-  + .nav-preview, // Markdown textarea
-  + * + .tab-content {
+  + .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,
-  & + * + .form-error, // Markdown textarea
-  & + * + * + .form-error {
+// Disable red error on input focus
+.input-error:focus,
+.input-group:focus-within {
+  + .form-error,
+  + * + .form-error, // Markdown textarea
+  + * + * + .form-error {
     color: pvar(--mainForegroundColor);
   }
 }