summaryrefslogtreecommitdiff
path: root/addons/web/static/src/scss/pivot_view.scss
blob: 3dbfc809d77a66b1e750e12b7e236ff4e222ecb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
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;
    }
}