From 431e4cb4ddd4cba7826f36765c8a0f90144adf5b Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 26 Feb 2016 12:47:46 +0100 Subject: [PATCH] Very basic responsive design / fullscreen touch menus --- com.woltlab.wcf/templates/footer.tpl | 4 +- .../templates/headIncludeJavaScript.tpl | 1 + com.woltlab.wcf/templates/pageHeaderLogo.tpl | 6 +- com.woltlab.wcf/templates/pageMenuMobile.tpl | 135 +++++++++ wcfsetup/install/files/js/WCF.ImageViewer.js | 2 +- wcfsetup/install/files/js/WCF.Location.js | 2 +- wcfsetup/install/files/js/WCF.User.js | 20 +- wcfsetup/install/files/js/WCF.js | 50 +-- .../files/js/WoltLab/WCF/Dom/Traverse.js | 18 +- .../install/files/js/WoltLab/WCF/Dom/Util.js | 24 +- .../files/js/WoltLab/WCF/Environment.js | 6 +- .../install/files/js/WoltLab/WCF/Template.js | 3 +- .../install/files/js/WoltLab/WCF/Ui/Dialog.js | 2 +- .../install/files/js/WoltLab/WCF/Ui/Mobile.js | 71 +++-- .../js/WoltLab/WCF/Ui/Page/Menu/Abstract.js | 286 ++++++++++++++++++ .../files/js/WoltLab/WCF/Ui/Page/Menu/Main.js | 31 ++ .../files/js/WoltLab/WCF/Ui/Page/Menu/User.js | 58 ++++ .../install/files/js/WoltLab/WCF/Ui/Screen.js | 183 +++++++++++ wcfsetup/install/files/js/closest.js | 22 ++ wcfsetup/install/files/js/require.config.js | 1 + wcfsetup/install/files/js/wcf.globalHelper.js | 10 +- .../install/files/style/bootstrap/mixin.scss | 13 + .../install/files/style/layout/global.scss | 19 +- .../install/files/style/layout/layout.scss | 58 ++-- .../files/style/layout/pageHeader.scss | 73 ++++- .../files/style/layout/pageHeaderSticky.scss | 64 ++-- .../files/style/layout/pageNavigation.scss | 82 ++--- wcfsetup/install/files/style/ui/dialog.scss | 3 - wcfsetup/install/files/style/ui/dropdown.scss | 2 +- .../files/style/ui/dropdownInteractive.scss | 83 +++-- .../install/files/style/ui/menuMobile.scss | 232 ++++++++++++++ wcfsetup/install/files/style/ui/redactor.scss | 2 +- .../files/style/ui/tabMenuMessage.scss | 2 +- 33 files changed, 1304 insertions(+), 264 deletions(-) create mode 100644 com.woltlab.wcf/templates/pageMenuMobile.tpl create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/Menu/Abstract.js create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/Menu/Main.js create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Page/Menu/User.js create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Ui/Screen.js create mode 100644 wcfsetup/install/files/js/closest.js create mode 100644 wcfsetup/install/files/style/ui/menuMobile.scss diff --git a/com.woltlab.wcf/templates/footer.tpl b/com.woltlab.wcf/templates/footer.tpl index 785fbc7d32..e850feb941 100644 --- a/com.woltlab.wcf/templates/footer.tpl +++ b/com.woltlab.wcf/templates/footer.tpl @@ -80,7 +80,9 @@ {include file='pageFooter'} - + +{include file='pageMenuMobile'} + {event name='footer'} diff --git a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl index 1e158c81d1..01ec621c93 100644 --- a/com.woltlab.wcf/templates/headIncludeJavaScript.tpl +++ b/com.woltlab.wcf/templates/headIncludeJavaScript.tpl @@ -15,6 +15,7 @@ {js application='wcf' file='require.config' bundle='WCF.Core' core='true'} {js application='wcf' file='require.linearExecution' bundle='WCF.Core' core='true'} {js application='wcf' file='wcf.globalHelper' bundle='WCF.Core' core='true'} +{js application='wcf' file='closest' bundle='WCF.Core' core='true'}