Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

moved styles in theme\standard\styles_form.css to theme\standard\styl…

…es_layout.css and removed theme\standard\styles_form.css and all references to it. In line with discussion here : http://moodle.org/mod/forum/discuss.php?d=54907
  • Loading branch information...
commit 909ec807cb833769f8abd9ecebe5329705d94461 1 parent 89a66e5
jamiesensei authored
2  lib/weblib.php
@@ -2403,7 +2403,7 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force
2403 2403 header('Pragma: ');
2404 2404 header('Content-type: text/css'); // Correct MIME type
2405 2405
2406   - $DEFAULT_SHEET_LIST = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_form');
  2406 + $DEFAULT_SHEET_LIST = array('styles_layout', 'styles_fonts', 'styles_color');
2407 2407
2408 2408 if (empty($themename)) {
2409 2409 $themename = current_theme(); // So we have something. Normally not needed.
2  theme/chameleon/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_form');
  16 +$THEME->standardsheets = array('styles_layout');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/formal_white/config.php
@@ -12,7 +12,7 @@
12 12 /// stylesheet files you want included in this theme, and in what order
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15   -$THEME->standardsheets = array('styles_layout','styles_form');
  15 +$THEME->standardsheets = array('styles_layout');
16 16 ///$THEME->standardsheets = true;
17 17
18 18 /// This variable can be set to an array containing
2  theme/metal/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/orangewhite/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_form');
  16 +$THEME->standardsheets = array('styles_layout');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/orangewhitepda/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_form');
  16 +$THEME->standardsheets = array('styles_layout');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/standard/config.php
@@ -6,7 +6,7 @@
6 6 ////////////////////////////////////////////////////////////////////////////////
7 7
8 8
9   -$THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_form');
  9 +$THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color');
10 10
11 11 /// This variable is an array containing the names of all the
12 12 /// stylesheet files you want included in this theme, and in what order
97 theme/standard/styles_form.css
... ... @@ -1,97 +0,0 @@
1   -/*******************************************************************
2   - styles_form.css
3   -
4   - This CSS file contains all css required for new css and xhtml only
5   - moodleforms.
6   -*/
7   -form.mform {
8   - margin: 0;
9   - padding: 0;
10   - width: 100%;
11   -}
12   -form.mform fieldset {
13   - border: 1px solid black;
14   - padding: 10px 0;
15   - margin: 0;
16   - width:100%;
17   -}
18   -form.mform fieldset.hidden, form.mform fieldset.felement {
19   - border: 0;
20   -}
21   -form.mform fieldset.felement {
22   - width: auto;
23   -}
24   -form.mform fieldset legend {
25   - font-weight: bold;
26   -}
27   -
28   -form.mform div.fitem {
29   - clear: both;
30   - width: 100%;
31   - min-height: 1.5em;
32   -}
33   -/* uncomment this and edit formslib.php for
34   -ol li containers for form items.
35   -
36   -form.mform fieldset li.qfrow {
37   - list-style: none;
38   - padding: 5px;
39   - margin: 0;
40   - clear: both;
41   - width: 100%;
42   - min-height: 1.5em;
43   -}
44   -form.mform fieldset ol {
45   - margin: 0;
46   - padding: 0;
47   -}*/
48   -form.mform label {
49   - display: block;
50   - float: left;
51   - width: 30%;
52   - padding: 0;
53   - margin: 0 0 0 0;
54   - text-align: right;
55   -}
56   -div.fitem fieldset.fgroup label {
57   - display:inline;
58   - float: none;
59   - width: auto;
60   -}
61   -
62   -form.mform div.felement, form.mform fieldset.felement{
63   - /* display: inline; */
64   - display: block;
65   - float: left;
66   - margin: 5px 0 0 10px;
67   - padding: 0;
68   - text-align:left;
69   -}
70   -
71   -form.mform div.fdescription {
72   - clear: both;
73   - min-height: 1.5em;
74   -}
75   -
76   -form.mform input, form.mform select {
77   - width: auto;
78   -}
79   -form.mform ftextarea {
80   -}
81   -form.mform br {
82   - clear: left;
83   -}
84   -form.mform div.fhtmleditor {
85   - margin: 0 auto 10px auto;
86   - width : 600px;
87   - clear:both;
88   - float:none;
89   -}
90   -form.mform span.error, form.mform span.required {
91   - color: red;
92   -}
93   -form.mform div.error {
94   - border: 1px solid red;
95   - padding: 5px;
96   - color: inherit;
97   -}
98 theme/standard/styles_layout.css
@@ -6,6 +6,7 @@
6 6
7 7 Styles are organised into the following sections:
8 8 core
  9 + forms
9 10 header
10 11 footer
11 12
@@ -272,7 +273,104 @@ div.hide {
272 273 display:none;
273 274 }
274 275
  276 +/***
  277 + *** Forms
  278 + ***/
  279 +
  280 +form.mform {
  281 + margin: 0;
  282 + padding: 0;
  283 + width: 100%;
  284 +}
  285 +form.mform fieldset {
  286 + border: 1px solid black;
  287 + padding: 10px 0;
  288 + margin: 0;
  289 + width:100%;
  290 +}
  291 +form.mform fieldset.hidden, form.mform fieldset.felement {
  292 + border: 0;
  293 +}
  294 +form.mform fieldset.felement {
  295 + width: auto;
  296 +}
  297 +form.mform fieldset legend {
  298 + font-weight: bold;
  299 +}
  300 +
  301 +form.mform div.fitem {
  302 + clear: both;
  303 + width: 100%;
  304 + min-height: 1.5em;
  305 +}
  306 +/* uncomment this and edit formslib.php for
  307 +ol li containers for form items.
  308 +
  309 +form.mform fieldset li.qfrow {
  310 + list-style: none;
  311 + padding: 5px;
  312 + margin: 0;
  313 + clear: both;
  314 + width: 100%;
  315 + min-height: 1.5em;
  316 +}
  317 +form.mform fieldset ol {
  318 + margin: 0;
  319 + padding: 0;
  320 +}*/
  321 +form.mform label {
  322 + display: block;
  323 + float: left;
  324 + width: 30%;
  325 + padding: 0;
  326 + margin: 0 0 0 0;
  327 + text-align: right;
  328 +}
  329 +div.fitem fieldset.fgroup label, div.fradio label, div.fcheckbox label{
  330 + display:inline;
  331 + float: none;
  332 + width: auto;
  333 +}
  334 +
  335 +form.mform div.felement, form.mform fieldset.felement{
  336 + display: block;
  337 + float: left;
  338 + margin: 5px 0 0 10px;
  339 + padding: 0;
  340 + text-align:left;
  341 +}
  342 +
  343 +form.mform div.fdescription {
  344 + clear: both;
  345 + min-height: 1.5em;
  346 +}
275 347
  348 +form.mform input, form.mform select {
  349 + width: auto;
  350 +}
  351 +form.mform ftextarea {
  352 +}
  353 +form.mform br {
  354 + clear: left;
  355 +}
  356 +form.mform div.fhtmleditor {
  357 + margin: 0 auto 10px auto;
  358 + width : 600px;
  359 + clear:both;
  360 + float:none;
  361 +}
  362 +form.mform span.error, form.mform span.required {
  363 + color: red;
  364 +}
  365 +form.mform div.error,form.mform fieldset.error {
  366 + border: 1px solid red;
  367 + padding: 5px;
  368 + color: inherit;
  369 +}
  370 +
  371 +
  372 +
  373 +
276 374 /***
277 375 *** Header
278 376 ***/
2  theme/standardblue/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/standardgreen/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/standardlogo/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/standardred/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/standardwhite/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_moz');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the
2  theme/wood/config.php
@@ -13,7 +13,7 @@
13 13 ////////////////////////////////////////////////////////////////////////////////
14 14
15 15
16   -$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color','styles_form');
  16 +$THEME->standardsheets = array('styles_layout','styles_fonts','styles_color');
17 17
18 18 /// This variable can be set to an array containing
19 19 /// filenames from the *STANDARD* theme. If the

0 comments on commit 909ec80

Please sign in to comment.
Something went wrong with that request. Please try again.