PoC inline icon-confirm with inputs
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
a7a3640224
commit
955c2ee1a7
|
@ -28,7 +28,7 @@
|
||||||
'<form class="filenameform">' +
|
'<form class="filenameform">' +
|
||||||
'<label class="hidden-visually" for="{{cid}}-input-{{fileType}}">{{fileName}}</label>' +
|
'<label class="hidden-visually" for="{{cid}}-input-{{fileType}}">{{fileName}}</label>' +
|
||||||
'<input id="{{cid}}-input-{{fileType}}" type="text" value="{{fileName}}" autocomplete="off" autocapitalize="off">' +
|
'<input id="{{cid}}-input-{{fileType}}" type="text" value="{{fileName}}" autocomplete="off" autocapitalize="off">' +
|
||||||
'<input type="submit" value=" " class="primary icon-checkmark-white" />'
|
'<input type="submit" value=" " class="icon-confirm" />'
|
||||||
'</form>';
|
'</form>';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -212,6 +212,41 @@ select {
|
||||||
padding-right: 24px !important;
|
padding-right: 24px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Confirm inputs */
|
||||||
|
input {
|
||||||
|
&[type='text'],
|
||||||
|
&[type='password'],
|
||||||
|
&[type='email'] {
|
||||||
|
+ .icon-confirm {
|
||||||
|
margin-left: -8px !important;
|
||||||
|
border-left-color: transparent !important;
|
||||||
|
border-radius: 0 $border-radius $border-radius 0 !important;
|
||||||
|
background-clip: padding-box; /* Avoid background under border */
|
||||||
|
}
|
||||||
|
/* only show confirm borders if input is not focused */
|
||||||
|
&:not(:active):not(:hover):not(:focus){
|
||||||
|
+ .icon-confirm {
|
||||||
|
&:active,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
border-left-color: $color-primary-element !important;
|
||||||
|
border-radius: $border-radius !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:active,
|
||||||
|
&:hover,
|
||||||
|
&:focus {
|
||||||
|
+ .icon-confirm {
|
||||||
|
border-color: $color-primary-element !important;
|
||||||
|
border-left-color: transparent !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Various Fixes */
|
/* Various Fixes */
|
||||||
button img,
|
button img,
|
||||||
.button img {
|
.button img {
|
||||||
|
|
Loading…
Reference in New Issue