Fixed tooltip positionning & error display
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
955c2ee1a7
commit
4e6043fd6b
3 changed files with 5 additions and 3 deletions
|
@ -38,10 +38,11 @@
|
|||
font-weight: normal;
|
||||
}
|
||||
|
||||
.newFileMenu .error, #fileList .error {
|
||||
.newFileMenu .error,
|
||||
.newFileMenu .error + .icon-confirm,
|
||||
#fileList .error {
|
||||
color: $color-error;
|
||||
border-color: $color-error;
|
||||
box-shadow: 0 0 6px #f8b9b7;
|
||||
}
|
||||
|
||||
/* FILE TABLE */
|
||||
|
|
|
@ -157,7 +157,7 @@
|
|||
}
|
||||
} catch (error) {
|
||||
$input.attr('title', error);
|
||||
$input.tooltip({placement: 'right', trigger: 'manual'});
|
||||
$input.tooltip({placement: 'right', trigger: 'manual', 'container': '.newFileMenu'});
|
||||
$input.tooltip('fixTitle');
|
||||
$input.tooltip('show');
|
||||
$input.addClass('error');
|
||||
|
|
|
@ -222,6 +222,7 @@ input {
|
|||
border-left-color: transparent !important;
|
||||
border-radius: 0 $border-radius $border-radius 0 !important;
|
||||
background-clip: padding-box; /* Avoid background under border */
|
||||
background-color: $color-main-background !important;
|
||||
}
|
||||
/* only show confirm borders if input is not focused */
|
||||
&:not(:active):not(:hover):not(:focus){
|
||||
|
|
Loading…
Reference in a new issue