diff mbox

[17/51] style: Move the background color of the table headers to a class

Message ID 1441986924-26689-18-git-send-email-damien.lespiau@intel.com
State Superseded
Headers show

Commit Message

Damien Lespiau Sept. 11, 2015, 3:54 p.m. UTC
As we are using "sticky headers", the column headers stay apparent when
scrolling down, we need to specify a white background to hide what's
underneath.

With the addition of Seres, the patchlist table is not the only table we
want this behaviour on, so let's make it a CSS class rather then a
selector on the patchlist id.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 htdocs/css/style.css                          | 2 +-
 patchwork/templates/patchwork/patch-list.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index 8f56dc1..8c8aa80 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -132,7 +132,7 @@  a.filter-action:hover {
     text-decoration: none;
 }
 
-table#patchlist > thead {
+table.pw-list > thead {
     background-color: white;
 }
 
diff --git a/patchwork/templates/patchwork/patch-list.html b/patchwork/templates/patchwork/patch-list.html
index ce60a38..2df511e 100644
--- a/patchwork/templates/patchwork/patch-list.html
+++ b/patchwork/templates/patchwork/patch-list.html
@@ -44,7 +44,7 @@  $(document).ready(function() {
 {% csrf_token %}
 <input type="hidden" name="form" value="patchlistform"/>
 <input type="hidden" name="project" value="{{project.id}}"/>
-<table class="table table-hover table-condensed" id="patchlist">
+<table class="table table-hover table-condensed pw-list" id="patchlist">
  <thead>
   <tr>
    {% if user.is_authenticated %}