]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/4700'
authorTom Hughes <tom@compton.nu>
Sun, 14 Apr 2024 18:10:38 +0000 (19:10 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 14 Apr 2024 18:10:38 +0000 (19:10 +0100)
app/assets/stylesheets/common.scss
app/views/browse/_tag.html.erb
app/views/notes/index.html.erb

index fd12d7e6b9882c8fbac395325a771a12ecec1840..6c1a65e7b97c52fab2e814d0af4f91a1e8a0ccaa 100644 (file)
@@ -66,6 +66,21 @@ time[title] {
   color: $blue;
 }
 
+/* Bootstrap contextual table classes overrides in dark mode */
+
+@include color-mode(dark) {
+  .table-primary {
+    --bs-table-bg: rgb(var(--bs-primary-rgb), .25);
+  }
+  .table-secondary {
+    --bs-table-bg: rgb(var(--bs-secondary-rgb), .25);
+  }
+  .table-primary, .table-secondary {
+    --bs-table-color: initial;
+    border-color: inherit;
+  }
+}
+
 /* Rules for the header */
 
 #menu-icon {
index 578dc8b59e3332b404ec1ce202afe1030054bc70..f2e34d879f88e4b44d1aafa41c3bc71d36832981 100644 (file)
@@ -1,4 +1,4 @@
 <tr>
-  <th class='py-1 border-secondary-subtle table-light fw-normal' dir='auto'><%= format_key(tag[0]) %></th>
+  <th class='py-1 border-secondary-subtle table-secondary fw-normal' dir='auto'><%= format_key(tag[0]) %></th>
   <td class='py-1 border-secondary-subtle border-start' dir='auto'><%= format_value(tag[0], tag[1]) %></td>
 </tr>
index d93978480e8bfe2b4d98094d88640a73d58514b0..8622bbf2974e07bef84fa21033c205c8e1d6fb52 100644 (file)
@@ -3,7 +3,7 @@
   <p><%= t ".subheading_html",
            :user => link_to(@user.display_name, @user),
            :submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-primary bg-opacity-25"),
-           :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-white") %></p>
+           :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %></p>
 <% end %>
 
 <% if @notes.empty? %>