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