Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (10.9 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
// keyframes mixin
81
@mixin keyframes($name) {
82
  @-webkit-keyframes #{$name} {
83
    @content;
84
  }
85
  @-moz-keyframes #{$name} {
86
    @content;
87
  }
88
  @-ms-keyframes #{$name} {
89
    @content;
90
  }
91
  @keyframes #{$name} {
92
    @content;
93
  }
94
}
95
/* Circle and Tags ----------------------------------------------- */
96
.circle {
97
	display:inline-block;
98
    -webkit-border-radius: 999px;
99
    -moz-border-radius: 999px;
100
    border-radius: 999px;
101
    behavior: url(PIE.htc);
102
}
103

    
104
.tags {
105
	text-align:center;
106
	a {
107
		@extend .circle;
108
		width:12px;
109
		height:12px;
110
		margin:0 3px;
111
		&.tag1 { background-color:$secondary-color;}
112
		&.tag2 { background-color:$third-color;}
113
		&.tag3 { background-color:$success-color;}
114
	}
115
}
116

    
117
.tag-demo {
118
	@extend .circle;
119
	width: 18px;
120
	height: 18px;
121
	position: relative;
122
	bottom: -5px;
123
	margin-right: 20px;
124
	&.tag4 { background-color: #ff5e4d;}
125
	&.tag5 { background-color: #25bfda;}
126
	&.tag6 { background-color: #fbf7c5;}
127
	&.tag7 { background-color: #83a697;}
128
}
129

    
130

    
131

    
132
/* Buttons and Links ----------------------------------------------- */
133

    
134

    
135
a {
136
	color:$primary-color;
137
	&:hover {
138
		color:$third-color;
139
		@include transition(background, 300ms, ease-out);
140
	}
141

    
142
	
143
}
144

    
145
.more a .snf-checkbox-checked, .more a .snf-checkbox-unchecked{
146
	color: $net-opt-area-color;
147
}
148

    
149
.btn1 {
150
	border:1px solid $primary-color;
151
	color:$primary-color;
152
	display:inline-block;
153
	padding:10px 20px;
154
	line-height:1em;
155
	text-align:center;
156
	&:hover,
157
	&.current,
158
	&:focus {
159
		border-color:$secondary-color;
160
		background:$secondary-color;
161
		color:#fff;
162
	}
163
	&.current {
164
		cursor:default;
165
	}
166
}
167

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

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

    
194
.btn4 {
195
	@extend .btn1;
196
	color:#fff; 
197
	border-color:#fff;
198
	background: $secondary-color;
199
	&:hover, 
200
	&.current,
201
	&:focus {
202
		color: $secondary-color;
203
  		border-color:  $secondary-color;
204
  		background: #fff;
205
	}
206
}
207

    
208
.btn5 {
209
	border:1px solid white;
210
	color:white;
211
	display:inline-block;
212
	padding:0 20px;
213
	line-height:$btn-height - 2px;
214
	height:$btn-height;
215
	text-align:center;
216
	font-size:emCalc(12px);
217
	&:hover,
218
	&:focus {
219
		border-width:2px;
220
		line-height: $btn-height - 4px;
221
		padding:0 19px;
222
		color:white;
223
	}
224
	&.current {
225
		background:white;
226
		color:$secondary-color;
227
	}
228
}
229

    
230
.btn-img {
231
	@extend .btn1;
232
	border-color:$secondary-color;
233
	&:hover,
234
	&:focus {
235
		background:transparent;
236
	}
237
	a {
238
		img,span {
239
			margin-left:5px;
240
		}
241
	}
242
}
243

    
244

    
245
/* Layout ----------------------------------------------- */
246
html,body {
247
	height:100%;
248
}
249

    
250
body {
251
	padding-top:$header-height+$bar-height;
252
}
253

    
254
.overlay-wrapper {
255
	min-height:100%;
256
}
257

    
258
.lt-sidebar {
259
	width:250px;
260
	float:left;
261
	&.nav {
262
		margin-top:0;
263
		font-size:1em;
264
		overflow: auto;
265
	}
266
	&+.main {
267
		overflow:hidden;
268
	}
269
}
270

    
271
.main {
272
	padding:0 10px;
273
}
274

    
275
/* Header ----------------------------------------------- */
276

    
277
.header {
278
	position:fixed;
279
	top:0;
280
	left:0;
281
	right:0;
282
	width:100%;
283
	height:$header-height;
284
	line-height:$header-height;
285
	padding:0 $header-padding-horizontal;
286
	background:white;
287
	z-index:100;
288
	.icons-nav {
289
		position:absolute;
290
		left:$header-padding-horizontal - $icons-nav-margin-horizontal;
291
		height:$header-height;
292
		line-height:$header-height;
293
		top:0;
294
		li {
295
			line-height: $header-height;
296
		}
297
	}
298
	.logo {
299
		text-align: center;
300
		a {
301
			position: relative;
302
			top:-5px;
303
			&:focus {
304
				border: 1px solid $secondary-color;
305
				padding: 10px;
306
			}
307
		}
308
		img {
309
			max-height: 30px;			
310
		}
311
		h2 {
312
			display: none;
313
			margin:0;
314
			font-size: 1em;
315
			color:$primary-color;
316
			font-weight: normal;
317
		}
318
	}
319
	.login {
320
		position:absolute;
321
		top:25px;
322
		right:$header-padding-horizontal;
323
		a {
324
			color:$overlay-color;
325
			&:hover {
326
				color:$secondary-color;
327
			}
328
		}
329
		.wrap {
330
			$wr-padd-top:12px;
331
			border:1px solid $overlay-color;
332
			background: white;
333
			color:$overlay-color;
334
			font-size:emCalc(12px);
335
			padding:$wr-padd-top 30px;
336
			line-height:100%;
337
			ul {
338
				display: none;
339
				padding:0;
340
				margin:0;
341
				list-style: none outside none;
342
				li {
343
					list-style: none outside none;
344
					padding:0;
345
					padding-top:$wr-padd-top;
346

    
347

    
348
				}
349
			}
350
			&:hover {
351
				ul {
352
					display: block;
353
				}
354
			}
355
		}
356
	}
357
	
358
}
359

    
360
/* Actions Bar ----------------------------------------------- */
361

    
362
.actions-bar {
363
	position:fixed;
364
	left:0;
365
	top:$header-height;
366
	width:100%;
367
	z-index:15;
368
	text-align:center;
369
	height:$bar-height;
370
	line-height:$bar-height;
371
	color:$overlay-color;
372
	background-color: lighten($primary-color,35%);
373
	a {
374
		color:$overlay-color;
375
	}
376
	h2 {
377
		float: left;
378
		margin-left: 15px;
379
		color: $overlay-color;
380
		font-size: emCalc(12px);
381
		line-height: $bar-height;
382
		font-weight: normal;
383
	}
384
	.filter-menu {
385
		float:right;
386
		position: relative;
387
		.filter {
388
			padding: 0 10px;
389
			font-size:emCalc(12px);
390
			position: relative;
391
			top:-2px;
392
		}
393
		.options {
394
			display: none;
395
			position: absolute;
396
			right: 0;
397
			top:$bar-height;
398
			width: 120px;
399
			list-style-type: none;
400
			padding: 10px 15px 15px;
401
			text-align: left;
402
			margin:0;
403
		}
404
		&.current {
405
			.options {
406
				background-color: lighten($primary-color,10%);
407
				display: inline-block;
408
				a {
409
					color: white;
410
				}
411
			}
412
		}
413

    
414

    
415
	}
416
	
417
	.row {
418
		position: relative;
419
		height: $bar-height;
420
	}
421

    
422
	.hd-search {
423
		$icon-dim :24px;
424
		width: $icon-dim;
425
		overflow:hidden;
426
		position:relative;
427
		float: right;
428
		height: $bar-height;
429
		-webkit-transition: width 0.3s;
430
	    -moz-transition: width 0.3s;
431
	    transition: width 0.3s;
432
	    -webkit-backface-visibility: hidden;
433
		.hd-icon-search {
434
			color: $primary-color;
435
			display: block;
436
			width: $bar-height;
437
			height: $bar-height;
438
			line-height: $bar-height;
439
			float: right;
440
			&:hover {
441
				cursor:pointer;
442
				color:$secondary-color;
443
			}
444
			z-index:1;
445
			position: relative;
446
			background: lighten($primary-color,35%);
447
		}
448
		.hd-search-input {
449
			border: transparent;
450
			background-color: white;
451
			color: $overlay-color;
452
			padding: 0 10px;
453
			width: 160px;
454
			font-size: emCalc(10px);
455
			box-shadow: none;
456
			height:0.7* $bar-height;
457
			line-height: 0.7* $bar-height;
458
			position: absolute;
459
			top:4px;
460
			left:0;
461
			@include placeholder {
462
				color:$overlay-color;
463
			}
464
		}
465
		&.hd-open {
466
			width: 190px;
467
		}
468
	}
469

    
470
	.sb-search {
471
		$icon-dim :24px;
472
		float: right;
473
		margin-top:3px;
474
		min-width: $icon-dim;
475
		height: $icon-dim;
476
		.sb-icon-search {
477
			height: $icon-dim;
478
			width: $icon-dim;
479
			color: $primary-color;
480
		}
481
		form {
482
			display: inline-block;
483
			margin:0;
484
			.input-wrap {
485
				width:180px;
486
				overflow: hidden;
487
			}
488
			input {
489
				border: transparent;
490
				background-color: white;
491
				color: $overlay-color;
492
				padding: 0 10px;
493
				width: 160px;
494
				font-size: emCalc(10px);
495
				box-shadow: none;
496
				height:0.7* $bar-height;
497
				line-height: 0.7* $bar-height;
498
				position: relative;
499
				top:-3px;
500
				@include placeholder {
501
					color:$overlay-color;
502
				}
503
			}
504
		}
505
		&.sb-search-open {
506
			width:220px;
507
		}
508
	}
509

    
510
	.view-type {
511
		float: right;
512
		margin-right:15px;
513
		.current,
514
		a:hover {
515
			color: $secondary-color;
516
		}
517
		.snf-list {
518
				margin-right: 6px;
519
				font-size: 17px;
520
		}
521
		.snf-layout {
522
				font-size: 1.1em;
523
		}
524
		
525
	}
526
}
527
.new-btn {
528
	position: absolute;
529
	left:$header-padding-horizontal;
530
	bottom:0;
531
	height:$bar-height;
532
	a {
533
		@extend .btn1;
534
		span {
535
			font-size:emCalc(20px);
536
		}
537
	}
538
}
539

    
540
/* Icons Navigation ----------------------------------------------- */
541

    
542
.icons-nav {
543
	@include marginPaddingZero();
544
	li {
545
		display: inline-block;
546
		margin:0 $icons-nav-margin-horizontal;
547
		font-size: emCalc(26px);
548
		line-height: 1em;
549
		padding-bottom:5px;
550
		width: 30px;
551
		text-align:center;
552
		overflow: hidden;
553
		a {
554
			color:$black;
555
			&:hover,&.current {
556
				// font-size:30px;
557
				color:$third-color;
558
			}
559
		}
560
	}
561
}
562

    
563

    
564

    
565

    
566
/* Top info  ----------------------------------------------- */
567

    
568
.top-info {
569
	padding:50px 100px;
570
	position: relative;
571
	z-index:10;
572
	display:none;
573
	.close {
574
		position: absolute;
575
		right:$header-padding-horizontal;
576
		top:50px;
577
		@include sprite('../images/info-close.png', 31px, 30px);
578
	}
579
}
580

    
581

    
582
.info.error {
583
	background:$error-color;
584
	color:#fff;
585
}
586

    
587

    
588
.info.alert {
589
	background:$alert-color;
590
	color:#fff;
591
}
592

    
593
.info.warning {
594
	background:$primary-color;
595
	color:#fff;
596
}
597

    
598
.info.success {
599
	background:$success-color;
600
	color:#fff;
601
}
602

    
603
.border-bottom-style1 {
604
	padding-bottom:20px;
605
	margin-bottom:20px;
606
	border-bottom:1px dashed $primary-color;
607
}
608

    
609

    
610
/* Progress Bar ----------------------------------------------- */
611

    
612
.progress-bar {
613
	position: fixed;
614
	bottom:0;
615
	left:0;
616
	border-top:1px solid $secondary-color;
617
	width:100%;
618
	background:#fff;
619
	padding:20px 0 20px 310px;
620
	color:$primary-color;
621
	span.counter {
622
		display: inline-block;
623
		margin-right:20px;
624
		float:left;
625
	}
626
	div.progress-wrap {
627
		display:inline-block;
628
		float:left;
629
		width:40%;
630
		margin-right:60px;
631
		.progress {
632
			position: relative;
633
			top:2px;
634
		}
635
	}
636
	span.more {
637
		display: inline-block;
638
	}
639
}
640

    
641

    
642
/* Responive ------------------------------------------------ */
643
@media only screen and (max-width: $small-mobile) {
644
}
645

    
646
@media only screen and (max-width: $small-screen) {
647
	body {
648
		padding-top:0
649
	}
650
	.header, .actions-bar {
651
		position:static;
652
		z-index: auto;
653
	}
654
	.actions-bar {
655
		top:2*$header-height;
656
	}
657
	.header {
658
		height: $header-height-responsive;
659
		line-height:50px;
660
		.icons-nav {
661
			position: static;
662
		}
663
	}
664
}