diff --git a/skins/elastic/styles/styles.less b/skins/elastic/styles/styles.less index 4c6dcb166..10191a28a 100644 --- a/skins/elastic/styles/styles.less +++ b/skins/elastic/styles/styles.less @@ -137,6 +137,11 @@ a:hover { animation: fa-spin 2s infinite linear; } +/*** Common sizing variables ***/ + +@listing-line-height: 2.5rem; +@listing-touch-line-height: 3.6rem; + /*** Common UI elements ***/ diff --git a/skins/elastic/styles/widgets/forms.less b/skins/elastic/styles/widgets/forms.less index f02453d4f..5089fbd04 100644 --- a/skins/elastic/styles/widgets/forms.less +++ b/skins/elastic/styles/widgets/forms.less @@ -159,15 +159,41 @@ td.editfield { width: 99%; /* TODO */ } /*** Forms in popups ***/ .popupmenu.form { - margin: .5rem; + &.nolist { + padding: 0 .5rem; + } ul { list-style-type: none; padding: 0; + margin: 0; + } + + li:not(.separator) { + padding: 0 1rem; + + label { + margin: 0; + line-height: @listing-line-height; + + input { + margin-right: .5rem; + } + } + } + + input { + vertical-align: middle; + height: @listing-line-height !important; + } + + select { + margin: .5rem 0; } .buttons { text-align: center; + padding: .5rem; } } @@ -333,6 +359,7 @@ td.editfield { width: 99%; /* TODO */ } input.icon-checkbox { opacity: 0; + margin-left: -1.5em; & + label { margin: 0; diff --git a/skins/elastic/styles/widgets/lists.less b/skins/elastic/styles/widgets/lists.less index 5d0f3c039..bf0cca1a8 100644 --- a/skins/elastic/styles/widgets/lists.less +++ b/skins/elastic/styles/widgets/lists.less @@ -11,9 +11,6 @@ /*** List and treelist widgets ***/ -@listing-line-height: 2.5rem; -@listing-touch-line-height: 3.6rem; - .listing { tbody td, li { diff --git a/skins/elastic/templates/addressbook.html b/skins/elastic/templates/addressbook.html index 1f8d5ed69..cc3e172f4 100644 --- a/skins/elastic/templates/addressbook.html +++ b/skins/elastic/templates/addressbook.html @@ -110,7 +110,7 @@
-