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(__DIR__
.'/../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(__DIR__
.'/../theme/'.$file) . "\n";
51 direction: ltr !important;
62 textarea, .uneditable-input {
79 padding-bottom: 0.5em;
118 MDL-43839 IE9 cannot handle all of our CSS.
119 Once IE9 is no longer supported we can include 'bootstrapbase/style/moodle.css' above
120 and remove the following.
126 border-top: 2px solid #ddd;
140 html[dir=rtl] .fitemtitle {
145 display: inline-block;
152 html[dir=rtl] .fitemelement {
161 padding: 8px 35px 8px 14px;
163 text-shadow: 0 1px 0 rgba(255,255,255,0.5);
164 background-color: #fcf8e3;
165 border: 1px solid #fbeed5;
166 -webkit-border-radius: 4px;
167 -moz-border-radius: 4px;
173 background-color: #d9edf7;
174 border-color: #bce8f1;
179 background-color: #dff0d8;
180 border-color: #d6e9c6;
185 background-color: #f2dede;
186 border-color: #eed3d7;
195 word-break: break-all;
196 word-wrap: break-word;
198 white-space: pre-wrap;
199 background-color: #f5f5f5;
200 border: 1px solid #ccc;
201 border: 1px solid rgba(0,0,0,0.15);
202 -webkit-border-radius: 4px;
203 -moz-border-radius: 4px;
211 input[type="button"], input[type="submit"] {
212 margin: 0 0 10px 5px;
213 display: inline-block;
219 text-shadow: 0 1px 1px rgba(255,255,255,0.75);
220 vertical-align: middle;
222 background-color: #f5f5f5;
223 background-image: -moz-linear-gradient(top,#fff,#e6e6e6);
224 background-image: -webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));
225 background-image: -webkit-linear-gradient(top,#fff,#e6e6e6);
226 background-image: -o-linear-gradient(top,#fff,#e6e6e6);
227 background-image: linear-gradient(to bottom,#fff,#e6e6e6);
228 background-repeat: repeat-x;
229 border: 1px solid #ccc;
230 border-color: #e6e6e6 #e6e6e6 #bfbfbf;
231 border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
232 border-bottom-color: #b3b3b3;
233 -webkit-border-radius: 4px;
234 -moz-border-radius: 4px;
236 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff',endColorstr='#ffe6e6e6',GradientType=0);
237 filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
238 -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
239 -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
240 box-shadow: inset 0 1px 0 rgba(255,255,255,0.2),0 1px 2px rgba(0,0,0,0.05);
243 input[type="button"]:hover, input[type="submit"]:hover, input[type="button"]:focus, input[type="submit"]:focus {
245 text-decoration: none;
246 background-position: 0 -15px;
247 -webkit-transition: background-position .1s linear;
248 -moz-transition: background-position .1s linear;
249 -o-transition: background-position .1s linear;
250 transition: background-position .1s linear;
253 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] {
255 background-color: #e6e6e6;
258 button, input, select, textarea {
262 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"] {
263 display: inline-block;
270 vertical-align: middle;
271 -webkit-border-radius: 4px;
272 -moz-border-radius: 4px;
277 background-color: #fff;
278 border: 1px solid #ccc;
281 label, select, button, input[type="button"], input[type="submit"], input[type="radio"], input[type="checkbox"] {
286 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"] {
287 display: inline-block;
294 vertical-align: middle;
295 -webkit-border-radius: 4px;
296 -moz-border-radius: 4px;
300 select, input[type="file"] {
305 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"] {
306 background-color: #fff;
307 border: 1px solid #ccc;
308 -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
309 -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
310 box-shadow: inset 0 1px 1px rgba(0,0,0,0.075);
311 -webkit-transition: border linear .2s,box-shadow linear .2s;
312 -moz-transition: border linear .2s,box-shadow linear .2s;
313 -o-transition: border linear .2s,box-shadow linear .2s;
314 transition: border linear .2s,box-shadow linear .2s;
317 input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly] {
319 background-color: #eee;
324 text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
325 background-color: #005aa8;
326 background-image: -moz-linear-gradient(top,#0070a8,#0038a8);
327 background-image: -webkit-gradient(linear,0 0,0 100%,from(#0070a8),to(#0038a8));
328 background-image: -webkit-linear-gradient(top,#0070a8,#0038a8);
329 background-image: -o-linear-gradient(top,#0070a8,#0038a8);
330 background-image: linear-gradient(to bottom,#0070a8,#0038a8);
331 background-repeat: repeat-x;
332 border-color: #0038a8 #0038a8 #001e5c;
333 border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
334 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0070a8',endColorstr='#ff0038a8',GradientType=0);
335 filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
338 input.btn-primary:hover,
339 input.btn-primary:active,
340 input.btn-primary:focus {
342 background-color: #0038a8;
347 background-color: #f5f5f5;
353 background-color: #f5f5f5;
354 -webkit-border-radius: 4px;
355 -moz-border-radius: 4px;
360 display: inline-block;
361 text-shadow: 0 1px 0 #fff;
366 font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
372 background-color: rgb(245, 245, 245);
376 End of MDL-43839 IE9 specific CSS.
382 $content = str_replace('[[pix:theme|hgradient]]', '../theme/standard/pix/hgradient.jpg', $content);
383 $content = str_replace('[[pix:theme|vgradient]]', '../theme/standard/pix/vgradient.jpg', $content);
385 @header
('Content-Disposition: inline; filename="css.php"');
386 @header
('Cache-Control: no-store, no-cache, must-revalidate');
387 @header
('Cache-Control: post-check=0, pre-check=0', false);
388 @header
('Pragma: no-cache');
389 @header
('Expires: Mon, 20 Aug 1969 09:23:00 GMT');
390 @header
('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
391 @header
('Accept-Ranges: none');
392 @header
('Content-Type: text/css; charset=utf-8');