From: Petr Skoda Date: Sun, 20 Dec 2009 19:41:47 +0000 (+0000) Subject: MDL-20204 more BC in standard theme CSS X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6f0a938be5589dc37d57e49c3f1a7d04c903a01c;p=moodle.git MDL-20204 more BC in standard theme CSS --- diff --git a/lib/yui/readme_moodle.txt b/lib/yui/readme_moodle.txt index f8d53a7735..8996a6dcd5 100644 --- a/lib/yui/readme_moodle.txt +++ b/lib/yui/readme_moodle.txt @@ -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) + diff --git a/theme/base/style/core.css b/theme/base/style/core.css index be4b6bd3a2..7acc76456e 100644 --- a/theme/base/style/core.css +++ b/theme/base/style/core.css @@ -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 **/ diff --git a/theme/standard/config.php b/theme/standard/config.php index 1afa85babf..0b723f5a74 100644 --- a/theme/standard/config.php +++ b/theme/standard/config.php @@ -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 index 0000000000..9127f1cfd1 --- /dev/null +++ b/theme/standard/style/styles_hacks.css @@ -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; +} diff --git a/theme/standard/style/styles_layout.css b/theme/standard/style/styles_layout.css index a979d9dd80..edef2d08f2 100644 --- a/theme/standard/style/styles_layout.css +++ b/theme/standard/style/styles_layout.css @@ -33,24 +33,10 @@ *** 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;