Revision f6e90a2b cloudcms/static/cloudcms/less/styles.less

b/cloudcms/static/cloudcms/less/styles.less
1 1
@import "../less/bootstrap.less";
2 2
@import "../less/django_forms.less";
3 3
@import "../less/tables.less";
4
@import "../less/cloudbox.less";
4
@import "../less/xtra.less";
5 5

  
6 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
}
15

  
7 16
@gradCol: #ddd;
8 17
body {
9 18
    #font.main();
......
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;
......
106 115
    }
107 116
}
108 117
.mainlogo {
118
    height: 36px;
119

  
120
    h1 { height: 36px }
109 121
    img {
110 122
        margin-left: -10px;
111 123
    }
......
139 151
    }
140 152
}
141 153

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

  
143 158
.mainnav {
144 159
    font-size: 1.2em;
......
176 191
    }
177 192
}
178 193

  
179
.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 {
180 209
    .makeRow();
181 210
    margin-top: 6*@gridGutterWidth;
182 211
    font-size: 1.1em;
......
219 248
}
220 249

  
221 250
/* generic form styles */
222
input, textarea {
251
input, textarea, .form-widget {
223 252
    background-color: @white;
224 253
    color: @gray;
225 254
    border-color: @black;
......
229 258
    .input, input {
230 259
        #font.main();
231 260
        border: 1px solid @gray;
261
        height:21px;
262
        display: inline-block;
232 263
        margin-bottom: -1px;
233 264
        padding: 0.8em;
234 265
        padding-left: 1.5em;
......
254 285
}
255 286

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

  
258 293
    &.positioned {
259 294
        margin-bottom: 0;
......
324 359
    }
325 360
}
326 361

  
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

  
327 385
@errorColor: lighten(@red, 30%);
328 386
// forms
329 387
form {
330 388
    
331 389
    &.login {
332
        margin-bottom: 3em; 
390
        margin-bottom: 1.5*@gridGutterWidth; 
333 391
    }
334 392

  
335 393
    h2 {
......
343 401
    }
344 402

  
345 403
    .form-row {
404
        min-height: 2*@gridGutterWidth;
346 405
        position: relative;
347 406
        &.submit {
348
            margin-top: @gridGutterWidth;
407
            margin-top: 1.5*@gridGutterWidth;
349 408
        }
350 409

  
351 410
        .extra-link {
......
408 467
    margin-bottom: 4em;
409 468
}
410 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

  
411 480
.section {
412 481
    h2 {
413 482
        font-size: 1.1em;
483
        line-height: 1.3em;
414 484
        margin-bottom: 1.5*@gridGutterWidth;    
415 485

  
416 486
        a {
......
420 490
        }
421 491
    }
422 492

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

  
423 499
    p {
424 500
        line-height: 1.7em;    
425 501
    }
502

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

  
428 508

  
......
430 510
.messages {
431 511
    .makeColumn(10);
432 512

  
433
    margin-bottom: 2em;
513
    margin: 2em 0;
434 514
    background-color: #ddd;
515
    margin-left: 0;
435 516

  
436 517
    li {
437 518
        padding: 1em;    
......
517 598

  
518 599

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

  
605
    }    
606
}
521 607

  
522 608
/*blog styles*/
523 609
.blog-entries {
......
566 652
.section.twitter-feed {
567 653
    
568 654
    .tweet {
655
        &:last-child { margin-bottom:0; padding-bottom:0; border-bottom: none }
569 656
        line-height: 1.3em;
570 657
        font-size: 0.9em;
571 658
        margin-bottom: @gridGutterWidth;
......
585 672
.pagination .page {
586 673
    margin-left: 0;    
587 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