aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-20 15:56:16 +0200
committerChocobozzz <me@florianbigard.com>2022-06-20 15:56:16 +0200
commit9bc3622320dc43474ce4b60c222ec25e6e657b97 (patch)
tree081aadbe0c3e69425dbe1946d98fd890785c1aef /client/src/sass
parent3031971ec21ed6400d3b73d1f7e00b44d1617667 (diff)
downloadPeerTube-9bc3622320dc43474ce4b60c222ec25e6e657b97.tar.gz
PeerTube-9bc3622320dc43474ce4b60c222ec25e6e657b97.tar.zst
PeerTube-9bc3622320dc43474ce4b60c222ec25e6e657b97.zip
Handle input error in markdown textarea
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/class-helpers.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss
index 87ad6a45d..f09d84882 100644
--- a/client/src/sass/class-helpers.scss
+++ b/client/src/sass/class-helpers.scss
@@ -70,7 +70,11 @@
70} 70}
71 71
72.input-error:not(:focus) { 72.input-error:not(:focus) {
73 border-color: $red !important; 73 &,
74 & + .nav-preview, // Markdown textarea
75 & + * + .tab-content {
76 border-color: $red !important;
77 }
74} 78}
75 79
76.form-error, 80.form-error,
@@ -83,8 +87,12 @@
83 color: $red; 87 color: $red;
84} 88}
85 89
86.input-error:focus + .form-error { 90.input-error:focus {
87 color: pvar(--mainForegroundColor); 91 & + .form-error,
92 & + * + .form-error, // Markdown textarea
93 & + * + * + .form-error {
94 color: pvar(--mainForegroundColor);
95 }
88} 96}
89 97
90.form-group-description { 98.form-group-description {