diff options
| author | jpl | 2017-03-07 15:56:56 +0100 |
|---|---|---|
| committer | jpl | 2017-03-07 15:56:56 +0100 |
| commit | 12e992f0aa05d7f9a2314109a579dc0f3765b3a0 (patch) | |
| tree | a2bc65fe1336d64b8508e54ae20892fc3aee831d | |
| parent | af015068065ae5c35204d6aba0f3f1b82489b09b (diff) | |
| download | chouette-core-12e992f0aa05d7f9a2314109a579dc0f3765b3a0.tar.bz2 | |
Refs #2720: fix inline switch regression
| -rw-r--r-- | app/assets/stylesheets/components/_forms.sass | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/app/assets/stylesheets/components/_forms.sass b/app/assets/stylesheets/components/_forms.sass index 7cbdabad8..de0d88af0 100644 --- a/app/assets/stylesheets/components/_forms.sass +++ b/app/assets/stylesheets/components/_forms.sass @@ -283,6 +283,37 @@ table, .table left: 20px transition: 0.2s + &.inline + > * + display: inline-block + vertical-align: top + + > label + margin: 0 + padding: 2px 15px 0 0 + + .checkbox + height: 22px + line-height: 22px + + > label > input[type='checkbox'] + + .switch-label + width: 37px + height: 22px + line-height: 22px + padding-left: 47px + + &:before + width: 37px + height: 22px + border-radius: 14px + &:after + width: 18px + height: 18px + + &:not(:checked) + .switch-label:after + left: 15px + // Form filter .form.form-filter display: block |
