From 61a17c3f56836e9b2c8808c64278d2607ff32fa4 Mon Sep 17 00:00:00 2001 From: Minh Tran Date: Wed, 13 Jun 2012 14:08:26 +0200 Subject: Styling of the graph view dropdown menu bzr revid: mit@openerp.com-20120613120826-q1mmzhx1qdx2m8cw --- addons/web_graph/static/src/css/graph.css | 69 ++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 14 deletions(-) (limited to 'addons/web_graph/static/src/css') diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index 7e01346cc3a..69c79542497 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -1,9 +1,12 @@ -.dropdown-menu-icon { - z-index: 5000; +.openerp a.dropdown-menu-icon { + z-index: 10; position: absolute; - right: 0px; + color: #4c4c4c; + right: 8px; +} +.openerp a.dropdown-menu-icon:hover { + text-decoration: none; } - .editor-render { position: relative; } @@ -12,24 +15,62 @@ width: 650px; height: 350px; } -.graph-dropdown { - padding: 5px; - width: 200px; - border: 1px #333 solid; +.openerp .graph-dropdown { display: none; position: absolute; - right: 0px; - background: #fafaf5; - z-index: 100; + top: 40px; + right: 8px; + padding: 8px; + border: 1px solid #afafb6; + background: white; + z-index: 900; + min-width: 160px; + overflow-x: hidden; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); + -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); + -box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); +} +.openerp .graph-dropdown h3 { + margin: 8px 4px 4px 0; + color: #8786b7; + font-size: 13px; } -.open .graph-dropdown { +.openerp .graph-menu > li > a { + position: relative; + display: block; + padding: 2px 4px 2px 20px; + line-height: 14px; + color: #4c4c4c; + text-decoration: none; +} +.openerp .graph-menu > li > a:hover { + text-decoration: none; + background: #f0f0fa; + background: -moz-linear-gradient(#f0f0fa, #eeeef6); + background: -webkit-gradient(linear, left top, left bottom, from(#f0f0fa), to(#eeeef6)); + background: -webkit-linear-gradient(#f0f0fa, #eeeef6); + -moz-box-shadow: none; + -webkit-box-shadow: none; + -box-shadow: none; +} +.openerp .open .graph-dropdown { display: block; } .graph-menu { padding: 3px; } -.graph-menu .active { - background: #aaaaff; +.graph-menu .active:before { + content: "W"; + font-family: "entypoRegular" !important; + font-size: 24px; + font-weight: 300 !important; + color: #a3a3a3; + position: absolute; + left: 4px; + top: -2px; } li { padding: 2px; -- cgit v1.2.3 From dd2b3227a8c2e8d39fad5139ff575eea6d02d660 Mon Sep 17 00:00:00 2001 From: Minh Tran Date: Mon, 25 Jun 2012 16:48:45 +0200 Subject: Graph dropdown toggle improvement bzr revid: mit@openerp.com-20120625144845-idyfjd3px6pct5jj --- addons/web_graph/static/src/css/graph.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_graph/static/src/css') diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index 69c79542497..367d1de5ef5 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -18,7 +18,7 @@ .openerp .graph-dropdown { display: none; position: absolute; - top: 40px; + top: 32px; right: 8px; padding: 8px; border: 1px solid #afafb6; -- cgit v1.2.3 From b7c735f84e205bc34f502042336da422437828b5 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Thu, 6 Sep 2012 14:12:27 +0200 Subject: [REM] broken styles bzr revid: xmo@openerp.com-20120906121227-pt83g8q7c92wedn2 --- addons/web_graph/static/src/css/graph.css | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'addons/web_graph/static/src/css') diff --git a/addons/web_graph/static/src/css/graph.css b/addons/web_graph/static/src/css/graph.css index 367d1de5ef5..f3e69c4687a 100644 --- a/addons/web_graph/static/src/css/graph.css +++ b/addons/web_graph/static/src/css/graph.css @@ -72,14 +72,7 @@ left: 4px; top: -2px; } -li { +.graph-menu li { padding: 2px; margin-left: 10px; } -a .graph-menu-options { - color: white; -} -div .graph-menu-options { - float: right; - top: 0px; -} -- cgit v1.2.3