Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / composer / src / src / styles / DescriptorGraph.scss
1 @import "_ColorGroups";
2
3 /*
4  * 
5  *   Copyright 2016 RIFT.IO Inc
6  *
7  *   Licensed under the Apache License, Version 2.0 (the "License");
8  *   you may not use this file except in compliance with the License.
9  *   You may obtain a copy of the License at
10  *
11  *       http://www.apache.org/licenses/LICENSE-2.0
12  *
13  *   Unless required by applicable law or agreed to in writing, software
14  *   distributed under the License is distributed on an "AS IS" BASIS,
15  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  *   See the License for the specific language governing permissions and
17  *   limitations under the License.
18  *
19  */
20
21 @function dim-color($color) {
22         @return hsl(hue($color), 50%, 80%);
23 }
24
25 /* TODO this CSS has to be complete refactored - most of it may not even be used anymore!!! */
26
27 .DescriptorGraph {
28         background-color: transparent;
29         border: 1px solid transparent;
30         -webkit-user-select: none;
31         -moz-user-select: none;
32         user-select: none;
33         .grid {
34                 line {
35                         stroke: #CBD1D1;
36                         stroke-width: 0.5px;
37                         shape-rendering: geometricPrecision;
38                 }
39         }
40         .selection-indicator {
41                 stroke-dasharray: 2, 2;
42         }
43         .connector {
44                 &.-is-not-connected {
45                         fill: white !important;
46                 }
47                 &.-is-connected {
48                         fill: #9fc4f4 !important;
49                 }
50         }
51         .connection,
52         .new-connection {
53                 /* note colors are also defined in ColorGroups.js */
54                 //stroke: #295725;
55                 stroke-width: 5px;
56                 &.-selected {
57                         stroke-width: 7px;
58                         stroke: red;
59                 }
60         }
61         .connection-point {
62                 &:hover {
63                         cursor: pointer;
64                 }
65                 &.-is-highlight {
66                         stroke: red !important;
67                 }
68         }
69
70         .connection-point-number {
71                 text-shadow: 0 0 10px rgba(171, 161, 161, 0.89);
72                 font-size: 18px;
73                 fill: white;
74                 stroke: white;
75                 &.-is-highlight {
76                         fill: red;
77                         stroke: red;
78                 }
79         }
80
81         .relation-marker-end {
82                 stroke: transparent;
83                 fill: transparent;
84         }
85
86         &.-is-dragging-connection-point {
87                 cursor: no-drop !important;
88                 .border,
89                 .background,
90                 &.connector,
91                 &.connector:hover,
92                 .connector,
93                 .connector:hover {
94                         cursor: no-drop !important;
95                         fill-opacity: 0.33;
96                         stroke-opacity: 0.33;
97                 }
98                 .-is-valid-drop-target {
99                         cursor: copy !important;
100                         .border,
101                         .background,
102                         &.connector,
103                         &.connector:hover,
104                         .connector,
105                         .connector:hover {
106                                 cursor: copy !important;
107                                 fill-opacity: 1;
108                                 stroke-opacity: 1;
109                         }
110                         &.-is-drag-over {
111                                 .border {
112                                         stroke-width: 3px;
113                                 }
114                         }
115                 }
116         }
117
118         .forwarding-graph-paths {
119                 pointer-events: none;
120         }
121
122         text {
123
124                 pointer-events: none;
125                 fill: $common-foreground-color;
126                 stroke: $common-foreground-color;
127                 font-size: 14px;
128
129                 &.type {
130                         text-transform: uppercase;
131                         stroke: white;
132                         fill: white;
133                 }
134
135                 &.vld-type {
136                         display: none;
137                 }
138
139                 &.internal-vld-type {
140                         display: none;
141                 }
142
143                 &:hover {
144                         cursor: default;
145                 }
146
147         }
148
149         path {
150
151                 stroke-linejoin: round;
152
153                 &.relation {
154                         display: none;
155                 }
156
157         }
158
159         .color-legend {
160                 display: none;
161                 &.vnffgd-rsp-color-legend {
162                         display: block;
163                         text {
164                                 font-size: xx-small;
165                                 color: white;
166                         }
167                 }
168         }
169
170 }