Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.1 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: 22px;
97
	height: 22px;
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:$secondary-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-bottom:1px solid $primary-color;
327
	.row {
328
		position: relative;
329
		height: $bar-height;
330
	}
331
	ul {
332
		margin:0;
333
		li {
334
			list-style: none outside none;
335
			display: inline-block;
336
			line-height: $bar-height;
337
			a {
338
				display: block;
339
				color:lighten($primary-color,30%);
340
				width:100%;
341
				padding:0 20px;
342
				border:1px solid transparent;
343
				&.active {
344
					color:$primary-color;
345
					&:hover {
346
						color:$secondary-color;
347
						cursor: pointer;
348
					}
349
				}
350
				&:hover {
351
					cursor:default;
352
				}
353

    
354
			}
355
		}
356
	}
357
}
358
.new-btn {
359
	position: absolute;
360
	left:$header-padding-horizontal;
361
	bottom:0;
362
	height:$bar-height;
363
	a {
364
		@extend .btn1;
365
		span {
366
			font-size:emCalc(20px);
367
		}
368
	}
369
}
370

    
371
/* Icons Navigation ----------------------------------------------- */
372

    
373
.icons-nav {
374
	@include marginPaddingZero();
375
	li {
376
		display: inline-block;
377
		margin:0 $icons-nav-margin-horizontal;
378
		font-size: emCalc(26px);
379
		line-height: 1em;
380
		padding-bottom:5px;
381
		width: 30px;
382
		text-align:center;
383
		overflow: hidden;
384
		a {
385
			color:$black;
386
			&:hover,&.current {
387
				// font-size:30px;
388
				color:$third-color;
389
			}
390
		}
391
	}
392
}
393

    
394

    
395

    
396

    
397
/* Top info  ----------------------------------------------- */
398

    
399
.top-info {
400
	padding:50px 100px;
401
	position: relative;
402
	z-index:10;
403
	display:none;
404
	.close {
405
		position: absolute;
406
		right:$header-padding-horizontal;
407
		top:50px;
408
		@include sprite('../images/info-close.png', 31px, 30px);
409
	}
410
}
411

    
412

    
413
.info.error {
414
	background:$error-color;
415
	color:#fff;
416
}
417

    
418

    
419
.info.alert {
420
	background:$alert-color;
421
	color:#fff;
422
}
423

    
424
.info.warning {
425
	background:$primary-color;
426
	color:#fff;
427
}
428

    
429
.info.success {
430
	background:$success-color;
431
	color:#fff;
432
}
433

    
434
.border-bottom-style1 {
435
	padding-bottom:20px;
436
	margin-bottom:20px;
437
	border-bottom:1px dashed $primary-color;
438
}
439

    
440

    
441
/* Progress Bar ----------------------------------------------- */
442

    
443
.progress-bar {
444
	position: fixed;
445
	bottom:0;
446
	left:0;
447
	border-top:1px solid $secondary-color;
448
	width:100%;
449
	background:#fff;
450
	padding:20px 0 20px 310px;
451
	color:$primary-color;
452
	span.counter {
453
		display: inline-block;
454
		margin-right:20px;
455
		float:left;
456
	}
457
	div.progress-wrap {
458
		display:inline-block;
459
		float:left;
460
		width:40%;
461
		margin-right:60px;
462
		.progress {
463
			position: relative;
464
			top:2px;
465
		}
466
	}
467
	span.more {
468
		display: inline-block;
469
	}
470
}
471

    
472

    
473
/* Responive ------------------------------------------------ */
474
@media only screen and (max-width: $small-mobile) {
475
}
476

    
477
@media only screen and (max-width: $small-screen) {
478
	body {
479
		padding-top:0
480
	}
481
	.header, .actions-bar {
482
		position:static;
483
		z-index: auto;
484
	}
485
	.actions-bar {
486
		top:2*$header-height;
487
	}
488
	.header {
489
		height: $header-height-responsive;
490
		line-height:50px;
491
		.icons-nav {
492
			position: static;
493
		}
494
	}
495
}