Revision 4b5adcc3

b/cloudcms/static/cloudcms/css/formating.css
29 29
a span											{ cursor:pointer; }
30 30
abbr[title], dfn[title]							{ border-bottom:1px dotted; cursor:help; }
31 31
address											{ font-style:italic; margin:0 0 1.5em 0; }
32
body											{ background:white; color:#222; font-family: 'Didact Gothic', Verdana, sans-serif;  font-style:normal; font-size:81.3%; line-height:1.5; text-align:left; letter-spacing:1px;}
32
body											{ background:white; color:#222; font-family: 'Open Sans', sans-serif; font-style:normal; font-size:81.3%; line-height:1.5; text-align:left; letter-spacing:1px;}
33 33
code, kbd, pre, samp							{ font-family:monospace, sans-serif; }
34 34
del												{ text-decoration:line-through; }
35 35
dl												{ margin:1em 0; }
b/cloudcms/static/cloudcms/css/forms.css
7 7
#forms input:focus label 					{ z-index: 300; }
8 8
form.withlabels label 						{ width: 224px; display: block; float: left; padding-top: 1em; }
9 9
form.withlabels input[type=text], 
10
form.withlabels input[type=password] 		{ width: 240px; }
10
form.withlabels input[type=password] 		{ width: 270px; }
11 11
form.withlabels input[type=text].long, 
12 12
form.withlabels input[type=password].long, 
13 13
form.withlabels textarea.long 				{ width: 224px; }
14
form.withlabels textarea					{ width:270px; }
14 15
.login-section a.button 					{ margin-bottom: 12px; }
15 16
.login-section a.button:last-child 			{ margin-bottom: none;}
16 17
.login-section a.button.withicon 			{ background-repeat: no-repeat; background-position: 15px 50%; padding-left: 40px; }
......
33 34
form input.text,
34 35
form input[type="text"],
35 36
form input[type="password"]  				{ color:#808080; font-family: 'Didact Gothic', Verdana, sans-serif; font-weight: normal; line-height: 22px; letter-spacing: 1px;border: 1px solid #808080; height: 21px; display: inline-block; margin-bottom: -1px; padding: 0.8em; padding-left: 1.5em; z-index: 2; width:300px; }
36
form select									{ font-family: 'Didact Gothic', Verdana, sans-serif; font-weight: normal; line-height: 22px; letter-spacing: 1px;  border: 1px solid #808080; display:block;  margin-bottom: -1px; padding: 0.8em;  padding-left: 1.5em;  z-index: 2;  width:331px; }
37
form select									{ font-family: 'Didact Gothic', Verdana, sans-serif; font-weight: normal; line-height: 22px; letter-spacing: 1px;  border: 1px solid #808080; display:block;  margin-bottom: -1px; padding: 0.8em;  padding-left: 1.5em;  z-index: 2;  width:301px; }
37 38
form textarea:focus,
38 39
form input.text:focus,
39 40
form input[type="text"]:focus,
......
44 45
form input[type="password"]:focus label 	{ z-index: 300;}
45 46
form input.submit, 
46 47
form input[type="submit"],
47
a.submit									{ font-family: 'Didact Gothic', Verdana, sans-serif; font-size: 14px; font-weight: normal; line-height: 22px; letter-spacing:1px;  background-color: #f89a1c;color: #ffffff; border: none; padding: 10px 22px;font-size: 1em; margin:15px 0 0 223px; height:43px; }
48
a.submit									{ font-family: 'Open Sans', sans-serif; font-size: 14px; font-weight: normal; line-height: 22px; letter-spacing:1px;  background-color: #f89a1c;color: #ffffff; border: none; padding: 10px 22px;font-size: 1em; margin:15px 0 0 223px; height:43px; }
48 49
form.innerlabels input.submit, 
49 50
form.innerlabels input[type="submit"]		{margin-left:0;}
50 51
form input.submit:hover, 
51 52
form input[type="submit"]:hover,
52
a.submit:hover					 			{ background-color:#3582AC;border-color:#3582ac; text-decoration:none;}
53
.content a.submit:hover					 	{ background-color:#3582AC;border-color:#3582ac; text-decoration:none;}
53 54
form input.submit.back, 
54 55
form input[type="submit"].back 				{ text-decoration: none; bottom: 0; float: right; z-index: 500; }
55 56
form input.submit.back.right, 
......
71 72
form.withlabels .checkbox-widget			{ margin-top:20px; }
72 73
form.innerlabels .checkbox-widget +  label	{ position:static; line-height:36px; color:#808080; }
73 74
form.innerlabels .checkbox-widget +  label + a	{ border-bottom:1px solid #F89A1C; font-size: 1.1em; }
74
form span.info								{ position:absolute;z-index:10; bottom:32px;  }
75
form span.info								{ position:absolute;z-index:101; bottom:32px;  }
75 76
form.innerlabels span.info					{ left: 290px; }
76
form.withlabels span.info					{ left: 440px; }
77
form.withlabels span.info					{ left:485px;  }
77 78
form span.info em 							{ display:block; overflow:hidden;  position:absolute; left:0; text-indent:-100px; top:0; height:21px; width:21px; background:url(../images/symbols.png) no-repeat -4px -31px;cursor:pointer; }
78 79
form span.info:hover em 					{ background-position:-4px -3px; }
79 80
form span.info span  						{ position:absolute; left:29px; top:-2px; width:120px; padding-left:30px; background:url(../images/black-line.jpg ) no-repeat left 12px; min-height:50px; display:none; font-size:0.846em;}
......
87 88
form.withlabels .with-checkbox .checkbox-widget		{ position:absolute; left:224px; top:0; }
88 89

  
89 90
form .extra-img								{ display:block; width:21px; height:21px; overflow:hidden;  position:absolute; }
90
form.withlabels .extra-img					{ left:460px; bottom:12px; }
91
form.withlabels .extra-img					{ left:485px; bottom:12px; }
91 92
form.innerlabels .extra-img					{ bottom:10px; left:290px }
92
form .with-checkbox .extra-img				{ top:20px; } 
93
form .with-checkbox .extra-img				{   } 
93 94
form .with-errors .extra-img 				{ background:url(../images/symbols.png) no-repeat -58px -3px;  z-index:101;}
94 95
form .with-errors textarea+.extra-img,
95 96
form .with-errors noscript+.extra-img		{ background:transparent;}
......
97 98
form .with-errors input[type="password"]	{ border:1px solid red;}
98 99
form.innerlabels .with-errors .extra-img	{ left:290px;}
99 100
form input[readonly="True"]+ span.extra-img { background:url(../images/symbols.png) no-repeat -111px -3px; z-index:101;}
101
form.withlabels .with-checkbox .extra-img	{ display:none; } 
100 102
.errorlist									{ margin:0; padding:0;}
101 103
.errorlist li								{ list-style:none outside;}
102 104

  
......
119 121
#okeanos_recaptcha .actions-wrap				{ border-top:1px solid #808080 }
120 122

  
121 123
input.submit:focus,
122
input[type="submit"]:focus						{ box-shadow: 0 0 0 1px #FFFFFF inset; border:1px solid #F89A1C; outline:0 none; }						
124
input[type="submit"]:focus,
125
.content a.submit:focus							{ box-shadow: 0 0 0 1px #FFFFFF inset; border:1px solid #F89A1C; outline:0 none; }						
126
.content a.submit:hover							{ border-color:#3582AC; }
123 127

  
124
@media screen and (max-width : 591px) 		{ 
125
	form.withlabels .extra-img	   				{ left:222px; }
126
    form.withlabels span.info 	   				{ left:222px; }
127
    form .extra-img	               				{ left:222px; }
128
p+ form											{ margin:2em 0; }
129
.full-dotted legend								{ padding-top:40px; }
130
form .form-row .radios label					{ width:auto; float:none; display:inline-block; }
131
form .form-row .radios input[type="radio"]		{ margin-right:165px; vertical-align:middle; }
132
form.withfieldset textarea						{ width: 224px; }
133
form.withfieldset select						{ width: 256px; background:#fff;}
134
form+p:first-child, form legend + p				{ margin-bottom:2em; }
135

  
136
/* dropkick select extra styles */
137

  
138
.form-row .dk_container							{ border-radius:0; margin-bottom:0; border: 1px solid #808080; height: 21px; letter-spacing: 1px; line-height: 22px; margin-bottom: -1px; width:300px; padding:0.8em 0; font-weight:normal; font-family: 'Didact Gothic', Verdana, sans-serif; font-size:1em; background:transparent; color:#808080;}
139
.form-row .dk_toggle  							{ border-radius:0;  padding:2px 0 10px;  border:0 none; text-indent:1.5em; text-decoration:none;background-image:url(../images/arrow-down_black.png); background-position:90% 5px;}
140
.form-row .dk_toggle:hover						{ text-decoration:none; }
141
.form-row .dk_open								{ background:transparent; box-shadow: none; }
142
.form-row .dk_open .dk_toggle					{ background-color:transparent; border:0 none; color:#000; box-shadow: none;}
143
.form-row .dk_focus .dk_toggle					{ background-color:transparent;  border:0 none; color:#000; box-shadow: none;}
144
.1form-row .dk_options							{ display:block; }
145
.form-row .dk_options							{ box-shadow:none; border-radius:0; z-index:3; margin:6px -1px 0; width:auto; left:0;}
146
.form-row .dk_options a							{ font-weight:normal;color:#808080 }
147
.form-row .dk_options_inner						{ padding:0; margin:0; box-shadow:none; text-shadow:none;  border-radius:0; border:1px solid #8C8C8E ;}
148
.form-row .dk-options_inner li					{ list-style:none outside; }
149
.form-row .dk_options a:hover, 
150
.form-row .dk_option_current a					{ text-shadow:none; background-color: #E7E7E3; text-decoration:none;}
151

  
152
form.link-like									{ display:inline-block; margin:0 5px; }
153
form.link-like input[type="submit"]				{ margin:0; padding:0 5px; background:transparent; color:#F89A1C; cursor:pointer; height:auto;  }
154
form.link-like input[type="submit"]:hover		{ text-decoration:underline;  }
155
.projects form.withlabels .checkbox-widget		{ margin-top:5px; }
156
.projects form .with-checkbox					{ margin:20px 0; }
157
.projects form .with-checkbox label				{ padding-top:7px; }
158
.projects form .with-checkbox span.info			{ bottom:24px; }
159

  
160

  
161
@media screen and (max-width : 630px) 		{ 
162
	form.withlabels .extra-img	   				{ left:260px; }
163
    form.withlabels span.info 	   				{ left:260px; }
164
    form .extra-img	               				{ left:260px; }
128 165
    .form-error		              	 			{ margin-left:0!important; } 
129 166
    
130 167
}
131 168

  
132 169

  
133 170
@media screen and (max-width : 410px) 		{ 
171
	form.withlabels .extra-img	   				{ left:90% }	
134 172
	form.login									{ width:auto; }
135 173
	form textarea, 
136 174
	form input.text, 
137 175
	form input[type="text"], 
138 176
	form input[type="password"] 				{ width:90%; }
139
	form.withlabels select									{ width:90%; }
177
	form.withlabels input[type="text"], 
178
    form.withlabels input[type="password"],
179
    form.withlabels textarea,
180
    form textarea, 
181
	form input.text, 
182
	form input[type="text"], 
183
	form input[type="password"]					{ width:90%; }
184
	form.withlabels select						{ width:90%; }
140 185
	form.innerlabels .extra-img,
141 186
	form.innerlabels .with-errors .extra-img 	{ left:90%; }
142 187
	form.innerlabels							{ width:auto; }
......
148 193
}
149 194

  
150 195

  
151
@media screen and ( width : 320px) 		{ 
196
@media screen and ( max-width : 320px) 		{ 
152 197
	#okeanos_recaptcha							{ width:259px }
153
    
154
}
155

  
156
p+ form											{ margin:2em 0; }
157
.full-dotted legend								{ padding-top:40px; }
158
form .form-row .radios label					{ width:auto; float:none; display:inline-block; }
159
form .form-row .radios input[type="radio"]		{ margin-right:165px; vertical-align:middle; }
160
form.withfieldset textarea						{ width: 224px; }
161
form.withfieldset select						{ width: 256px; background:#fff;}
162
form+p:first-child, form legend + p				{ margin-bottom:2em; }
163

  
164
/* dropkick select extra styles */
165

  
166
.form-row .dk_container							{ border-radius:0; margin-bottom:0; border: 1px solid #808080; height: 21px; letter-spacing: 1px; line-height: 22px; margin-bottom: -1px; width:254px; padding:0.8em 0; font-weight:normal; font-family: 'Didact Gothic', Verdana, sans-serif; font-size:1em; background:transparent; color:#808080;}
167
.form-row .dk_toggle  							{ border-radius:0;  padding:7px 0;  border:0 none; text-indent:1.5em; text-decoration:none;background-image:url(../images/arrow_02.jpg); background-position:90% 5px;}
168
.form-row .dk_toggle:hover						{ text-decoration:none; }
169
.form-row .dk_open								{ background:transparent; box-shadow: none; }
170
.form-row .dk_open .dk_toggle					{ background-color:transparent; border:0 none; color:#000; box-shadow: none;}
171
.form-row .dk_focus .dk_toggle					{ background-color:transparent;  border:0 none; color:#000; box-shadow: none;}
172
.1form-row .dk_options							{ display:block; }
173
.form-row .dk_options							{ box-shadow:none; border-radius:0; z-index:3; margin:6px -1px 0; width:auto; left:0;}
174
.form-row .dk_options a							{ font-weight:normal;color:#808080 }
175
.form-row .dk_options_inner						{ padding:0; margin:0; box-shadow:none; text-shadow:none;  border-radius:0; border:1px solid #8C8C8E ;}
176
.form-row .dk-options_inner li					{ list-style:none outside; }
177
.form-row .dk_options a:hover, 
178
.form-row .dk_option_current a					{ text-shadow:none; background-color: #E7E7E3;}
198
    form.withlabels input[type="text"], 
199
    form.withlabels input[type="password"],
200
    form.withlabels textarea,
201
    form textarea, 
202
	form input.text, 
203
	form input[type="text"], 
204
	form input[type="password"]					{ width:90%; }
205
	.form-row .dk_container 					{ width:100%; }
206
}
b/cloudcms/static/cloudcms/js/forms.js
3 3
  $.fn.formCheckBoxes = function(options) {
4 4
    
5 5
    return this.each(function() {
6
      // process checkboxes
6 7
      var $this = $(this);
7
      var el = $('<span class="checkbox-widget" />');
8
    
8
      var el = $('<a class="checkbox-widget" href="javascript:void(0)"/>');
9
      var form = $this.closest(".form-row");
10

  
11
      // add class to identify form rows which contain a checkbox
12
      form.addClass("with-checkbox");
13
      
14
      if ($this.prev().length > 0) {
15
        var lbl = $this.prev()[0];
16
        if (lbl.nodeName == "LABEL" || lbl.nodeName == "label") {
17
            $(lbl).addClass("checkbox-label");
18

  
19
            $(lbl).click(function(e){
20
                var src = e.srcElement.nodeName;
21
                if (src == "LABEL" || src == "label") {
22
                    el.toggleClass("checked");
23
                };
24
            })
25
        }
26
      }
9 27
      $this.hide();
10 28
      
11
      if ($this.is("checked")) {
29
      if ($this.attr('checked')) {
12 30
        el.addClass("checked");  
13 31
      }
14 32

  
15 33
      el.click(function() {
16 34
        el.toggleClass("checked");
17 35
        $this.attr('checked', el.hasClass("checked"));
36
      });
37
      
38
      el.keypress(function(e){
39
      	
40
      	if (e.keyCode == 0 || e.keyCode == 32){
41
      		e.preventDefault();
42
      		el.toggleClass("checked");
43
        	$this.attr('checked', el.hasClass("checked"));
44
      	}
18 45
      })
19 46

  
20
      $this.after(el);
47
      $this.prev('label').before(el);
21 48
    });
22 49

  
23 50

  
......
68 95
            marginLeft: marginleft,
69 96
            marginBottom: 5
70 97
        }
71
        el.css(styles);
98
        
99
        if (formel.attr("type") != "checkbox") {
100
            el.css(styles);
101
        } else {
102
            el.css("margin-top", "5px");
103
        }
72 104
    });
73 105

  
74 106
  };
75
})( jQuery );
107
})( jQuery );
b/cloudcms/templates/cms/base.html
15 15
  {% endblock favicons %}
16 16

  
17 17
  {% block css %}
18
      <link href='http://fonts.googleapis.com/css?family=Didact+Gothic&subset=latin' rel='stylesheet' type='text/css'>
18
      
19
      <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=latin,greek-ext,greek' rel='stylesheet' type='text/css'>
19 20
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/global.css">
20 21
      <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}cloudcms/css/print.css" media="print">
21 22
      <!--[if lte IE 7]>
......
36 37
      <script src="{{ MEDIA_URL }}cloudcms/js/common.js"></script>
37 38
      <script src="{{ MEDIA_URL }}cloudcms/js/forms.js"></script>
38 39
      <script src="{{ MEDIA_URL }}cloudcms/js/os.js"></script>
40
      <script src="{{ IM_STATIC_URL }}js/jquery.tablesorter.js"></script>
39 41
      <script src="{{ MEDIA_URL }}cloudcms/js/resources_list.js"></script> 
40 42
  {% endblock headjs %}
41 43

  

Also available in: Unified diff