summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/pivot_view.less
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2016-04-21 13:58:22 +0200
committerGéry Debongnie <ged@odoo.com>2016-04-21 15:21:42 +0200
commit6768bbfcc02e0f498110cda2ba9adbc2fd23d24c (patch)
tree7dccb1019434582874b285276189b1b3dcbb96a9 /addons/web/static/src/less/pivot_view.less
parente1bfd3fbda97ac7a64a585b07be161d5be606cf9 (diff)
parent8e440b173e3b273b3aac541f2ec12527f67dfa60 (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/pivot_view.less')
-rw-r--r--addons/web/static/src/less/pivot_view.less79
1 files changed, 79 insertions, 0 deletions
diff --git a/addons/web/static/src/less/pivot_view.less b/addons/web/static/src/less/pivot_view.less
new file mode 100644
index 00000000000..2fa6e1a6f44
--- /dev/null
+++ b/addons/web/static/src/less/pivot_view.less
@@ -0,0 +1,79 @@
+.o_pivot {
+ height: 100%;
+ overflow: auto;
+
+ // Inform the user that he may click on a cell to be redirected to a list view of the
+ // items corresponding to the clicked cell
+ &.o_enable_linking {
+ .o_pivot_cell_value:hover {
+ color: @odoo-brand-optional;
+ cursor: pointer;
+ }
+ }
+
+ table {
+ background-color: @odoo-view-background-color;
+ width: auto; // bootstrap override
+
+ th {
+ font-weight: normal; // bootstrap override
+ background-color: lighten(@odoo-brand-secondary, 40%);
+ }
+
+ .o-pivot-header-cell() {
+ background-color: lighten(@odoo-brand-secondary, 40%);
+ cursor: pointer;
+ white-space: nowrap;
+ .user-select(none);
+ &:hover {
+ background-color: lighten(@odoo-brand-secondary, 30%);
+ }
+ }
+
+ .o_pivot_measure_row {
+ .o-pivot-header-cell;
+ }
+
+ .o_pivot_header_cell_closed {
+ .o-pivot-header-cell;
+ &::before {
+ font-family: FontAwesome;
+ content: "";
+ margin-right: 8px;
+ }
+ }
+
+ .o_pivot_header_cell_opened {
+ .o-pivot-header-cell;
+ &::before {
+ font-family: FontAwesome;
+ content: "";
+ margin-right: 8px;
+ }
+ }
+
+ .o_pivot_measure_row_sorted_asc::after {
+ .o-caret-down;
+ margin-left: 5px;
+ }
+
+ .o_pivot_measure_row_sorted_desc::after {
+ .o-caret-up;
+ margin-left: 5px;
+ }
+ }
+
+ .o_pivot_field_selection::after {
+ .o-caret-right;
+ position: absolute;
+ right: 6px;
+ top: 9px;
+ }
+}
+
+// ------------------------------------------------------------------
+// Control panel buttons
+// ------------------------------------------------------------------
+.o_pivot_measures_list {
+ .o-selected-li;
+} \ No newline at end of file