From d6b13edea1f2b2f9534e90a8d8f391b6ba951012 Mon Sep 17 00:00:00 2001
From: Ron Lucke <lucke@elan-ev.de>
Date: Fri, 16 Dec 2022 11:52:04 +0000
Subject: [PATCH] Zitatformatierung: Auf kontrastreiche Darstellung anpassen

Closes #1375

Merge request studip/studip!1253
---
 .../assets/stylesheets/scss/blockquote.scss   | 21 +++++++++++++++++++
 .../assets/stylesheets/scss/blubber.scss      |  3 ---
 resources/assets/stylesheets/studip.scss      | 15 +------------
 3 files changed, 22 insertions(+), 17 deletions(-)
 create mode 100644 resources/assets/stylesheets/scss/blockquote.scss

diff --git a/resources/assets/stylesheets/scss/blockquote.scss b/resources/assets/stylesheets/scss/blockquote.scss
new file mode 100644
index 00000000000..40643ba5c80
--- /dev/null
+++ b/resources/assets/stylesheets/scss/blockquote.scss
@@ -0,0 +1,21 @@
+blockquote {
+    background-color: $dark-gray-color-5;
+    border-left: 3px solid $base-color;
+    padding: 4px 10px;
+    margin: 0 0 8px;
+    color: black;
+    > .author {
+        margin-bottom: 4px;
+        color: black;
+        font-weight: 600;
+    }
+    blockquote {
+        background-color: white;
+        blockquote {
+            background-color: $dark-gray-color-5;
+            blockquote {
+                background-color: white;
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/resources/assets/stylesheets/scss/blubber.scss b/resources/assets/stylesheets/scss/blubber.scss
index a5bc943df81..d1dae8a9254 100644
--- a/resources/assets/stylesheets/scss/blubber.scss
+++ b/resources/assets/stylesheets/scss/blubber.scss
@@ -207,9 +207,6 @@
                     > .name {
                         display: none;
                     }
-                    blockquote {
-                        background-color: rgba(255, 255, 255, 0.1);
-                    }
                 }
                 > .avatar {
                     display: none;
diff --git a/resources/assets/stylesheets/studip.scss b/resources/assets/stylesheets/studip.scss
index 8e8734ec982..7226eeabace 100644
--- a/resources/assets/stylesheets/studip.scss
+++ b/resources/assets/stylesheets/studip.scss
@@ -18,6 +18,7 @@
 @import "scss/avatar";
 @import "scss/badges";
 @import "scss/big-image-handler";
+@import "scss/blockquote.scss";
 @import "scss/blubber";
 @import "scss/buttons";
 @import "scss/clipboard";
@@ -122,18 +123,4 @@
     display: none;
 }
 
-blockquote {
-    border-left: 3px solid $brand-color-lighter;
-    padding: 5px 5px 5px 8px;
-    margin: 8px 8px 8px 0;
-
-    background-color: rgba(0,0,0,0.05);
-    > .author {
-        background-color: $brand-color-lighter;
-        color: $white;
-        padding: 4px 4px 4px 15px;
-        margin: -5px -5px 5px -10px;
-    }
-}
-
 div.indent { margin-left: 2em; }
-- 
GitLab