From f1e911ec0376b7ed603eb1afe652c86bd9c64dc3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 24 Mar 2019 19:25:00 +0100 Subject: [PATCH] Elastic: Toolbar/menus/layout refactoring Refactoring for better consistency and simplicity. 5KB less in size of (minified) styles.css file. Layout changes: - body > #layout > .menu -> #layout-menu - body > #layout > .list -> #layout-list - body > #layout > .sidebar -> #layout-sidebar - body > #layout > .content -> #layout-content Toolbar/menu changes: - .toolbar -> .toolbar.menu - .toolbarmenu -> .menu.listing - .menu-button -> .task-menu-button - .pagenav.toolbar -> .pagenav.menu - #taskmenu -> #taskmenu.menu.toolbar - .image-tools .menu -> .image-tools .menu.toolbar - required .disabled class to de-activate menu items - .button class is not required on .menu children - merge toolbar.less and taskmenu.less into menu.less - @color-toolbarmenu-hover -> @color-menu-hover - @color-toolbarmenu-hover-background -> @color-menu-hover-background Also cleaned/removed some code in spellchecker.js. Made .googie_list a list not table. --- .../acl/skins/elastic/templates/table.html | 15 +- .../enigma/skins/elastic/templates/keys.html | 47 +- .../help/skins/elastic/templates/content.html | 2 +- .../help/skins/elastic/templates/help.html | 12 +- plugins/managesieve/managesieve.php | 2 +- .../skins/elastic/templates/forward.html | 2 +- .../skins/elastic/templates/managesieve.html | 30 +- .../skins/elastic/templates/vacation.html | 2 +- plugins/markasjunk/markasjunk.php | 4 +- plugins/zipdownload/zipdownload.php | 4 +- program/js/app.js | 4 +- program/js/googiespell.js | 404 ++++-------- skins/classic/googiespell.css | 2 +- skins/elastic/README.md | 10 +- skins/elastic/styles/colors.less | 4 +- skins/elastic/styles/layout.less | 204 ++++-- skins/elastic/styles/styles.less | 29 +- skins/elastic/styles/variables.less | 2 +- skins/elastic/styles/widgets/buttons.less | 2 +- skins/elastic/styles/widgets/common.less | 6 +- skins/elastic/styles/widgets/dialogs.less | 4 - skins/elastic/styles/widgets/editor.less | 10 +- skins/elastic/styles/widgets/jqueryui.less | 2 +- skins/elastic/styles/widgets/lists.less | 19 +- skins/elastic/styles/widgets/mail.less | 12 +- .../widgets/{toolbar.less => menu.less} | 623 ++++++++++-------- skins/elastic/styles/widgets/taskmenu.less | 221 ------- skins/elastic/templates/about.html | 2 +- skins/elastic/templates/addressbook.html | 79 ++- skins/elastic/templates/bounce.html | 2 +- skins/elastic/templates/compose.html | 52 +- skins/elastic/templates/dialog.html | 2 +- skins/elastic/templates/error.html | 8 +- skins/elastic/templates/folders.html | 17 +- skins/elastic/templates/identities.html | 12 +- .../elastic/templates/includes/mail-menu.html | 87 ++- skins/elastic/templates/includes/menu.html | 20 +- skins/elastic/templates/includes/pagenav.html | 14 +- .../templates/includes/settings-menu.html | 4 +- skins/elastic/templates/login.html | 2 +- skins/elastic/templates/mail.html | 60 +- skins/elastic/templates/message.html | 14 +- skins/elastic/templates/messagepart.html | 59 +- skins/elastic/templates/plugin.html | 2 +- skins/elastic/templates/responses.html | 16 +- skins/elastic/templates/settings.html | 4 +- skins/elastic/ui.js | 73 +- skins/larry/googiespell.css | 4 +- 48 files changed, 950 insertions(+), 1261 deletions(-) rename skins/elastic/styles/widgets/{toolbar.less => menu.less} (64%) delete mode 100644 skins/elastic/styles/widgets/taskmenu.less diff --git a/plugins/acl/skins/elastic/templates/table.html b/plugins/acl/skins/elastic/templates/table.html index 1d74a7e4a..0a4b58133 100644 --- a/plugins/acl/skins/elastic/templates/table.html +++ b/plugins/acl/skins/elastic/templates/table.html @@ -3,21 +3,20 @@

-