tree.scss 3.83 KB
Newer Older
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
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/* tree.scss */

.jstree-container-ul {
    padding-left: 0px;
    position: relative;
    list-style: none;
    .jstree-node {
        white-space: nowrap;
28
        position: relative;
29 30 31 32 33
        cursor: pointer;
        padding: 4px 0;
        margin: 0;
        margin-top: 5px;
        margin-bottom: 5px;
34
    }
35 36
    ul {
        list-style: none;
37
        padding: 0;
38 39 40 41 42 43 44 45 46 47 48 49
        text-indent: 30px;
    }
    li a {
        // color: $white;
        display: block;
    }
}

.taxonomyTree {
    padding: 0;
    position: relative;
    li {
50
        position: relative;
51 52 53 54 55 56
        border-radius: 4px;
        margin-top: 5px;
        &.parent {
            width: 100%;
            a {
                max-width: 93%;
57
            }
58 59 60 61
        }
        &.parentChild {
            ul {
                padding-left: 9%;
62
            }
63 64 65
            li {
                &.children {
                    width: 91%;
66
                }
67 68
                a {
                    max-width: 90%;
69 70
                }
            }
71 72 73 74
        }
        &.children {
            &:hover {
                background-color: $color_star_dust_approx;
75
            }
76 77 78 79
        }
        &.active {
            background-color: $color_jungle_green_approx !important;
            border: none;
80
            .tools {
81 82 83 84 85
                display: block;
                .fa {
                    cursor: pointer;
                    padding: 0px 3px;
                }
86 87 88
            }
        }
        a {
89 90 91 92 93 94 95
            display: block;
            color: $concrete;
            white-space: nowrap;
            padding: 5px 25px;
            text-overflow: ellipsis;
            overflow: hidden;
            cursor: pointer;
96
        }
97 98 99 100 101
        .tools {
            background: $color_jungle_green_approx;
            display: none;
            position: absolute;
            right: 2px;
102 103 104
            padding: 5px;
        }
    }
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
}

.termMoveDiv {
    width: 550px;
    height: 200px;
    margin: 10px;
}

.toggleArrow {
    position: absolute;
    left: 0px;
    padding: 8px;
    cursor: pointer;
}

120 121
.addTermDisable {
    border-color: $red !important;
122 123 124
}

.alertTerm {
125
    color: $red !important;
126 127 128 129 130 131 132 133
}


/**Css changes**/

.modal-body {
    .add-seperator {
        border: none;
134
    }
135 136 137
    .taxonomyTree li {
        .children {
            text-indent: 20px;
138
        }
139 140 141
        &.parentChild {
            ul {
                padding-left: 0px;
142
            }
143 144 145
            li {
                &.children {
                    width: 100%;
146 147
                }
                a {
148
                    max-width: 100%;
149 150
                }
            }
151 152 153
        }
        &.active {
            color: $concrete;
154
            a {
155
                color: $concrete;
156
            }
157 158 159 160 161 162 163
        }
        a {
            color: #6C6C6C;
        }
        &.children:hover {
            a {
                color: $concrete;
164
            }
165 166 167 168 169 170
            background-color: #ABABAB;
            color: $white;
        }
        .tools {
            text-indent: 0px;
            background: none;
171 172
        }
    }
173
}
174 175

.popoverTerm {
176
    text-align: center;
177 178
    margin-top: 25px !important;
}