diff --git a/Events.php b/Events.php index d992548..fd0863f 100644 --- a/Events.php +++ b/Events.php @@ -8,21 +8,6 @@ class Events { - public static function onAdminMenuInit($event) - { - $event->sender->addItem([ - 'label' => Yii::t('FlexThemeModule.admin', 'Flex Theme'), - 'url' => Url::to(['/flex-theme/config']), - 'group' => 'manage', - 'icon' => Icon::get('paint-brush'), - 'isActive' => (Yii::$app->controller->module - && Yii::$app->controller->module->id === 'flex-theme' - && (Yii::$app->controller->id === 'page' || Yii::$app->controller->id === 'config')), - 'sortOrder' => 900, - 'isVisible' => true, - ]); - } - public static function onConsoleInit($event) { $event->sender->controllerMap['flex-theme'] = commands\DevController::class; diff --git a/Module.php b/Module.php index ac72a95..f7b5037 100644 --- a/Module.php +++ b/Module.php @@ -1,4 +1,5 @@ :root {--default:#00ff00; ... }`. - -This makes it possible to switch colors without changes to the theme.css. - -### Replaced LESS functions - -HumHub uses LESS functions as lighten(), darken() or fade(). Those do not work when color variables contain CSS variables instead of concrete colors. - -** This is currently reworked !!! ** -That's why the import of some files is prevented via `@prev-...` in css-vars.less. -Those files are replaced and the lightened, darkened and faded colors are replaced by LESS variables like `info-darken-5`. - -The calculation of those is done via `helpers/ColorHelper`. - -When the module is enabled those "special color variables" are calculated using the colors of the Community Theme as base.