Related to issue 20207: Changes in order to proper show imgButton in some Windows Firefox instances
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 02 May 2012 14:56:50 +0200
changeset 16358 17e2142e0f5f
parent 16357 021980c686af
child 16359 95e133cb2041
Related to issue 20207: Changes in order to proper show imgButton in some Windows Firefox instances
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.css
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.css
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.css
modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.css
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.css	Wed May 02 12:19:14 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-application-styles.css	Wed May 02 14:56:50 2012 +0200
@@ -57,6 +57,21 @@
   -moz-outline-style: none;
 }
 
+.imgButton,
+.imgButtonOver,
+.imgButtonFocused,
+.imgButtonFocusedOver,
+.imgButtonDown,
+.imgButtonFocusedDown,
+.imgButtonSelected,
+.imgButtonSelectedFocused,
+.imgButtonSelectedDown,
+.imgButtonSelectedFocusedDown,
+.imgButtonSelectedOver,
+.imgButtonSelectedFocusedOver {
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
+}
+
 /*============================================================
  Top Layout
  ============================================================*/
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.css	Wed May 02 12:19:14 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-grid-styles.css	Wed May 02 14:56:50 2012 +0200
@@ -21,7 +21,11 @@
 .OBGridToolStrip {
 }
 
-.OBGridToolStripIcon {
+.OBGridToolStripIcon,
+.OBGridToolStripIconOver,
+.OBGridToolStripIconFocused,
+.OBGridToolStripIconDown {
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBGridToolStripSeparator {
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.css	Wed May 02 12:19:14 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-navigation-bar-styles.css	Wed May 02 14:56:50 2012 +0200
@@ -43,9 +43,10 @@
 .OBNavBarImgButtonSelectedFocusedDown,
 .OBNavBarImgButtonSelectedOver,
 .OBNavBarImgButtonSelectedFocusedOver {
-	cursor: pointer;
-	font-size: 11px;
+  cursor: pointer;
+  font-size: 11px;
   text-align: center;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBNavBarImgButtonDisabled,
--- a/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.css	Wed May 02 12:19:14 2012 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.userinterface.smartclient/openbravo/skins/Default/org.openbravo.client.application/ob-popup-styles.css	Wed May 02 14:56:50 2012 +0200
@@ -28,6 +28,7 @@
 
 .OBPopupHeaderIcon {
   margin: 0px 0px 0px 4px;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBPopupHeaderText {
@@ -47,6 +48,7 @@
 .OBPopupIconMinimizeDisabled {
   margin: 0px 4px 0px 0px;
   border: 1px solid #A2B48B;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBPopupIconMaximize,
@@ -55,6 +57,7 @@
 .OBPopupIconMaximizeDisabled {
   margin: 0px 4px 0px 0px;
   border: 1px solid #A2B48B;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBPopupIconRestore,
@@ -63,6 +66,7 @@
 .OBPopupIconRestoreDisabled {
   margin: 0px 4px 0px 0px;
   border: 1px solid #A2B48B;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 .OBPopupIconClose,
@@ -71,6 +75,7 @@
 .OBPopupIconCloseDisabled {
   margin: 0px 4px 0px 0px;
   border: 1px solid #FA962F;
+  line-height: 100%; /* To avoid strange effect in some Firefox where the imgButtons are 1px moved down */
 }
 
 /* OBPopupHTMLFlow */