diff options
| author | Aaron Bohy <aab@odoo.com> | 2016-04-21 13:58:22 +0200 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2016-04-21 15:21:42 +0200 |
| commit | 6768bbfcc02e0f498110cda2ba9adbc2fd23d24c (patch) | |
| tree | 7dccb1019434582874b285276189b1b3dcbb96a9 /addons/web/static/src/less/tree_view.less | |
| parent | e1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff) | |
| parent | 8e440b173e3b273b3aac541f2ec12527f67dfa60 (diff) | |
[MERGE] *: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis.
Enterprise features stay in enterprise, but use that common basis.
In web, mainly:
- JS refactoring and linting
- Conversion of .sass into .less split into multiple files
- Templates cleaning and DOM simplification
- Re-generation of web.pot, and update of .po files
Minor tweaks in some other addons to make them work with this new structure.
Diffstat (limited to 'addons/web/static/src/less/tree_view.less')
| -rw-r--r-- | addons/web/static/src/less/tree_view.less | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/addons/web/static/src/less/tree_view.less b/addons/web/static/src/less/tree_view.less new file mode 100644 index 00000000000..681cfb33c80 --- /dev/null +++ b/addons/web/static/src/less/tree_view.less @@ -0,0 +1,50 @@ +.o_treeview_table { + width: 100%; + background-color: white; + border-collapse: collapse; + + thead { + color: @odoo-main-text-color; + background-color: @odoo-list-grey; + > tr > th { + padding: 10px; + } + } + + tbody { + > tr { + border: 1px solid @odoo-list-grey; + &:hover { + background-color: lighten(@odoo-list-grey, 15%); + } + > td { + border: 1px solid @odoo-list-grey; + cursor: pointer; + height: 40px; + padding: 0 4px; + &.oe_number { + text-align: right; + } + } + } + .treeview-tr, .treeview-td { + &.o_treeview_first > span { + padding-left: 16px; + } + } + .treeview-tr.o_treeview_first { + position: relative; + &:before { + position: absolute; + top: 13px; + .o-caret-right(6px); + } + } + .o_open .treeview-tr.o_treeview_first { + &:before { + top: 16px; + .o-caret-down(6px); + } + } + } +}
\ No newline at end of file |
