Css hack to add margin on first or last visible inputs

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-03-07 12:42:26 +01:00
parent 966ceca8ea
commit e77bddf56b
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
1 changed files with 9 additions and 0 deletions

View File

@ -903,6 +903,15 @@ kbd {
}
}
}
/* css hack, only first not hidden*/
&:not(.hidden):not([style*='display: none']) {
&:first-of-type input {
margin-top: 10px;
}
&:last-of-type input {
margin-bottom: 10px;
}
}
> button {
padding: 0;
span {