gustafn
committed
on 02 Sep 21
New CSS abstraction: xowiki::CSS

Before this change, the application developer was responsible to
initialize the CSS-speficic settings (suc… Show more
New CSS abstraction: xowiki::CSS

Before this change, the application developer was responsible to

initialize the CSS-speficic settings (such as setting default values

for parameter classes).  The new object xowiki::CSS is initialized

automatically, when an xowiki class (or one of its subclasses) is

initialized. Furthermore, it provides a per-thread caching to reduce

double work. Furthermore, the xowiki::CSS provides a mapping between

abstract and concrete CSS class names, such that switching between

different CSS toolkits becomes easier (e.g. upgrade from bootstrap 3

to newer versions).

  xowiki::CSS initialize         ;# make sure, everything is in line with PreferredCSSToolkit

  xowiki::CSS clear              ;# reset the mapping

  xowiki::CSS toolkit            ;# return the toolkit name

  xowiki::CSS class /classname/  ;# perform CSS class name mapping

The methods "setCSSDefaults" and "preferredCSSToolkit" as deprecated.

The version number was bumped to 5.10.0d81

Show less