]> git.openstreetmap.org Git - rails.git/commitdiff
Adapt About page backgrounds to dark mode
authorAnton Khorev <tony29@yandex.ru>
Mon, 8 Apr 2024 23:15:33 +0000 (02:15 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 8 Apr 2024 23:15:33 +0000 (02:15 +0300)
app/assets/stylesheets/common.scss
app/views/site/about.html.erb

index eac3f7417aa5a1c25fd281c1ab27bbed81878561..f88e75f2e42ca6d07263688f335ef4f47fd6a932 100644 (file)
@@ -984,8 +984,6 @@ div.secondary-actions {
 }
 
 .site-about #content {
-  background-color: $lightgrey;
-
   .content-inner {
     max-width: 760px;
   }
index 619094e567127bbbb3ff6fc5989ffa933c5bce7f..7dbed1514839add65c39a04f2e47a0d4c3b15ce1 100644 (file)
@@ -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 %>
     <div class="container-lg attr">
         </div>
       </div>
       <div class='row'>
-        <div class="px-5 py-4 bg-dark">
+        <div class="px-5 py-4 bg-black bg-opacity-75">
           <h1 class="text-white fw-light"><%= t ".used_by_html", :name => tag.span("OpenStreetMap", :class => "user-name") %></h1>
         </div>
       </div>
     </div>
 
-    <div class='bg-white px-5 py-4'>
+    <div class='bg-body px-5 py-4'>
       <p class="lead"><%= t ".lede_text" %></p>
 
       <%= render :layout => "about_section", :locals => { :icon => "local", :title => "local_knowledge" } do %>