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 @@ - - + + - \ 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'; -?> - - $this->theme]); ?> +InlineStyleAssets::register($this); +?>
diff --git a/views/global/html.php b/views/global/html.php index d17223c4..87aef499 100644 --- a/views/global/html.php +++ b/views/global/html.php @@ -1,16 +1,23 @@ hasAttribute('cssClass') && !empty($page->cssClass)) ? $page->cssClass : 'custom-pages-page'; -?> - - $this->theme]); ?> +InlineStyleAssets::register($this); +?>
diff --git a/views/global/markdown.php b/views/global/markdown.php index 2451b348..7a266b3f 100644 --- a/views/global/markdown.php +++ b/views/global/markdown.php @@ -1,18 +1,24 @@ hasAttribute('cssClass') && !empty($page->cssClass)) ? $page->cssClass : 'custom-pages-page'; -?> - - $this->theme]); ?> +InlineStyleAssets::register($this); +?> hasTarget(Page::NAV_CLASS_ACCOUNTNAV)): ?>
diff --git a/widgets/CustomPageInlineStyle.php b/widgets/CustomPageInlineStyle.php deleted file mode 100644 index 4a076f2c..00000000 --- a/widgets/CustomPageInlineStyle.php +++ /dev/null @@ -1,28 +0,0 @@ -theme->variable('link', $this->theme->variable('info')); - return $this->render('inline-style', [ - 'linkColor' => $linkColor, - ]); - } - -} diff --git a/widgets/views/inline-style.php b/widgets/views/inline-style.php deleted file mode 100644 index cdd0e48b..00000000 --- a/widgets/views/inline-style.php +++ /dev/null @@ -1,15 +0,0 @@ - - - -