summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/pivot_view.scss
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/web/static/src/scss/pivot_view.scss
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/web/static/src/scss/pivot_view.scss')
-rw-r--r--addons/web/static/src/scss/pivot_view.scss104
1 files changed, 104 insertions, 0 deletions
diff --git a/addons/web/static/src/scss/pivot_view.scss b/addons/web/static/src/scss/pivot_view.scss
new file mode 100644
index 00000000..3dbfc809
--- /dev/null
+++ b/addons/web/static/src/scss/pivot_view.scss
@@ -0,0 +1,104 @@
+.o_pivot {
+
+ .o_pivot_cell_value {
+ font-size: 1em;
+ .o_comparison {
+ font-size: 0.61em;
+ }
+ .o_variation {
+ &.o_positive {
+ color: green;
+ }
+ &.o_negative {
+ color: red;
+ }
+ }
+ }
+
+ table {
+ background-color: $o-view-background-color;
+ width: auto; // bootstrap override
+
+ // 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:not(.o_empty):hover {
+ color: $o-brand-primary;
+ cursor: pointer;
+
+ }
+ }
+
+ thead th:not(.o_pivot_header_cell_closed):not(.o_pivot_header_cell_opened):not(.o_pivot_header_cell) {
+ text-align: center;
+ }
+
+ th {
+ font-weight: normal; // bootstrap override
+ background-color: lighten($o-brand-secondary, 40%);
+ }
+
+ @mixin o-pivot-header-cell {
+ background-color: lighten($o-brand-secondary, 40%);
+ cursor: pointer;
+ white-space: nowrap;
+ user-select: none;
+ &:hover {
+ background-color: lighten($o-brand-secondary, 30%);
+ }
+ }
+
+ .o_pivot_measure_row {
+ @include o-pivot-header-cell;
+ }
+
+ .o_pivot_header_cell {
+ white-space: nowrap;
+ user-select: none;
+ }
+
+ .o_pivot_header_cell_closed {
+ @include o-pivot-header-cell;
+ &::before {
+ font-family: FontAwesome;
+ content: "";
+ margin-right: 8px;
+ }
+ }
+
+ .o_pivot_header_cell_opened {
+ @include o-pivot-header-cell;
+ &::before {
+ font-family: FontAwesome;
+ content: "";
+ margin-right: 8px;
+ }
+ }
+
+ .o_pivot_sort_order_asc::after {
+ @include o-caret-up;
+ margin-left: 5px;
+ }
+
+ .o_pivot_sort_order_desc::after {
+ @include o-caret-down;
+ margin-left: 5px;
+ }
+
+ .o_pivot_cell_value.o_cell_hover {
+ background-color: $table-hover-bg;
+ }
+ }
+
+ .o_pivot_field_selection::after {
+ @include o-caret-right;
+ position: absolute;
+ right: 6px;
+ top: 9px;
+ }
+
+ .o_pivot_field_menu .dropdown-item.disabled {
+ color: $text-muted;
+ cursor: default;
+ }
+}