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