From 646b7149202938c225fe18b55b3f3eada6affee0 Mon Sep 17 00:00:00 2001 From: Jon Uhlmann Date: Fri, 29 Jan 2021 16:33:10 +0100 Subject: [PATCH] Fix: Don't affect Neos menu in module --- Resources/Private/Modules/Views/Index.fusion | 126 ++++++++++--------- Resources/Public/Module.css | 28 ++--- 2 files changed, 78 insertions(+), 76 deletions(-) diff --git a/Resources/Private/Modules/Views/Index.fusion b/Resources/Private/Modules/Views/Index.fusion index 3862471..bf007c3 100644 --- a/Resources/Private/Modules/Views/Index.fusion +++ b/Resources/Private/Modules/Views/Index.fusion @@ -9,84 +9,86 @@ Carbon.Plausible.PlausibleController { table = ${['domain', 'host', 'outboundLinks', 'hashBasedRouting', 'exclusions', 'customEvents']} renderer = afx` -

- Plausible - - -

+
+

+ Plausible + + +

-

- - {Translation.translate('plausible.status.disabled', 'Plausible is disabled', [], 'Module', 'Carbon.Plausible')} -

-

- - {Translation.translate('plausible.status.enabled', 'Plausible is enabled', [], 'Module', 'Carbon.Plausible')} -

- -

- {Translation.translate('cookieStatus.disabled', 'Tracking from {0} is disabled in this browser.', [props.requestMainDomain], 'Module', 'Carbon.Plausible')} -

-

- {Translation.translate('cookieStatus.enabled', 'Tracking from {0} is enabled in this browser.', [props.requestMainDomain], 'Module', 'Carbon.Plausible')} -

+

+ + {Translation.translate('plausible.status.disabled', 'Plausible is disabled', [], 'Module', 'Carbon.Plausible')} +

+

+ + {Translation.translate('plausible.status.enabled', 'Plausible is enabled', [], 'Module', 'Carbon.Plausible')} +

+

+ {Translation.translate('cookieStatus.disabled', 'Tracking from {0} is disabled in this browser.', [props.requestMainDomain], 'Module', 'Carbon.Plausible')} +

+

+ {Translation.translate('cookieStatus.enabled', 'Tracking from {0} is enabled in this browser.', [props.requestMainDomain], 'Module', 'Carbon.Plausible')} +

-
-

{Translation.translate('defaultSettings', 'Default settings', [], 'Module', 'Carbon.Plausible')}

- - - - - - - - - -
- -
-

{Translation.translate('siteMappings', 'Site mappings', [], 'Module', 'Carbon.Plausible')}

-

- {Translation.translate('noSiteMappings', 'No specific mapping set.', [], 'Module', 'Carbon.Plausible')} -

-
+

{Translation.translate('defaultSettings', 'Default settings', [], 'Module', 'Carbon.Plausible')}

- - +
- +
-
-
+ + ` } } diff --git a/Resources/Public/Module.css b/Resources/Public/Module.css index 6e5b8e8..38e3906 100644 --- a/Resources/Public/Module.css +++ b/Resources/Public/Module.css @@ -1,59 +1,59 @@ -.neos.neos strong { +.plausible.plausible strong { font-weight: bold; } -.neos.neos h2 { +.plausible.plausible h2 { font-size: 18px; margin: 2em 0 1em; } -.neos.neos h3 { +.plausible.plausible h3 { margin: 2em 0 1em; } -.neos .plausible-status .fa-check { +.plausible .plausible-status .fa-check { color: #00a338; margin-right: 0.5em; } -.neos .plausible-status .fa-times { +.plausible .plausible-status .fa-times { color: #ff8700; margin-right: 0.5em; } -.neos .plausible-markup { +.plausible .plausible-markup { margin: 0 0 2em; } -.neos .plausible-markup code { +.plausible .plausible-markup code { display: block; padding: 16px; background: #141414; } -.neos .plausible-error { +.plausible .plausible-error { background: #ff8700; padding: 16px; } -.neos .plausible-error strong { +.plausible .plausible-error strong { display: block; } -.neos .plausible-markup code:empty, -.neos .plausible-hide { +.plausible .plausible-markup code:empty, +.plausible .plausible-hide { display: none !important; } -.neos .plausible-row--error td { +.plausible .plausible-row--error td { background: #ff8700 !important; } -.neos .neos-button .fas { +.plausible .neos-button .fas { margin-right: 0.5em; } -.neos .neos-table th:first-child { +.plausible .neos-table th:first-child { width: 1%; white-space: nowrap; }