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

Damien Lespiau damien.lespiau at intel.com
Sat Sep 12 01:54:50 AEST 2015


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 at intel.com>
---
 htdocs/css/style.css                          | 2 +-
 patchwork/templates/patchwork/patch-list.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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 %}
-- 
2.1.0



More information about the Patchwork mailing list