Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (4.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
				white-space: nowrap;
41
				.status {
42
					font-weight: normal;
43
					display: block;
44
					font-size: emCalc(14px);
45
				}
46
			}
47
		}
48
		.clearfix {
49
			position: relative;
50
		}
51
		.connections {
52
			list-style: none outside none;
53
			margin: 0;
54
			padding: 0;
55
			float: left;
56
			&> li {
57
				list-style: none outside none;
58
				margin: 0;
59
				padding: 0;
60
				position: relative;
61
				margin-bottom: 10px;
62
				@extend .clearfix;
63
				.icon {
64
					width: $lt-width;
65
					text-align: center;
66
					border-top: 2px solid $secondary-color;
67
					float: left;
68
					span {
69
						position: relative;
70
						top:$rel-top - 10px;
71
						background-color: $light-bg;
72
						padding:0px 10px;
73
						font-size: 30px;
74
						line-height: 120%;
75
					}
76
				}
77
				.act {
78
					position: absolute;
79
					left:0;
80
					top:-9px;
81
					display: block;
82
					height: 20px;
83
					width:65px;
84
					background: url(../images/connected.png) no-repeat 25px center;
85
					z-index: 2;
86
					-moz-transition: none;
87
					-webkit-transition: none;
88
					transition: none;
89
					&.open {
90
						background:url(../images/disconnected.png) no-repeat 0 0 #fff;
91
						-moz-transition: none;
92
						-webkit-transition: none;
93
						transition: none;
94
					}
95
				}
96
				.data {
97
					float: left;
98
					position: relative;
99
					top: $rel-top - 5px;
100
					width: $data-width;
101
					ul {
102
						padding: 5px 0 0;
103
						margin: 0;
104
						background-color: $light-bg;
105
						li {
106
							font-size: emCalc(12px);
107
							list-style: none outside none;
108
							padding: 0 10px 10px 10px;
109
							h5 { 
110
								float: left;
111
								margin: 0;
112
								line-height: 1.3em;
113
								&.ip-data {
114
									width: 10%;
115
								}
116
								&.volume-data {
117
									width: 35%;
118
								}
119
							}
120
							p {
121
								overflow: hidden;
122
								padding-left:10px;
123
								margin: 0;
124
								line-height: 1.3em;
125
							}
126
						}
127
					}
128
				}
129
			}
130
		}
131
	}
132
}
133

    
134
.connect-new {
135
	position: absolute;
136
	bottom: -150px;
137
	left:0;
138
	width: $lt-width;
139
	text-align: center;
140
	padding-top: 100px;
141
	background: url(../images/dashed_atom.png) repeat-y left center;
142
	margin-bottom: 50px;
143
	margin-left: -1px;
144
	.img-wrap {
145
		position: relative;
146
		display: block;
147
		width:$lt-width/2;
148
		height: 2px;
149
		background: url(../images/dashed_atom-x.png) repeat-x left top;
150
		overflow: inherit;
151
		&>a {
152
			display:  block;
153
			position: absolute;
154
			left:0;
155
			top:0;
156
			width: $lt-width;
157
			text-align: center;
158
			margin: -20px 0 0 ;
159
			.snf-font{
160
				color: $link-color;
161
				font-size: $snf-font-size-medium;
162
			}
163
			.snf-network-full {
164
				position: relative;
165
				top: -9px;
166
			}
167
		}
168
	}
169
	p {
170
		position: absolute;
171
		left: $lt-width;
172
		width: $data-width;
173
		text-align: left;
174
		font-size: emCalc(14px);
175
		top: 90px;
176
	}
177
	&.network p {
178
		top: 90px;
179
	}
180
	&.disk p {
181
		top: 94px;
182
	}
183
	&:hover {
184
		.img-wrap>a .snf-font ,span, a {
185
			color: $link-color-hover;
186
		}
187
	}
188

    
189
}
190

    
191
.network .connected {
192
	@include position-connected( $details-lt-width/2 - 2px , -$details-top-height/2 );
193
}
194

    
195
.firewall {
196
	float: left;
197
	margin-left:20px;
198
	border: 1px solid $primary-color;
199
	padding: 5px 20px;
200
	position: absolute;
201
	left:$data-width + $lt-width;
202
	top: $rel-top - 5px;
203
	font-size: emCalc(12px);
204
	white-space: nowrap;
205
	background-color: #fff;
206
	p {
207
		margin: 0;
208
		em {
209
			color: $secondary-color;
210
		}
211
	}
212
	.more {
213
		margin-top: 10px;
214
		margin-left: 0;
215
		list-style: none;
216
		display: none;
217

    
218

    
219
		li {
220
			min-width: 200px;
221
			span {
222
				float: right;
223
				font-size: emCalc(14px);
224
				height: 14px;
225
				line-height: 22px;
226
			}
227
			em {
228
				float: right;
229
				margin:0 5px 0 20px;
230
				width: 15px;
231
				display: inline-block;
232
			}
233
		}
234
	}
235
	&.unprotected >p em,
236
	.unprotected a em  { 
237
		color: $error-color;	
238
	}
239

    
240
}
241
.details .placeholder {
242
	height: 100px;
243

    
244
}