summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-05-16 12:42:48 +0200
committerXavier Morel <xmo@openerp.com>2012-05-16 12:42:48 +0200
commitebea74aa2512e4534410a3a9d494fa3d3b01c3dc (patch)
tree5da21c592915ddad37e72998fed681b57d3f8721 /addons/web/static/src/css
parent26b4c5a8324bfb0521b7ece231f7370b91b7108c (diff)
[IMP] move deletion button for custom filters to the extreme right of the filter's line
apr reco, looks better and less likely to be mistakenly clicked bzr revid: xmo@openerp.com-20120516104248-j6sbyv0985xf1n88
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css17
-rw-r--r--addons/web/static/src/css/base.sass19
2 files changed, 33 insertions, 3 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 1824c3e745d..0a7bfa352a8 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -1307,7 +1307,7 @@
}
.openerp .oe_searchview .oe_searchview_drawer button, .openerp .oe_searchview .oe_searchview_drawer .button {
border: none;
- background: white;
+ background: transparent;
padding: 0 2px;
-moz-box-shadow: none;
-webkit-box-shadow: none;
@@ -1340,6 +1340,7 @@
list-style: none;
padding: 3px 6px;
height: 14px;
+ line-height: 14px;
color: inherit;
cursor: pointer;
}
@@ -1360,6 +1361,20 @@
font-size: 20px;
color: #404040;
}
+.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_custom li {
+ cursor: pointer;
+ position: relative;
+ line-height: 1.2em;
+ padding: 2px 20px 2px 10px;
+}
+.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_custom li:hover {
+ background-color: #f0f0fa;
+}
+.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_custom li button {
+ position: absolute;
+ top: 0;
+ right: 5px;
+}
.openerp .oe_searchview .oe_searchview_drawer .oe_searchview_advanced form {
display: none;
}
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index cb7f0e30f9e..e97663eadb2 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -4,6 +4,7 @@
$section-title-color: #8786b7
$facets-border: #afafb6
$facets-border-selected: #a6a6fe
+$hover-background: #f0f0fa
$colour4: #8a89ba
// }}}
// Mixins {{{
@@ -1066,7 +1067,7 @@ $colour4: #8a89ba
button, .button
border: none
- background: white
+ background: transparent
padding: 0 2px
@include box-shadow(none)
@include radius(0)
@@ -1093,11 +1094,12 @@ $colour4: #8a89ba
list-style: none
padding: 3px 6px
height: 14px
+ line-height: 14px
color: inherit
cursor: pointer
&:hover
- background-color: #f0f0fa
+ background-color: $hover-background
.oe_searchview_custom
form
@@ -1105,6 +1107,19 @@ $colour4: #8a89ba
button
@include text-to-icon("S")
+ li
+ cursor: pointer
+ position: relative
+ line-height: 1.2em
+ padding: 2px 20px 2px 10px
+
+ &:hover
+ background-color: $hover-background
+
+ button
+ position: absolute
+ top: 0
+ right: 5px
.oe_searchview_advanced
form