Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (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: $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
							height: 29px;
103
							// line-height: 16px;
104
							// color: $gray-0;
105
							background:url(../images/gear-485057.GIF) no-repeat 0 0 #fff;
106
						&:before {
107
							content: "";
108
						}
109
						// background:url(../images/disconnected.png) no-repeat 0 0 #fff;
110
						// -moz-transition: none;
111
						// -webkit-transition: none;
112
						// transition: none;
113
					}
114
				}
115
				.data {
116
					float: left;
117
					position: relative;
118
					top: $rel-top - 5px;
119
					width: $data-width;
120
					ul {
121
						padding: 5px 0 0;
122
						margin: 0;
123
						background-color: $light-bg;
124
						li {
125
							font-size: emCalc(12px);
126
							list-style: none outside none;
127
							padding: 0 10px 10px 10px;
128
							h5 { 
129
								float: left;
130
								margin: 0;
131
								line-height: 1.3em;
132
								&.ip-data {
133
									width: 10%;
134
								}
135
								&.volume-data {
136
									width: 35%;
137
								}
138
							}
139
							p {
140
								overflow: hidden;
141
								padding-left:10px;
142
								margin: 0;
143
								line-height: 1.3em;
144
							}
145
						}
146
					}
147
				}
148
			}
149
		}
150
	}
151
}
152

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

    
208
}
209

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

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

    
237

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

    
259
}
260
.details .placeholder {
261
	height: 100px;
262

    
263
}