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

b/snf-cyclades-app/synnefo/ui/new_ui/ui/sass/app.scss
1 1
// Global Foundation Settings
2 2
@import "settings";
3

  
4 3
// Comment out this import if you are customizing you imports below
5 4
@import "foundation";
6 5

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

  
7 9
// Import specific parts of Foundation by commenting the import "foundation"
8 10
// and uncommenting what you want below. You must uncomment the following if customizing
9 11

  
......
44 46
// @import "foundation/components/tooltips";
45 47
// @import "foundation/components/dropdown";
46 48

  
47
.clearfix:before,
48
.clearfix:after									{ content:" "; display:block; height:0; visibility:hidden; } /* http://www.yuiblog.com/blog/2010/09/27/clearfix-reloaded-overflowhidden-demystified/ */
49
.clearfix:after									{ clear:both; }
50
// Set margin and padding to zero 
51
@mixin marginPaddingZero() {
52
	margin: 0;
53
	padding: 0;
54
}
55
 
56

  
57
// Establishes the prequisits for sprite with background-image.
58
// Background-position for normal and hover states need to 
59
// be declared separetely
60
@mixin sprite($image, $width, $height){
61
	background:url($image) no-repeat center center;
62
	width: $width;
63
	height:$height;
64
	display: inline-block;
65
	text-indent: -2000px;
66
	overflow: hidden;
67

  
68
}
69

  
70
// Transition for css properties
71
@mixin transition($transition-property, $transition-time, $method) {
72
	-webkit-transition: $transition-property $transition-time $method;
73
	-moz-transition: $transition-property $transition-time $method;
74
	-ms-transition: $transition-property $transition-time $method;
75
	-o-transition: $transition-property $transition-time $method;
76
	transition: $transition-property $transition-time $method;
77
}
78

  
79
// Box-shadow property. For no box-shadow use box-shadow(none)
80
@mixin box-shadow($shadows...) {
81
  -moz-box-shadow: $shadows;
82
  -webkit-box-shadow: $shadows;
83
  box-shadow: $shadows;
84
}
85

  
86
a {
87
	color:$secondary-color;
88
	&:hover {
89
		color:$primary-color;
90
		@include transition(background, 300ms, ease-out);
91

  
92
	}
93
}
94
// border grey, on hover pink
95
.btn1 {
96
	border:1px solid $primary-color;
97
	color:$primary-color;
98
	display:inline-block;
99
	padding:10px 20px;
100
	line-height:1em;
101
	text-align:center;
102
	&:hover,
103
	&.current {
104
		border-color:$secondary-color;
105
		background:$secondary-color;
106
		color:#fff;
107
	}
108
	&.current {
109
		cursor:default;
110
	}
111
}
112

  
113
// white background, on hover transparent
114
.btn2 {
115
	@extend .btn1;
116
	color:$secondary-color;
117
	background:#fff;
118
	border-color:$secondary-color;
119
	&:hover, 
120
	&.current {
121
		background:transparent;
122
		border-color:#fff;
123
	}
124
}
125

  
126
// reverse btn2
127
.btn3 {
128
	@extend .btn1;
129
	color:#fff; 
130
	border-color:#fff;
131
	&:hover, 
132
	&.current {
133
		color:$secondary-color;
134
		background:#fff;
135
		border-color:#fff;
136
	}
137
}
138

  
139

  
140
// reverse btn2
141
.btn4 {
142
	@extend .btn1;
143
	color:#fff; 
144
	border-color:#fff;
145
	background: $secondary-color;
146
	&:hover, 
147
	&.current {
148
		color: $secondary-color;
149
  		border-color:  $secondary-color;
150
  		background: white;
151
	}
152
}
153

  
154

  
155

  
156
// btn with image on the right
157
.btn-img {
158
	@extend .btn1;
159
	border-color:$secondary-color;
160
	&:hover {
161
		background:transparent;
162
	}
163
	a {
164
		img,span {
165
			margin-left:5px;
166
		}
167
	}
168
}
169

  
170
.dummy-navigation {
171
	display:none;
172
	position: fixed;
173
	right:0;
174
	top:100px;
175
	padding:20px;
176
	background:#cc0;
177
	z-index:100;
178
	line-height:160%;
179
	a {
180
		color:$black;
181
		&:hover { color:#fff }
182
		&.open { color:#fff;}
183
		&.close {
184
			float:right;
185
			font-weight:bold;
186
			font-size:20px;
187
		}
188
	}
189
}
190

  
191
.ours {
192
	padding:8px 15px;
193
	color:#fff;
194
	font-size:20px;
195
	font-weight:bold;
196
	background:#cc0;
197
	display:none;
198
	position: absolute;
199
	&.questions { background:orange;}
200
	&.problems { background:red;}
201
	&.suggestions { background:#3EC9FF;}
202

  
203
}
204

  
205

  
206
.row-full {
207
	max-width:$row-full-width;
208
	margin:0 auto;
209
}
210

  
211
.lt-sidebar {
212
	width:250px;
213
	float:left;
214
	&.nav {
215
		margin-top:0;
216
		font-size:1em;
217
		overflow: auto;
218
	}
219
	&+.main {
220
		overflow:hidden;
221
	}
222
}
223

  
224
.main {
225
	padding:43px 40px;
226
}
227

  
228
body.with-overlay {
229
	background:$secondary-color;
230
}
231

  
232
.header {
233
	position:relative;
234
	padding:$header-padding-vertical $header-padding-horizontal;
235
	border-bottom:1px solid $primary-color;
236
	background:#fff;
237
	.logo {
238
		text-align: center;
239
		img {
240
			max-height: 30px;			
241
		}
242
	}
243
	.actions {
244
		text-align:center;
245
		height:45px;
246
		line-height:45px;
247
		position:relative;
248
		margin:2*$header-padding-vertical 0 $header-padding-vertical;
249
		.main-actions {
250
			position:relative;
251
			top:86px;
252
			margin:0 -40px;
253
			border-bottom:1px solid lighten($primary-color,20%);
254
			z-index: 1;
255
		}
256
		ul {
257
			margin:0;
258
			li {
259
				list-style: none outside none;
260
				display: inline-block;
261
				margin:0 5px;
262
				a {
263
					display: block;
264
					color:lighten($primary-color,30%);
265
					width:100%;
266
					padding:8px 20px;
267
					border:1px solid transparent;
268
					&.active {
269
						color:$primary-color;
270
						&:hover {
271
							color:$secondary-color;
272
							cursor: pointer;
273
						}
274
					}
275
					&:hover {
276
						cursor:default;
277
					}
278

  
279
				}
280
			}
281
		}
282
	}
283
	.new-btn {
284
		position: absolute;
285
		left:0;
286
		bottom:0;
287
		a {
288
			@extend .btn1;
289
			span {
290
				font-size:emCalc(20px);
291
			}
292
		}
293
	}
294
}
295
.login {
296
	position:absolute;
297
	right:$header-padding-horizontal;
298
	top:$header-padding-vertical;
299
}
300

  
301
.top-nav {
302
	position:absolute;
303
	left:$header-padding-horizontal;
304
	top:$header-padding-vertical;
305
	ul {
306
		@include marginPaddingZero();
307
		li {
308
			display: inline-block;
309
			margin-right:15px;
310
			a {
311
				padding-bottom:5px;
312
			}
313
		}
314
	}
315

  
316
}
317

  
318

  
319
// info styling
320

  
321
.top-info {
322
	padding:50px 100px;
323
	position: relative;
324
	z-index:10;
325
	display:none;
326
	.close {
327
		position: absolute;
328
		right:$header-padding-horizontal;
329
		top:50px;
330
		@include sprite('../images/info-close.png', 31px, 30px);
331
	}
332
}
333

  
334

  
335
.info.error {
336
	background:$error-color;
337
	color:#fff;
338
}
339

  
340

  
341
.info.alert {
342
	background:$alert-color;
343
	color:#fff;
344
}
345

  
346
.info.warning {
347
	background:$primary-color;
348
	color:#fff;
349
}
350

  
351
.info.success {
352
	background:$success-color;
353
	color:#fff;
354
}
355

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

  
53

  
359 54
.items-list {
360 55
	li {
361 56
		text-align:center;
......
522 217

  
523 218
}
524 219

  
525
.vms .items-list {
526
	.img {
527
			@include sprite('../images/vm-on.png', 56px, 58px);
528
			 
529
			&.stopped {
530
				background-image:url('../images/vm-stopped.png');
531
			}
532
			.os {
533
				@include sprite('../images/os-unknown.png', 22px, 22px);
534
				position: absolute;
535
				top:8px;
536
				left:18px;
537
				&.windows { background-image:url('../images/os-windows.png'); }
538
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
539
				&.fedora { background-image:url('../images/os-fedora.png'); }
540
			}
541
		
542
		}
543
}
544 220

  
545
.networks .items-list {
546
	.img {
547
			@include sprite('../images/network-green102x116.png', 51px, 58px);
548
		}
549
}
550

  
551

  
552
.vm {
553
	.top {
554
		.img {
555
			@include sprite('../images/vm-on.png', 112px, 116px);
556
		}
557
		&.stopped {
558
			background-image:url('../images/vm-stopped.png');
559
		}
560
		.os {
561
			@include sprite('../images/os-unknown.png', 22px, 22px);
562
			position: absolute;
563
			background-size:100%;
564
			width:44px;
565
			height:44px;
566
			left:36px;
567
			top:16px;
568
			&.windows { background-image:url('../images/os-windows.png'); }
569
			&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
570
			&.fedora { background-image:url('../images/os-fedora.png'); }
571
		}
572
	}
573
}
574

  
575

  
576
.network {
577
	.top {
578
		.img {
579
			@include sprite('../images/network-green102x116.png', 102px, 116px);
580
		}
581
	}
582
}
583 221

  
584 222
.details {
585 223
	position:relative;
......
694 332

  
695 333

  
696 334

  
697
.border-bottom-style1 {
698
	padding-bottom:20px;
699
	margin-bottom:20px;
700
	border-bottom:1px dashed $primary-color;
701
}
335

  
702 336

  
703 337
.overlay {
704 338
	background:$secondary-color;
......
753 387
	}
754 388
}
755 389

  
756
.create-vm {
757
	.select-os {
758
		li {
759
			width:23%;
760
			padding:20px;
761
			list-style:none outside none;
762
			display: inline-block;
763
			float: left;
764
			height: 200px;
765
			margin:0 10px 10px 0;
766
			&:hover,
767
			&.selected {
768
				background:#fff;
769
				h2, p, a {
770
					color:$secondary-color;
771
				}
772
			}
773
			a {
774
				color:#fff;
775
			}
776
			.os {
777
				@include sprite('../images/os-unknown.png', 30px, 30px);
778
				background-size:100%;
779
				margin-bottom:2em;
780
				&.windows { background-image:url('../images/os-windows.png'); }
781
				&.kubuntu { background-image:url('../images/os-kubuntu.png'); }
782
				&.fedora { background-image:url('../images/os-fedora.png'); }
783
			}
784
			h2 {
785
				font-size:emCalc(16px);
786
				font-weight:normal;
787
				color:#fff;
788
			}
789
			.details {
790
				font-weight:bold;
791
				font-size:emCalc(14px);
792
			}
793
		}
794
	}
795
	.select-flavor {
796
		dl {
797
			color:#fff;
798
			font-size:emCalc(20px);
799
			margin-bottom:10px;
800
			dd {
801
				width:23%;
802
				display: inline-block;
803
			}
804
			dt {
805
				width:70%;
806
				display: inline-block;
807
				font-weight: normal;
808
				span {
809
					@extend .btn3;
810
					min-width: 90px;
811
					margin:0 10px;
812
					&:first-child {
813
						margin-left:0;
814
					}
815
				}
816
			}
817
		}
818
	}
819
}
820

  
821
#vm-connect {
822
	.info {
823
		font-style:italic;
824
		font-size:emCalc(13px);
825
		color: lighten($primary-color,5%);
826
	}
827
	.ssh {
828
		text-align: center;
829
		span {
830
			padding: 10px 30px;
831
			background:$secondary-color;
832
			color:#fff;
833
		}
834
	}
835
}
836

  
837

  
838
.reveal-modal {
839
	h3 {
840
		font-size:1em;
841
	}
842
	a { 
843
		color: $secondary-color;
844
		&:hover {
845
			text-decoration: underline;
846
		}
847
		&.close-reveal-modal:hover {
848
			text-decoration: none;
849
			color:$secondary-color;
850
		}
851
	}	
852
}
853

  
854

  
855
// custom modal with opaque overlay
856
.reveal-custom {
857
	position: absolute;
858
	top:100px;
859
	left:25%;
860
	z-index:99;
861
	background:yellow;
862
	width:50%;
863
	display:none;
864
}
865

  
866

  
867 390
.details dl {
868 391
	.editable {
869 392
		position: relative;
......
916 439
	}
917 440
}
918 441

  
919
.storage {
920
	padding:45px 0;
921
	position:relative;
922
	.lt-sidebar {
923
		font-size: 1em;
924
		padding:0 20px 40px 40px;
925
		.sidenav {
926
			font-size: inherit;
927
		}
928
		ul {
929
			list-style: none outside none;
930
			li {
931
				padding:5px 0;
932
				&:hover {
933
					background: transparent;
934
					&>a {
935
						color:$secondary-color;
936
						&+span {
937
							display: inline;
938
						}
939
					}
940
				}
941
				span {
942
					float:right;
943
					color:$secondary-color;
944
					display: none;
945
				}
946

  
947
			}
948
		}
949
	}
950
	.files {
951
		margin:1em 0;
952
		padding:0;
953
		list-style: none outside none;
954
		li {
955
			list-style:none outside none;
956
			clear: left;
957
			padding:10px 20px;
958
			border:1px solid transparent;
959
			@extend .clearfix;
960
			text-align: left;
961
			font-weight: normal;
962
			.name-col {
963
				float:left;
964
				width:35%;
965
				padding-left:50px;
966
				&.folder { background:url(../images/icon-folder.png) no-repeat left center; }
967
				&.txt { background:url(../images/icon-txt.png) no-repeat left center; }
968
				&.pdf { background:url(../images/icon-pdf.png) no-repeat left center; }
969
				&.image { background:url(../images/icon-image.png) no-repeat left center; }
970
				font-weight: normal;
971
			}
972
			.size-col {
973
				float:left;
974
				width:10%;
975
			}
976
			.date-col {
977
				float:left;
978
				width:20%;
979
			}
980
			.actions-col {
981
				float:left;
982
				width:30%;
983
				visibility: hidden;
984

  
985
				a {
986
					color: $secondary-color;
987
					margin-right: 10px;
988
					&:hover { color:$primary-color;}
989

  
990
				}
991
			}
992
			&:hover {
993
				border-color:$secondary-color;
994
				.actions-col { visibility:visible;}
995
			}
996
			&.titles {
997
				color:$primary-color;
998
				.name-col { padding-left:0; }
999
				&:hover {
1000
					border-color:transparent;
1001
				}
1002
			}
1003
		}
1004
	}
1005
	.breadcrumbs {
1006
		li:first-child {
1007
			font-weight:bold;
1008
			a {
1009
				color:$black;
1010
				&:hover {
1011
					color:$secondary-color;
1012
				}
1013
			}
1014
		}
1015
		a:hover {
1016
			color: $secondary-color;
1017
		}
1018
	}
1019
}
1020

  
1021
.progress-bar {
1022
	position: fixed;
1023
	bottom:0;
1024
	left:0;
1025
	border-top:1px solid $secondary-color;
1026
	width:100%;
1027
	background:#fff;
1028
	padding:20px 0 20px 310px;
1029
	color:$primary-color;
1030
	span.counter {
1031
		display: inline-block;
1032
		margin-right:20px;
1033
		float:left;
1034
	}
1035
	a:hover {
1036
		color:$secondary-color;
1037
	}
1038
	div.progress-wrap {
1039
		display:inline-block;
1040
		float:left;
1041
		width:40%;
1042
		margin-right:60px;
1043
		.progress {
1044
			position: relative;
1045
			top:2px;
1046
		}
1047
	}
1048
	span.more {
1049
		display: inline-block;
1050
	}
1051
}
1052 442

  
1053
.overlay-wrapper {
1054
	position: relative;
1055

  
1056
	.overlay-area {
1057
		display:none;
1058
		position:absolute;
1059
		left:0;
1060
		right:0;
1061
		top:0;
1062
		width:100%;
1063
		height:100%;
1064
		background:$secondary-color;
1065
		z-index:20;
1066
	}
1067
	.close {
1068
		position: absolute;
1069
		right:$header-padding-horizontal;
1070
		top:50px;
1071
		@include sprite('../images/info-close.png', 31px, 30px);
1072
	}
1073
	.overlay-div {
1074
		display: none;
1075
		z-index:100;
1076
		position: relative;
1077
		background:#fff;
1078
		top:20%; 
1079
		left:25%; 
1080
		width:50%;
1081
		padding:25px;
1082
		.buttons {
1083
			a {
1084
				margin-right:20px;
1085
			}
1086
		}
1087
		&.upload-widget {
1088
			background:transparent;
1089
			padding:45px 0;
1090
			width:80%;
1091
			left:10%;
1092
			border:1px solid white;
1093
		}
1094

  
1095
	}
1096

  
1097
}
1098

  
1099
.upload-widget {
1100
	
1101
	text-align:center;
1102
	h2, a{
1103
		color:#fff;
1104
	}
1105
	.btns {
1106
		a {
1107
			@extend .btn3;
1108
			margin:0 10px;
1109
		}
1110
	}
1111
	.breadcrumbs {
1112
		*, & > *:before ,li a:first-child, a:hover, li a:first-child:hover  {
1113
			color:#fff;
1114
		}
1115
		a:hover {
1116
			text-decoration:underline;
1117
		}
1118

  
1119
		display: inline-block;
1120
	}
1121
	.files {
1122
		color:#fff;
1123
		
1124
		li {
1125
			padding: 10px 120px;
1126
			border: none;
1127
			position: relative;
1128
			.dz-success-mark {
1129
				margin-left:10px;
1130
			}
1131
			.dz-error-mark {
1132
				display: none;
1133
			}
1134
			.cancel-col {
1135
				width: 100px;
1136
				position: absolute;
1137
				right: 50px;
1138
				top: 9px;
1139
				
1140
				.cancel span {
1141
					display: block;
1142
					text-align: right;
1143
				}
1144
			}
1145
		}
1146
		div {
1147
			display: inline-block;
1148
		}
1149
		.progress-bar {
1150
			position: static;
1151
			padding: 0;
1152
			width: 25%;
1153
			border: none;
1154
			background-color: transparent;
1155
			
1156
			.progress-wrap {
1157
				width: 100%;
1158
				margin: 0;
1159
			
1160
				.progress {
1161
					display: block;
1162
					margin: 0;
1163
					border: 2px solid white;
1164
					padding: 0;
1165
					background-color:  $secondary-color;
1166
				
1167
					.meter {
1168
						background-color: white;
1169
					}
1170
				}
1171
			}
1172
		}
1173
	}
1174
}
1175

  
1176

  
1177
	.dz-success-mark, .dz-error-mark, .dz-error-message {
1178
		display: none;
1179

  
1180
}
1181

  
1182
.create-network {
1183
	color: #fff;
1184
	.check {
1185
		color: #fff;
1186
	}
1187
	p {
1188
		font-size: 0.8em;
1189
		font-style: italic;
1190
		margin: 5px 0 0;
1191
		width: 545px;
1192
	}
1193

  
1194
	li {
1195
		list-style: none outside none;
1196
	}
1197
	.custom_checkbox {
1198
		font-size: 1.3em;
1199
	}
1200
	.subnet_options {
1201
		margin: 0;
1202
		li {
1203
			margin-bottom: 6px;
1204
			padding-left: 155px;
1205
		}
1206
	}
1207

  
1208
	.network_options {
1209
		position: relative;
1210
		width: 350px;
1211
		min-height: 285px;
1212
		
1213
		.check {
1214
			position: absolute;
1215
			right: 0;
1216
		}
1217
		
1218
		li {
1219
			display: block;
1220
			margin-bottom: 13px;
1221
		
1222
			form {
1223
				margin: 0;
1224
				
1225
				input {
1226
					position: absolute;
1227
					display: inline-block;
1228
					right: 0;
1229
					width: 200px;
1230
					height: 20px;
1231
					font-size: 0.9em;
1232
					
1233
					&.hidden {
1234
						display: none;
1235
					}
1236
				}
1237
			}
1238
			&.manual form input {
1239
				right: -160px;
1240
				width: 150px;
1241
			}
1242
		}		
1243
		span.sub_title {
1244
			float:left;
1245
		}
1246
	}
1247
}
1248

  
1249

  
1250

  
1251

  
1252
.onecol {
1253
	max-width:$row-width;
1254
	margin:0 auto;
1255
}
1256 443

  
1257 444
@media #{$entities-large} {
1258 445
	.entities {
......
1262 449
	} 
1263 450
}
1264 451

  
1265

  
452
// VMs ( vm list, vm details, create vm)
453
@import "machines";
454
// Networks ( network list, network details, create network)
455
@import "networks";
456
// Storage ( pithos list, upload new file )
457
@import "storage";

Also available in: Unified diff