From 042864ac13bb48b2de066bbfbc44e54bc2ec28e1 Mon Sep 17 00:00:00 2001 From: Pranay Pandey Date: Mon, 13 Jun 2016 09:13:14 +0000 Subject: [PATCH] [OFBIZ-7268] Improved the styling for the anchor links inside the 'button-bar' to fix styling for CommonButtonBarMenu. Reverted the changes committed under OFBIZ-7006, since these UI improvements fix that issue as well by extending CommonButtonBarMenu. Thanks Swapnil M Mane for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1748145 13f79535-47bb-0310-9956-ffa450edef68 --- framework/webtools/widget/Menus.xml | 2 +- themes/bizznesstime/webapp/bizznesstime/css/style.css | 2 +- themes/bluelight/webapp/bluelight/style.css | 6 +++--- themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css | 6 +++--- themes/flatgrey/webapp/flatgrey/maincss.css | 4 +++- themes/rainbowstone/webapp/rainbowstone/maincss.css | 3 ++- .../webapp/rainbowstone/rainbowstone-amber.less | 3 ++- .../webapp/rainbowstone/rainbowstone-emerald.less | 3 ++- .../rainbowstone/webapp/rainbowstone/rainbowstone-ruby.less | 3 ++- .../webapp/rainbowstone/rainbowstone-saphir.less | 3 ++- themes/tomahawk/webapp/tomahawk/css/style.css | 4 ++++ 11 files changed, 25 insertions(+), 14 deletions(-) diff --git a/framework/webtools/widget/Menus.xml b/framework/webtools/widget/Menus.xml index 033f8bb11e..e4766013fc 100644 --- a/framework/webtools/widget/Menus.xml +++ b/framework/webtools/widget/Menus.xml @@ -277,7 +277,7 @@ under the License. - + diff --git a/themes/bizznesstime/webapp/bizznesstime/css/style.css b/themes/bizznesstime/webapp/bizznesstime/css/style.css index 4be915344c..e16df786a5 100644 --- a/themes/bizznesstime/webapp/bizznesstime/css/style.css +++ b/themes/bizznesstime/webapp/bizznesstime/css/style.css @@ -977,7 +977,7 @@ a.buttontext,.buttontextdisabled { /*white-space: nowrap;*/ } -a.buttontext { +a.buttontext, .button-bar li.buttontext a { background:url(../images/btn-bg.gif) center left repeat-x; border:2px solid #ddd; color:#444444; diff --git a/themes/bluelight/webapp/bluelight/style.css b/themes/bluelight/webapp/bluelight/style.css index e7ddf593a5..deb0d97c49 100644 --- a/themes/bluelight/webapp/bluelight/style.css +++ b/themes/bluelight/webapp/bluelight/style.css @@ -309,7 +309,7 @@ A.browsecategorybutton { font-weight: bold; } -A.buttontext,.buttontextdisabled { +A.buttontext,.buttontextdisabled, .button-bar li.buttontext a { background-color: #ffffff; border: #999999 solid 0.1em; font-weight: bold; @@ -319,11 +319,11 @@ A.buttontext,.buttontextdisabled { /*white-space: nowrap;*/ } -A.buttontext { +A.buttontext, .button-bar li.buttontext a { color: #000099; } -A.buttontext:hover { +A.buttontext:hover, .button-bar li.buttontext a:hover { color: #ff0000; } diff --git a/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css b/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css index 21222b74bd..4190f9372b 100644 --- a/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css +++ b/themes/droppingcrumbs/webapp/droppingcrumbs/css/style.css @@ -314,7 +314,7 @@ color: #333333; font-weight: bold; } -A.buttontext,.buttontextdisabled { +A.buttontext,.buttontextdisabled, .button-bar li.buttontext a { background-color: #ffffff; border: #999999 solid 0.1em; font-weight: bold; @@ -324,11 +324,11 @@ padding: 0.1em 0.4em 0.1em 0.4em; /*white-space: nowrap;*/ } -A.buttontext { +A.buttontext, .button-bar li.buttontext a { color: #000099; } -A.buttontext:hover { +A.buttontext:hover, .button-bar li.buttontext a:hover { color: #ff0000; } diff --git a/themes/flatgrey/webapp/flatgrey/maincss.css b/themes/flatgrey/webapp/flatgrey/maincss.css index 3839ee87db..d4e8feb036 100644 --- a/themes/flatgrey/webapp/flatgrey/maincss.css +++ b/themes/flatgrey/webapp/flatgrey/maincss.css @@ -695,6 +695,7 @@ display: inline; /* IE Fix */ .button-bar ul li ul li { float: left; font-weight: bold; +margin-right: 0.5em; } .button-bar ul .opposed { @@ -1463,11 +1464,12 @@ textarea { vertical-align: middle; } +.button-bar li.buttontext a, a.buttontext, a.buttontextbig, .smallSubmit, .smallSubmit:hover, -.mediumSubmit, +.mediumSubmit, .largeSubmit, .loginButton, .button-style-1 a, diff --git a/themes/rainbowstone/webapp/rainbowstone/maincss.css b/themes/rainbowstone/webapp/rainbowstone/maincss.css index e98866f14a..e10db428bc 100644 --- a/themes/rainbowstone/webapp/rainbowstone/maincss.css +++ b/themes/rainbowstone/webapp/rainbowstone/maincss.css @@ -562,6 +562,7 @@ text-decoration: underline; .button-bar ul li ul li { float: left; font-weight: bold; + margin-right: 0.5em; } .button-bar ul .opposed { @@ -1878,4 +1879,4 @@ html>/**/body .jstree-default a { float :right; } -/*end addon modification generic-portlet*/ \ No newline at end of file +/*end addon modification generic-portlet*/ diff --git a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-amber.less b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-amber.less index abc9976c99..c78e1c4c91 100644 --- a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-amber.less +++ b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-amber.less @@ -1911,6 +1911,7 @@ ul.paginate-pg-list li:hover{ /* Button Style */ /* ---------------------- */ +.button-bar li.buttontext a, a.buttontext, a.buttontextbig, .smallSubmit, @@ -1993,4 +1994,4 @@ input[type="button"] { #footer-offset { height: @footer-height + 10px; width: 100%; -} \ No newline at end of file +} diff --git a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-emerald.less b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-emerald.less index afe2423f47..6eb063734b 100644 --- a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-emerald.less +++ b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-emerald.less @@ -1912,6 +1912,7 @@ ul.paginate-pg-list li:hover{ /* Button Style */ /* ---------------------- */ +.button-bar li.buttontext a, a.buttontext, a.buttontextbig, .smallSubmit, @@ -1994,4 +1995,4 @@ input[type="button"] { #footer-offset { height: @footer-height + 10px; width: 100%; -} \ No newline at end of file +} diff --git a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-ruby.less b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-ruby.less index db3d10a76b..47e0a2db30 100644 --- a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-ruby.less +++ b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-ruby.less @@ -1913,6 +1913,7 @@ ul.paginate-pg-list li:hover{ /* Button Style */ /* ---------------------- */ +.button-bar li.buttontext a, a.buttontext, a.buttontextbig, .smallSubmit, @@ -1995,4 +1996,4 @@ input[type="button"] { #footer-offset { height: @footer-height + 10px; width: 100%; -} \ No newline at end of file +} diff --git a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-saphir.less b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-saphir.less index 282b1b3b47..89a1825044 100644 --- a/themes/rainbowstone/webapp/rainbowstone/rainbowstone-saphir.less +++ b/themes/rainbowstone/webapp/rainbowstone/rainbowstone-saphir.less @@ -1915,6 +1915,7 @@ ul.paginate-pg-list li:hover{ /* Button Style */ /* ---------------------- */ +.button-bar li.buttontext a, a.buttontext, a.buttontextbig, .smallSubmit, @@ -1997,4 +1998,4 @@ input[type="button"] { #footer-offset { height: @footer-height + 10px; width: 100%; -} \ No newline at end of file +} diff --git a/themes/tomahawk/webapp/tomahawk/css/style.css b/themes/tomahawk/webapp/tomahawk/css/style.css index 659d3e0e61..5bfde07c0a 100644 --- a/themes/tomahawk/webapp/tomahawk/css/style.css +++ b/themes/tomahawk/webapp/tomahawk/css/style.css @@ -1486,6 +1486,10 @@ font-weight: bold; text-transform: uppercase; } +.button-bar ul li ul li { +margin-right: 0.5em; +} + .button-bar ul .opposed { float: right; }