aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/node/node.component.css
blob: af1ce88e850cbb027f0fe62b8dc218de4bad67a6 (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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
/**
 * Copyright (c) 2017 ZTE Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and the Apache License 2.0 which both accompany this distribution,
 * and are available at http://www.eclipse.org/legal/epl-v10.html
 * and http://www.apache.org/licenses/LICENSE-2.0
 *
 * Contributors:
 *     ZTE - initial API and implementation and/or initial documentation
 */

 .node {
    cursor: pointer;
    display: inline-block;
    position: absolute;
    z-index: 2;
}

.node-icon{
    border-radius: 4px;
}

.node-icon svg{
    display: block;
    fill: #00ABFF;
}

.active {
    outline: 1px solid #00ABFF;
}

/**
 * Anchors
 */
.anchors {
    position: absolute;
    border-radius: 1em;
    display: none;
    background-color: #2e6f9a;
    width: 12px;
    height: 12px;
    cursor: pointer;
    -ms-transition: all 0.15s ease-in-out;
    transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -webkit-transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
}

.node-icon:hover > .anchors {
    display: inline-block;
}

.anchor-left {
    left: -6px;
    top: calc(50%);
}

.anchor-right {
    right: -6px;
    top: calc(50%);
}

.anchor-top {
    top: -6px;
    left: calc(50% - 6px);
}

.anchor-bottom {
    bottom: -6px;
    left: calc(50% - 6px);
}

/*right arrow*/
.right {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 4px;
    top: 1px;

}

.right-arrow1, .right-arrow2 {
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    border-top: 5px transparent dashed;
    border-right: 5px transparent dashed;
    border-bottom: 5px transparent dashed;
    border-left: 5px #2e6f9a solid;
    overflow: hidden;
}

.right-arrow1 {

    border-left: 5px white solid;
}

.right-arrow2 {
    left: -2px;
}

/*left arrow */
.left {
    width: 10px;
    height: 10px;
    position: absolute;
    left: -2px;
    top: 1px;
    z-index: 2;
}

.left-arrow1, .left-arrow2 {
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5; /*ie8-*/
    border-top: 5px transparent dashed;
    border-left: 5px transparent dashed;
    border-bottom: 5px transparent dashed;
    border-right: 5px #2e6f9a solid;
    overflow: hidden;
}

.left-arrow1 {
    border-right: 5px #fff solid;
}

.left-arrow2 {
    left: 2px;
}

/*top arrow*/
.top {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 1px;
    z-index: 2;
}

.top-arrow1, .top-arrow2 {
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    border-bottom: 5px #2e6f9a solid;
    border-left: 5px transparent dashed;
    border-right: 5px transparent dashed;
    border-top: 5px transparent dashed;
    overflow: hidden;
}

.top-arrow1 {
    z-index: 6;
}

.top-arrow2 {
    top: -2px;
    border-bottom: 5px white solid;
}

/*bottom arrow*/
.bottom {
    width: 10px;
    height: 10px;
    position: absolute;
    left: 1px;
    top: 4px;
    z-index: 2;
}

.bottom-arrow1, .bottom-arrow2 {
    width: 0;
    height: 0;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    border-bottom: 5px transparent dashed;
    border-left: 5px transparent dashed;
    border-right: 5px transparent dashed;
    border-top: 5px #2e6f9a solid;
    overflow: hidden;
}

.bottom-arrow1 {
    top: -2px;
    z-index: 6;
}

.bottom-arrow2 {
    border-top: 5px white solid;
}
/**
 * Anchors End
 */

.node .name {
    width: 55px;
    height: 12px;
    text-align: center;
    white-space: nowrap;
    color: #5c6d90;
    line-height: 12px;
    cursor: pointer;
    font-family: Arial;
    font-size: 12px;
}

.resizeable {
    background-color: darkolivegreen;
    border:1px solid blue;
    margin: 10px;
}