From: Sven S. <m.b...@li...> - 2016-07-14 15:30:51
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "kivitendo ERP". The branch master has been updated via e79b666bb95d38213255da7ded138a2818db9adb (commit) from 224be2fe21da8b17fcdbb5b9dfa12395a5ec367a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit e79b666bb95d38213255da7ded138a2818db9adb Author: Sven Schöling <s.s...@li...> Date: Thu Jul 14 17:24:14 2016 +0200 PartPicker styling: Höhe in chrome Für später: lx-office-erp.css überschreibt natives <input> styling mit einem pseudo-windows 7 Look, und kann das svg deshalb einfach als Hintergrundbild setzen. kivitendo.css belässt es aber bei nativer appearance. Sobald man da dann versucht das Hintergrundbild zu ändern, wird die nicht mehr vom Window Toolkit gerendert, sonderm vom Browser mit dessen Standardstylesheet. Ergo muss da die Lupe als inline-block über dem input Feld positioniert werden. Der gesamte Picker muss sich inline verhalten, die einzelnen Teile darin aber mit spacing Informationen gestyled werden. Dafür ist display: inline-block da. Blöderweise klappt vertical alignment innerhalb eines inline-blocks nur wenn man ein leeresa Pseudoelement vorne vor setzt. ----------------------------------------------------------------------- Summary of changes: css/kivitendo/main.css | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) Full change list: diff --git a/css/kivitendo/main.css b/css/kivitendo/main.css index 06afe14..c11529a 100644 --- a/css/kivitendo/main.css +++ b/css/kivitendo/main.css @@ -392,6 +392,12 @@ label { } .part_picker { + display: inline-block; +} +.part_picker:before { + display: inline-block; + vertical-align: middle; + height: 100%; } .chart_picker { padding-right: 16px; @@ -430,11 +436,11 @@ div.ppp_block { width: 350px; } span.ppp_popup_button { - position: absolute; + display: inline-block; + vertical-align: middle; margin-left: -24px; - margin-top: 5px; - width: 20px; height: 20px; + width: 20px; cursor: pointer; background: url("../../image/search.svg") no-repeat center right; background-size: contain; hooks/post-receive -- kivitendo ERP |