root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _common.scss @ 5c4713f8
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 |
@extend .circle; |
97 |
width: 22px; |
98 |
height: 22px; |
99 |
position: relative; |
100 |
bottom: -5px; |
101 |
margin-right: 20px; |
102 |
&.tag4 { background-color: #ff5e4d;} |
103 |
&.tag5 { background-color: #25bfda;} |
104 |
&.tag6 { background-color: #fbf7c5;} |
105 |
&.tag7 { background-color: #83a697;} |
106 |
} |
107 |
|
108 |
|
109 |
|
110 |
/* Buttons and Links ----------------------------------------------- */ |
111 |
|
112 |
|
113 |
a { |
114 |
color:$secondary-color; |
115 |
&:hover { |
116 |
color:$third-color; |
117 |
@include transition(background, 300ms, ease-out); |
118 |
|
119 |
} |
120 |
} |
121 |
|
122 |
.btn1 { |
123 |
border:1px solid $primary-color; |
124 |
color:$primary-color; |
125 |
display:inline-block; |
126 |
padding:10px 20px; |
127 |
line-height:1em; |
128 |
text-align:center; |
129 |
&:hover, |
130 |
&.current { |
131 |
border-color:$secondary-color; |
132 |
background:$secondary-color; |
133 |
color:#fff; |
134 |
} |
135 |
&.current { |
136 |
cursor:default; |
137 |
} |
138 |
} |
139 |
|
140 |
.btn2 { |
141 |
@extend .btn1; |
142 |
color:$secondary-color; |
143 |
background:#fff; |
144 |
border-color:$secondary-color; |
145 |
&:hover, |
146 |
&.current { |
147 |
background:transparent; |
148 |
border-color:#fff; |
149 |
} |
150 |
} |
151 |
|
152 |
.btn3 { |
153 |
@extend .btn1; |
154 |
color:#fff; |
155 |
border-color:#fff; |
156 |
&:hover, |
157 |
&.current { |
158 |
color:$secondary-color; |
159 |
background:#fff; |
160 |
border-color:#fff; |
161 |
} |
162 |
} |
163 |
|
164 |
.btn4 { |
165 |
@extend .btn1; |
166 |
color:#fff; |
167 |
border-color:#fff; |
168 |
background: $secondary-color; |
169 |
&:hover, |
170 |
&.current { |
171 |
color: $secondary-color; |
172 |
border-color: $secondary-color; |
173 |
background: #fff; |
174 |
} |
175 |
} |
176 |
|
177 |
.btn5 { |
178 |
border:1px solid white; |
179 |
color:white; |
180 |
display:inline-block; |
181 |
padding:0 20px; |
182 |
line-height:$btn-height - 2px; |
183 |
height:$btn-height; |
184 |
text-align:center; |
185 |
font-size:emCalc(12px); |
186 |
&:hover { |
187 |
border-width:2px; |
188 |
line-height: $btn-height - 4px; |
189 |
padding:0 19px; |
190 |
} |
191 |
&.current { |
192 |
background:white; |
193 |
color:$secondary-color; |
194 |
} |
195 |
} |
196 |
|
197 |
.btn-img { |
198 |
@extend .btn1; |
199 |
border-color:$secondary-color; |
200 |
&:hover { |
201 |
background:transparent; |
202 |
} |
203 |
a { |
204 |
img,span { |
205 |
margin-left:5px; |
206 |
} |
207 |
} |
208 |
} |
209 |
|
210 |
|
211 |
/* Layout ----------------------------------------------- */ |
212 |
html,body { |
213 |
height:100%; |
214 |
} |
215 |
|
216 |
body { |
217 |
padding-top:$header-height+$bar-height; |
218 |
} |
219 |
|
220 |
.overlay-wrapper { |
221 |
min-height:100%; |
222 |
} |
223 |
|
224 |
.lt-sidebar { |
225 |
width:250px; |
226 |
float:left; |
227 |
&.nav { |
228 |
margin-top:0; |
229 |
font-size:1em; |
230 |
overflow: auto; |
231 |
} |
232 |
&+.main { |
233 |
overflow:hidden; |
234 |
} |
235 |
} |
236 |
|
237 |
.main { |
238 |
padding:0 40px; |
239 |
overflow:hidden; |
240 |
} |
241 |
|
242 |
|
243 |
|
244 |
/* Header ----------------------------------------------- */ |
245 |
|
246 |
.header { |
247 |
position:fixed; |
248 |
top:0; |
249 |
left:0; |
250 |
right:0; |
251 |
width:100%; |
252 |
height:$header-height; |
253 |
line-height:$header-height; |
254 |
padding:0 $header-padding-horizontal; |
255 |
border-bottom:1px solid $primary-color; |
256 |
background:white; |
257 |
z-index:100; |
258 |
.icons-nav { |
259 |
position:absolute; |
260 |
left:$header-padding-horizontal - $icons-nav-margin-horizontal; |
261 |
height:$header-height; |
262 |
line-height:$header-height; |
263 |
top:0; |
264 |
} |
265 |
.logo { |
266 |
text-align: center; |
267 |
img { |
268 |
max-height: 30px; |
269 |
} |
270 |
h2 { |
271 |
display: none; |
272 |
margin:0; |
273 |
font-size: 1em; |
274 |
color:$primary-color; |
275 |
font-weight: normal; |
276 |
} |
277 |
} |
278 |
.login { |
279 |
position:absolute; |
280 |
top:0; |
281 |
right:$header-padding-horizontal; |
282 |
height:$header-height; |
283 |
line-height:$header-height; |
284 |
} |
285 |
|
286 |
} |
287 |
|
288 |
/* Actions Bar ----------------------------------------------- */ |
289 |
|
290 |
.actions-bar { |
291 |
position:fixed; |
292 |
left:0; |
293 |
top:$header-height; |
294 |
width:100%; |
295 |
z-index:15; |
296 |
text-align:center; |
297 |
height:$bar-height; |
298 |
line-height:$bar-height; |
299 |
background:white; |
300 |
border-bottom:1px solid $primary-color; |
301 |
.row { |
302 |
position: relative; |
303 |
height: $bar-height; |
304 |
} |
305 |
ul { |
306 |
margin:0; |
307 |
li { |
308 |
list-style: none outside none; |
309 |
display: inline-block; |
310 |
line-height: $bar-height; |
311 |
a { |
312 |
display: block; |
313 |
color:lighten($primary-color,30%); |
314 |
width:100%; |
315 |
padding:0 20px; |
316 |
border:1px solid transparent; |
317 |
&.active { |
318 |
color:$primary-color; |
319 |
&:hover { |
320 |
color:$secondary-color; |
321 |
cursor: pointer; |
322 |
} |
323 |
} |
324 |
&:hover { |
325 |
cursor:default; |
326 |
} |
327 |
|
328 |
} |
329 |
} |
330 |
} |
331 |
} |
332 |
.new-btn { |
333 |
position: absolute; |
334 |
left:0; |
335 |
bottom:0; |
336 |
height:$bar-height; |
337 |
a { |
338 |
@extend .btn1; |
339 |
span { |
340 |
font-size:emCalc(20px); |
341 |
} |
342 |
} |
343 |
} |
344 |
|
345 |
/* Icons Navigation ----------------------------------------------- */ |
346 |
|
347 |
.icons-nav { |
348 |
@include marginPaddingZero(); |
349 |
li { |
350 |
display: inline-block; |
351 |
margin:0 $icons-nav-margin-horizontal; |
352 |
font-size: emCalc(24px); |
353 |
line-height: 1em; |
354 |
padding-bottom:5px; |
355 |
width: 30px; |
356 |
text-align:center; |
357 |
overflow: hidden; |
358 |
a { |
359 |
color:$black; |
360 |
&:hover,&.current { |
361 |
font-size:30px; |
362 |
color:$third-color; |
363 |
} |
364 |
} |
365 |
} |
366 |
} |
367 |
|
368 |
|
369 |
|
370 |
|
371 |
/* Top info ----------------------------------------------- */ |
372 |
|
373 |
.top-info { |
374 |
padding:50px 100px; |
375 |
position: relative; |
376 |
z-index:10; |
377 |
display:none; |
378 |
.close { |
379 |
position: absolute; |
380 |
right:$header-padding-horizontal; |
381 |
top:50px; |
382 |
@include sprite('../images/info-close.png', 31px, 30px); |
383 |
} |
384 |
} |
385 |
|
386 |
|
387 |
.info.error { |
388 |
background:$error-color; |
389 |
color:#fff; |
390 |
} |
391 |
|
392 |
|
393 |
.info.alert { |
394 |
background:$alert-color; |
395 |
color:#fff; |
396 |
} |
397 |
|
398 |
.info.warning { |
399 |
background:$primary-color; |
400 |
color:#fff; |
401 |
} |
402 |
|
403 |
.info.success { |
404 |
background:$success-color; |
405 |
color:#fff; |
406 |
} |
407 |
|
408 |
.border-bottom-style1 { |
409 |
padding-bottom:20px; |
410 |
margin-bottom:20px; |
411 |
border-bottom:1px dashed $primary-color; |
412 |
} |
413 |
|
414 |
|
415 |
/* Progress Bar ----------------------------------------------- */ |
416 |
|
417 |
.progress-bar { |
418 |
position: fixed; |
419 |
bottom:0; |
420 |
left:0; |
421 |
border-top:1px solid $secondary-color; |
422 |
width:100%; |
423 |
background:#fff; |
424 |
padding:20px 0 20px 310px; |
425 |
color:$primary-color; |
426 |
span.counter { |
427 |
display: inline-block; |
428 |
margin-right:20px; |
429 |
float:left; |
430 |
} |
431 |
div.progress-wrap { |
432 |
display:inline-block; |
433 |
float:left; |
434 |
width:40%; |
435 |
margin-right:60px; |
436 |
.progress { |
437 |
position: relative; |
438 |
top:2px; |
439 |
} |
440 |
} |
441 |
span.more { |
442 |
display: inline-block; |
443 |
} |
444 |
} |