Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _common.scss @ 05205849

History | View | Annotate | Download (10 kB)

1
/* Table of Contents
2

    
3
  - Clearfix
4
  - Mixins
5
  - Buttons and Links
6
  - Layout 
7
  - Header
8
  - Actions Bar
9
  - Icon Navigation
10
  - Top Info
11
  - Progress Bar
12
  - Responsive
13

    
14
 */
15

    
16
/* Clearfix -------------------------------------------- */
17

    
18
.clearfix {
19
    zoom:1;
20
    &:before, &:after {
21
        content: "\0020";
22
        display: block;
23
        height: 0;
24
        overflow: hidden;
25
    }
26
    &:after {
27
        clear: both;
28
    }
29
}
30

    
31
/* Mixins ----------------------------------------------- */
32

    
33
@mixin marginPaddingZero() {
34
	margin: 0;
35
	padding: 0;
36
}
37
 
38

    
39
// Establishes the prequisits for sprite with background-image.
40
// Background-position for normal and hover states need to 
41
// be declared separetely
42
@mixin sprite($image, $width, $height){
43
	background:url($image) no-repeat center center;
44
	width: $width;
45
	height:$height;
46
	display: inline-block;
47
	text-indent: -2000px;
48
	overflow: hidden;
49

    
50
}
51

    
52
// Transition for css properties
53
@mixin transition($transition-property, $transition-time, $method) {
54
	-webkit-transition: $transition-property $transition-time $method;
55
	-moz-transition: $transition-property $transition-time $method;
56
	-ms-transition: $transition-property $transition-time $method;
57
	-o-transition: $transition-property $transition-time $method;
58
	transition: $transition-property $transition-time $method;
59
}
60

    
61
// Box-shadow property. For no box-shadow use box-shadow(none)
62
@mixin box-shadow($shadows...) {
63
  -moz-box-shadow: $shadows;
64
  -webkit-box-shadow: $shadows;
65
  box-shadow: $shadows;
66
}
67

    
68
@mixin padding1-0 {
69
	padding: 1px 0;
70
}
71

    
72

    
73
@mixin placeholder {
74
	&.placeholder { @content; }
75
	&:-moz-placeholder { @content; }
76
	&::-moz-placeholder { @content; }
77
	&::-webkit-input-placeholder { @content; }
78
}
79

    
80

    
81
/* Circle and Tags ----------------------------------------------- */
82
.circle {
83
	display:inline-block;
84
    -webkit-border-radius: 999px;
85
    -moz-border-radius: 999px;
86
    border-radius: 999px;
87
    behavior: url(PIE.htc);
88
}
89

    
90
.tags {
91
	text-align:center;
92
	a {
93
		@extend .circle;
94
		width:12px;
95
		height:12px;
96
		margin:0 3px;
97
		&.tag1 { background-color:$secondary-color;}
98
		&.tag2 { background-color:$third-color;}
99
		&.tag3 { background-color:$success-color;}
100
	}
101
}
102

    
103
.tag-demo {
104
	@extend .circle;
105
	width: 18px;
106
	height: 18px;
107
	position: relative;
108
	bottom: -5px;
109
	margin-right: 20px;
110
	&.tag4 { background-color: #ff5e4d;}
111
	&.tag5 { background-color: #25bfda;}
112
	&.tag6 { background-color: #fbf7c5;}
113
	&.tag7 { background-color: #83a697;}
114
}
115

    
116

    
117

    
118
/* Buttons and Links ----------------------------------------------- */
119

    
120

    
121
a {
122
	color:$primary-color;
123
	&:hover {
124
		color:$third-color;
125
		@include transition(background, 300ms, ease-out);
126
	}
127

    
128
	
129
}
130

    
131
.more a .snf-checkbox-checked, .more a .snf-checkbox-unchecked{
132
	color: $net-opt-area-color;
133
}
134

    
135
.btn1 {
136
	border:1px solid $primary-color;
137
	color:$primary-color;
138
	display:inline-block;
139
	padding:10px 20px;
140
	line-height:1em;
141
	text-align:center;
142
	&:hover,
143
	&.current,
144
	&:focus {
145
		border-color:$secondary-color;
146
		background:$secondary-color;
147
		color:#fff;
148
	}
149
	&.current {
150
		cursor:default;
151
	}
152
}
153

    
154
.btn2 {
155
	@extend .btn1;
156
	color:$secondary-color;
157
	background:#fff;
158
	border-color:$secondary-color;
159
	&:hover, 
160
	&.current,
161
	&:focus {
162
		background:transparent;
163
		border-color:#fff;
164
	}
165
}
166

    
167
.btn3 {
168
	@extend .btn1;
169
	color:#fff; 
170
	border-color:#fff;
171
	&:hover, 
172
	&.current,
173
	&:focus {
174
		color:$secondary-color;
175
		background:#fff;
176
		border-color:#fff;
177
	}
178
}
179

    
180
.btn4 {
181
	@extend .btn1;
182
	color:#fff; 
183
	border-color:#fff;
184
	background: $secondary-color;
185
	&:hover, 
186
	&.current,
187
	&:focus {
188
		color: $secondary-color;
189
  		border-color:  $secondary-color;
190
  		background: #fff;
191
	}
192
}
193

    
194
.btn5 {
195
	border:1px solid white;
196
	color:white;
197
	display:inline-block;
198
	padding:0 20px;
199
	line-height:$btn-height - 2px;
200
	height:$btn-height;
201
	text-align:center;
202
	font-size:emCalc(12px);
203
	&:hover,
204
	&:focus {
205
		border-width:2px;
206
		line-height: $btn-height - 4px;
207
		padding:0 19px;
208
		color:white;
209
	}
210
	&.current {
211
		background:white;
212
		color:$secondary-color;
213
	}
214
}
215

    
216
.btn-img {
217
	@extend .btn1;
218
	border-color:$secondary-color;
219
	&:hover,
220
	&:focus {
221
		background:transparent;
222
	}
223
	a {
224
		img,span {
225
			margin-left:5px;
226
		}
227
	}
228
}
229

    
230

    
231
/* Layout ----------------------------------------------- */
232
html,body {
233
	height:100%;
234
}
235

    
236
body {
237
	padding-top:$header-height+$bar-height;
238
}
239

    
240
.overlay-wrapper {
241
	min-height:100%;
242
}
243

    
244
.lt-sidebar {
245
	width:250px;
246
	float:left;
247
	&.nav {
248
		margin-top:0;
249
		font-size:1em;
250
		overflow: auto;
251
	}
252
	&+.main {
253
		overflow:hidden;
254
	}
255
}
256

    
257
.main {
258
	padding:0 40px;
259
	overflow:hidden;
260
}
261

    
262

    
263
.row {
264
	padding:0 70px;
265
}
266

    
267
/* Header ----------------------------------------------- */
268

    
269
.header {
270
	position:fixed;
271
	top:0;
272
	left:0;
273
	right:0;
274
	width:100%;
275
	height:$header-height;
276
	line-height:$header-height;
277
	padding:0 $header-padding-horizontal;
278
	background:white;
279
	z-index:100;
280
	.icons-nav {
281
		position:absolute;
282
		left:$header-padding-horizontal - $icons-nav-margin-horizontal;
283
		height:$header-height;
284
		line-height:$header-height;
285
		top:0;
286
		li {
287
			line-height: $header-height;
288
		}
289
	}
290
	.logo {
291
		text-align: center;
292
		a {
293
			position: relative;
294
			top:-5px;
295
			&:focus {
296
				border: 1px solid $secondary-color;
297
				padding: 10px;
298
			}
299
		}
300
		img {
301
			max-height: 30px;			
302
		}
303
		h2 {
304
			display: none;
305
			margin:0;
306
			font-size: 1em;
307
			color:$primary-color;
308
			font-weight: normal;
309
		}
310
	}
311
	.login {
312
		position:absolute;
313
		top:0;
314
		right:$header-padding-horizontal;
315
		height:$header-height;
316
		line-height:$header-height;
317
		font-size: emCalc(26px);
318
	}
319
	
320
}
321

    
322
/* Actions Bar ----------------------------------------------- */
323

    
324
.actions-bar {
325
	border-bottom: 1px solid $primary-color;
326
	padding-bottom: 44px;
327
	position:fixed;
328
	left:0;
329
	top:$header-height;
330
	width:100%;
331
	z-index:15;
332
	text-align:center;
333
	height:$bar-height;
334
	line-height:$bar-height;
335
	background:white;
336
	h2 {
337
		position: absolute;
338
		left: 15px;
339
		top: 11px;
340
		color: $primary-color;
341
		font-size: 0.9em;
342
		font-weight: normal;
343
		line-height: 2em;
344
	}
345
	.filter-menu {
346
		position: absolute;
347
		right: 29px;
348
		font-size: 0.9em;
349
		width: 120px;
350
		.filter {
351
			padding: 0 9px 4px;
352
			line-height: 34px
353
		}
354
		.options {
355
			display: none;
356
			position: absolute;
357
			left: -33px;
358
			top: 37px;
359
			width: 120px;
360
			list-style-type: none;
361
			padding: 3px 15px;
362
			text-align: left;
363
			margin:0;
364
		}
365
		&.current {
366
			.filter {
367
				border: 1px solid lighten($primary-color,10%);
368
				display: inline-block;
369
				line-height: 32px;
370
			}
371
			.options {
372
				background-color: lighten($primary-color,10%);
373
				display: inline-block;
374
				a {
375
					color: white;
376
				}
377
			}
378
		}
379

    
380

    
381
	}
382
	
383
	.row {
384
		position: relative;
385
		height: $bar-height;
386
	}
387

    
388
	#sb-search {
389
		height: 50px;
390
		position: absolute;
391
		right: 105px;
392
		top: -10px;
393
		.sb-icon-search {
394
			background-color: white;
395
			color: $primary-color;
396
			top: -4px;
397
			font-size: 0.8em;
398
			width:40px;
399
			&:hover {
400
				color: $secondary-color;
401
			}
402
		}
403
		.sb-search-input {
404
			background:transparent;
405
			border:0 none;
406
			width: 300px;
407
			margin-right: 51px;
408
			margin: 0;
409
			height: 52px;
410
			&:focus {
411
				outline: 0 none;
412
				border:0 none;
413
				@include box-shadow(none);
414
			}
415
			@include placeholder {
416
			    color:$secondary-color;
417
			}
418
		}
419
		.sb-search-submit {
420
			width: 40px;
421
		}
422
	}
423

    
424
	#search-utility {
425
		position: absolute;
426
		display: inline-block;
427
		width: 200px;
428
		height: 2em;
429
		right:118px;
430
		background-color: lighten($primary-color,35%);
431
		padding-bottom: 35px;
432
		.snf-search {
433
			position: relative;
434
			right: -2px;
435
			color: $primary-color;
436
		}
437
		form {
438
			display: inline-block;
439
			width: 164px;
440
			input {
441
				display: inline-block;
442
				border: transparent;
443
				background-color: transparent;
444
				color: $primary-color;
445
				height: 1.8em;
446
				padding-top: 0.3em;
447
				// padding-bottom: 0.3em;
448
				// line-height: 1.2em;
449
				width: 160px;
450
				font-size: 0.8em;
451
				box-shadow: none;
452
				margin-bottom: 0;
453
			}
454
		}
455
	}
456

    
457
	.view-type {
458
		display:inline-block;
459
		position: absolute;
460
		right: 15px;
461
		top: 0px;
462
		.current {
463
			color: $secondary-color;
464
		}
465
		.snf-list {
466
				margin-right: 6px;
467
				font-size: 1em;
468
		}
469
		.snf-layout {
470
				font-size: 1.1em;
471
		}
472
		
473
	}
474
}
475
.new-btn {
476
	position: absolute;
477
	left:$header-padding-horizontal;
478
	bottom:0;
479
	height:$bar-height;
480
	a {
481
		@extend .btn1;
482
		span {
483
			font-size:emCalc(20px);
484
		}
485
	}
486
}
487

    
488
/* Icons Navigation ----------------------------------------------- */
489

    
490
.icons-nav {
491
	@include marginPaddingZero();
492
	li {
493
		display: inline-block;
494
		margin:0 $icons-nav-margin-horizontal;
495
		font-size: emCalc(26px);
496
		line-height: 1em;
497
		padding-bottom:5px;
498
		width: 30px;
499
		text-align:center;
500
		overflow: hidden;
501
		a {
502
			color:$black;
503
			&:hover,&.current {
504
				// font-size:30px;
505
				color:$third-color;
506
			}
507
		}
508
	}
509
}
510

    
511

    
512

    
513

    
514
/* Top info  ----------------------------------------------- */
515

    
516
.top-info {
517
	padding:50px 100px;
518
	position: relative;
519
	z-index:10;
520
	display:none;
521
	.close {
522
		position: absolute;
523
		right:$header-padding-horizontal;
524
		top:50px;
525
		@include sprite('../images/info-close.png', 31px, 30px);
526
	}
527
}
528

    
529

    
530
.info.error {
531
	background:$error-color;
532
	color:#fff;
533
}
534

    
535

    
536
.info.alert {
537
	background:$alert-color;
538
	color:#fff;
539
}
540

    
541
.info.warning {
542
	background:$primary-color;
543
	color:#fff;
544
}
545

    
546
.info.success {
547
	background:$success-color;
548
	color:#fff;
549
}
550

    
551
.border-bottom-style1 {
552
	padding-bottom:20px;
553
	margin-bottom:20px;
554
	border-bottom:1px dashed $primary-color;
555
}
556

    
557

    
558
/* Progress Bar ----------------------------------------------- */
559

    
560
.progress-bar {
561
	position: fixed;
562
	bottom:0;
563
	left:0;
564
	border-top:1px solid $secondary-color;
565
	width:100%;
566
	background:#fff;
567
	padding:20px 0 20px 310px;
568
	color:$primary-color;
569
	span.counter {
570
		display: inline-block;
571
		margin-right:20px;
572
		float:left;
573
	}
574
	div.progress-wrap {
575
		display:inline-block;
576
		float:left;
577
		width:40%;
578
		margin-right:60px;
579
		.progress {
580
			position: relative;
581
			top:2px;
582
		}
583
	}
584
	span.more {
585
		display: inline-block;
586
	}
587
}
588

    
589

    
590
/* Responive ------------------------------------------------ */
591
@media only screen and (max-width: $small-mobile) {
592
}
593

    
594
@media only screen and (max-width: $small-screen) {
595
	body {
596
		padding-top:0
597
	}
598
	.header, .actions-bar {
599
		position:static;
600
		z-index: auto;
601
	}
602
	.actions-bar {
603
		top:2*$header-height;
604
	}
605
	.header {
606
		height: $header-height-responsive;
607
		line-height:50px;
608
		.icons-nav {
609
			position: static;
610
		}
611
	}
612
}