]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/class-helpers.scss
Handle input error in markdown textarea
[github/Chocobozzz/PeerTube.git] / client / src / sass / class-helpers.scss
index 87ad6a45d9d9bf137fba5c2d5507efdd2f92a120..f09d848829a9677c89b9098665546b4ec7e3d271 100644 (file)
 }
 
 .input-error:not(:focus) {
-  border-color: $red !important;
+  &,
+  & + .nav-preview, // Markdown textarea
+  & + * + .tab-content {
+    border-color: $red !important;
+  }
 }
 
 .form-error,
   color: $red;
 }
 
-.input-error:focus + .form-error {
-  color: pvar(--mainForegroundColor);
+.input-error:focus {
+  & + .form-error,
+  & + * + .form-error, // Markdown textarea
+  & + * + * + .form-error {
+    color: pvar(--mainForegroundColor);
+  }
 }
 
 .form-group-description {