From 57899f8851e56fc8deb1d70d97611554922a989d Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Tue, 9 Apr 2024 02:15:33 +0300 Subject: [PATCH] Adapt About page backgrounds to dark mode --- app/assets/stylesheets/common.scss | 2 -- app/views/site/about.html.erb | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/common.scss b/app/assets/stylesheets/common.scss index eac3f7417..f88e75f2e 100644 --- a/app/assets/stylesheets/common.scss +++ b/app/assets/stylesheets/common.scss @@ -984,8 +984,6 @@ div.secondary-actions { } .site-about #content { - background-color: $lightgrey; - .content-inner { max-width: 760px; } diff --git a/app/views/site/about.html.erb b/app/views/site/about.html.erb index 619094e56..7dbed1514 100644 --- a/app/views/site/about.html.erb +++ b/app/views/site/about.html.erb @@ -1,3 +1,4 @@ +<% content_for(:content_class) { "bg-body-secondary" } %> <% I18n.with_locale @locale do %> <%= tag.div :lang => @locale, :dir => t("html.dir") do %>
@@ -11,13 +12,13 @@
-
+

<%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name") %>

-
+

<%= t ".lede_text" %>

<%= render :layout => "about_section", :locals => { :icon => "local", :title => "local_knowledge" } do %> -- 2.39.5