MDL-40063/MDL-45057 quiz: disable firing of override events
[moodle.git] / install / css.php
blob2baa033cff1666d055f76aa80df9ea645e1b66ed
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
4 // Moodle is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // Moodle is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17 /**
18 * This script prints basic CSS for the installer
20 * @package core
21 * @subpackage install
22 * @copyright 2011 Petr Skoda (http://skodak.org)
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26 if (file_exists(dirname(dirname(__FILE__)).'/config.php')) {
27 // already installed
28 die;
31 // include only the necessary stuff from themes, keep this small otherwise IE will complain...
33 // MDL-43839 IE9 cannot handle all of our css.
34 // Once IE9 is no longer supported we can include 'bootstrapbase/style/moodle.css'
35 // and remove some of the CSS in $content.
36 $files = array('');
38 $content = '';
40 foreach($files as $file) {
41 $content .= file_get_contents(dirname(dirname(__FILE__)).'/theme/'.$file) . "\n";
44 $content .= "
46 body {
47 padding: 4px;
50 .headermain {
51 margin: 15px;
54 h2 {
55 text-align:center;
58 input, textarea, .uneditable-input {
59 width: 50%;
62 #installdiv {
63 width: 800px;
64 margin-left:auto;
65 margin-right:auto;
68 #installdiv dt {
69 font-weight: bold;
72 #installdiv dd {
73 padding-bottom: 0.5em;
76 .stage {
77 margin-top: 2em;
78 margin-bottom: 2em;
79 width: 100%;
80 padding:25px;
83 #installform {
84 width: 100%;
87 #nav_buttons input {
88 margin: 5px;
91 #envresult {
92 text-align:left;
93 width: auto;
94 margin-left:10em;
97 #envresult dd {
98 color: red;
101 .formrow {
102 clear:both;
103 text-align:left;
104 padding: 8px;
107 .formrow label.formlabel {
108 display:block;
109 float:left;
110 width: 160px;
111 margin-right:5px;
112 text-align:right;
115 .formrow .forminput {
116 display:block;
117 float:left;
120 fieldset {
121 text-align:center;
122 border:none;
125 .hint {
126 display:block;
127 clear:both;
128 padding-left: 265px;
129 color: red;
132 .configphp {
133 text-align:left;
134 background-color:white;
135 padding:1em;
136 width:95%;
139 .stage6 .stage {
140 font-weight: bold;
141 color: red;
145 MDL-43839 IE9 cannot handle all of our CSS.
146 Once IE9 is no longer supported we can include 'bootstrapbase/style/moodle.css' above
147 and remove the following.
149 body {
150 font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
151 font-size: 14px;
153 .breadcrumb {
154 background-color: rgb(245, 245, 245);
155 padding: 8px 15px;
158 End of MDL-43839 IE9 specific CSS.
163 // fix used urls
164 $content = str_replace('[[pix:theme|hgradient]]', '../theme/standard/pix/hgradient.jpg', $content);
165 $content = str_replace('[[pix:theme|vgradient]]', '../theme/standard/pix/vgradient.jpg', $content);
167 @header('Content-Disposition: inline; filename="css.php"');
168 @header('Cache-Control: no-store, no-cache, must-revalidate');
169 @header('Cache-Control: post-check=0, pre-check=0', false);
170 @header('Pragma: no-cache');
171 @header('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
172 @header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
173 @header('Accept-Ranges: none');
174 @header('Content-Type: text/css; charset=utf-8');
176 echo $content;