aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui/canvas-zone/zone-instance/zone-instance.component.less
blob: a1d56df96e1641ecc1e53f1f64612051ec9ee03e (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
.zone-child {
    position:relative;
    width:76px;
    margin:5px;

    .zone-child__handle {
        display:none;
        position:absolute;
        right:4px;
        top:10px;
        width:22px;
        height:22px;
        cursor:pointer;
        border: solid white 1px;
        border-radius: 2px;
        text-align: center;
        font-weight:bold;
    }

    .zone-child__body {
        margin:0 auto;
        width:43px;
        height:43px;
        display:flex;
        padding:3px;

    }

    .zone-child__body-content {
        border-radius: 2px;
        flex:1;
        color:white;
        font-size:18px;
        text-align:center;       
        display:flex;
        align-items: center;
        justify-content: center;
    }

    .zone-child__name {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        text-align:center;
    }
    /* Dynamic classes below */

    &.mode-1, &.mode-2, &.mode-3 { //hover, selected, tag
        .zone-child__body {
            border:solid 2px;
            border-radius: 2px;
            padding:2px;
            cursor:pointer;
        }
        .zone-child__handle{
            display:block;
            cursor:pointer;
        }
    }

    &.locked {
        cursor: default;
    }
    
    // &:not(.locked):hover .zone-child__handle{
    //     display:block;
    // }
    .zone-child__body {
        cursor: default;
    }
    &.mode-3 .zone-child__handle {
        width:24px;
        height:24px;
        right:3px;
        top:9px;
        display:block;
        background-image: linear-gradient(-140deg, #009E98 0%, #97D648 100%);
        border: 2px solid #FFFFFF;
        border-radius: 2px;
        box-shadow: inset 2px -2px 3px 0 #007A3E;
        cursor: pointer;
    }

}
.sdc-canvas-zone.group-zone {
    .zone-child__handle {
        background-color:#009FDB;
    }
    .zone-child__body {
        border-color:#009FDB;
    }
    .zone-child__body-content {
        background: #009FDB;
    }
}

.sdc-canvas-zone.policy-zone {
    .zone-child__handle {
        background-color:#0568AE;
    }
    .zone-child__body {
        border-color:#1287D9;
        .zone-child__body-content {
            background: #1287D9;
        }
    }
    .zone-child__body-content {
        background: #0568AE;
    }
}