From be547ca6bcd1d459c90d26f37b2a80c85a8a9b1d Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Sun, 10 Jan 2016 14:10:51 +0100 Subject: [PATCH] Arregados errores de estilo, cambios varios --- web/forms/admin/access-log/ui.xml | 2 +- web/forms/admin/connections/ui.xml | 2 +- web/forms/ecomerce/catalog/catalog.js | 28 +++++++------ web/forms/ecomerce/catalog/style.css | 4 +- web/forms/ecomerce/catalog/ui.xml | 57 +++------------------------ web/js/hedera/gui.css | 12 +++--- web/js/hedera/style.css | 4 +- 7 files changed, 33 insertions(+), 76 deletions(-) diff --git a/web/forms/admin/access-log/ui.xml b/web/forms/admin/access-log/ui.xml index d575e504..a3eaa665 100755 --- a/web/forms/admin/access-log/ui.xml +++ b/web/forms/admin/access-log/ui.xml @@ -61,7 +61,7 @@

- , + -

diff --git a/web/forms/admin/connections/ui.xml b/web/forms/admin/connections/ui.xml index 12e26d2e..e6d2a079 100755 --- a/web/forms/admin/connections/ui.xml +++ b/web/forms/admin/connections/ui.xml @@ -57,7 +57,7 @@

- , + -

diff --git a/web/forms/ecomerce/catalog/catalog.js b/web/forms/ecomerce/catalog/catalog.js index 0af1c00b..9117a6db 100755 --- a/web/forms/ecomerce/catalog/catalog.js +++ b/web/forms/ecomerce/catalog/catalog.js @@ -47,17 +47,8 @@ Vn.Catalog = new Class Vn.Node.remove (this.$('right-panel')); } - ,onSwitchViewClick: function () - { - this.setView (this.view === Vn.Catalog.View.LIST ? - Vn.Catalog.View.GRID : Vn.Catalog.View.LIST); - } - ,setView: function (view) { - var grid = this.$('grid-view'); - var node = grid.getNode (); - if (view === Vn.Catalog.View.GRID) { this.$('view-button').setProperties ({ @@ -77,10 +68,17 @@ Vn.Catalog = new Class var className = 'list-view'; } + var node = this.$('grid-view').getNode (); node.className = className; Vn.Cookie.set ('hedera_view', this.view); } + ,onSwitchViewClick: function () + { + this.setView (this.view === Vn.Catalog.View.LIST ? + Vn.Catalog.View.GRID : Vn.Catalog.View.LIST); + } + ,onBasketReady: function (form) { if (form.get ('method') != 'PICKUP') @@ -112,6 +110,14 @@ Vn.Catalog = new Class if (sortField) this.$('items-model').sortByName (sortField, sortWay); + + this.hideMenu (); + } + + ,onFilterChange: function (param, newValue) + { + if (newValue) + this.hideMenu (); } ,realmRenderer: function (builder, form) @@ -147,9 +153,7 @@ Vn.Catalog = new Class ,onTypeChange: function (param, newValue) { - if (newValue) - this.hideMenu (); - + this.onFilterChange (param, newValue); this.refreshTitle (); this.refreshFilter (undefined, newValue); } diff --git a/web/forms/ecomerce/catalog/style.css b/web/forms/ecomerce/catalog/style.css index e541d11f..4a1241a5 100755 --- a/web/forms/ecomerce/catalog/style.css +++ b/web/forms/ecomerce/catalog/style.css @@ -320,7 +320,7 @@ td.third-category .list-view .item-info > .htk-button { float: right; - margin: -.3em; + margin: -0.3em; padding: .3em; } .list-view .item-info > .htk-button > img @@ -434,7 +434,7 @@ td.third-category height: 1.8em; } -@media (max-width: 950px) +@media (max-width: 960px) { .catalog-actions > button.menu { diff --git a/web/forms/ecomerce/catalog/ui.xml b/web/forms/ecomerce/catalog/ui.xml index b0d1b335..9be85304 100755 --- a/web/forms/ecomerce/catalog/ui.xml +++ b/web/forms/ecomerce/catalog/ui.xml @@ -2,11 +2,11 @@ - - - - - + + + + + @@ -182,53 +182,6 @@ -

diff --git a/web/js/hedera/gui.css b/web/js/hedera/gui.css index 8360b67c..bbd1a472 100755 --- a/web/js/hedera/gui.css +++ b/web/js/hedera/gui.css @@ -168,7 +168,7 @@ } .vn-gui .user-info > span { - max-width: 9em; + max-width: 8em; display: inline-block; text-overflow: ellipsis; white-space: nowrap; @@ -305,16 +305,16 @@ opacity: 0; transform: translateZ(0) translateX(-2em); - -webkit-transform: translateZ(0) translateX(0em); + -webkit-transform: translateZ(0) translateX(-2em); } .vn-gui .form-holder.show { - transition: all 250ms ease-out; - -webkittransition: all 250ms ease-out; - opacity: 1; transform: translateZ(0) translateX(0em); -webkit-transform: translateZ(0) translateX(0em); + + transition: all 250ms ease-out; + -webkit-transition: all 250ms ease-out; } /* Desktop */ @@ -333,7 +333,7 @@ /* Mobile */ -@media (max-width: 950px) +@media (max-width: 960px) { .action-bar span.label, .htk-button > span diff --git a/web/js/hedera/style.css b/web/js/hedera/style.css index 31553bde..29dbe866 100755 --- a/web/js/hedera/style.css +++ b/web/js/hedera/style.css @@ -4,13 +4,13 @@ /* Standard */ @media screen { - body { font-size: 11pt; } + body { font-size: 10pt; } } /* Desktop - Laptop 1360x768 */ @media (max-resolution: 119dpi) and (min-device-width: 1340px) and (max-device-width: 1899px) { - body { font-size: 11pt; } + body { font-size: 10pt; } } /* Desktop - FHD 1920x1080 */