summaryrefslogtreecommitdiff
path: root/addons/web/static/src/css
diff options
context:
space:
mode:
authorMinh Tran <mit@openerp.com>2012-06-08 13:52:49 +0200
committerMinh Tran <mit@openerp.com>2012-06-08 13:52:49 +0200
commitf4018bb36ba26ac5590a4ef548a015b23b7f9172 (patch)
treea7427fd33b516c44f34c4634cc3221a07c2076a0 /addons/web/static/src/css
parent019fd39215a6b78ba08ae7f7ff7c725e9093cc4e (diff)
Fixed glitches in the listview
bzr revid: mit@openerp.com-20120608115249-bxrb91ic74dn7zh4
Diffstat (limited to 'addons/web/static/src/css')
-rw-r--r--addons/web/static/src/css/base.css20
-rw-r--r--addons/web/static/src/css/base.sass51
2 files changed, 44 insertions, 27 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index f8764df0743..94ec33e9b78 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -2049,30 +2049,40 @@
.openerp .oe-listview-content {
width: 100%;
}
+.openerp .oe-listview-content td:first-child, .openerp .oe-listview-content th:first-child {
+ width: 17px;
+}
+.openerp .oe-listview-content td:first-child:after, .openerp .oe-listview-content th:first-child:after {
+ border-width: 0;
+}
.openerp .oe-listview-content > thead {
border-bottom: 2px solid #cacaca;
background: #eeeeee;
vertical-align: top;
}
-.openerp .oe-listview-content > thead td, .openerp .oe-listview-content > thead th {
+.openerp .oe-listview-content > thead th {
+ position: relative;
+}
+.openerp .oe-listview-content td, .openerp .oe-listview-content th {
padding: 3px 6px;
line-height: 18px;
}
-.openerp .oe-listview-content > thead th:after {
+.openerp .oe-listview-content th:after {
+ position: absolute;
+ right: 6px;
content: "";
- float: right;
margin-top: 7px;
border-width: 0 4px 4px;
border-style: solid;
border-color: black transparent;
visibility: hidden;
}
-.openerp .oe-listview-content > thead th.sortup:after {
+.openerp .oe-listview-content th.sortup:after {
visibility: visible;
filter: alpha(opacity=60);
opacity: 0.6;
}
-.openerp .oe-listview-content > thead th.sortdown:after {
+.openerp .oe-listview-content th.sortdown: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 468580d156d..3556abbf55e 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -1670,32 +1670,39 @@ $colour4: #8a89ba
// ListView {{{
.oe-listview-content
width: 100%
+ td:first-child, th:first-child
+ width: 17px
+ &:after
+ border-width: 0
> thead
border-bottom: 2px solid #cacaca
background: #eee
vertical-align: top
- td, th
- padding: 3px 6px
- line-height: 18px
- th:after
- content: ""
- float: right
- margin-top: 7px
- border-width: 0 4px 4px
- border-style: solid
- border-color: #000 transparent
- visibility: hidden
- th.sortup:after
- visibility: visible
- @include opacity(0.6)
- th.sortdown:after
- border-bottom: none
- border-left: 4px solid transparent
- border-right: 4px solid transparent
- border-top: 4px solid #000
- visibility: visible
- @include box-shadow(none)
- @include opacity(0.6)
+ th
+ position: relative
+ td, th
+ padding: 3px 6px
+ line-height: 18px
+ th:after
+ position: absolute
+ right: 6px
+ content: ""
+ margin-top: 7px
+ border-width: 0 4px 4px
+ border-style: solid
+ border-color: #000 transparent
+ visibility: hidden
+ th.sortup:after
+ visibility: visible
+ @include opacity(0.6)
+ th.sortdown:after
+ border-bottom: none
+ border-left: 4px solid transparent
+ border-right: 4px solid transparent
+ border-top: 4px solid #000
+ visibility: visible
+ @include box-shadow(none)
+ @include opacity(0.6)
// TODO mit
//th:hover:after
// border-bottom: none