Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _common.scss @ 96e399a4

History | View | Annotate | Download (6.2 kB)

1
/* Table of Contents
2

    
3
  - Clearfix
4
  - Mixins
5
  - Buttons and Links
6
  - Layout 
7
  - Header
8
  - Icon Navigation
9
  - Top Info
10
  - Progress Bar
11
  
12
 */
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
/* Circle and Tags ----------------------------------------------- */
69
.circle {
70
	display:inline-block;
71
    -webkit-border-radius: 999px;
72
    -moz-border-radius: 999px;
73
    border-radius: 999px;
74
    behavior: url(PIE.htc);
75
}
76

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

    
90

    
91

    
92
/* Buttons and Links ----------------------------------------------- */
93

    
94

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

    
101
	}
102
}
103

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

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

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

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

    
159
.btn-img {
160
	@extend .btn1;
161
	border-color:$secondary-color;
162
	&:hover {
163
		background:transparent;
164
	}
165
	a {
166
		img,span {
167
			margin-left:5px;
168
		}
169
	}
170
}
171

    
172

    
173
/* Layout ----------------------------------------------- */
174

    
175
.lt-sidebar {
176
	width:250px;
177
	float:left;
178
	&.nav {
179
		margin-top:0;
180
		font-size:1em;
181
		overflow: auto;
182
	}
183
	&+.main {
184
		overflow:hidden;
185
	}
186
}
187

    
188
.main {
189
	padding:43px 40px;
190
	overflow:hidden;
191
}
192

    
193

    
194

    
195
/* Header ----------------------------------------------- */
196

    
197
.header {
198
	position:relative;
199
	padding:$header-padding-vertical $header-padding-horizontal;
200
	border-bottom:1px solid $primary-color;
201
	background:#fff;
202
	.icons-nav {
203
		position:absolute;
204
		left:$header-padding-horizontal;
205
		top:$header-padding-vertical;
206
	}
207
	.logo {
208
		text-align: center;
209
		img {
210
			max-height: 30px;			
211
		}
212
		h2 {
213
			font-size: 1em;
214
			color:$primary-color;
215
			font-weight: normal;
216
		}
217
	}
218
	.login {
219
		position:absolute;
220
		right:$header-padding-horizontal;
221
		top:$header-padding-vertical;
222
	}
223
	.actions {
224
		text-align:center;
225
		height:45px;
226
		line-height:45px;
227
		position:relative;
228
		margin:2*$header-padding-vertical 0 $header-padding-vertical;
229
		.main-actions {
230
			position:relative;
231
			top:86px;
232
			margin:0 -40px;
233
			border-bottom:1px solid lighten($primary-color,20%);
234
			z-index: 1;
235
		}
236
		ul {
237
			margin:0;
238
			li {
239
				list-style: none outside none;
240
				display: inline-block;
241
				margin:0 5px;
242
				a {
243
					display: block;
244
					color:lighten($primary-color,30%);
245
					width:100%;
246
					padding:8px 20px;
247
					border:1px solid transparent;
248
					&.active {
249
						color:$primary-color;
250
						&:hover {
251
							color:$secondary-color;
252
							cursor: pointer;
253
						}
254
					}
255
					&:hover {
256
						cursor:default;
257
					}
258

    
259
				}
260
			}
261
		}
262
	}
263
	.new-btn {
264
		position: absolute;
265
		left:0;
266
		bottom:0;
267
		a {
268
			@extend .btn1;
269
			span {
270
				font-size:emCalc(20px);
271
			}
272
		}
273
	}
274
}
275

    
276

    
277
/* Icons Navigation ----------------------------------------------- */
278

    
279
.icons-nav {
280
	@include marginPaddingZero();
281
	li {
282
		display: inline-block;
283
		margin-right:10px;
284
		font-size: emCalc(24px);
285
		line-height: 1em;
286
		padding-bottom:5px;
287
		width: 30px;
288
		overflow: hidden;
289
		a {
290
			color:$black;
291
			&:hover,&.current {
292
				font-size:30px;
293
				color:$third-color;
294
			}
295
		}
296
	}
297
}
298

    
299

    
300

    
301

    
302
/* Top info  ----------------------------------------------- */
303

    
304
.top-info {
305
	padding:50px 100px;
306
	position: relative;
307
	z-index:10;
308
	display:none;
309
	.close {
310
		position: absolute;
311
		right:$header-padding-horizontal;
312
		top:50px;
313
		@include sprite('../images/info-close.png', 31px, 30px);
314
	}
315
}
316

    
317

    
318
.info.error {
319
	background:$error-color;
320
	color:#fff;
321
}
322

    
323

    
324
.info.alert {
325
	background:$alert-color;
326
	color:#fff;
327
}
328

    
329
.info.warning {
330
	background:$primary-color;
331
	color:#fff;
332
}
333

    
334
.info.success {
335
	background:$success-color;
336
	color:#fff;
337
}
338

    
339
.border-bottom-style1 {
340
	padding-bottom:20px;
341
	margin-bottom:20px;
342
	border-bottom:1px dashed $primary-color;
343
}
344

    
345

    
346
/* Progress Bar ----------------------------------------------- */
347

    
348
.progress-bar {
349
	position: fixed;
350
	bottom:0;
351
	left:0;
352
	border-top:1px solid $secondary-color;
353
	width:100%;
354
	background:#fff;
355
	padding:20px 0 20px 310px;
356
	color:$primary-color;
357
	span.counter {
358
		display: inline-block;
359
		margin-right:20px;
360
		float:left;
361
	}
362
	div.progress-wrap {
363
		display:inline-block;
364
		float:left;
365
		width:40%;
366
		margin-right:60px;
367
		.progress {
368
			position: relative;
369
			top:2px;
370
		}
371
	}
372
	span.more {
373
		display: inline-block;
374
	}
375
}