Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/pull/4700'
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Apr 14, 2024
2 parents 258964f + f7b76df commit 28a39c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
15 changes: 15 additions & 0 deletions app/assets/stylesheets/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/views/browse/_tag.html.erb
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion app/views/notes/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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? %>
Expand Down

0 comments on commit 28a39c6

Please sign in to comment.