diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index aa08008e..fad2eb3c 100755 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -91,7 +91,7 @@ public function handleRequest(ServerRequestInterface $request): ResponseInterfac if (!in_array($currentAction, $this->allowedActions, true) && !in_array($currentAction, $this->allowedAjaxActions, true) ) { - throw new \RuntimeException('Not allowed action', 1672751508); + throw new \RuntimeException('Action not allowed', 1672751508); } $actionMethodName = $currentAction . 'Action'; return $this->$actionMethodName($request); @@ -304,7 +304,7 @@ private function flashMessagesAction(ServerRequestInterface $request): ResponseI $loremIpsum = GeneralUtility::makeInstance(KauderwelschService::class)->getLoremIpsum(); // We're writing to an own queue here to position the messages within the body. // Normal modules wouldn't usually do this and would let ModuleTemplate layout take care of rendering - // at some appropriate positions. + // at some appropriate position. $flashMessageQueue = $this->flashMessageService->getMessageQueueByIdentifier('styleguide.demo'); $flashMessageQueue->enqueue(GeneralUtility::makeInstance(FlashMessage::class, $loremIpsum, 'Info - Title for Info message', ContextualFeedbackSeverity::INFO, true)); $flashMessageQueue->enqueue(GeneralUtility::makeInstance(FlashMessage::class, $loremIpsum, 'Notice - Title for Notice message', ContextualFeedbackSeverity::NOTICE, true)); diff --git a/Resources/Private/Styles/backend.scss b/Resources/Private/Styles/backend.scss index 48c9ec74..4d2be70b 100644 --- a/Resources/Private/Styles/backend.scss +++ b/Resources/Private/Styles/backend.scss @@ -1,21 +1,14 @@ // Navigation scaffold -@media (min-width: 769px) { - #container-navigation { - position: fixed; - width: 260px; - } - #container-content { - margin-left: 300px; - } - @media (max-height: 660px) { - #container-navigation { - position: absolute; - } - } +#tx-styleguide-navigation { + position: fixed; + width: 260px; +} +#tx-styleguide-content { + margin-left: 300px; } -// Example -.example { +// Code and example rendering +#tx-styleguide-content .example { background-color: var(--typo3-component-bg); border: var(--typo3-component-border-width) solid var(--typo3-component-border-color); padding: var(--typo3-spacing); @@ -31,20 +24,10 @@ margin-bottom: var(--typo3-spacing); } &.code { - font-family: var(--typo3-font-family-code); &:before { content: 'EXAMPLE CODE'; } } - pre { - font-size: var(--typo3-component-font-size); - margin: 0; - } - pre[class*="language-"] { - border-radius: calc(var(--typo3-component-border-radius) / 2); - color: var(--typo3-component-color); - margin: 0; - } pre code { overflow: auto; width: 100%; @@ -53,15 +36,13 @@ } // Icon module -div.icon-container { +#tx-styleguide-content .icon-container { border: 1px solid transparent; margin-bottom: 20px; height: 100px; - &.icon-deprecated-container { height: 175px; } - span.icon-container-icon, span.icon-container-label { display: block; diff --git a/Resources/Private/Templates/Backend/Accordion.html b/Resources/Private/Templates/Backend/Accordion.html index 87943706..0af7a570 100755 --- a/Resources/Private/Templates/Backend/Accordion.html +++ b/Resources/Private/Templates/Backend/Accordion.html @@ -8,10 +8,10 @@ -
+
-
+

diff --git a/Resources/Private/Templates/Backend/Avatar.html b/Resources/Private/Templates/Backend/Avatar.html index 72c524dd..59a4f9f7 100755 --- a/Resources/Private/Templates/Backend/Avatar.html +++ b/Resources/Private/Templates/Backend/Avatar.html @@ -9,10 +9,10 @@ -
+
-
+

diff --git a/Resources/Private/Templates/Backend/Buttons.html b/Resources/Private/Templates/Backend/Buttons.html index 4f387fb5..2264a8b4 100755 --- a/Resources/Private/Templates/Backend/Buttons.html +++ b/Resources/Private/Templates/Backend/Buttons.html @@ -9,10 +9,10 @@ -
+
-
+