Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.4 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
/* Circle and Tags ----------------------------------------------- */
73
.circle {
74
	display:inline-block;
75
    -webkit-border-radius: 999px;
76
    -moz-border-radius: 999px;
77
    border-radius: 999px;
78
    behavior: url(PIE.htc);
79
}
80

    
81
.tags {
82
	text-align:center;
83
	a {
84
		@extend .circle;
85
		width:12px;
86
		height:12px;
87
		margin:0 3px;
88
		&.tag1 { background-color:$secondary-color;}
89
		&.tag2 { background-color:$third-color;}
90
		&.tag3 { background-color:$success-color;}
91
	}
92
}
93

    
94
.tag-demo {
95
	@extend .circle;
96
	width: 18px;
97
	height: 18px;
98
	position: relative;
99
	bottom: -5px;
100
	margin-right: 20px;
101
	&.tag4 { background-color: #ff5e4d;}
102
	&.tag5 { background-color: #25bfda;}
103
	&.tag6 { background-color: #fbf7c5;}
104
	&.tag7 { background-color: #83a697;}
105
}
106

    
107

    
108

    
109
/* Buttons and Links ----------------------------------------------- */
110

    
111

    
112
a {
113
	color:$primary-color;
114
	&:hover {
115
		color:$third-color;
116
		@include transition(background, 300ms, ease-out);
117
	}
118

    
119
	
120
}
121

    
122
.more a .snf-checkbox-checked, .more a .snf-checkbox-unchecked{
123
	color: $net-opt-area-color;
124
}
125

    
126
.btn1 {
127
	border:1px solid $primary-color;
128
	color:$primary-color;
129
	display:inline-block;
130
	padding:10px 20px;
131
	line-height:1em;
132
	text-align:center;
133
	&:hover,
134
	&.current,
135
	&:focus {
136
		border-color:$secondary-color;
137
		background:$secondary-color;
138
		color:#fff;
139
	}
140
	&.current {
141
		cursor:default;
142
	}
143
}
144

    
145
.btn2 {
146
	@extend .btn1;
147
	color:$secondary-color;
148
	background:#fff;
149
	border-color:$secondary-color;
150
	&:hover, 
151
	&.current,
152
	&:focus {
153
		background:transparent;
154
		border-color:#fff;
155
	}
156
}
157

    
158
.btn3 {
159
	@extend .btn1;
160
	color:#fff; 
161
	border-color:#fff;
162
	&:hover, 
163
	&.current,
164
	&:focus {
165
		color:$secondary-color;
166
		background:#fff;
167
		border-color:#fff;
168
	}
169
}
170

    
171
.btn4 {
172
	@extend .btn1;
173
	color:#fff; 
174
	border-color:#fff;
175
	background: $secondary-color;
176
	&:hover, 
177
	&.current,
178
	&:focus {
179
		color: $secondary-color;
180
  		border-color:  $secondary-color;
181
  		background: #fff;
182
	}
183
}
184

    
185
.btn5 {
186
	border:1px solid white;
187
	color:white;
188
	display:inline-block;
189
	padding:0 20px;
190
	line-height:$btn-height - 2px;
191
	height:$btn-height;
192
	text-align:center;
193
	font-size:emCalc(12px);
194
	&:hover,
195
	&:focus {
196
		border-width:2px;
197
		line-height: $btn-height - 4px;
198
		padding:0 19px;
199
		color:white;
200
	}
201
	&.current {
202
		background:white;
203
		color:$secondary-color;
204
	}
205
}
206

    
207
.btn-img {
208
	@extend .btn1;
209
	border-color:$secondary-color;
210
	&:hover,
211
	&:focus {
212
		background:transparent;
213
	}
214
	a {
215
		img,span {
216
			margin-left:5px;
217
		}
218
	}
219
}
220

    
221

    
222
/* Layout ----------------------------------------------- */
223
html,body {
224
	height:100%;
225
}
226

    
227
body {
228
	padding-top:$header-height+$bar-height;
229
}
230

    
231
.overlay-wrapper {
232
	min-height:100%;
233
}
234

    
235
.lt-sidebar {
236
	width:250px;
237
	float:left;
238
	&.nav {
239
		margin-top:0;
240
		font-size:1em;
241
		overflow: auto;
242
	}
243
	&+.main {
244
		overflow:hidden;
245
	}
246
}
247

    
248
.main {
249
	padding:0 40px;
250
	overflow:hidden;
251
}
252

    
253

    
254
.row {
255
	padding:0 70px;
256
}
257

    
258
/* Header ----------------------------------------------- */
259

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

    
314
/* Actions Bar ----------------------------------------------- */
315

    
316
.actions-bar {
317
	position:fixed;
318
	left:0;
319
	top:$header-height;
320
	width:100%;
321
	z-index:15;
322
	text-align:center;
323
	height:$bar-height;
324
	line-height:$bar-height;
325
	background:white;
326
	.border-dashed {
327
		background-image: url("../images/border-dashes.png");
328
		background-repeat: repeat-x;
329
		height: 4px;
330
		position: relative;
331
		top: -3px;
332
	}
333
	.row {
334
		position: relative;
335
		height: $bar-height;
336
	}
337
	ul {
338
		margin:0;
339
		li {
340
			list-style: none outside none;
341
			display: inline-block;
342
			line-height: $bar-height;
343
			a {
344
				display: block;
345
				color:lighten($primary-color,30%);
346
				width:100%;
347
				padding:0 20px;
348
				border:1px solid transparent;
349
				&.active {
350
					color:$primary-color;
351
					&:hover {
352
						color:$secondary-color;
353
						cursor: pointer;
354
					}
355
				}
356
				&:hover {
357
					cursor:default;
358
				}
359

    
360
			}
361
		}
362
	}
363

    
364
	#sb-search {
365
		height: 50px;
366
		position: absolute;
367
		right: 15px;
368
		top: -10px;
369
		.sb-icon-search {
370
			background-color: white;
371
			color: $primary-color;
372

    
373
		}
374
		.sb-search-input {
375
			width: 300px;
376
			margin-right: 51px;
377
			margin: 0;
378
			height: 52px;
379
		}
380
	}
381
}
382
.new-btn {
383
	position: absolute;
384
	left:$header-padding-horizontal;
385
	bottom:0;
386
	height:$bar-height;
387
	a {
388
		@extend .btn1;
389
		span {
390
			font-size:emCalc(20px);
391
		}
392
	}
393
}
394

    
395
/* Icons Navigation ----------------------------------------------- */
396

    
397
.icons-nav {
398
	@include marginPaddingZero();
399
	li {
400
		display: inline-block;
401
		margin:0 $icons-nav-margin-horizontal;
402
		font-size: emCalc(26px);
403
		line-height: 1em;
404
		padding-bottom:5px;
405
		width: 30px;
406
		text-align:center;
407
		overflow: hidden;
408
		a {
409
			color:$black;
410
			&:hover,&.current {
411
				// font-size:30px;
412
				color:$third-color;
413
			}
414
		}
415
	}
416
}
417

    
418

    
419

    
420

    
421
/* Top info  ----------------------------------------------- */
422

    
423
.top-info {
424
	padding:50px 100px;
425
	position: relative;
426
	z-index:10;
427
	display:none;
428
	.close {
429
		position: absolute;
430
		right:$header-padding-horizontal;
431
		top:50px;
432
		@include sprite('../images/info-close.png', 31px, 30px);
433
	}
434
}
435

    
436

    
437
.info.error {
438
	background:$error-color;
439
	color:#fff;
440
}
441

    
442

    
443
.info.alert {
444
	background:$alert-color;
445
	color:#fff;
446
}
447

    
448
.info.warning {
449
	background:$primary-color;
450
	color:#fff;
451
}
452

    
453
.info.success {
454
	background:$success-color;
455
	color:#fff;
456
}
457

    
458
.border-bottom-style1 {
459
	padding-bottom:20px;
460
	margin-bottom:20px;
461
	border-bottom:1px dashed $primary-color;
462
}
463

    
464

    
465
/* Progress Bar ----------------------------------------------- */
466

    
467
.progress-bar {
468
	position: fixed;
469
	bottom:0;
470
	left:0;
471
	border-top:1px solid $secondary-color;
472
	width:100%;
473
	background:#fff;
474
	padding:20px 0 20px 310px;
475
	color:$primary-color;
476
	span.counter {
477
		display: inline-block;
478
		margin-right:20px;
479
		float:left;
480
	}
481
	div.progress-wrap {
482
		display:inline-block;
483
		float:left;
484
		width:40%;
485
		margin-right:60px;
486
		.progress {
487
			position: relative;
488
			top:2px;
489
		}
490
	}
491
	span.more {
492
		display: inline-block;
493
	}
494
}
495

    
496

    
497
/* Responive ------------------------------------------------ */
498
@media only screen and (max-width: $small-mobile) {
499
}
500

    
501
@media only screen and (max-width: $small-screen) {
502
	body {
503
		padding-top:0
504
	}
505
	.header, .actions-bar {
506
		position:static;
507
		z-index: auto;
508
	}
509
	.actions-bar {
510
		top:2*$header-height;
511
	}
512
	.header {
513
		height: $header-height-responsive;
514
		line-height:50px;
515
		.icons-nav {
516
			position: static;
517
		}
518
	}
519
}