aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-20 16:42:21 +0200
committerChocobozzz <me@florianbigard.com>2022-06-20 16:42:21 +0200
commit75084782b767f51f6158ada1984cf339c6302960 (patch)
tree178904ed08269de95683a063623d17cf87e56fad /client/src/sass
parent9bc3622320dc43474ce4b60c222ec25e6e657b97 (diff)
downloadPeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.gz
PeerTube-75084782b767f51f6158ada1984cf339c6302960.tar.zst
PeerTube-75084782b767f51f6158ada1984cf339c6302960.zip
Handle input error in custom input text
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/class-helpers.scss8
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss
index f09d84882..2994a57ae 100644
--- a/client/src/sass/class-helpers.scss
+++ b/client/src/sass/class-helpers.scss
@@ -77,6 +77,10 @@
77 } 77 }
78} 78}
79 79
80.input-group .input-error {
81 z-index: 3;
82}
83
80.form-error, 84.form-error,
81.form-warning { 85.form-warning {
82 display: block; 86 display: block;
@@ -87,7 +91,9 @@
87 color: $red; 91 color: $red;
88} 92}
89 93
90.input-error:focus { 94// Disable red error on input focus
95.input-error:focus,
96.input-group:focus-within {
91 & + .form-error, 97 & + .form-error,
92 & + * + .form-error, // Markdown textarea 98 & + * + .form-error, // Markdown textarea
93 & + * + * + .form-error { 99 & + * + * + .form-error {