From 5016252cc316670e9b7cbd6bd850814aa8ad2804 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 28 May 2017 12:50:12 +0200 Subject: [PATCH] Improve popups style --- skins/elastic/styles/widgets/forms.less | 17 ++++++++++++++++- skins/elastic/styles/widgets/toolbar.less | 11 ++++++++++- skins/elastic/templates/addressbook.html | 2 +- skins/elastic/templates/mail.html | 2 +- skins/elastic/ui.js | 5 ++++- 5 files changed, 32 insertions(+), 5 deletions(-) diff --git a/skins/elastic/styles/widgets/forms.less b/skins/elastic/styles/widgets/forms.less index 1556ddb65..d477272a5 100644 --- a/skins/elastic/styles/widgets/forms.less +++ b/skins/elastic/styles/widgets/forms.less @@ -110,9 +110,24 @@ html.ms .propform { } } - td.editfield { width: 99%; /* TODO */ } + +/*** Forms in popups ***/ + +.popupmenu.form { + margin: 0.5rem; + + ul { + list-style-type: none; + padding: 0; + } + + .buttons { + text-align: center; + } +} + /*** Files upload widget with list of files, upload form and drop area ***/ .file-upload { diff --git a/skins/elastic/styles/widgets/toolbar.less b/skins/elastic/styles/widgets/toolbar.less index bc3ea9ce5..6e9196aad 100644 --- a/skins/elastic/styles/widgets/toolbar.less +++ b/skins/elastic/styles/widgets/toolbar.less @@ -139,13 +139,16 @@ } .popupmenu.toolbar.listing { + a.button:before { + display: inline-block; + } + .dropbutton { display: flex; a.button:first-child { overflow: hidden; text-overflow: ellipsis; - margin-right: 0.5em; flex: 1; } @@ -155,6 +158,8 @@ &:before { content: @fa-var-angle-right; + margin-left: 0.5em; + margin-right: 0; } span.inner { @@ -167,6 +172,10 @@ height: 1px; display: block; } + + li:last-child { + border: 0; + } } .toolbarmenu li { diff --git a/skins/elastic/templates/addressbook.html b/skins/elastic/templates/addressbook.html index 24f78bc8d..bae2ee10f 100644 --- a/skins/elastic/templates/addressbook.html +++ b/skins/elastic/templates/addressbook.html @@ -118,7 +118,7 @@ -
+

-
+