root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _connected.scss @ 1fda8642
History | View | Annotate | Download (3.5 kB)
1 |
/* |
---|---|
2 |
* Used for connected elements in details page. |
3 |
* Each icon is unique and therefore, customization |
4 |
* is needed for different entities. |
5 |
*/ |
6 |
@mixin position-connected($x,$y) { |
7 |
left: $x; |
8 |
top: $y; |
9 |
padding-top: abs($y); |
10 |
} |
11 |
|
12 |
$rel-top: -10px; |
13 |
$data-width: 350px; |
14 |
$lt-width: $details-lt-width/2 + $details-top-more-padding-lt ; |
15 |
|
16 |
.connected { |
17 |
position: relative; |
18 |
border-left: 2px solid $secondary-color; |
19 |
.item { |
20 |
padding-top:40px; |
21 |
position: relative; |
22 |
.what { |
23 |
padding:10px 0 20px; |
24 |
@extend .clearfix; |
25 |
.img-wrap { |
26 |
width: $lt-width; |
27 |
text-align: center; |
28 |
float:left; |
29 |
position: relative; |
30 |
} |
31 |
h4 { |
32 |
overflow: hidden; |
33 |
font-size: emCalc(16px); |
34 |
.status { |
35 |
font-weight: normal; |
36 |
display: block; |
37 |
font-size: emCalc(14px); |
38 |
} |
39 |
} |
40 |
} |
41 |
.clearfix { |
42 |
position: relative; |
43 |
} |
44 |
.connections { |
45 |
list-style: none outside none; |
46 |
margin: 0; |
47 |
padding: 0; |
48 |
float: left; |
49 |
&> li { |
50 |
list-style: none outside none; |
51 |
margin: 0; |
52 |
padding: 0; |
53 |
position: relative; |
54 |
margin-bottom: 10px; |
55 |
@extend .clearfix; |
56 |
.icon { |
57 |
width: $lt-width; |
58 |
text-align: center; |
59 |
border-top: 2px solid $secondary-color; |
60 |
float: left; |
61 |
span { |
62 |
position: relative; |
63 |
top:$rel-top; |
64 |
background-color: $light-bg; |
65 |
padding:5px 10px; |
66 |
} |
67 |
} |
68 |
.act { |
69 |
position: absolute; |
70 |
left:0; |
71 |
top:$rel-top; |
72 |
width:30px; |
73 |
} |
74 |
.data { |
75 |
float: left; |
76 |
position: relative; |
77 |
top: $rel-top - 5px; |
78 |
width: $data-width; |
79 |
ul { |
80 |
padding: 5px 0 0; |
81 |
margin: 0; |
82 |
background-color: $light-bg; |
83 |
li { |
84 |
font-size: emCalc(12px); |
85 |
list-style: none outside none; |
86 |
padding: 0 10px 10px 10px; |
87 |
h5 { |
88 |
width: 10%; |
89 |
float: left; |
90 |
margin: 0; |
91 |
line-height: 1.3em; |
92 |
} |
93 |
p { |
94 |
overflow: hidden; |
95 |
padding-left:10px; |
96 |
margin: 0; |
97 |
line-height: 1.3em; |
98 |
} |
99 |
} |
100 |
} |
101 |
} |
102 |
} |
103 |
} |
104 |
} |
105 |
} |
106 |
|
107 |
.connect-new { |
108 |
position: absolute; |
109 |
bottom: -150px; |
110 |
left:0; |
111 |
width: $lt-width; |
112 |
text-align: center; |
113 |
padding-top: 100px; |
114 |
background: url(../images/dashed_atom.png) repeat-y left center; |
115 |
margin-bottom: 50px; |
116 |
.img-wrap { |
117 |
position: relative; |
118 |
width:$lt-width/2; |
119 |
height: 2px; |
120 |
background: url(../images/dashed_atom-x.png) repeat-x left top; |
121 |
&>a { |
122 |
display: block; |
123 |
position: absolute; |
124 |
left:0; |
125 |
top:0; |
126 |
width: $lt-width; |
127 |
text-align: center; |
128 |
margin: -20px 0 0 ; |
129 |
.snf-PC_fill { |
130 |
color: $link-color; |
131 |
} |
132 |
.symbol { |
133 |
color: #fff; |
134 |
position: absolute; |
135 |
left: 76px; |
136 |
font-size: 25px; |
137 |
top:8px; |
138 |
} |
139 |
&:hover { |
140 |
.snf-PC_fill { |
141 |
color: $link-color-hover; |
142 |
} |
143 |
} |
144 |
} |
145 |
} |
146 |
p { |
147 |
position: absolute; |
148 |
left: $lt-width; |
149 |
width: $data-width; |
150 |
text-align: left; |
151 |
font-size: emCalc(14px); |
152 |
top: 90px; |
153 |
} |
154 |
} |
155 |
.network .connected { |
156 |
@include position-connected( 142px, -94px ); |
157 |
} |
158 |
|
159 |
.vm .connected { |
160 |
@include position-connected( 142px, -94px ); |
161 |
} |
162 |
|
163 |
.firewall { |
164 |
float: left; |
165 |
margin-left:20px; |
166 |
border: 1px solid $primary-color; |
167 |
padding: 10px 20px; |
168 |
position: absolute; |
169 |
left:$data-width + $lt-width; |
170 |
top: $rel-top - 5px; |
171 |
font-size: emCalc(12px); |
172 |
z-index:2; |
173 |
p { |
174 |
margin: 0; |
175 |
em { |
176 |
color: $secondary-color; |
177 |
} |
178 |
} |
179 |
.more { |
180 |
margin-top:20px; |
181 |
display: none; |
182 |
p { |
183 |
span { |
184 |
float: right; |
185 |
font-size: emCalc(14px); |
186 |
height: 14px; |
187 |
line-height: 22px; |
188 |
} |
189 |
em { |
190 |
float: right; |
191 |
margin:0 5px 0 20px; |
192 |
width: 15px; |
193 |
display: inline-block; |
194 |
} |
195 |
} |
196 |
} |
197 |
&.unprotected >p em, |
198 |
.unprotected a em { |
199 |
color: $error-color; |
200 |
} |
201 |
|
202 |
} |
203 |
.details .placeholder { |
204 |
height: 100px; |
205 |
|
206 |
} |