ProfessionalWiki / chameleon

Provides a highly flexible and customizable skin using Bootstrap 4
https://www.mediawiki.org/wiki/Skin:Chameleon
Other
115 stars 63 forks source link

Examples on Creating a New Class #387

Closed lyrixn closed 1 year ago

lyrixn commented 1 year ago

Hello

I could not find an example on https://github.com/ProfessionalWiki/chameleon/blob/master/docs/variables.md

on how to create a new variable/class. We'd like to import some classes from Bootstrap 5. More specifically classes translate-middle, top-0 and start-50.

I tried:

$egChameleonExternalStyleVariables = [
  'translate-middle' => '(transform: translate(-50%,-50%)!important)'
];