From 1568d25eb06648d7963fa4fffa06e519b5af2eae Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Fri, 18 May 2012 17:23:42 +0200 Subject: [ADD] marking of currently selected filters in the drawer Visually hints to users currently manipulating the drawer that a given filter is currently selected. bzr revid: xmo@openerp.com-20120518152342-xmqhwlml0bsgodhq --- addons/web/static/src/css/base.css | 5 ++++- addons/web/static/src/css/base.sass | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'addons/web/static/src/css') diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 5dcc1f3b8a9..37b4de1dd32 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1341,12 +1341,15 @@ } .openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li { list-style: none; - padding: 3px 6px; + padding: 3px 6px 3px 18px; height: 14px; line-height: 14px; color: inherit; cursor: pointer; } +.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li.oe_selected { + background: url(/web/static/src/img/icons/gtk-apply.png) left center no-repeat; +} .openerp .oe_searchview .oe_searchview_drawer .oe_searchview_filters li:hover { background-color: #f0f0fa; } diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index ecade4ff30e..67e2399069b 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -1094,15 +1094,19 @@ $colour4: #8a89ba li list-style: none - padding: 3px 6px + padding: 3px 6px 3px 18px height: 14px line-height: 14px color: inherit cursor: pointer + &.oe_selected + background: url(/web/static/src/img/icons/gtk-apply.png) left center no-repeat + // after oe_selected so background color is not overridden &:hover background-color: $hover-background + .oe_searchview_custom form display: none -- cgit v1.2.3