This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 85
/
_relation-menu.scss
149 lines (126 loc) · 2.66 KB
/
_relation-menu.scss
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
// The actions menu that appears next to a service block.
.environment-menu {
background-color: $white;
border-radius: $border-radius;
box-shadow: 0 0 2px rgba(0, 0, 0, .3);
color: $cool-grey;
display: none;
left: 0;
position: absolute;
top: 0;
&.active {
display: block;
}
.triangle {
border-style: solid;
color: $white;
height: 0;
position: absolute;
top: 22px;
width: 0;
}
&.right .triangle {
border-color: transparent $white;
border-width: 10px 17.3px 10px 0;
left: -16px;
}
&.left .triangle {
border-color: transparent transparent transparent $white;
border-width: 10px 0 10px 17.3px;
right: -16px;
}
&.top .triangle {
border-color: $white transparent transparent;
border-width: 17.3px 10px 0;
bottom: -16px;
top: auto;
}
.menu-title {
padding: 20px;
}
.cancel {
position: absolute;
right: 20px;
top: 25px;
}
ul {
list-style-type: none;
margin: 0;
li {
background-position: 10px center;
background-repeat: no-repeat;
cursor: pointer;
line-height: 40px;
padding: 0 15px;
white-space: nowrap;
a {
color: $cool-grey;
font-size: 13px;
text-decoration: none;
}
&:last-child {
border-bottom: 0;
}
&:focus,
&:active,
&:hover {
background-color: $light-grey;
}
&.disabled {
color: $grey;
cursor: default;
&:focus,
&:active,
&:hover {
background-color: inherit;
}
}
}
}
.menu {
li {
border-top: 1px solid $light-grey;
}
}
}
// scss-lint:disable IdSelector
#relation-menu { // sass-lint:disable-line no-ids, id-name-format
// scss-lint:enable IdSelector
$icon-size: 16px;
$height: 30px;
$gutter: 10px;
.relation-container {
cursor: inherit;
padding: 0 0 0 (($gutter * 2) + $icon-size);
line-height: $height;
background-repeat: no-repeat;
background-position: $gutter (($height - $icon-size) / 2);
background-image: url('static/gui/build/app/assets/images/unit_running_16.png');
&.error {
background-image: url('static/gui/build/app/assets/images/error_16.png');
}
.endpoint.error {
color: $error;
}
&:focus,
&:active,
&:hover {
background-color: inherit;
}
}
.triangle {
bottom: -3px;
border-width: 3px 5px 0;
}
.relation-remove {
line-height: normal;
margin: (($height - $icon-size) / 2) $gutter;
display: block;
float: right;
height: $icon-size;
width: $icon-size;
}
.inspect-relation {
cursor: pointer;
}
}