forum: move inline css to stylesheet.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user