From: Moritz Bunkus Date: Mon, 4 Jul 2016 11:39:09 +0000 (+0200) Subject: Revert "Partpicker styling" X-Git-Tag: release-3.4.1~7 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=3ca17b1b1db28ea6b1ddbb90b68d6a580f5fee87;p=kivitendo-erp.git Revert "Partpicker styling" This reverts commit b9889576a1229f41edc2c1daf9b649d97fb7fd2e. Grund: im Chrome (sowohl unter Linux als auch Windows) sieht das Ergebnis ziemlich mies und hochgradig verwirrend aus. Im Internet Explorer ist die Lupe zusätzlich zu weit unten positioniert (eher ein Schönheitsfehler). --- diff --git a/css/kivitendo/main.css b/css/kivitendo/main.css index 06afe14af..fc6b38fd9 100644 --- a/css/kivitendo/main.css +++ b/css/kivitendo/main.css @@ -392,6 +392,7 @@ label { } .part_picker { + padding-right: 16px; } .chart_picker { padding-right: 16px; @@ -429,25 +430,6 @@ div.ppp_block { float:left; width: 350px; } -span.ppp_popup_button { - position: absolute; - margin-left: -24px; - margin-top: 5px; - width: 20px; - height: 20px; - cursor: pointer; - background: url("../../image/search.svg") no-repeat center right; - background-size: contain; -} -span.part_picker input { - padding-right: 20px; - box-sizing: padding-box; - -moz-box-sizing: padding-box; - -webkit-box-sizing: padding-box; -} -span.part_picker { - white-space: nowrap; -} /* div.cpc_block { */ /* overflow:hidden; */ /* float:left; */ diff --git a/css/lx-office-erp/main.css b/css/lx-office-erp/main.css index db288deef..2b539fac8 100644 --- a/css/lx-office-erp/main.css +++ b/css/lx-office-erp/main.css @@ -25,8 +25,6 @@ input, textarea, select { select { -moz-appearance: none; - -webkit-appearance: none; - -o-appearance: none; appearance : none; background: white url('../../image/select-down.png') no-repeat scroll right center; padding: 0 14px 0 0; @@ -391,6 +389,7 @@ label { } .part_picker { + padding-right: 16px; } .chart_picker { padding-right: 16px; @@ -426,40 +425,6 @@ div.ppp_block { float:left; width: 350px; } -span.ppp_popup_button { - display: inline-block; - position: relative; - margin-left: -18px; - margin-top: 3px; - height: 16px; - width: 16px; - cursor: pointer; -} - -td span.ppp_popup_button, -th span.ppp_popup_button { - height: 9px; - width: 9px; - margin-left: -13px; -} -span.part_picker input { - padding-right: 20px; - background: white url("../../image/search.svg") no-repeat center right; - background-size: contain; - box-sizing: padding-box; - -moz-box-sizing: padding-box; - -webkit-box-sizing: padding-box; -} - -td span.part_picker input, -th span.part_picker input { - padding-right: 15px; -} - -span.part_picker { - /* white-space: nowrap;*/ -} - div.ppp_block span.ppp_block_number, div.cpc_block span.cpc_block_number { @@ -516,4 +481,3 @@ a.red { background-color:#FF0000; border:none; } - diff --git a/image/search.svg b/image/search.svg deleted file mode 100644 index 4858934cc..000000000 --- a/image/search.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/js/autocomplete_part.js b/js/autocomplete_part.js index cc9354ac3..0366ed270 100644 --- a/js/autocomplete_part.js +++ b/js/autocomplete_part.js @@ -237,9 +237,11 @@ namespace('kivi', function(k){ }); // now add a picker div after the original input - var popup_button = $('').addClass('ppp_popup_button'); - $dummy.after(popup_button); - popup_button.click(open_dialog); + var pcont = $('').addClass('position-absolute'); + var picker = $('
'); + $dummy.after(pcont); + pcont.append(picker); + picker.addClass('icon16 search').click(open_dialog); var pp = { real: function() { return $real }, diff --git a/templates/webpages/part/test_page.html b/templates/webpages/part/test_page.html index f5458096d..61aa10593 100644 --- a/templates/webpages/part/test_page.html +++ b/templates/webpages/part/test_page.html @@ -1,6 +1,6 @@ [% USE L %] -

Part Picker Testpage

+

Waren Picker Testpage


Alle:
@@ -12,49 +12,7 @@ Nur Dienstleistungen:
Waren und Dienstleistungen:
[% L.part_picker('part_id4', undef, type='part,service') %]
-

Styling

- -Ina span: -Leading text: [% L.part_picker('p1', undef, type='part,service') %] and text after with spacing
-Leading text:[% L.part_picker('p2', undef, type='part,service') %]and text after without spacing
-
Leading text: [% L.part_picker('p3', undef, type='part,service') %] and text after with spacing with div

-
Leading text:[% L.part_picker('p4', undef, type='part,service') %]and text after with spacing with div

- -Picker + input next to each other: [% L.part_picker('p5', undef, type='part,service', width="100%") %] - -
[% L.part_picker('p6', undef, type='part,service', style="width:500px") %] 500px width
-
[% L.part_picker('p7', undef, type='part,service', style="width:200px") %] 200px width
-
[% L.part_picker('p8', undef, type='part,service', style="height:40px") %] 40px height
- [%# FOREACH i IN 1..50 %] [%# L.part_picker('part_id_' _ i) %]
[%# END %] - -

In tables

- -

No classes:

- - - - - - - - - - -
Part picker in table heading[% L.part_picker('p9', undef, type='part,service') %]
Part picker in table cell[% L.part_picker('p10', undef, type='part,service') %]
- -

With classes:

- - - - - - - - - - -
Part picker in table heading[% L.part_picker('p11', undef, type='part,service') %]
Part picker in table cell[% L.part_picker('p12', undef, type='part,service') %]