MDL-44358 inform developers that CSS handling was refactored

This commit is contained in:
Petr Škoda 2014-03-03 14:19:12 +08:00
parent 98245a84a2
commit 31f28b6ac2
3 changed files with 12 additions and 1 deletions

View file

@ -15,10 +15,12 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* This file contains CSS related class, and function for the CSS optimiser
* This file contains CSS related class, and function for the CSS optimiser.
*
* Please see the {@link css_optimiser} class for greater detail.
*
* NOTE: these functions are not expected to be used from any addons.
*
* @package core
* @subpackage cssoptimiser
* @copyright 2012 Sam Hemelryk

View file

@ -721,6 +721,8 @@ class theme_config {
/**
* Get the whole css stylesheet for production mode.
*
* NOTE: this method is not expected to be used from any addons.
*
* @return string CSS markup, already optimised and compressed
*/
public function get_css_content() {
@ -761,6 +763,8 @@ class theme_config {
* Get the theme designer css markup,
* the parameters are coming from css_urls().
*
* NOTE: this method is not expected to be used from any addons.
*
* @param string $type
* @param string $subtype
* @param string $sheet
@ -837,6 +841,9 @@ class theme_config {
/**
* Get the whole css stylesheet for editor iframe.
*
* NOTE: this method is not expected to be used from any addons.
*
* @return string CSS markup
*/
public function get_css_content_editor() {

View file

@ -3,6 +3,8 @@ information provided here is intended especially for theme designer.
=== 2.7 ===
* CSS related functions in theme class and csslib.php were refactored, addons that are
using this private API need to be updated
* Please update your css to use 'tr:nth-of-type(odd/even)' instead of '.ro/.r1' to apply tr specific css for various tables.
These classes are deprecated now and will be removed in Moodle 2.9. This has done to better support styling tables that will be altered by JavaScript.
Here is an example to update your css: