summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/properties-table/properties-table.component.less
blob: 9ede84faff1fc63d1ed00670fa737997fb550cdc (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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
@import './../../../../assets/styles/variables.less';
@import '../../../../assets/styles/sprite';
@smaller-screen: ~"only screen and (max-width: 1580px)";

:host /deep/ input { width:100%;}

.properties-table {
    display:flex;
    flex-direction:column;
    flex: 1;
    height:100%;
    text-align:left;


    .inner-cell-div{
        max-width: 100%;
        text-overflow: ellipsis;
        overflow: hidden;
        height: 20px;
    }

    .table-header {
        display: flex;
        flex-direction:row;
        flex: 0 0 auto;
        font-weight:bold;
        border-top: #d2d2d2 solid 1px;
        background-color: #f2f2f2;

        .table-cell {
            color:#191919;
            font-size:13px;
        }
    }

    .table-rows-header {
        border: #d2d2d2 solid 1px;
        border-top:none;
    }

    .table-body {
        display:flex;
        flex-direction: column;
        overflow-y:auto;
        flex: 1;

        .no-data {
            border: #d2d2d2 solid 1px;
            border-top:none;
            text-align: center;
            height: 100%;
            padding: 20px;
        }
        /deep/.selected{
            background-color: #e6f6fb;
            color:  #009fdb;
        }
        .table-row {
            display: flex;
            flex-direction:row;
            flex: 0 0 auto;

            &:hover:not(.selected){
                background-color:#f8f8f8; cursor:pointer;
            }

            .selected-row {
                background-color:#e6f6fb;
            }

            .table-cell.valueCol {
                padding:0px;

            }
        }
    }
    .table-cell {
        font-size:13px;
        flex:1;
        border: #d2d2d2 solid 1px;
        border-right:none;
        border-top:none;
        padding:10px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow:hidden;
        display: flex;
        min-height:40px;

        &:last-child {
            border-right:#d2d2d2 solid 1px;
        }
        &.col1 {
            flex: 1 0 210px;
            max-width:300px;
            display: flex;
            justify-content: space-between;
            @media @smaller-screen { flex: 0 0 25%;}

            .property-name {
                flex: 1;
                display: flex;
                max-width: 90%;
            }

            .property-description-icon {
                float: right;
                margin-top: 4px;
                margin-left: 5px;
                flex: 0 0 auto;
            }
        }
        &.col2 {
            flex: 0 0 150px;
            max-width:150px;
            @media @smaller-screen { flex: 0 0 20%;}
        }

        &.col3 {
            flex:0 0 120px;
            max-width:120px;
            @media @smaller-screen { flex: 0 0 15%;}
        }

        &.valueCol {
            flex: 2 0 300px;
            display: flex;
            @media @smaller-screen { flex: 1 0 40%;}
        }


        /deep/ .checkbox-container {
            margin-right: 10px;
        }

        /deep/ &.round-checkbox {
            .checkbox-container input[type=checkbox].checkbox-hidden {
                &:checked ~ .checkbox-icon::before {
                    .sprite-new;
                    .round-checked-icon;
                }
                &[disabled] ~ .checkbox-icon::before {
                    .sprite-new;
                    .round-checked-icon.disabled;
                    background-color:inherit;
                    border:none;
                    //animation: addDisabledCheck 4s linear;
                }
            }
        }
    }

    .filtered {
        /deep/ .checkbox-label-content{
            background-color: yellow;
        }
    }

    dynamic-property {
        width:100%;
        &:last-child /deep/ .dynamic-property-row {
            border-bottom:none;
        }
    }

}