From: Anton Khorev Date: Tue, 9 Apr 2024 14:21:44 +0000 (+0300) Subject: Adapt rich text to dark mode X-Git-Tag: live~190^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/9485b08cc13766b24ad0fa89122b4153f3c1209f?ds=sidebyside Adapt rich text to dark mode --- diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index eac3f7417..a04615a89 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -901,12 +901,12 @@ div.secondary-actions { .richtext, .prose { code { - background: $lightgrey; + background: var(--bs-secondary-bg); padding: 2px 3px; } pre { - background: $lightgrey; + background: var(--bs-secondary-bg); padding: 2px 3px; white-space: pre-wrap; @@ -917,17 +917,17 @@ div.secondary-actions { img { padding: $lineheight; - background-color: $offwhite; + background-color: var(--bs-tertiary-bg); display: block; max-width: 100%; margin: auto; } blockquote { - border-left: $lineheight solid $offwhite; + border-left: $lineheight solid var(--bs-tertiary-bg); padding-left: $lineheight; margin: 0; - color: $darkgrey; + color: var(--bs-secondary-color); } }