From 9a9f60e3c3f9c5d4a006f37ed1eb339eaaa0bebb Mon Sep 17 00:00:00 2001 From: Draconizations Date: Fri, 3 Jun 2022 17:34:50 +0200 Subject: [PATCH] feat(dashboard): better pre styling --- dashboard/styles/dark.scss | 4 ++++ dashboard/styles/generic.scss | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/dashboard/styles/dark.scss b/dashboard/styles/dark.scss index 049b2c17..49300315 100644 --- a/dashboard/styles/dark.scss +++ b/dashboard/styles/dark.scss @@ -15,6 +15,10 @@ } } + pre { + background-color: $dark-alt; + } + // bootstrap .nav-tabs * .nav-link { background-color: $body-bg-alt !important; diff --git a/dashboard/styles/generic.scss b/dashboard/styles/generic.scss index c7d9ad39..0e2191e1 100644 --- a/dashboard/styles/generic.scss +++ b/dashboard/styles/generic.scss @@ -28,6 +28,13 @@ blockquote { border-left: 4px solid $gray-transparent; // overwrite this in the individual styles } +pre { + white-space: pre-wrap; + word-break: break-word !important; + overflow-wrap: break-word !important; + background-color: var(--bs-light); + padding: 0.375rem; + border-radius: 5px; } .dyslexic {