diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-10-17 14:16:01 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-10-17 14:16:01 +0200 |
| commit | 886767fbaa334a75f43d980eca1419a2801201bc (patch) | |
| tree | e9f8a4ec65c26ebc5aa889150fa721a7d2dff478 /addons/web/static/src/css | |
| parent | fa1aafa97d0c085e097245ae721007ce0261bae7 (diff) | |
[FIX] listview indicator positioning: position relative is UB on table elements
bzr revid: xmo@openerp.com-20121017121601-g3kmxqxvoi447mkp
Diffstat (limited to 'addons/web/static/src/css')
| -rw-r--r-- | addons/web/static/src/css/base.css | 15 | ||||
| -rw-r--r-- | addons/web/static/src/css/base.sass | 12 |
2 files changed, 16 insertions, 11 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index e62a01b4870..ab2b2d25322 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -2653,14 +2653,17 @@ background: #eeeeee; vertical-align: top; } -.openerp .oe_list_content > thead th { - position: relative; -} .openerp .oe_list_content td, .openerp .oe_list_content th { padding: 3px 6px; line-height: 18px; } -.openerp .oe_list_content th:after { +.openerp .oe_list_content th.oe_sortable, .openerp .oe_list_content th.oe_sortable div { + cursor: pointer; +} +.openerp .oe_list_content th.oe_sortable div { + position: relative; +} +.openerp .oe_list_content th.oe_sortable div:after { position: absolute; right: 6px; content: ""; @@ -2670,12 +2673,12 @@ border-color: black transparent; visibility: hidden; } -.openerp .oe_list_content th.sortup:after { +.openerp .oe_list_content th.sortup div:after { visibility: visible; filter: alpha(opacity=60); opacity: 0.6; } -.openerp .oe_list_content th.sortdown:after { +.openerp .oe_list_content th.sortdown div:after { border-bottom: none; border-left: 4px solid transparent; border-right: 4px solid transparent; diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass index 2787535d3ab..ecbd02d7cab 100644 --- a/addons/web/static/src/css/base.sass +++ b/addons/web/static/src/css/base.sass @@ -2100,12 +2100,14 @@ $sheet-max-width: 860px border-bottom: 2px solid #cacaca background: #eee vertical-align: top - th - position: relative td, th padding: 3px 6px line-height: 18px - th:after + th.oe_sortable, th.oe_sortable div + cursor: pointer + th.oe_sortable div + position: relative + th.oe_sortable div:after position: absolute right: 6px content: "" @@ -2114,10 +2116,10 @@ $sheet-max-width: 860px border-style: solid border-color: #000 transparent visibility: hidden - th.sortup:after + th.sortup div:after visibility: visible @include opacity(0.6) - th.sortdown:after + th.sortdown div:after border-bottom: none border-left: 4px solid transparent border-right: 4px solid transparent |
