diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-05-02 15:43:12 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-05-02 15:43:12 +0200 |
| commit | f009c765984eb8b409dc42f7bb601acf14e6b577 (patch) | |
| tree | d677f63e9c4e2b50d0d635a31bedc6512214ad97 /addons/web/static/src/css | |
| parent | a40e410d1afdddd0f266af338a674fd1670fd74a (diff) | |
[ADD] focus last input if the user clicks somewhere in the search view, outside of a search view control
bzr revid: xmo@openerp.com-20120502134312-0tuspwcmtlw5el3o
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 7 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 20b4cb92ff4..6788c532d9d 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1046,6 +1046,7 @@ white-space: nowrap; } .openerp .oe_searchview { + cursor: text; position: relative; float: right; padding-right: 20px; @@ -1059,6 +1060,12 @@ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset; -box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) inset; } +.openerp .oe_searchview.oe_focused { + border-color: #a6a6fe; + -moz-box-shadow: 0 1px 2px #a6a6fe inset; + -webkit-box-shadow: 0 1px 2px #a6a6fe inset; + -box-shadow: 0 1px 2px #a6a6fe inset; +} .openerp .oe_searchview .oe_searchview_clear { cursor: pointer; position: absolute; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index eabcae107b7..0f420b1aea3 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -819,6 +819,7 @@ $colour4: #8a89ba // }}} // SearchView xmo {{{ .oe_searchview + cursor: text position: relative float: right padding-right: 20px @@ -828,6 +829,10 @@ $colour4: #8a89ba @include radius(1em) @include box-shadow(0 1px 2px rgba(0,0,0,0.2) inset) + &.oe_focused + border-color: $facets-border-selected + @include box-shadow(0 1px 2px $facets-border-selected inset) + .oe_searchview_clear cursor: pointer position: absolute |
