[PATCH 03/19] ui: Move the background color of the table headers to a class

Stephen Finucane stephen.finucane at intel.com
Thu Feb 4 08:31:38 AEDT 2016


From: Damien Lespiau <damien.lespiau at intel.com>

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>
Acked-by: Stephen Finucane <stephen.finucane 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 a5eac2e..96ae809 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 00cbb52..8400662 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.0.0



More information about the Patchwork mailing list