summaryrefslogtreecommitdiff
path: root/addons/hr_skills/static/src/css/hr_skills.scss
blob: 9ff246151e4079a034b545b844ef7cd89956d5d1 (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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
.o_form_sheet {
    $o-hrs-timeline-entry-padding: .5rem;
    $o-hrs-timeline-dot-size: .6rem;

    // Overall design
    // =========================================
    .o_hr_skills_group {
        // Overwrite '.o_list_table' default design
        .o_list_view {
            .o_list_table {
                cursor: auto;
            }

            tbody:first-of-type > .o_resume_group_header:first-child {
                box-shadow: none;
            }
        }

        // Use 'cursor:pointer' where is needed only
        .o_data_row {
            cursor: pointer;
        }

        // Deny user interaction to headers but keep access to buttons
        .o_group_header, .o_resume_group_header {
            &, &:hover {
                background: none !important;
                cursor: initial;
                pointer-events: none;
            }
            .o_field_x2many_list_row_add, .o_field_x2many_list_row_add:hover {
                cursor: pointer;
                pointer-events: initial;
            }
        }
    }

    // Resumé design
    // =========================================
    .o_group_resume {
        .o_data_row td {
            padding: $o-hrs-timeline-entry-padding;

            &.o_resume_timeline_cell {
                div {
                    @include size($o-hrs-timeline-dot-size);
                }

                &:before {
                    @include o-position-absolute(0, $left: ($o-hrs-timeline-dot-size * .5 + $o-hrs-timeline-entry-padding));
                    @include size(1px, 100%);
                    margin-left: -.01rem;
                    background-color: $border-color;
                    content: "";
                }
            }
        }

        .o_resume_line_title, .o_resume_line_desc {
            white-space: normal;
        }

        .o_resume_line_title, .o_resume_line_dates {
            line-height: 1;
        }

        .o_resume_group_header + .o_data_row .o_resume_timeline_cell:before {
            top: $o-hrs-timeline-entry-padding;
        }

        .o_data_row.o_data_row_last {
            .o_resume_line_desc {
                margin-bottom: $headings-margin-bottom;
            }

            .o_resume_timeline_cell:before {
                height: $o-hrs-timeline-entry-padding;
            }
        }
    }

    // Skills design
    // =========================================
    .o_group_skills {
        .o_resume_empty_helper {
            display: none;
        }

        .o_group_header {
            > .o_group_name {
                padding: .8rem .5rem 0 0;
            }

            &:first-child > .o_group_name {
                padding-top: 0;
            }
        }

        .o_skill_cell {
            padding-left: 0;
            white-space: normal !important;

            .o_progressbar {
                display: inline-flex;
                align-items: center;
            }

            .o_progress {
                border: 0;
                background: $gray-300;
                height: 5px;
            }

            .o_progressbar_value {
                width: auto;
                font-size: $font-size-sm;
                font-weight: bold;
            }
        }
    }

    // Editing mode
    // =========================================
    .o_form_view.o_form_editable & {
        .o_group_name {
            background-color: gray('200');
        }

        .o_resume_group_header .btn {
            margin-top: .25rem;
            margin-right: .4rem;
        }

        .o_group_skills .o_group_name {
            padding-top: .4em;
            padding-bottom: .4rem;
        }

        .o_group_name, .o_skill_cell {
            padding-left: .5rem;
        }

        .o_group_skills .o_group_name > b, .o_hr_skills_group .o_horizontal_separator {
            color: color-yiq(gray('200'));
            font-style: italic;
        }

        .o_list_record_remove > button {
            @include o-hover-text-color($text-muted, theme-color('danger'));
        }
    }
}