From b68de72f86b9f42490c3c18490ffba6f742862a9 Mon Sep 17 00:00:00 2001 From: Marion Muszynski Date: Fri, 20 May 2016 10:48:35 +0200 Subject: [PATCH] add postcode autocomplete for mobile --- themes/site_mobile/address.tpl | 284 +++++++++++++++++++++++++++++++ themes/site_mobile/addresses.tpl | 3 +- themes/site_mobile/css/style.css | 48 ++++++ 3 files changed, 334 insertions(+), 1 deletion(-) diff --git a/themes/site_mobile/address.tpl b/themes/site_mobile/address.tpl index ac70c3e3..f28d3723 100755 --- a/themes/site_mobile/address.tpl +++ b/themes/site_mobile/address.tpl @@ -284,4 +284,288 @@ $(function(){ldelim}

+ diff --git a/themes/site_mobile/addresses.tpl b/themes/site_mobile/addresses.tpl index 8f6ef7c2..937bf500 100755 --- a/themes/site_mobile/addresses.tpl +++ b/themes/site_mobile/addresses.tpl @@ -132,7 +132,8 @@ {/if} \ No newline at end of file diff --git a/themes/site_mobile/css/style.css b/themes/site_mobile/css/style.css index eae6f040..60f3a1e8 100755 --- a/themes/site_mobile/css/style.css +++ b/themes/site_mobile/css/style.css @@ -4477,4 +4477,52 @@ body#order table#carrierTable tbody tr td.carrier_infos span.price { } #soflexibilite_speech{ display: none!important +} + +/******** Button add address ************/ +body#addresses #center_column p.footer_links a.button{ + border: 0; + display: block; + height: 40px; + line-height: 40px; + text-align: center; + padding: 0px 5%; + color: #f0f0f0; + font-size: 12px; + text-transform: uppercase; + background: #565485; +} +body#addresses #center_column p.footer_links a.button.back_account { + margin-top: 20px; + background: #e36ea2; +} +/******** Address autocomplete **********/ +#address_ac { + z-index: 5; + background: #FFF; + border-left: 1px solid #e4e4e4; + border-right: 1px solid #e4e4e4; + border-bottom: 1px solid #e4e4e4; + margin: 1px 0px 0px 0px; + min-width: 278px; + -moz-box-shadow: 2px 10px 10px -8px rgba(0, 0, 0, .5); + -webkit-box-shadow: 2px 10px 10px -8px rgba(0, 0, 0, .5); + -ms-box-shadow: 2px 10px 10px -8px rgba(0, 0, 0, .5); + -o-box-shadow: 2px 10px 10px -8px rgba(0, 0, 0, .5); + box-shadow: 2px 10px 10px -8px rgba(0, 0, 0, .5)); + list-style: outside none; + overflow: auto; + max-height: 300px; +} +#address_ac li { + font-size: 12px; + line-height: 1.4em; + padding: 5px 20px 5px 10px; + cursor: pointer; +} +#address_ac li:hover { + background: #EEE; +} +#address_ac strong { + padding: 0px 1px; } \ No newline at end of file