Revision 3b52a9f4 snf-astakos-app/astakos/im/static/im/css/styles.less

b/snf-astakos-app/astakos/im/static/im/css/styles.less
1 1
@import "../less/bootstrap.less";
2
@import "../less/xtra.less";
3 2
@import "../less/django_forms.less";
4 3
@import "../less/tables.less";
4
@import "../less/xtra.less";
5

  
5 6

  
7
// mixins
8

  
9
.border-box {
10
    -moz-box-sizing: border-box;
11
    -webkit-box-sizing: border-box;
12
    box-sizing: border-box;
13
    *behavior: url(boxsizing.htc);
14
}
6 15

  
7 16
@gradCol: #ddd;
8 17
body {
......
36 45
}
37 46

  
38 47
// default link styles
39
section a, p a, form a, .section a {
48
section a, p a, form a, .section a, .styledlinks a {
40 49
    color: @black;
41 50
    text-decoration: none;
42 51
    border-bottom: 1px solid @linkColor;
......
54 63
    }
55 64
}
56 65

  
66
a.simple {
67
    border: none;
68

  
69
}
57 70
a.action {
58 71
    color: @linkColor;
59 72
    border-bottom: none;
......
91 104

  
92 105
div.header {
93 106
    position: relative;
94
    margin-top: 42px;
107
    margin-top: 4*@gridGutterWidth;
95 108
    margin-bottom: @gridGutterWidth;
96 109
    h1 {
97 110
        color: @shadowColor;
......
102 115
    }
103 116
}
104 117
.mainlogo {
118
    height: 36px;
119

  
120
    h1 { height: 36px }
105 121
    img {
106 122
        margin-left: -10px;
107 123
    }
......
135 151
    }
136 152
}
137 153

  
154
.navigation {
155
    height: 83px;    
156
}
138 157

  
139 158
.mainnav {
140
    font-size: 1.1em;
159
    font-size: 1.2em;
141 160
    
142 161
    &.subnav {
143 162
        margin-bottom: -@gridGutterWidth;
144 163
        li {
145
            margin-top: @gridGutterWidth/2;
164
            margin-top: 1.2em;
146 165
        }
147 166
    }
148 167

  
......
172 191
    }
173 192
}
174 193

  
175
.page {
194
.bottom-section {
195
    .clearfix();
196

  
197
    .section {
198
        img {
199
            width: 200px;    
200
        }
201
    }
202
}
203

  
204
.top-section {
205
    .clearfix();
206
}
207

  
208
div.page {
176 209
    .makeRow();
177
    margin-top: 42px;
210
    margin-top: 6*@gridGutterWidth;
178 211
    font-size: 1.1em;
179 212
    .page-inner {
180 213
        position: relative;    
......
214 247
    }
215 248
}
216 249

  
217

  
218
/* recaptcha */
219
#recaptcha_widget_div {
220
    margin-top: 10px;
221
    margin-left: -4px;
222

  
223
    #recaptcha_instructions_image {
224
        font-size: 0.8em;
225
        margin-bottom: 10px;
226
        display: block !important;
227
    }
228
}
229 250
/* generic form styles */
230 251
input, textarea, .form-widget {
231 252
    background-color: @white;
232
    color: @black;
253
    color: @gray;
233 254
    border-color: @black;
234 255
}
235 256

  
236
.checkbox-widget.checked {
237
    background-color: #f00;
238
    background-image: url("../images/checkbox.png");
239
    background-position: 50% 50%;
240
}
241

  
242
.checkbox-widget {
243
    border: 1px solid @gray;
244
    width: 25px;
245
    height: 25px;
246
    display: block;
247
    float: left;
248
    cursor: pointer;
249
    margin-top: @gridGutterWidth/2 - 2;
250
}
251

  
252 257
#forms {
253 258
    .input, input {
254 259
        #font.main();
255 260
        border: 1px solid @gray;
261
        height:21px;
262
        display: inline-block;
256 263
        margin-bottom: -1px;
257 264
        padding: 0.8em;
258 265
        padding-left: 1.5em;
259 266
        z-index: 2;
260

  
261 267
        &:focus {
262 268
            position: relative;
263 269
            border: 1px solid #000;
264 270
            z-index: 100;
271

  
272
            label {
273
                z-index: 300;    
274
            }
265 275
        }
266 276
    }
267 277
}
......
275 285
}
276 286

  
277 287
.section {
288
    
289
    em {
290
        color: @blue;
291
    }
278 292

  
279 293
    &.positioned {
280
        
294
        margin-bottom: 0;
281 295
        .content {
282 296
            .makeColumn(4);
283 297
        }
......
296 310
        }
297 311
        
298 312
        h3 {
313
            font-size: 1.2em;
299 314
            margin-bottom: @gridGutterWidth;    
300 315
        }
301 316

  
......
304 319
        }
305 320
    }
306 321

  
307
    margin-bottom: 2em; 
322
    margin-bottom: 3*@gridGutterWidth; 
308 323

  
309 324
    .left, .right {
310 325
        width: 50%;
......
324 339

  
325 340
input[readonly=true] {
326 341
    background-color: #ddd;
327
    color: darken(#ddd, 70%);
342
    color: darken(#ddd, 50%);
328 343
}
329 344

  
330 345
form.withlabels {
......
345 360
}
346 361

  
347 362

  
363
.login-section {
364
    a.button {
365
        margin-bottom: 0.2*@gridColumnWidth;    
366
        
367
        &:last-child {
368
            margin-bottom: none;    
369
        }
370

  
371
        &.withicon {
372
            background-repeat: no-repeat;
373
            background-position: 15px 50%;
374
            padding-left: 40px;
375
        }
376
    }    
377

  
378
    &.loggedin {
379
        padding-bottom: 0 !important;
380
        background-image: none !important;
381
    }
382
}
383

  
384

  
348 385
@errorColor: lighten(@red, 30%);
349 386
// forms
350 387
form {
351 388
    
352 389
    &.login {
353
        margin-bottom: 3em; 
390
        margin-bottom: 1.5*@gridGutterWidth; 
354 391
    }
355 392

  
356 393
    h2 {
......
367 404
        min-height: 2*@gridGutterWidth;
368 405
        position: relative;
369 406
        &.submit {
370
            margin-top: @gridGutterWidth;
407
            margin-top: 1.5*@gridGutterWidth;
371 408
        }
372 409

  
373 410
        .extra-link {
......
430 467
    margin-bottom: 4em;
431 468
}
432 469
// content types
470

  
471
.rightcol .section {
472
    background-image: url("../images/dashed_border.png");
473
    background-repeat: repeat-x;
474
    background-position: left bottom;
475
    padding-bottom: 2*@gridGutterWidth;
476
    margin-bottom: 2*@gridGutterWidth;
477

  
478
}
479

  
433 480
.section {
434 481
    h2 {
435 482
        font-size: 1.1em;
483
        line-height: 1.3em;
436 484
        margin-bottom: 1.5*@gridGutterWidth;    
437 485

  
438 486
        a {
439 487
            color: #4085A6;
440 488
            border: none;
489
            line-height: 1.3em;
441 490
        }
442 491
    }
443 492

  
493
    h3 {
494
        font-size: 1.1em;    
495
        line-height: 1.3em;
496
        margin-bottom: 1.5*@gridGutterWidth;    
497
    }
498

  
444 499
    p {
445 500
        line-height: 1.7em;    
446 501
    }
502

  
503
    .section-img {
504
        margin-bottom: 1*@gridGutterWidth;    
505
    }
447 506
}
448 507

  
449 508

  
......
451 510
.messages {
452 511
    .makeColumn(10);
453 512

  
454
    margin-bottom: 2em;
513
    margin: 2em 0;
455 514
    background-color: #ddd;
515
    margin-left: 0;
456 516

  
457 517
    li {
458 518
        padding: 1em;    
......
538 598

  
539 599

  
540 600
/*pagination*/
601
.pagination {
602
    a.page {
603
        display: inline !important;
541 604

  
605
    }    
606
}
542 607

  
543 608
/*blog styles*/
544 609
.blog-entries {
......
554 619
    .title {
555 620
        margin-bottom: 1em;    
556 621
        font-size: 1.1em;
622
        line-height: 1.4em;
557 623
    }    
558 624

  
559 625
    .media {
......
586 652
.section.twitter-feed {
587 653
    
588 654
    .tweet {
655
        &:last-child { margin-bottom:0; padding-bottom:0; border-bottom: none }
589 656
        line-height: 1.3em;
590 657
        font-size: 0.9em;
591 658
        margin-bottom: @gridGutterWidth;
......
601 668
        }
602 669
    }
603 670
}
671

  
672
.pagination .page {
673
    margin-left: 0;    
674
}
675

  
676

  
677
.entry-list {
678
    
679
    .since {
680
        font-size: 0.8em;    
681
    }
682

  
683
    .title {
684
        margin-bottom: 1em;    
685
    }
686

  
687
    .content, .text {
688
        margin-bottom: 2em;
689
        font-size: 0.8em;
690
    }
691
}
692

  
693

  
694
.initial_hidden {
695
    display: none;    
696
}
697

  
698
/*resources styles*/
699

  
700
@resCol: #FAAF40;
701
.resources {
702
    
703
    .categories {
704
        ul { .clearfix() }
705
        ul li { float: left; }
706
        .title {
707
            margin-bottom: @gridGutterWidth/2;    
708
        }
709

  
710
        ul li a {
711
            text-decoration: none;
712
            color: @resCol;
713
            margin-right: @gridGutterWidth;
714
        }
715
    }
716

  
717
    .list {
718
        
719
        margin-top: 4*@gridGutterWidth;
720

  
721
        .resource {
722
            .border-box();
723
            width: 33%;
724
            padding: 2*@gridGutterWidth;
725
            float: left;
726
            border: 1px solid @resCol;
727
            height: 12*@gridGutterWidth;
728

  
729
            .description {
730
                display: none;    
731
            }
732
        }    
733
    }
734
    
735
}
736

  
737
 
738
/* recaptcha */
739
#recaptcha_widget_div {
740
    margin-top: 10px;
741
    margin-left: -4px;
742

  
743
    #recaptcha_instructions_image {
744
        font-size: 0.8em;
745
        margin-bottom: 10px;
746
        display: block !important;
747
    }
748
}
749

  
750
.checkbox-widget.checked {
751
    background-color: #f00;
752
    background-image: url("../images/checkbox.png");
753
    background-position: 50% 50%;
754
}
755

  
756
.checkbox-widget {
757
    border: 1px solid @gray;
758
    width: 25px;
759
    height: 25px;
760
    display: block;
761
    float: left;
762
    cursor: pointer;
763
    margin-top: @gridGutterWidth/2 - 2;
764
}
765

  
766

  
767

  

Also available in: Unified diff