Revision 148c25ed

b/cloudcms/static/cloudcms/css/styles.css
1308 1308
  color: #aaa;
1309 1309
}
1310 1310
form.innerlabels p {
1311
  display: table;
1311 1312
  position: relative;
1312 1313
}
1313 1314
form textarea,
......
1487 1488
  color: inherit;
1488 1489
  font-weight: bold;
1489 1490
}
1491
form.innerlabels label.checkbox-label {
1492
  position: relative !important;
1493
  margin-left: 10px !important;
1494
  padding-top: 1em !important;
1495
  top: 7px !important;
1496
  left: 10px;
1497
  cursor: pointer;
1498
}
1490 1499
.service-desc {
1491 1500
  margin-top: 4em;
1492 1501
}
......
1810 1819
  cursor: pointer;
1811 1820
  margin-top: 5.333333333333333px;
1812 1821
}
1822
.textcontent h1, .terms-content h1 {
1823
  font-size: 1.9em;
1824
  margin-bottom: 0.2em;
1825
  margin-top: 1.2em;
1826
  color: #3582ac;
1827
}
1828
.textcontent h1:first-child, .terms-content h1:first-child {
1829
  margin-top: 0;
1830
}
1831
.textcontent h2, .terms-content h2 {
1832
  font-size: 1.6em;
1833
  margin-bottom: 1.1em;
1834
  margin-top: 1.1em;
1835
  color: #3b91bf;
1836
}
1837
.textcontent h2:first-child, .terms-content h2:first-child {
1838
  margin-top: 0;
1839
}
1840
.textcontent h3, .terms-content h3 {
1841
  font-size: 1.3em;
1842
  margin-bottom: 1em;
1843
  margin-top: 1em;
1844
  color: #3b91bf;
1845
}
1846
.textcontent h3:first-child, .terms-content h3:first-child {
1847
  margin-top: 0;
1848
}
1849
.textcontent p, .terms-content p {
1850
  margin-bottom: 1em;
1851
  line-height: 1.5em;
1852
}
1853
.textcontent .date, .terms-content .date {
1854
  margin: 1em 0;
1855
  font-size: 0.9em;
1856
  margin-bottom: 2em;
1857
  color: #808080;
1858
}
b/cloudcms/static/cloudcms/js/form-errors.js
1 1
(function($){
2
  
3
  $.fn.formCheckBoxes = function(options) {
4
    
5
    return this.each(function() {
6
      var $this = $(this);
7
      var el = $('<span class="checkbox-widget" />');
8
      
9
      if ($this.prev().length > 0) {
10
        var lbl = $this.prev()[0];
11
        if (lbl.nodeName == "LABEL" || lbl.nodeName == "label") {
12
            $(lbl).addClass("checkbox-label");
13

  
14
            $(lbl).click(function(){
15
                el.toggleClass("checked");
16
            })
17
        }
18
      }
19
      $this.hide();
20
      
21
      if ($this.is("checked")) {
22
        el.addClass("checked");  
23
      }
24

  
25
      el.click(function() {
26
        el.toggleClass("checked");
27
        $this.attr('checked', el.hasClass("checked"));
28
      })
29

  
30
      $this.after(el);
31
    });
32

  
33

  
34
  }
2 35

  
3 36
  $.fn.formErrors = function(options) {  
4 37
    return this.each(function() {
......
45 78
            marginLeft: marginleft,
46 79
            marginBottom: 5
47 80
        }
48
        el.css(styles);
81
        
82
        if (formel.attr("type") != "checkbox") {
83
            el.css(styles);
84
        } else {
85
            el.css("margin-top", "5px");
86
        }
49 87
    });
50 88

  
51 89
  };
b/cloudcms/static/cloudcms/less/styles.less
455 455
    }
456 456

  
457 457
    &.innerlabels p {
458
        display: table;
458 459
        position: relative;    
459 460
    }
460 461

  
......
566 567

  
567 568
}
568 569

  
570
form.innerlabels label.checkbox-label {
571
    position: relative !important; 
572
    margin-left: 10px !important;
573
    padding-top: 1em !important;
574
    top:7px !important; 
575
    left:10px;
576
    cursor: pointer;
577
}
578

  
579

  
580

  
569 581
// accounts specific styles
570 582
.service-desc {
571 583
    margin-top: 4em;    
......
800 812
}
801 813

  
802 814

  
815
// generic headings
816
@hColor: @blue;
817
.textcontent, .terms-content {
818
    h1 {
819
        font-size: 1.9em;    
820
        margin-bottom: 0.2em;
821
        margin-top: 1.2em;
822
        color: @hColor;
823

  
824
        &:first-child {
825
            margin-top: 0;    
826
        }
827
    }
828

  
829
    h2 {
830
        font-size: 1.6em;
831
        margin-bottom: 1.1em;
832
        margin-top: 1.1em;
833

  
834
        &:first-child {
835
            margin-top: 0;    
836
        }
837
        color: lighten(@hColor, 5%);
838
    }
839

  
840
    h3 {
841
        font-size: 1.3em;
842
        margin-bottom: 1em;
843
        margin-top: 1em;
844

  
845
        &:first-child {
846
            margin-top: 0;    
847
        }
848
        color: lighten(@hColor, 5%);
849
    }
850

  
851
    p {
852
        margin-bottom: 1em;    
853
        line-height: 1.5em;
854
    }
855

  
856
    .date {
857
        margin: 1em 0;
858
        font-size: 0.9em;
859
        margin-bottom: 2em;
860
        color: @gray;
861
    }
862
}
803 863

  

Also available in: Unified diff