diff --git a/assets/Assets.php b/assets/Assets.php index baca557c..a47557a7 100644 --- a/assets/Assets.php +++ b/assets/Assets.php @@ -1,4 +1,9 @@ - - + + = Yii::t('CustomPagesModule.modules_template_widgets_views_templatePageEditButton', 'Edit Page') ?> - \ No newline at end of file + diff --git a/resources/custom-pages.css b/resources/css/custom-pages.css similarity index 100% rename from resources/custom-pages.css rename to resources/css/custom-pages.css diff --git a/resources/css/inline.css b/resources/css/inline.css new file mode 100644 index 00000000..13defbf0 --- /dev/null +++ b/resources/css/inline.css @@ -0,0 +1,7 @@ +.custom-pages-page a, .panel .panel-body p a { + color: var(--link); +} +.custom-pages-page a:hover, .panel .panel-body p a:hover { + color: var(--link); + text-decoration: underline; +} diff --git a/views/container/markdown.php b/views/container/markdown.php index c702b146..a398f800 100644 --- a/views/container/markdown.php +++ b/views/container/markdown.php @@ -1,17 +1,25 @@ hasAttribute('cssClass') && !empty($page->cssClass)) ? $page->cssClass : 'custom-pages-page'; -?> - -= CustomPageInlineStyle::widget(['theme' => $this->theme]); ?> +InlineStyleAssets::register($this); +?> = PageConfigurationButton::widget() ?>