Revision 673ea014 snf-cyclades-app/synnefo/ui/new_ui/ui/sass/app.scss

b/snf-cyclades-app/synnefo/ui/new_ui/ui/sass/app.scss
3 3
// Comment out this import if you are customizing you imports below
4 4
@import "foundation";
5 5

  
6
// mixins, common styles (buttons, links), overlays, bottom progress bar and header area
7
@import "common";
8 6

  
9 7
// Import specific parts of Foundation by commenting the import "foundation"
10 8
// and uncommenting what you want below. You must uncomment the following if customizing
......
46 44
// @import "foundation/components/tooltips";
47 45
// @import "foundation/components/dropdown";
48 46

  
49
.entities {
50
	padding-top:25px;
51
}
52

  
53

  
54
.items-list {
55
	li {
56
		text-align:center;
57
		padding:20px;
58
		list-style:none;
59
		.add-new {
60
			a {
61
				margin:0 20px;
62
				display: block;
63
				font-weight: bold;
64
				height:190px;
65
				padding:65px 30px 15px;
66
				border:1px dashed $primary-color;
67
				&:hover {
68
					border-color:$secondary-color;
69
					color:$secondary-color;
70
				}
71
			}			
72
		}
73
		.img-wrap {
74
			height: 78px;
75
		}
76
		.img {
77
			margin-bottom: 20px;
78
			position: relative;
79
			height:58px;
80
		}
81
		.container {
82
			&.set-bg {	background:lighten($primary-color,38%); }
83
			&.set-border {	border-color:$secondary-color; }
84
			border:1px solid transparent;
85
			margin: 0 20px;
86
			padding:25px 0;
87
			position: relative;
88
			.options {
89
				width:100%;
90
				text-align:center;	
91
				position: absolute;
92
				top:-3px;
93
				left:0;
94
				display: none;
95
				.wrap {
96
					height:100%;
97
					padding:25px 25px 0;
98
					text-align: left;
99
					a {
100
						font-size:emCalc(27px);
101
						display: inline-block;
102
						color:$primary-color;
103
						line-height: 1em;
104
						margin-bottom:10px;
105

  
106
						font-weight: bold;
107
						&:hover {
108
							color: $secondary-color;
109
						}
110
					}
111
						
112
					
113
					
114
				}
115
			}
116
		}
117
		.check {
118
			position:absolute;
119
			right:10px;
120
			top:5px;
121

  
122
			color:lighten($primary-color,35%);
123
			font-weight: bold;
124
			font-size:emCalc(27px);
125
			cursor: pointer;
126
			z-index: 10;
127
			span { position:relative; z-index:10;}
128
			&.active {
129
				color:$secondary-color;
130
			}
131
		}
132
		.info-box {			
133
			position:absolute;
134
			left:20px;
135
			top:60px;
136
			background:$primary-color;
137
			width:emCalc(300px);
138
			padding:20px;
139
			color:white;
140
			z-index:20;
141
			display: none;
142
			h2 {
143
				font-size:1em;
144
				color:white;
145
			}
146
			dl {
147
				font-size:1em;
148
				dt {
149
					float:left;
150
					width:30%;
151
				}
152
				dd {
153
					overflow:hidden;
154
				}
155
			}
156
		}
157
		.visible-info {
158
			margin: 0 25px;
159
			position:relative;
160
			color:$primary-color;
161
			overflow: hidden;
162
			span {
163
				&.title {
164
					white-space: nowrap;
165
				}
166
				display: block;
167
				position: relative;
168
				em {
169
					font-style:normal;
170
					position: relative;
171
				}
172
			}
173
		}
174

  
175
	}
176
}
177

  
178

  
179
.lt-sidebar {
180
	margin-top:43px;
181
	overflow:scroll;
182
	height:300px;
183
	font-size:emCalc(12px);
184
	.items-list {
185
		padding:0;
186
	}
187
	.items-list li .img, 
188
	.items-list li .os {
189
		background-size:80%;
190
	}
191
	.items-list li .img .os {
192
		top:10px;
193
	}
194
	li:hover {
195
		background:lighten($primary-color,35%);
196
	}
197
	li.current {
198
		background:lighten($primary-color,30%);
199
		cursor: pointer;
200

  
201
	}
202

  
203
	.jspDrag {
204
		background-color:$primary-color;
205
	}
206
	.jspVerticalBar {
207
		width:10px;
208
		right:4px;
209
	}
210
	.jspTrack {
211
		background:#fff;
212

  
213
		border:1px solid $primary-color;
214
		border-top:1px solid lighten($primary-color,20%);
215
	}
216

  
217

  
218
}
219

  
220

  
221

  
222
.details {
223
	position:relative;
224
	.top {
225
		padding:70px $header-padding-horizontal;
226
		text-align: center;
227
		.img {
228
			background-size:100%;
229
			margin-bottom: 20px;
230
			position: relative;
231
		}
232
		.actions {
233
			ul {
234
				padding:1em 1em 0;
235
				margin:0;
236
				text-align:center;
237
				li {
238
					list-style: none outside none;
239
					display: inline-block;
240
					margin:0 30px;
241
					min-width: 112px;
242
					a {
243
						@extend .btn1;
244
					}
245

  
246
				}
247
			}
248
		}
249
		
250
	}
251
	.info {
252
		position: relative;
253
		.section_header {
254
			float: left;
255
			width:22%;
256
			margin-right: 2%;
257
			font-weight: bold;
258
		}
259

  
260
		.right_side {
261
			overflow: hidden;
262
			width: 76%;
263
			.middle_side {
264
				float:left;
265
				min-width:70%;
266
				.action_links {
267
					display: inline-block;
268
					a {
269
						margin-right:5px;
270
						color:$secondary-color;
271
					}
272
				}
273
				p {
274
					margin-bottom:0;
275
				}
276
				.info_simple {
277
					display: inline-block;
278
					margin-right: 10px;
279
					width:40%;
280
				}
281
			}
282
			.btn-img {
283
				float:right;
284
				min-width: 180px;
285
				text-align: center;
286
			}
287
			.set {
288
				margin-bottom:1em;
289
			}
290

  
291
			
292
		}
293
		.btn-img {
294
			float:right;
295
		}
296
		
297 47

  
298
		dl {
299
			margin:0;
300
			dt {
301
				display: inline-block;
302
				width:25%;
303

  
304
			}
305
			dd {
306
				width:74%;
307
				display: inline-block;
308
				.os {
309
					height:16px;
310
					vertical-align: baseline;
311
				}
312
			}
313
		}
314
	}
315
	.close {
316
		position: absolute;
317
		right:$header-padding-horizontal;
318
		top:$header-padding-horizontal+emCalc(43px);
319
		span {
320
			font-size:emCalc(32px);
321
		}	
322
		&:hover {
323
			color:$secondary-color;
324
		}
325
	}
326
	.graph_container {
327
		padding-bottom: 2em;
328
	}
329
}
330

  
331

  
332

  
333

  
334

  
335

  
336

  
337
.overlay {
338
	background:$secondary-color;
339
	position: relative;
340
	z-index:10;
341

  
342
	.lt-sidebar {
343
		border-right:1px solid #fff;
344
		color:#fff;
345
		ul {
346
			li {
347
				list-style:none outside none;
348
				
349
				a {
350
					color:#fff;
351
					span { float:right; display:none;}
352
					&:hover,
353
					&.current {
354

  
355
						text-decoration: none;
356
						span { 
357
							display:inline;
358
						}
359
					}
360
				}
361

  
362
			}
363
		}
364

  
365
	}
366
	.lt-sidebar, 
367
	.main {
368
		padding:100px $header-padding-horizontal;
369
		position:relative;
370
	}
371
	.navigation {
372
		.rt {
373
			float:right;
374
		}
375
	}
376
	.close {
377
		position: absolute;
378
		right:$header-padding-horizontal;
379
		top:50px;
380
		@include sprite('../images/info-close.png', 31px, 30px);
381
	}
382
	.close_char {
383
		background: none;
384
		text-indent: 0;
385
		font-size: 1.8em; /* for the the character e (for d we can put 2em) */
386
		color: white;
387
	}
388
}
389

  
390
.details dl {
391
	.editable {
392
		position: relative;
393
		.input-txt {
394
			display: inline-block;
395
			margin-right: 6px;
396
		}
397
		.editbuttons {
398
			display: inline-block;
399
			a {
400
				margin-right: 6px;
401
				&.save, 
402
				&.cancel { 
403

  
404
				}
405
				&:hover {
406
				
407
				}
408
			
409
			}
410
		}
411
		input[type="text"] {
412
			position:relative;
413
			height: 25px;
414
			width:298px;
415
			padding:0 10px;
416
			font-size:inherit;	
417
			margin:0;	
418
			left:-11px;
419
			top:-1px;
420
		}
421

  
422
	}
48
// mixins, common styles (buttons, links), bottom progress bar and header area
49
@import "common";
423 50

  
424
}
425
.editable {
426
	.editbuttons {		
427
		a {
428
			color: $secondary-color;
429
			&.save, 
430
			&.cancel { display: none; }
431
			&:hover {
432
				color:$primary-color;
433
			}
434
		
435
		}
436
	}
437
	input[type="text"] {
438
		display: none;
439
	}
440
}
51
// list view of vms, networks etc
52
@import "items-list";
441 53

  
54
// detailed view of vm, network etc
55
@import "details";
442 56

  
57
// styles for lt-sidebar
58
@import "lt-sidebar";
443 59

  
444
@media #{$entities-large} {
445
	.entities {
446
		.items-list {
447
			@include block-grid(4, 20px, true);
448
		}
449
	} 
450
}
60
// styles for forms/editable areas
61
@import "forms";
451 62

  
452 63
// VMs ( vm list, vm details, create vm)
453 64
@import "machines";
......
455 66
@import "networks";
456 67
// Storage ( pithos list, upload new file )
457 68
@import "storage";
69

  
70

  
71
// modals and overlays
72
@import "overlays";

Also available in: Unified diff