]> 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 4a04cabbaf117e0e6b35439d3f8c36c2cb2f1a27..2d7e0cce9b544281a755575d684655a719eac423 100644 (file)
   margin-bottom: 1rem;
 }
 
+.input-error:not(:focus) {
+  &,
+  + .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 {
-  border-color: $red !important;
+// 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 {