Skip to content

Commit e25c8ac

Browse files
committed
Tidy up the table css and remove the even/odd classes in favor of CSS.
Signed-off-by: James R. Perkins <jperkins@redhat.com>
1 parent 26442e7 commit e25c8ac

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

public/css/org_common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ Content Specific Styles: These are styles the affect the content of the pages.
288288
text-align:left;
289289
}
290290

291-
.simpletablestyle .oddRow {
291+
.simpletablestyle tbody tr:nth-child(even) {
292292
background-color: #f4f3f3;
293293
padding-left: 6px;
294294
}
295295

296-
.simpletablestyle .evenRow {
296+
.simpletablestyle tbody tr:nth-child(odd) {
297297
background-color: #ffffff;
298298
}
299299

templates/layouts/doc-listing.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,16 @@ <h3>RESTEasy Documentation</h3>
1515
href="https://docs.jboss.org/resteasy/docs/resteasy-upgrade-guide-en-US.pdf">Upgrading from&nbsp;RESTEasy
1616
2 to RESTEasy 3</a>.</p>
1717
<table class="simpletablestyle" width="100%" cellspacing="1" cellpadding="0" border="0">
18-
<tbody>
18+
<thead>
1919
<tr class="header">
2020
<th colspan="6">Version</th>
2121
</tr>
22+
</thead>
23+
<tbody>
2224
{#for release in cdi:releases.list}
2325
{#for detail in release.detail}
2426
{#if detail.documentation}
25-
{! % capture rowClass %}{% cycle 'oddRow', '' %}{% endcapture % !}
26-
<tr id="{detail.version.replace('.','')}" class="{{ rowClass }}">
27+
<tr id="{detail.version.replace('.','')}">
2728
<td>
2829
<p><strong>{detail.version}</strong></p>
2930
</td>

templates/layouts/downloads.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ <h3 id="{release.group.replace('.', '').toLowerCase()}">RESTEasy {release.group}
2222
<tbody>
2323
{#for detail in release.detail}
2424
{#if detail.downloadLink}
25-
{! % capture rowClass %}{% cycle 'oddRow', '' %}{% endcapture % !}
26-
<tr class="{{ rowClass }}">
25+
<tr>
2726
<td id="{detail.version.replace('.', '').toLowerCase()}">{detail.version}</td>
2827
<td>{#if detail.source}<a href="{detail.source}">Source Code</a>{/if}</td>
2928
<td>{detail.size}</td>

0 commit comments

Comments
 (0)