root / snf-cyclades-app / synnefo / ui / new_ui / ui / sass / _common.scss @ 25a02c79
History | View | Annotate | Download (10.7 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 |
|
73 |
@mixin placeholder { |
74 |
&.placeholder { @content; } |
75 |
&:-moz-placeholder { @content; } |
76 |
&::-moz-placeholder { @content; } |
77 |
&::-webkit-input-placeholder { @content; } |
78 |
} |
79 |
|
80 |
|
81 |
/* Circle and Tags ----------------------------------------------- */ |
82 |
.circle { |
83 |
display:inline-block; |
84 |
-webkit-border-radius: 999px; |
85 |
-moz-border-radius: 999px; |
86 |
border-radius: 999px; |
87 |
behavior: url(PIE.htc); |
88 |
} |
89 |
|
90 |
.tags { |
91 |
text-align:center; |
92 |
a { |
93 |
@extend .circle; |
94 |
width:12px; |
95 |
height:12px; |
96 |
margin:0 3px; |
97 |
&.tag1 { background-color:$secondary-color;} |
98 |
&.tag2 { background-color:$third-color;} |
99 |
&.tag3 { background-color:$success-color;} |
100 |
} |
101 |
} |
102 |
|
103 |
.tag-demo { |
104 |
@extend .circle; |
105 |
width: 18px; |
106 |
height: 18px; |
107 |
position: relative; |
108 |
bottom: -5px; |
109 |
margin-right: 20px; |
110 |
&.tag4 { background-color: #ff5e4d;} |
111 |
&.tag5 { background-color: #25bfda;} |
112 |
&.tag6 { background-color: #fbf7c5;} |
113 |
&.tag7 { background-color: #83a697;} |
114 |
} |
115 |
|
116 |
|
117 |
|
118 |
/* Buttons and Links ----------------------------------------------- */ |
119 |
|
120 |
|
121 |
a { |
122 |
color:$primary-color; |
123 |
&:hover { |
124 |
color:$third-color; |
125 |
@include transition(background, 300ms, ease-out); |
126 |
} |
127 |
|
128 |
|
129 |
} |
130 |
|
131 |
.more a .snf-checkbox-checked, .more a .snf-checkbox-unchecked{ |
132 |
color: $net-opt-area-color; |
133 |
} |
134 |
|
135 |
.btn1 { |
136 |
border:1px solid $primary-color; |
137 |
color:$primary-color; |
138 |
display:inline-block; |
139 |
padding:10px 20px; |
140 |
line-height:1em; |
141 |
text-align:center; |
142 |
&:hover, |
143 |
&.current, |
144 |
&:focus { |
145 |
border-color:$secondary-color; |
146 |
background:$secondary-color; |
147 |
color:#fff; |
148 |
} |
149 |
&.current { |
150 |
cursor:default; |
151 |
} |
152 |
} |
153 |
|
154 |
.btn2 { |
155 |
@extend .btn1; |
156 |
color:$secondary-color; |
157 |
background:#fff; |
158 |
border-color:$secondary-color; |
159 |
&:hover, |
160 |
&.current, |
161 |
&:focus { |
162 |
background:transparent; |
163 |
border-color:#fff; |
164 |
} |
165 |
} |
166 |
|
167 |
.btn3 { |
168 |
@extend .btn1; |
169 |
color:#fff; |
170 |
border-color:#fff; |
171 |
&:hover, |
172 |
&.current, |
173 |
&:focus { |
174 |
color:$secondary-color; |
175 |
background:#fff; |
176 |
border-color:#fff; |
177 |
} |
178 |
} |
179 |
|
180 |
.btn4 { |
181 |
@extend .btn1; |
182 |
color:#fff; |
183 |
border-color:#fff; |
184 |
background: $secondary-color; |
185 |
&:hover, |
186 |
&.current, |
187 |
&:focus { |
188 |
color: $secondary-color; |
189 |
border-color: $secondary-color; |
190 |
background: #fff; |
191 |
} |
192 |
} |
193 |
|
194 |
.btn5 { |
195 |
border:1px solid white; |
196 |
color:white; |
197 |
display:inline-block; |
198 |
padding:0 20px; |
199 |
line-height:$btn-height - 2px; |
200 |
height:$btn-height; |
201 |
text-align:center; |
202 |
font-size:emCalc(12px); |
203 |
&:hover, |
204 |
&:focus { |
205 |
border-width:2px; |
206 |
line-height: $btn-height - 4px; |
207 |
padding:0 19px; |
208 |
color:white; |
209 |
} |
210 |
&.current { |
211 |
background:white; |
212 |
color:$secondary-color; |
213 |
} |
214 |
} |
215 |
|
216 |
.btn-img { |
217 |
@extend .btn1; |
218 |
border-color:$secondary-color; |
219 |
&:hover, |
220 |
&:focus { |
221 |
background:transparent; |
222 |
} |
223 |
a { |
224 |
img,span { |
225 |
margin-left:5px; |
226 |
} |
227 |
} |
228 |
} |
229 |
|
230 |
|
231 |
/* Layout ----------------------------------------------- */ |
232 |
html,body { |
233 |
height:100%; |
234 |
} |
235 |
|
236 |
body { |
237 |
padding-top:$header-height+$bar-height; |
238 |
} |
239 |
|
240 |
.overlay-wrapper { |
241 |
min-height:100%; |
242 |
} |
243 |
|
244 |
.lt-sidebar { |
245 |
width:250px; |
246 |
float:left; |
247 |
&.nav { |
248 |
margin-top:0; |
249 |
font-size:1em; |
250 |
overflow: auto; |
251 |
} |
252 |
&+.main { |
253 |
overflow:hidden; |
254 |
} |
255 |
} |
256 |
|
257 |
.main { |
258 |
padding:0 10px; |
259 |
} |
260 |
|
261 |
/* Header ----------------------------------------------- */ |
262 |
|
263 |
.header { |
264 |
position:fixed; |
265 |
top:0; |
266 |
left:0; |
267 |
right:0; |
268 |
width:100%; |
269 |
height:$header-height; |
270 |
line-height:$header-height; |
271 |
padding:0 $header-padding-horizontal; |
272 |
background:white; |
273 |
z-index:100; |
274 |
.icons-nav { |
275 |
position:absolute; |
276 |
left:$header-padding-horizontal - $icons-nav-margin-horizontal; |
277 |
height:$header-height; |
278 |
line-height:$header-height; |
279 |
top:0; |
280 |
li { |
281 |
line-height: $header-height; |
282 |
} |
283 |
} |
284 |
.logo { |
285 |
text-align: center; |
286 |
a { |
287 |
position: relative; |
288 |
top:-5px; |
289 |
&:focus { |
290 |
border: 1px solid $secondary-color; |
291 |
padding: 10px; |
292 |
} |
293 |
} |
294 |
img { |
295 |
max-height: 30px; |
296 |
} |
297 |
h2 { |
298 |
display: none; |
299 |
margin:0; |
300 |
font-size: 1em; |
301 |
color:$primary-color; |
302 |
font-weight: normal; |
303 |
} |
304 |
} |
305 |
.login { |
306 |
position:absolute; |
307 |
top:25px; |
308 |
right:$header-padding-horizontal; |
309 |
a { |
310 |
color:$overlay-color; |
311 |
&:hover { |
312 |
color:$secondary-color; |
313 |
} |
314 |
} |
315 |
.wrap { |
316 |
$wr-padd-top:12px; |
317 |
border:1px solid $overlay-color; |
318 |
background: white; |
319 |
color:$overlay-color; |
320 |
font-size:emCalc(12px); |
321 |
padding:$wr-padd-top 30px; |
322 |
line-height:100%; |
323 |
ul { |
324 |
display: none; |
325 |
padding:0; |
326 |
margin:0; |
327 |
list-style: none outside none; |
328 |
li { |
329 |
list-style: none outside none; |
330 |
padding:0; |
331 |
padding-top:$wr-padd-top; |
332 |
|
333 |
|
334 |
} |
335 |
} |
336 |
&:hover { |
337 |
ul { |
338 |
display: block; |
339 |
} |
340 |
} |
341 |
} |
342 |
} |
343 |
|
344 |
} |
345 |
|
346 |
/* Actions Bar ----------------------------------------------- */ |
347 |
|
348 |
.actions-bar { |
349 |
position:fixed; |
350 |
left:0; |
351 |
top:$header-height; |
352 |
width:100%; |
353 |
z-index:15; |
354 |
text-align:center; |
355 |
height:$bar-height; |
356 |
line-height:$bar-height; |
357 |
color:$overlay-color; |
358 |
background-color: lighten($primary-color,35%); |
359 |
a { |
360 |
color:$overlay-color; |
361 |
} |
362 |
h2 { |
363 |
float: left; |
364 |
margin-left: 15px; |
365 |
color: $overlay-color; |
366 |
font-size: emCalc(12px); |
367 |
line-height: $bar-height; |
368 |
font-weight: normal; |
369 |
} |
370 |
.filter-menu { |
371 |
float:right; |
372 |
position: relative; |
373 |
.filter { |
374 |
padding: 0 10px; |
375 |
font-size:emCalc(12px); |
376 |
position: relative; |
377 |
top:-2px; |
378 |
} |
379 |
.options { |
380 |
display: none; |
381 |
position: absolute; |
382 |
right: 0; |
383 |
top:$bar-height; |
384 |
width: 120px; |
385 |
list-style-type: none; |
386 |
padding: 10px 15px 15px; |
387 |
text-align: left; |
388 |
margin:0; |
389 |
} |
390 |
&.current { |
391 |
.options { |
392 |
background-color: lighten($primary-color,10%); |
393 |
display: inline-block; |
394 |
a { |
395 |
color: white; |
396 |
} |
397 |
} |
398 |
} |
399 |
|
400 |
|
401 |
} |
402 |
|
403 |
.row { |
404 |
position: relative; |
405 |
height: $bar-height; |
406 |
} |
407 |
|
408 |
.hd-search { |
409 |
$icon-dim :24px; |
410 |
width: $icon-dim; |
411 |
overflow:hidden; |
412 |
position:relative; |
413 |
float: right; |
414 |
height: $bar-height; |
415 |
-webkit-transition: width 0.3s; |
416 |
-moz-transition: width 0.3s; |
417 |
transition: width 0.3s; |
418 |
-webkit-backface-visibility: hidden; |
419 |
.hd-icon-search { |
420 |
color: $primary-color; |
421 |
display: block; |
422 |
width: $bar-height; |
423 |
height: $bar-height; |
424 |
line-height: $bar-height; |
425 |
float: right; |
426 |
&:hover { |
427 |
cursor:pointer; |
428 |
color:$secondary-color; |
429 |
} |
430 |
z-index:1; |
431 |
position: relative; |
432 |
background: lighten($primary-color,35%); |
433 |
} |
434 |
.hd-search-input { |
435 |
border: transparent; |
436 |
background-color: white; |
437 |
color: $overlay-color; |
438 |
padding: 0 10px; |
439 |
width: 160px; |
440 |
font-size: emCalc(10px); |
441 |
box-shadow: none; |
442 |
height:0.7* $bar-height; |
443 |
line-height: 0.7* $bar-height; |
444 |
position: absolute; |
445 |
top:4px; |
446 |
left:0; |
447 |
@include placeholder { |
448 |
color:$overlay-color; |
449 |
} |
450 |
} |
451 |
&.hd-open { |
452 |
width: 190px; |
453 |
} |
454 |
} |
455 |
|
456 |
.sb-search { |
457 |
$icon-dim :24px; |
458 |
float: right; |
459 |
margin-top:3px; |
460 |
min-width: $icon-dim; |
461 |
height: $icon-dim; |
462 |
.sb-icon-search { |
463 |
height: $icon-dim; |
464 |
width: $icon-dim; |
465 |
color: $primary-color; |
466 |
} |
467 |
form { |
468 |
display: inline-block; |
469 |
margin:0; |
470 |
.input-wrap { |
471 |
width:180px; |
472 |
overflow: hidden; |
473 |
} |
474 |
input { |
475 |
border: transparent; |
476 |
background-color: white; |
477 |
color: $overlay-color; |
478 |
padding: 0 10px; |
479 |
width: 160px; |
480 |
font-size: emCalc(10px); |
481 |
box-shadow: none; |
482 |
height:0.7* $bar-height; |
483 |
line-height: 0.7* $bar-height; |
484 |
position: relative; |
485 |
top:-3px; |
486 |
@include placeholder { |
487 |
color:$overlay-color; |
488 |
} |
489 |
} |
490 |
} |
491 |
&.sb-search-open { |
492 |
width:220px; |
493 |
} |
494 |
} |
495 |
|
496 |
.view-type { |
497 |
float: right; |
498 |
margin-right:15px; |
499 |
.current, |
500 |
a:hover { |
501 |
color: $secondary-color; |
502 |
} |
503 |
.snf-list { |
504 |
margin-right: 6px; |
505 |
font-size: 17px; |
506 |
} |
507 |
.snf-layout { |
508 |
font-size: 1.1em; |
509 |
} |
510 |
|
511 |
} |
512 |
} |
513 |
.new-btn { |
514 |
position: absolute; |
515 |
left:$header-padding-horizontal; |
516 |
bottom:0; |
517 |
height:$bar-height; |
518 |
a { |
519 |
@extend .btn1; |
520 |
span { |
521 |
font-size:emCalc(20px); |
522 |
} |
523 |
} |
524 |
} |
525 |
|
526 |
/* Icons Navigation ----------------------------------------------- */ |
527 |
|
528 |
.icons-nav { |
529 |
@include marginPaddingZero(); |
530 |
li { |
531 |
display: inline-block; |
532 |
margin:0 $icons-nav-margin-horizontal; |
533 |
font-size: emCalc(26px); |
534 |
line-height: 1em; |
535 |
padding-bottom:5px; |
536 |
width: 30px; |
537 |
text-align:center; |
538 |
overflow: hidden; |
539 |
a { |
540 |
color:$black; |
541 |
&:hover,&.current { |
542 |
// font-size:30px; |
543 |
color:$third-color; |
544 |
} |
545 |
} |
546 |
} |
547 |
} |
548 |
|
549 |
|
550 |
|
551 |
|
552 |
/* Top info ----------------------------------------------- */ |
553 |
|
554 |
.top-info { |
555 |
padding:50px 100px; |
556 |
position: relative; |
557 |
z-index:10; |
558 |
display:none; |
559 |
.close { |
560 |
position: absolute; |
561 |
right:$header-padding-horizontal; |
562 |
top:50px; |
563 |
@include sprite('../images/info-close.png', 31px, 30px); |
564 |
} |
565 |
} |
566 |
|
567 |
|
568 |
.info.error { |
569 |
background:$error-color; |
570 |
color:#fff; |
571 |
} |
572 |
|
573 |
|
574 |
.info.alert { |
575 |
background:$alert-color; |
576 |
color:#fff; |
577 |
} |
578 |
|
579 |
.info.warning { |
580 |
background:$primary-color; |
581 |
color:#fff; |
582 |
} |
583 |
|
584 |
.info.success { |
585 |
background:$success-color; |
586 |
color:#fff; |
587 |
} |
588 |
|
589 |
.border-bottom-style1 { |
590 |
padding-bottom:20px; |
591 |
margin-bottom:20px; |
592 |
border-bottom:1px dashed $primary-color; |
593 |
} |
594 |
|
595 |
|
596 |
/* Progress Bar ----------------------------------------------- */ |
597 |
|
598 |
.progress-bar { |
599 |
position: fixed; |
600 |
bottom:0; |
601 |
left:0; |
602 |
border-top:1px solid $secondary-color; |
603 |
width:100%; |
604 |
background:#fff; |
605 |
padding:20px 0 20px 310px; |
606 |
color:$primary-color; |
607 |
span.counter { |
608 |
display: inline-block; |
609 |
margin-right:20px; |
610 |
float:left; |
611 |
} |
612 |
div.progress-wrap { |
613 |
display:inline-block; |
614 |
float:left; |
615 |
width:40%; |
616 |
margin-right:60px; |
617 |
.progress { |
618 |
position: relative; |
619 |
top:2px; |
620 |
} |
621 |
} |
622 |
span.more { |
623 |
display: inline-block; |
624 |
} |
625 |
} |
626 |
|
627 |
|
628 |
/* Responive ------------------------------------------------ */ |
629 |
@media only screen and (max-width: $small-mobile) { |
630 |
} |
631 |
|
632 |
@media only screen and (max-width: $small-screen) { |
633 |
body { |
634 |
padding-top:0 |
635 |
} |
636 |
.header, .actions-bar { |
637 |
position:static; |
638 |
z-index: auto; |
639 |
} |
640 |
.actions-bar { |
641 |
top:2*$header-height; |
642 |
} |
643 |
.header { |
644 |
height: $header-height-responsive; |
645 |
line-height:50px; |
646 |
.icons-nav { |
647 |
position: static; |
648 |
} |
649 |
} |
650 |
} |