]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20204 more BC in standard theme CSS
authorPetr Skoda <skodak@moodle.org>
Sun, 20 Dec 2009 19:41:47 +0000 (19:41 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 20 Dec 2009 19:41:47 +0000 (19:41 +0000)
lib/yui/readme_moodle.txt
theme/base/style/core.css
theme/standard/config.php
theme/standard/style/styles_hacks.css [new file with mode: 0644]
theme/standard/style/styles_layout.css

index f8d53a7735e1a613719d71a002b85c45386cfb90..8996a6dcd5265f7b613797f8306615911d071058 100644 (file)
@@ -6,6 +6,9 @@ from:
 
 Changes: NONE
 
+Notes:
+* current YUI versions numbers have to be specified in lib/setup.php
+
 Added to Moodle 13 July 2006
 Updated to YUI 0.12.0, 23 November 2006
 Updated to YUI 0.12.1, 8 January 2007
@@ -15,3 +18,4 @@ Updated to YUI 2.5.2, 25 July 2008
 Updated to YUI 2.6.0, 03 October 2008
 Updated to YUI 2.7.0, 14 May 2009 (2.0dev only)
 Updated to YUI 2.8.0r4+3.0.0, 12 December 2009 (2.0dev only)
+
index be4b6bd3a2712cf813038345a60e5bb81be18313..7acc76456e7ff8baf8cbb13a6d2ffad5cc3fae47 100644 (file)
@@ -1,3 +1,15 @@
+
+/* custom moodle style resets, differencies from the YUI reset */
+
+.dir-ltr {
+  text-align: left;
+}
+
+.dir-rtl {
+  text-align: right;
+}
+
+
 /***
  * Accessibility features
  **/
index 1afa85babf8004e655ac2da5ee631e4a57c6c115..0b723f5a74711aa1cff7ef212b23840013ad6059 100644 (file)
@@ -40,7 +40,12 @@ $THEME->parents = array();
 //       we need to go through all these and fix them.
 //       This means we will gradually put these back into plugins
 //       directories
-$THEME->sheets = array('styles_layout', 'styles_fonts', 'styles_color', 'styles_moz',
+$THEME->sheets = array(
+    'styles_hacks',
+    'styles_layout',
+    'styles_fonts',
+    'styles_color',
+    'styles_moz',
     'block_blog_tags',
     'block_calendar_month',
     'block_calendar_upcoming',
diff --git a/theme/standard/style/styles_hacks.css b/theme/standard/style/styles_hacks.css
new file mode 100644 (file)
index 0000000..9127f1c
--- /dev/null
@@ -0,0 +1,23 @@
+
+/* a few ugly hacks that undo some parts of the CSS reset from YUI for now */
+
+.dir-ltr {
+  text-align: left;
+}
+
+.dir-rtl {
+  text-align: right;
+}
+
+ul li {
+ list-style-type: none;
+}
+
+h1.main,
+h2.main,
+h3.main,
+h4.main,
+h5.main,
+h6.main {
+  text-align: center;
+}
index a979d9dd80ed73f1c866ceaf2237beb4b7e7f1a9..edef2d08f20934e0725e3da9d5528e0cb430c6a0 100644 (file)
  *** Core
  ***/
 
-h1.main,
-h2.main,
-h3.main,
-h4.main,
-h5.main,
-h6.main {
-  text-align: center;
-}
-
 body {
  padding: 4px;
 }
 
-/* ugly ugly hack, undo the CSS reset from YUI for now */
-ul li {
- list-style-type: none;
-}
-
 #layout-table {
   width:100%;
   border-collapse:separate;