From 3b4ef70efcfba6265da4aec7c591ece82533842d Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 17 Nov 2017 16:13:45 +0100 Subject: [PATCH] Fix styling issue of preferences hint message in mobile template --- preferences/templates/mobile/app.css | 126 ++++++++++++++++++++++ preferences/templates/mobile/app.less | 37 +++++++ preferences/templates/mobile/settings.xet | 10 +- 3 files changed, 168 insertions(+), 5 deletions(-) create mode 100644 preferences/templates/mobile/app.css create mode 100644 preferences/templates/mobile/app.less diff --git a/preferences/templates/mobile/app.css b/preferences/templates/mobile/app.css new file mode 100644 index 0000000000..0748afca2b --- /dev/null +++ b/preferences/templates/mobile/app.css @@ -0,0 +1,126 @@ +/** + * EGroupware: CSS with less preprocessor + * + * PREFERENCES + * + * Please do NOT change app.css directly, instead change app.less and compile it! + * + * @link http://www.egroupware.org + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @author Stefan Reinhardt + * @package preferences + * @version $Id$ + */ +/** + * EGroupware - CSS Styles used by preferences app + * + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @package preferences + * @link http://www.egroupware.org + * @author Ralf Becker + * @version $Id$ + */ +table.prefTable { + width: 100%; +} +table.prefTable tbody tr.prefRow:first-child > .prefHelpColumn { + background-image: url(../../../api/templates/default/images/hint.png); + background-repeat: no-repeat; + background-position: center; + height: 99%; +} +tr.prefRow:hover { + background-color: #f0f0ff; +} +td.prefName { + width: 50%; +} +tr.prefRow > td { + vertical-align: bottom; + /* otherwise help will cover bigger prefValue */ +} +/*.prefValueColumn {border-right:none !important;}*/ +.prefHelpColumn { + border: none !important; + padding: 0 !important; +} +.prefHelp { + position: absolute; + display: none; + width: 255px; + max-height: 99%; + height: calc(-51%); + background-color: #f0f0ff; + padding: 5px; + top: 80px; + overflow-y: auto; + z-index: 1; +} +tr.prefRow:hover .prefHelp { + display: block; + z-index: 10; + /* FF: displays it under next prefName without */ +} +.prefDefault, +.prefValue { + float: left; + display: inline-block; +} +.prefValue { + margin-right: 5px; + width: 49%; +} +.prefDefault { + float: right; + width: 48%; +} +.prefValue textarea, +textarea.prefValue { + width: 99%; + height: 5em; +} +.prefType, +.prefApp { + font-size: 150%; + margin-top: 10px; + margin-right: 5px; +} +.prefType { + width: 49%; +} +.prefApp { + width: 49.50%; +} +#preferences-password .dialogHeader td { + text-align: center; +} +/* arrange readonly selectbox background icon*/ +.et2_selectbox.readonly.prefType { + padding-right: 50px; +} +.prefValueColumn select.prefValue { + white-space: pre-line; +} +.prefHelp { + width: 100%; + height: 60px; + bottom: 0; + top: auto; + position: fixed; +} +table.prefTable { + width: 100%; +} +td.prefName { + width: 50%; +} +tr.prefRow > td { + vertical-align: bottom; + /* otherwise help will cover bigger prefValue */ +} +tr.prefRow > td textarea.prefValue { + height: 90px !important; +} +div#preferences-settings_tabs { + margin-bottom: 65px; +} diff --git a/preferences/templates/mobile/app.less b/preferences/templates/mobile/app.less new file mode 100644 index 0000000000..6801cfa176 --- /dev/null +++ b/preferences/templates/mobile/app.less @@ -0,0 +1,37 @@ +/** + * EGroupware: CSS with less preprocessor + * + * PREFERENCES + * + * Please do NOT change app.css directly, instead change app.less and compile it! + * + * @link http://www.egroupware.org + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @author Stefan Reinhardt + * @package preferences + * @version $Id$ + */ + +@import (reference) "../../../pixelegg/less/def_buttons.less"; +@import (reference) "../../../pixelegg/less/def_design_pattern_color_font_shadow.less"; +@import (less) "../default/app.css"; +.prefHelp { + width: 100%; + height: 60px; + bottom: 0; + top: auto; + position: fixed; +} +table.prefTable { + width: 100%; +} +td.prefName { + width: 50%; +} +tr.prefRow > td { + vertical-align: bottom; /* otherwise help will cover bigger prefValue */ + textarea.prefValue {height:90px !important;} +} +div#preferences-settings_tabs { + margin-bottom: 65px; +} \ No newline at end of file diff --git a/preferences/templates/mobile/settings.xet b/preferences/templates/mobile/settings.xet index 4ff1487ac1..b043348cca 100644 --- a/preferences/templates/mobile/settings.xet +++ b/preferences/templates/mobile/settings.xet @@ -6,7 +6,7 @@ - + @@ -35,7 +35,7 @@