Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.2 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
  
13
 */
14

    
15

    
16

    
17
/* Clearfix -------------------------------------------- */
18

    
19
.clearfix {
20
    zoom:1;
21
    &:before, &:after {
22
        content: "\0020";
23
        display: block;
24
        height: 0;
25
        overflow: hidden;
26
    }
27
    &:after {
28
        clear: both;
29
    }
30
}
31

    
32
/* Mixins ----------------------------------------------- */
33

    
34
@mixin marginPaddingZero() {
35
	margin: 0;
36
	padding: 0;
37
}
38
 
39

    
40
// Establishes the prequisits for sprite with background-image.
41
// Background-position for normal and hover states need to 
42
// be declared separetely
43
@mixin sprite($image, $width, $height){
44
	background:url($image) no-repeat center center;
45
	width: $width;
46
	height:$height;
47
	display: inline-block;
48
	text-indent: -2000px;
49
	overflow: hidden;
50

    
51
}
52

    
53
// Transition for css properties
54
@mixin transition($transition-property, $transition-time, $method) {
55
	-webkit-transition: $transition-property $transition-time $method;
56
	-moz-transition: $transition-property $transition-time $method;
57
	-ms-transition: $transition-property $transition-time $method;
58
	-o-transition: $transition-property $transition-time $method;
59
	transition: $transition-property $transition-time $method;
60
}
61

    
62
// Box-shadow property. For no box-shadow use box-shadow(none)
63
@mixin box-shadow($shadows...) {
64
  -moz-box-shadow: $shadows;
65
  -webkit-box-shadow: $shadows;
66
  box-shadow: $shadows;
67
}
68

    
69
@mixin padding1-0 {
70
	padding: 1px 0;
71
}
72

    
73
/* Circle and Tags ----------------------------------------------- */
74
.circle {
75
	display:inline-block;
76
    -webkit-border-radius: 999px;
77
    -moz-border-radius: 999px;
78
    border-radius: 999px;
79
    behavior: url(PIE.htc);
80
}
81

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

    
95
.tag-demo {
96

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

    
109

    
110

    
111
/* Buttons and Links ----------------------------------------------- */
112

    
113

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

    
120
	}
121
}
122

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

    
141
.btn2 {
142
	@extend .btn1;
143
	color:$secondary-color;
144
	background:#fff;
145
	border-color:$secondary-color;
146
	&:hover, 
147
	&.current {
148
		background:transparent;
149
		border-color:#fff;
150
	}
151
}
152

    
153
.btn3 {
154
	@extend .btn1;
155
	color:#fff; 
156
	border-color:#fff;
157
	&:hover, 
158
	&.current {
159
		color:$secondary-color;
160
		background:#fff;
161
		border-color:#fff;
162
	}
163
}
164

    
165
.btn4 {
166
	@extend .btn1;
167
	color:#fff; 
168
	border-color:#fff;
169
	background: $secondary-color;
170
	&:hover, 
171
	&.current {
172
		color: $secondary-color;
173
  		border-color:  $secondary-color;
174
  		background: #fff;
175
	}
176
}
177

    
178
.btn5 {
179
	border:1px solid white;
180
	color:white;
181
	display:inline-block;
182
	padding:0 20px;
183
	line-height:$btn-height - 2px;
184
	height:$btn-height;
185
	text-align:center;
186
	font-size:emCalc(12px);
187
	&:hover {
188
		border-width:2px;
189
		line-height: $btn-height - 4px;
190
		padding:0 19px;
191
	}
192
	&.current {
193
		background:white;
194
		color:$secondary-color;
195
	}
196
}
197

    
198
.btn-img {
199
	@extend .btn1;
200
	border-color:$secondary-color;
201
	&:hover {
202
		background:transparent;
203
	}
204
	a {
205
		img,span {
206
			margin-left:5px;
207
		}
208
	}
209
}
210

    
211

    
212
/* Layout ----------------------------------------------- */
213
html,body {
214
	height:100%;
215
}
216

    
217
body {
218
	padding-top:$header-height+$bar-height;
219
}
220

    
221
.overlay-wrapper {
222
	min-height:100%;
223
}
224

    
225
.lt-sidebar {
226
	width:250px;
227
	float:left;
228
	&.nav {
229
		margin-top:0;
230
		font-size:1em;
231
		overflow: auto;
232
	}
233
	&+.main {
234
		overflow:hidden;
235
	}
236
}
237

    
238
.main {
239
	padding:0 40px;
240
	overflow:hidden;
241
}
242

    
243

    
244

    
245
/* Header ----------------------------------------------- */
246

    
247
.header {
248
	position:fixed;
249
	top:0;
250
	left:0;
251
	right:0;
252
	width:100%;
253
	height:$header-height;
254
	line-height:$header-height;
255
	padding:0 $header-padding-horizontal;
256
	border-bottom:1px solid $primary-color;
257
	background:white;
258
	z-index:100;
259
	.icons-nav {
260
		position:absolute;
261
		left:$header-padding-horizontal - $icons-nav-margin-horizontal;
262
		height:$header-height;
263
		line-height:$header-height;
264
		top:0;
265
	}
266
	.logo {
267
		text-align: center;
268
		img {
269
			max-height: 30px;			
270
		}
271
		h2 {
272
			display: none;
273
			margin:0;
274
			font-size: 1em;
275
			color:$primary-color;
276
			font-weight: normal;
277
		}
278
	}
279
	.login {
280
		position:absolute;
281
		top:0;
282
		right:$header-padding-horizontal;
283
		height:$header-height;
284
		line-height:$header-height;
285
	}
286
	
287
}
288

    
289
/* Actions Bar ----------------------------------------------- */
290

    
291
.actions-bar {
292
	position:fixed;
293
	left:0;
294
	top:$header-height;
295
	width:100%;
296
	z-index:15;
297
	text-align:center;
298
	height:$bar-height;
299
	line-height:$bar-height;
300
	background:white;
301
	border-bottom:1px solid $primary-color;
302
	.row {
303
		position: relative;
304
		height: $bar-height;
305
	}
306
	ul {
307
		margin:0;
308
		li {
309
			list-style: none outside none;
310
			display: inline-block;
311
			line-height: $bar-height;
312
			a {
313
				display: block;
314
				color:lighten($primary-color,30%);
315
				width:100%;
316
				padding:0 20px;
317
				border:1px solid transparent;
318
				&.active {
319
					color:$primary-color;
320
					&:hover {
321
						color:$secondary-color;
322
						cursor: pointer;
323
					}
324
				}
325
				&:hover {
326
					cursor:default;
327
				}
328

    
329
			}
330
		}
331
	}
332
}
333
.new-btn {
334
	position: absolute;
335
	left:0;
336
	bottom:0;
337
	height:$bar-height;
338
	a {
339
		@extend .btn1;
340
		span {
341
			font-size:emCalc(20px);
342
		}
343
	}
344
}
345

    
346
/* Icons Navigation ----------------------------------------------- */
347

    
348
.icons-nav {
349
	@include marginPaddingZero();
350
	li {
351
		display: inline-block;
352
		margin:0 $icons-nav-margin-horizontal;
353
		font-size: emCalc(24px);
354
		line-height: 1em;
355
		padding-bottom:5px;
356
		width: 30px;
357
		text-align:center;
358
		overflow: hidden;
359
		a {
360
			color:$black;
361
			&:hover,&.current {
362
				font-size:30px;
363
				color:$third-color;
364
			}
365
		}
366
	}
367
}
368

    
369

    
370

    
371

    
372
/* Top info  ----------------------------------------------- */
373

    
374
.top-info {
375
	padding:50px 100px;
376
	position: relative;
377
	z-index:10;
378
	display:none;
379
	.close {
380
		position: absolute;
381
		right:$header-padding-horizontal;
382
		top:50px;
383
		@include sprite('../images/info-close.png', 31px, 30px);
384
	}
385
}
386

    
387

    
388
.info.error {
389
	background:$error-color;
390
	color:#fff;
391
}
392

    
393

    
394
.info.alert {
395
	background:$alert-color;
396
	color:#fff;
397
}
398

    
399
.info.warning {
400
	background:$primary-color;
401
	color:#fff;
402
}
403

    
404
.info.success {
405
	background:$success-color;
406
	color:#fff;
407
}
408

    
409
.border-bottom-style1 {
410
	padding-bottom:20px;
411
	margin-bottom:20px;
412
	border-bottom:1px dashed $primary-color;
413
}
414

    
415

    
416
/* Progress Bar ----------------------------------------------- */
417

    
418
.progress-bar {
419
	position: fixed;
420
	bottom:0;
421
	left:0;
422
	border-top:1px solid $secondary-color;
423
	width:100%;
424
	background:#fff;
425
	padding:20px 0 20px 310px;
426
	color:$primary-color;
427
	span.counter {
428
		display: inline-block;
429
		margin-right:20px;
430
		float:left;
431
	}
432
	div.progress-wrap {
433
		display:inline-block;
434
		float:left;
435
		width:40%;
436
		margin-right:60px;
437
		.progress {
438
			position: relative;
439
			top:2px;
440
		}
441
	}
442
	span.more {
443
		display: inline-block;
444
	}
445
}