2 // This file is part of Moodle - http://moodle.org/
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.
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/>.
18 * This script prints basic CSS for the installer
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')) {
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.
40 foreach($files as $file) {
41 $content .= file_get_contents(dirname(dirname(__FILE__
)).'/theme/'.$file) . "\n";
58 textarea, .uneditable-input {
75 padding-bottom: 0.5em;
113 MDL-43839 IE9 cannot handle all of our CSS.
114 Once IE9 is no longer supported we can include 'bootstrapbase/style/moodle.css' above
115 and remove the following.
121 border-top: 2px solid #ddd;
135 html[dir=rtl] .fitemtitle {
140 display: inline-block;
147 html[dir=rtl] .fitemelement {
156 padding: 8px 35px 8px 14px;
158 text-shadow: 0 1px 0 rgba(255,255,255,0.5);
159 background-color: #fcf8e3;
160 border: 1px solid #fbeed5;
161 -webkit-border-radius: 4px;
162 -moz-border-radius: 4px;
168 background-color: #d9edf7;
169 border-color: #bce8f1;
174 background-color: #dff0d8;
175 border-color: #d6e9c6;
180 background-color: #f2dede;
181 border-color: #eed3d7;
190 word-break: break-all;
191 word-wrap: break-word;
193 white-space: pre-wrap;
194 background-color: #f5f5f5;
195 border: 1px solid #ccc;
196 border: 1px solid rgba(0,0,0,0.15);
197 -webkit-border-radius: 4px;
198 -moz-border-radius: 4px;
206 input[type="button"], input[type="submit"] {
207 margin: 0 0 10px 5px;
208 display: inline-block;
214 text-shadow: 0 1px 1px rgba(255,255,255,0.75);
215 vertical-align: middle;
217 background-color: #f5f5f5;
218 background-image: -moz-linear-gradient(top,#fff,#e6e6e6);
219 background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));
220 background-image: -webkit-linear-gradient(top,#fff,#e6e6e6);
221 background-image: -o-linear-gradient(top,#fff,#e6e6e6);
222 background-image: linear-gradient(to bottom,#fff,#e6e6e6);
223 background-repeat: repeat-x;
224 border: 1px solid #ccc;
225 border-color: #e6e6e6 #e6e6e6 #bfbfbf;
226 border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
227 border-bottom-color: #b3b3b3;
228 -webkit-border-radius: 4px;
229 -moz-border-radius: 4px;
231 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);
232 filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
233 -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
234 -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
235 box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
238 input[type="button"]:hover, input[type="submit"]:hover, input[type="button"]:focus, input[type="submit"]:focus {
240 text-decoration: none;
241 background-position: 0 -15px;
242 -webkit-transition: background-position .1s linear;
243 -moz-transition: background-position .1s linear;
244 -o-transition: background-position .1s linear;
245 transition: background-position .1s linear;
248 input[type="button"]:hover, input[type="submit"]:hover, input[type="button"]:focus, input[type="submit"]:focus, input[type="button"]:active, input[type="submit"]:active, input[type="button"].active, input[type="submit"].active, input[type="button"].disabled, input[type="submit"].disabled, input[type="reset"].disabled, input[type="submit"][disabled], input[type="reset"][disabled] {
250 background-color: #e6e6e6;
253 button, input, select, textarea {
257 select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] {
258 display: inline-block;
265 vertical-align: middle;
266 -webkit-border-radius: 4px;
267 -moz-border-radius: 4px;
272 background-color: #fff;
273 border: 1px solid #ccc;
276 label, select, button, input[type="button"], input[type="submit"], input[type="radio"], input[type="checkbox"] {
281 select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] {
282 display: inline-block;
289 vertical-align: middle;
290 -webkit-border-radius: 4px;
291 -moz-border-radius: 4px;
295 select, input[type="file"] {
300 textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] {
301 background-color: #fff;
302 border: 1px solid #ccc;
303 -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
304 -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
305 box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
306 -webkit-transition: border linear .2s,box-shadow linear .2s;
307 -moz-transition: border linear .2s,box-shadow linear .2s;
308 -o-transition: border linear .2s,box-shadow linear .2s;
309 transition: border linear .2s,box-shadow linear .2s;
312 input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] {
314 background-color: #eee;
319 text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
320 background-color: #005aa8;
321 background-image: -moz-linear-gradient(top,#0070a8,#0038a8);
322 background-image: -webkit-gradient(linear,0 0,0 100%,from(#0070a8),to(#0038a8));
323 background-image: -webkit-linear-gradient(top,#0070a8,#0038a8);
324 background-image: -o-linear-gradient(top,#0070a8,#0038a8);
325 background-image: linear-gradient(to bottom,#0070a8,#0038a8);
326 background-repeat: repeat-x;
327 border-color: #0038a8 #0038a8 #001e5c;
328 border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
329 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0070a8',endColorstr='#ff0038a8',GradientType=0);
330 filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
333 input.btn-primary:hover,
334 input.btn-primary:active,
335 input.btn-primary:focus {
337 background-color: #0038a8;
342 background-color: #f5f5f5;
348 background-color: #f5f5f5;
349 -webkit-border-radius: 4px;
350 -moz-border-radius: 4px;
355 display: inline-block;
356 text-shadow: 0 1px 0 #fff;
361 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
367 background-color: rgb(245, 245, 245);
371 End of MDL-43839 IE9 specific CSS.
377 $content = str_replace('[[pix:theme|hgradient]]', '../theme/standard/pix/hgradient.jpg', $content);
378 $content = str_replace('[[pix:theme|vgradient]]', '../theme/standard/pix/vgradient.jpg', $content);
380 @header
('Content-Disposition: inline; filename="css.php"');
381 @header
('Cache-Control: no-store, no-cache, must-revalidate');
382 @header
('Cache-Control: post-check=0, pre-check=0', false);
383 @header
('Pragma: no-cache');
384 @header
('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
385 @header
('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
386 @header
('Accept-Ranges: none');
387 @header
('Content-Type: text/css; charset=utf-8');