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

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

  
5 7

  
8
// mixins
9

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

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

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

  
67
a.simple {
68
    border: none;
69

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

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

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

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

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

  
......
172 192
    }
173 193
}
174 194

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

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

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

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

  
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 251
/* generic form styles */
230 252
input, textarea, .form-widget {
231 253
    background-color: @white;
232
    color: @black;
254
    color: @gray;
233 255
    border-color: @black;
234 256
}
235 257

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

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

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

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

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

  
......
304 320
        }
305 321
    }
306 322

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

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

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

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

  
347 363

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

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

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

  
385

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

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

  
373 411
        .extra-link {
......
400 438
    }
401 439

  
402 440
    
441
    textarea {
442
        height: 200px;
443
        width: 350px !important;
444
    }
403 445
    .with-errors {
404 446
        input, textarea, select {
405 447
            color: @red;
......
430 472
    margin-bottom: 4em;
431 473
}
432 474
// content types
475

  
476
.rightcol .section {
477
    background-image: url("../images/dashed_border.png");
478
    background-repeat: repeat-x;
479
    background-position: left bottom;
480
    padding-bottom: 2*@gridGutterWidth;
481
    margin-bottom: 2*@gridGutterWidth;
482

  
483
}
484

  
433 485
.section {
434 486
    h2 {
435 487
        font-size: 1.1em;
488
        line-height: 1.3em;
436 489
        margin-bottom: 1.5*@gridGutterWidth;    
437 490

  
438 491
        a {
439 492
            color: #4085A6;
440 493
            border: none;
494
            line-height: 1.3em;
441 495
        }
442 496
    }
443 497

  
498
    h3 {
499
        font-size: 1.1em;    
500
        line-height: 1.3em;
501
        margin-bottom: 1.5*@gridGutterWidth;    
502
    }
503

  
444 504
    p {
445 505
        line-height: 1.7em;    
446 506
    }
507

  
508
    .section-img {
509
        margin-bottom: 1*@gridGutterWidth;    
510
    }
447 511
}
448 512

  
449 513

  
......
451 515
.messages {
452 516
    .makeColumn(10);
453 517

  
454
    margin-bottom: 2em;
518
    margin: 2em 0;
455 519
    background-color: #ddd;
520
    margin-left: 0;
456 521

  
457 522
    li {
458 523
        padding: 1em;    
......
538 603

  
539 604

  
540 605
/*pagination*/
606
.pagination {
607
    a.page {
608
        display: inline !important;
541 609

  
610
    }    
611
}
542 612

  
543 613
/*blog styles*/
544 614
.blog-entries {
......
554 624
    .title {
555 625
        margin-bottom: 1em;    
556 626
        font-size: 1.1em;
627
        line-height: 1.4em;
557 628
    }    
558 629

  
559 630
    .media {
......
586 657
.section.twitter-feed {
587 658
    
588 659
    .tweet {
660
        &:last-child { margin-bottom:0; padding-bottom:0; border-bottom: none }
589 661
        line-height: 1.3em;
590 662
        font-size: 0.9em;
591 663
        margin-bottom: @gridGutterWidth;
......
601 673
        }
602 674
    }
603 675
}
676

  
677
.pagination .page {
678
    margin-left: 0;    
679
}
680

  
681

  
682
.entry-list {
683
    
684
    .since {
685
        font-size: 0.8em;    
686
    }
687

  
688
    .title {
689
        margin-bottom: 1em;    
690
    }
691

  
692
    .content, .text {
693
        margin-bottom: 2em;
694
        font-size: 0.8em;
695
    }
696
}
697

  
698

  
699
.initial_hidden {
700
    display: none;    
701
}
702

  
703
/*resources styles*/
704

  
705
@resCol: #FAAF40;
706
.resources {
707
    
708
    .categories {
709
        ul { .clearfix() }
710
        ul li { float: left; }
711
        .title {
712
            margin-bottom: @gridGutterWidth/2;    
713
        }
714

  
715
        ul li a {
716
            text-decoration: none;
717
            color: @resCol;
718
            margin-right: @gridGutterWidth;
719
        }
720
    }
721

  
722
    .list {
723
        
724
        margin-top: 4*@gridGutterWidth;
725

  
726
        .resource {
727
            .border-box();
728
            width: 33%;
729
            padding: 2*@gridGutterWidth;
730
            float: left;
731
            border: 1px solid @resCol;
732
            height: 12*@gridGutterWidth;
733

  
734
            .description {
735
                display: none;    
736
            }
737
        }    
738
    }
739
    
740
}
741

  
742
 
743
/* recaptcha */
744
#recaptcha_widget_div {
745
    margin-top: 10px;
746
    margin-left: -4px;
747

  
748
    #recaptcha_instructions_image {
749
        font-size: 0.8em;
750
        margin-bottom: 10px;
751
        display: block !important;
752
    }
753
}
754

  
755
.checkbox-widget.checked {
756
    background-color: #f00;
757
    background-image: url("../images/checkbox.png");
758
    background-position: 50% 50%;
759
}
760

  
761
.checkbox-widget {
762
    border: 1px solid @gray;
763
    width: 25px;
764
    height: 25px;
765
    display: block;
766
    float: left;
767
    cursor: pointer;
768
    margin-top: @gridGutterWidth/2 - 2;
769
}
770

  
771

  
772

  

Also available in: Unified diff