[CSS] Clean up duplicate table classes

width: 100% is already part of the class.
Remove duplicate classes .table/.striped and exclusivly use the more common one.
Add this class to PostReportReasons/Help, which were missing it.
This commit is contained in:
Earlopain 2022-12-29 16:36:33 +01:00
parent 4ee284f215
commit 9afc1949fa
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
42 changed files with 44 additions and 49 deletions

View File

@ -1,5 +1,5 @@
table.table {
table.striped {
width: 100%;
// DText formatting fix
@ -66,11 +66,6 @@ table.table {
}
}
// Needed so that unconverted tables work.
table.striped {
@extend .table;
}
/*
* A table where one column expands to fill the screen, while the
* other columns shrink to fit their contents.

View File

@ -1,6 +1,6 @@
<div id="c-admin">
<div id="a-alt-list">
<table class="table">
<table class="striped">
<tbody>
<% @alts.each do |u1, alt_ids| %>
<tr class="alt-header" data-alt="<%= u1 %>">

View File

@ -9,7 +9,7 @@
<%= f.submit "Search" %>
<% end %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>ID</th>

View File

@ -1,5 +1,5 @@
<div id="p-<%= artist_versions_listing_type %>-listing">
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Name</th>

View File

@ -1,7 +1,7 @@
<div id="c-artists">
<div id="a-index">
<%= render "search" %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th width="45%">Primary Name</th>

View File

@ -1,4 +1,4 @@
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Creator</th>

View File

@ -1,6 +1,6 @@
<h4>Deleted Posts</h4>
<table class='table'>
<table class="striped">
<thead>
<tr>
<th>Post</th>

View File

@ -10,7 +10,7 @@
<%= render "search" %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Date</th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<h1>Recent Edits</h1>
<table class='striped' style='width:100%;'>
<table class="striped">
<thead>
<tr>
<th></th>

View File

@ -3,7 +3,7 @@
<%= render "search" %>
<h1>Email Blacklists</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>User</th>

View File

@ -1,7 +1,7 @@
<div id="c-forum-posts">
<div id="a-index">
<%= render "search" %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>Topic</th>

View File

@ -1,4 +1,4 @@
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>Title</th>

View File

@ -7,7 +7,7 @@
<section id="content">
<h2>Help Entries</h2>
<div>
<table id="help-table" class="valign rounded" style="width:800px;">
<table id="help-table" class="striped" style="width:800px;">
<thead>
<tr>
<th style="width:15%"></th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<h1>IP Bans</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>IP Address</th>

View File

@ -2,7 +2,7 @@
<div id="a-view">
<h1>API Key</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>API Key</th>

View File

@ -15,7 +15,7 @@
<% if @meta_search.tags.blank? %>
<p>No results</p>
<% else %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>Name</th>
@ -47,7 +47,7 @@
<% if @meta_search.tag_aliases.blank? %>
<p>No results</p>
<% else %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>From</th>
@ -83,7 +83,7 @@
<% if @meta_search.tag_implications.blank? %>
<p>No results</p>
<% else %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>From</th>

View File

@ -4,7 +4,7 @@
<%= render "search" %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Date</th>

View File

@ -13,7 +13,7 @@
<%= f.submit "Search" %>
<% end %>
<table class="striped autofit" width="100%">
<table class="striped autofit">
<thead>
<tr>
<th>Post</th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<h1>News Updates</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Creator</th>

View File

@ -1,5 +1,5 @@
<div id="p-revert-listing">
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th></th>

View File

@ -1,5 +1,5 @@
<div id="p-standard-listing">
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th></th>

View File

@ -3,7 +3,7 @@
<h1>Notes</h1>
<%= render "search" %>
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Post</th>

View File

@ -1,5 +1,5 @@
<div id="p-revert-listing">
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Pool</th>

View File

@ -1,5 +1,5 @@
<div id="p-standard-listing">
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Pool</th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<%= render partial: "search", locals: {path: pools_path} %>
<h2>Pools</h2>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th width="5%"></th>

View File

@ -9,7 +9,7 @@
<%= f.submit "Search" %>
<% end %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th width="1%">Post</th>

View File

@ -4,7 +4,7 @@
<%= render "search" %>
<table width="100%" class="table autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Post</th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<h1>Post Favorites</h1>
<%= PostPresenter.preview(@post) %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>Favorited by</th>

View File

@ -3,7 +3,7 @@
<h1>Flags</h1>
<%= render "search" %>
<%= render "posts/partials/common/inline_blacklist" %>
<table width="100%" class="table">
<table class="striped">
<thead>
<tr>
<th width="1%">Post</th>

View File

@ -5,7 +5,7 @@
<%= render "search" %>
<%= render "posts/partials/common/inline_blacklist" %>
<table width="100%" class="striped autofit" style="max-width:100%">
<table class="striped autofit" style="max-width:100%">
<thead>
<tr>
<th width="1%">Post</th>

View File

@ -2,7 +2,7 @@
<div id="a-index">
<h1>Post Report Reasons</h1>
<table class='rounded' style='width:100%;'>
<table class="striped">
<thead>
<tr>
<th></th>

View File

@ -5,7 +5,7 @@
<h2>Sets</h2>
<div id="set-index">
<table width="100%" class="table striped">
<table class="striped">
<thead>
<tr>
<th width="30%">Name</th>

View File

@ -1,7 +1,7 @@
<div id="c-takedowns">
<div id="a-index">
<%= render partial: 'search', locals: {path: takedowns_path} %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>ID</th>

View File

@ -3,7 +3,7 @@
<%= render partial: 'search' %>
<h2>Ticket Center</h2>
<table class="valign striped">
<table class="striped">
<thead>
<tr>
<th style="width:5%">ID</th>

View File

@ -3,7 +3,7 @@
<%= render "search" %>
<h1>Upload Whitelists</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Pattern</th>

View File

@ -3,7 +3,7 @@
<%= render "uploads/search" %>
<%= render "posts/partials/common/inline_blacklist" %>
<table width="100%" class="striped autofit">
<table class="striped autofit">
<thead>
<tr>
<th>Upload</th>

View File

@ -3,7 +3,7 @@
<h1>User Feedback</h1>
<%= render "search" %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th width="15%">User</th>

View File

@ -4,7 +4,7 @@
<h1>Name Change Requests</h1>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>User</th>

View File

@ -3,7 +3,7 @@
<h1>Users</h1>
<%= render "search" %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th></th>

View File

@ -1,5 +1,5 @@
<div id="p-global-listing">
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th>Title</th>

View File

@ -1,6 +1,6 @@
<div id="p-page-listing">
<%= form_tag(diff_wiki_page_versions_path, :method => :get) do %>
<table width="100%" class="striped">
<table class="striped">
<thead>
<tr>
<th width="3%"></th>

View File

@ -6,7 +6,7 @@
<h1>Wiki</h1>
<%= render "search" %>
<table class="striped" width="100%">
<table class="striped">
<thead>
<tr>
<th>Title</th>