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