Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _connected.scss @ 348833d1

History | View | Annotate | Download (4.9 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
				position: relative;
30
				display: block;
31
				.snf-font {
32
					font-size: 60px;
33
				}
34
			}
35
			h4 {
36
				position: absolute;
37
				top: 20px;
38
				left: $lt-width;
39
				font-size: emCalc(16px);
40
				.status {
41
					font-weight: normal;
42
					display: block;
43
					font-size: emCalc(14px);
44
				}
45
			}
46
		}
47
		.clearfix {
48
			position: relative;
49
		}
50
		.connections {
51
			list-style: none outside none;
52
			margin: 0;
53
			padding: 0;
54
			float: left;
55
			&> li {
56
				list-style: none outside none;
57
				margin: 0;
58
				padding: 0;
59
				position: relative;
60
				margin-bottom: 10px;
61
				@extend .clearfix;
62
				.icon {
63
					width: $lt-width;
64
					text-align: center;
65
					border-top: 2px solid $secondary-color;
66
					float: left;
67
					span {
68
						position: relative;
69
						top:$rel-top - 10px;
70
						background-color: $light-bg;
71
						padding:0px 10px;
72
						font-size: 30px;
73
						line-height: 120%;
74
					}
75
				}
76
				.act {
77
					$act-btn-radius: 12.5px;
78
					$act-btn-color: $gray-3;
79
					position: absolute;
80
					@include circle($act-btn-radius);
81
					left: 17px;
82
					top:-$act-btn-radius;
83
					display: block;
84
					z-index: 2;
85
					background-color: white;
86
					border: 1px solid $act-btn-color;
87
					color: $act-btn-color;
88
					text-align: center;
89
					line-height: $act-btn-radius*2 - 4;
90
					font-weight: bold;
91
					&:before {
92
						content: "x";
93
					}
94
					&:hover {
95
						$act-btn-color-hover: $red-1;
96
						border-color: $act-btn-color-hover;
97
						color: $act-btn-color-hover;
98
					}
99
					&.open {
100
						border-color:white;
101
							width: 29px;
102
							line-height: 16px;
103
							color: $gray-0;
104
						&:before {
105
							content: "...";
106
						}
107
						// background:url(../images/disconnected.png) no-repeat 0 0 #fff;
108
						// -moz-transition: none;
109
						// -webkit-transition: none;
110
						// transition: none;
111
					}
112
				}
113
				.data {
114
					float: left;
115
					position: relative;
116
					top: $rel-top - 5px;
117
					width: $data-width;
118
					ul {
119
						padding: 5px 0 0;
120
						margin: 0;
121
						background-color: $light-bg;
122
						li {
123
							font-size: emCalc(12px);
124
							list-style: none outside none;
125
							padding: 0 10px 10px 10px;
126
							h5 { 
127
								float: left;
128
								margin: 0;
129
								line-height: 1.3em;
130
								&.ip-data {
131
									width: 10%;
132
								}
133
								&.volume-data {
134
									width: 35%;
135
								}
136
							}
137
							p {
138
								overflow: hidden;
139
								padding-left:10px;
140
								margin: 0;
141
								line-height: 1.3em;
142
							}
143
						}
144
					}
145
				}
146
			}
147
		}
148
	}
149
}
150

    
151
.connect-new {
152
	position: absolute;
153
	bottom: -150px;
154
	left:0;
155
	width: $lt-width;
156
	text-align: center;
157
	padding-top: 100px;
158
	background: url(../images/dashed_atom.png) repeat-y left center;
159
	margin-bottom: 50px;
160
	margin-left: -1px;
161
	.img-wrap {
162
		position: relative;
163
		display: block;
164
		width:$lt-width/2;
165
		height: 2px;
166
		background: url(../images/dashed_atom-x.png) repeat-x left top;
167
		overflow: inherit;
168
		&>a {
169
			display:  block;
170
			position: absolute;
171
			left:0;
172
			top:0;
173
			width: $lt-width;
174
			text-align: center;
175
			margin: -20px 0 0 ;
176
			.snf-font{
177
				color: $link-color;
178
				font-size: $snf-font-size-medium;
179
			}
180
			.snf-network-full {
181
				position: relative;
182
				top: -9px;
183
			}
184
		}
185
	}
186
	p {
187
		position: absolute;
188
		left: $lt-width;
189
		width: $data-width;
190
		text-align: left;
191
		font-size: emCalc(14px);
192
		top: 90px;
193
	}
194
	&.network p {
195
		top: 90px;
196
	}
197
	&.disk p {
198
		top: 94px;
199
	}
200
	&:hover {
201
		.img-wrap>a .snf-font ,span, a {
202
			color: $link-color-hover;
203
		}
204
	}
205

    
206
}
207

    
208
.network .connected {
209
	@include position-connected( $details-lt-width/2 - 2px , -$details-top-height/2 );
210
}
211

    
212
.firewall {
213
	float: left;
214
	margin-left:20px;
215
	border: 1px solid $primary-color;
216
	padding: 5px 20px;
217
	position: absolute;
218
	left:$data-width + $lt-width;
219
	top: $rel-top - 5px;
220
	font-size: emCalc(12px);
221
	white-space: nowrap;
222
	background-color: #fff;
223
	p {
224
		margin: 0;
225
		em {
226
			color: $secondary-color;
227
		}
228
	}
229
	.more {
230
		margin-top: 10px;
231
		margin-left: 0;
232
		list-style: none;
233
		display: none;
234

    
235

    
236
		li {
237
			min-width: 200px;
238
			span {
239
				float: right;
240
				font-size: emCalc(14px);
241
				height: 14px;
242
				line-height: 22px;
243
			}
244
			em {
245
				float: right;
246
				margin:0 5px 0 20px;
247
				width: 15px;
248
				display: inline-block;
249
			}
250
		}
251
	}
252
	&.unprotected >p em,
253
	.unprotected a em  { 
254
		color: $error-color;	
255
	}
256

    
257
}
258
.details .placeholder {
259
	height: 100px;
260

    
261
}