Statistics
| Branch: | Tag: | Revision:

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

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
	.snf-checkbox-checked, .snf-checkbox-unchecked {
120
		color: $wizard-base-font-color;
121
	}
122
}
123

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

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

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

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

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

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

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

    
222

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

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

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

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

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

    
254

    
255
.row {
256
	padding:0 30px;
257
}
258

    
259
/* Header ----------------------------------------------- */
260

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