forum: move inline css to stylesheet.

This commit is contained in:
evazion
2020-01-26 17:58:16 -06:00
parent c36c0b9e7a
commit 2265721cb2
2 changed files with 12 additions and 13 deletions

View File

@@ -55,8 +55,16 @@ div#c-forum-topics {
font-weight: bold;
}
#a-index table tr td:last-child {
white-space: nowrap;
#a-index {
.updated-at-column {
white-space: nowrap;
}
.updated-by-column, .updated-at-column {
@media screen and (max-width: 660px) {
display: none;
}
}
}
}

View File

@@ -25,19 +25,10 @@
<% t.column "Creator" do |topic| %>
<%= link_to_user topic.creator %>
<% end %>
<% t.column "Updated by", th: { class: "updater" }, td: { class: "updater" } do |topic| %>
<% t.column "Updated by" do |topic| %>
<%= link_to_user topic.updater %>
<% end %>
<% t.column "Updated at", th: { class: "updated-at" }, td: { class: "updated-at" } do |topic| %>
<% t.column "Updated at" do |topic| %>
<%= compact_time topic.updated_at %>
<% end %>
<% end %>
<% content_for(:html_header) do %>
<style>
@media screen and (max-width: 660px) {
.updater { display: none; }
.updated-at { display: none; }
}
</style>
<% end %>