Statistics
| Branch: | Tag: | Revision:

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

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
	}
280
	.logo {
281
		text-align: center;
282
		a {
283
			position: relative;
284
			top:-5px;
285
			&:focus {
286
				border: 1px solid $secondary-color;
287
				padding: 10px;
288
			}
289
		}
290
		img {
291
			max-height: 30px;			
292
		}
293
		h2 {
294
			display: none;
295
			margin:0;
296
			font-size: 1em;
297
			color:$primary-color;
298
			font-weight: normal;
299
		}
300
	}
301
	.login {
302
		position:absolute;
303
		top:0;
304
		right:$header-padding-horizontal;
305
		height:$header-height;
306
		line-height:$header-height;
307
	}
308
	
309
}
310

    
311
/* Actions Bar ----------------------------------------------- */
312

    
313
.actions-bar {
314
	position:fixed;
315
	left:0;
316
	top:$header-height;
317
	width:100%;
318
	z-index:15;
319
	text-align:center;
320
	height:$bar-height;
321
	line-height:$bar-height;
322
	background:white;
323
	border-bottom:1px solid $primary-color;
324
	.row {
325
		position: relative;
326
		height: $bar-height;
327
	}
328
	ul {
329
		margin:0;
330
		li {
331
			list-style: none outside none;
332
			display: inline-block;
333
			line-height: $bar-height;
334
			a {
335
				display: block;
336
				color:lighten($primary-color,30%);
337
				width:100%;
338
				padding:0 20px;
339
				border:1px solid transparent;
340
				&.active {
341
					color:$primary-color;
342
					&:hover {
343
						color:$secondary-color;
344
						cursor: pointer;
345
					}
346
				}
347
				&:hover {
348
					cursor:default;
349
				}
350

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

    
368
/* Icons Navigation ----------------------------------------------- */
369

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

    
391

    
392

    
393

    
394
/* Top info  ----------------------------------------------- */
395

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

    
409

    
410
.info.error {
411
	background:$error-color;
412
	color:#fff;
413
}
414

    
415

    
416
.info.alert {
417
	background:$alert-color;
418
	color:#fff;
419
}
420

    
421
.info.warning {
422
	background:$primary-color;
423
	color:#fff;
424
}
425

    
426
.info.success {
427
	background:$success-color;
428
	color:#fff;
429
}
430

    
431
.border-bottom-style1 {
432
	padding-bottom:20px;
433
	margin-bottom:20px;
434
	border-bottom:1px dashed $primary-color;
435
}
436

    
437

    
438
/* Progress Bar ----------------------------------------------- */
439

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

    
469

    
470
/* Responive ------------------------------------------------ */
471
@media only screen and (max-width: $small-mobile) {
472
}
473

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