Statistics
| Branch: | Tag: | Revision:

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

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

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

    
91

    
92

    
93
/* Buttons and Links ----------------------------------------------- */
94

    
95

    
96
a {
97
	color:$secondary-color;
98
	&:hover {
99
		color:$third-color;
100
		@include transition(background, 300ms, ease-out);
101

    
102
	}
103
}
104

    
105
.btn1 {
106
	border:1px solid $primary-color;
107
	color:$primary-color;
108
	display:inline-block;
109
	padding:10px 20px;
110
	line-height:1em;
111
	text-align:center;
112
	&:hover,
113
	&.current {
114
		border-color:$secondary-color;
115
		background:$secondary-color;
116
		color:#fff;
117
	}
118
	&.current {
119
		cursor:default;
120
	}
121
}
122

    
123
.btn2 {
124
	@extend .btn1;
125
	color:$secondary-color;
126
	background:#fff;
127
	border-color:$secondary-color;
128
	&:hover, 
129
	&.current {
130
		background:transparent;
131
		border-color:#fff;
132
	}
133
}
134

    
135
.btn3 {
136
	@extend .btn1;
137
	color:#fff; 
138
	border-color:#fff;
139
	&:hover, 
140
	&.current {
141
		color:$secondary-color;
142
		background:#fff;
143
		border-color:#fff;
144
	}
145
}
146

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

    
160
.btn5 {
161
	border:1px solid white;
162
	color:white;
163
	display:inline-block;
164
	padding:0 20px;
165
	line-height:$btn-height - 2px;
166
	height:$btn-height;
167
	text-align:center;
168
	font-size:emCalc(12px);
169
	&:hover {
170
		border-width:2px;
171
		line-height: $btn-height - 4px;
172
		padding:0 19px;
173
	}
174
	&.current {
175
		background:white;
176
		color:$secondary-color;
177
	}
178
}
179

    
180
.btn-img {
181
	@extend .btn1;
182
	border-color:$secondary-color;
183
	&:hover {
184
		background:transparent;
185
	}
186
	a {
187
		img,span {
188
			margin-left:5px;
189
		}
190
	}
191
}
192

    
193

    
194
/* Layout ----------------------------------------------- */
195
html,body {
196
	height:100%;
197
}
198

    
199
.overlay-wrapper {
200
	min-height:100%;
201
}
202

    
203
.lt-sidebar {
204
	width:250px;
205
	float:left;
206
	&.nav {
207
		margin-top:0;
208
		font-size:1em;
209
		overflow: auto;
210
	}
211
	&+.main {
212
		overflow:hidden;
213
	}
214
}
215

    
216
.main {
217
	padding:0 40px;
218
	overflow:hidden;
219
}
220

    
221

    
222

    
223
/* Header ----------------------------------------------- */
224

    
225
.header {
226
	position:relative;
227
	height:$header-height;
228
	line-height:$header-height;
229
	padding:0 $header-padding-horizontal;
230
	border-bottom:1px solid $primary-color;
231
	background:#fff;
232
	.icons-nav {
233
		position:absolute;
234
		left:$header-padding-horizontal - $icons-nav-margin-horizontal;
235
		height:$header-height;
236
		line-height:$header-height;
237
		top:0;
238
	}
239
	.logo {
240
		text-align: center;
241
		img {
242
			max-height: 30px;			
243
		}
244
		h2 {
245
			display: none;
246
			margin:0;
247
			font-size: 1em;
248
			color:$primary-color;
249
			font-weight: normal;
250
		}
251
	}
252
	.login {
253
		position:absolute;
254
		top:0;
255
		right:$header-padding-horizontal;
256
		height:$header-height;
257
		line-height:$header-height;
258
	}
259
	
260
}
261

    
262
/* Actions Bar ----------------------------------------------- */
263

    
264
.actions-bar {
265
	text-align:center;
266
	height:$bar-height;
267
	line-height:$bar-height;
268
	position:relative;
269
	border-bottom:1px solid $primary-color;
270
	.row {
271
		position: relative;
272
		height: $bar-height;
273
	}
274
	ul {
275
		margin:0;
276
		li {
277
			list-style: none outside none;
278
			display: inline-block;
279
			line-height: $bar-height;
280
			a {
281
				display: block;
282
				color:lighten($primary-color,30%);
283
				width:100%;
284
				padding:0 20px;
285
				border:1px solid transparent;
286
				&.active {
287
					color:$primary-color;
288
					&:hover {
289
						color:$secondary-color;
290
						cursor: pointer;
291
					}
292
				}
293
				&:hover {
294
					cursor:default;
295
				}
296

    
297
			}
298
		}
299
	}
300
}
301
.new-btn {
302
	position: absolute;
303
	left:0;
304
	bottom:0;
305
	height:$bar-height;
306
	a {
307
		@extend .btn1;
308
		span {
309
			font-size:emCalc(20px);
310
		}
311
	}
312
}
313

    
314
/* Icons Navigation ----------------------------------------------- */
315

    
316
.icons-nav {
317
	@include marginPaddingZero();
318
	li {
319
		display: inline-block;
320
		margin:0 $icons-nav-margin-horizontal;
321
		font-size: emCalc(24px);
322
		line-height: 1em;
323
		padding-bottom:5px;
324
		width: 30px;
325
		text-align:center;
326
		overflow: hidden;
327
		a {
328
			color:$black;
329
			&:hover,&.current {
330
				font-size:30px;
331
				color:$third-color;
332
			}
333
		}
334
	}
335
}
336

    
337

    
338

    
339

    
340
/* Top info  ----------------------------------------------- */
341

    
342
.top-info {
343
	padding:50px 100px;
344
	position: relative;
345
	z-index:10;
346
	display:none;
347
	.close {
348
		position: absolute;
349
		right:$header-padding-horizontal;
350
		top:50px;
351
		@include sprite('../images/info-close.png', 31px, 30px);
352
	}
353
}
354

    
355

    
356
.info.error {
357
	background:$error-color;
358
	color:#fff;
359
}
360

    
361

    
362
.info.alert {
363
	background:$alert-color;
364
	color:#fff;
365
}
366

    
367
.info.warning {
368
	background:$primary-color;
369
	color:#fff;
370
}
371

    
372
.info.success {
373
	background:$success-color;
374
	color:#fff;
375
}
376

    
377
.border-bottom-style1 {
378
	padding-bottom:20px;
379
	margin-bottom:20px;
380
	border-bottom:1px dashed $primary-color;
381
}
382

    
383

    
384
/* Progress Bar ----------------------------------------------- */
385

    
386
.progress-bar {
387
	position: fixed;
388
	bottom:0;
389
	left:0;
390
	border-top:1px solid $secondary-color;
391
	width:100%;
392
	background:#fff;
393
	padding:20px 0 20px 310px;
394
	color:$primary-color;
395
	span.counter {
396
		display: inline-block;
397
		margin-right:20px;
398
		float:left;
399
	}
400
	div.progress-wrap {
401
		display:inline-block;
402
		float:left;
403
		width:40%;
404
		margin-right:60px;
405
		.progress {
406
			position: relative;
407
			top:2px;
408
		}
409
	}
410
	span.more {
411
		display: inline-block;
412
	}
413
}