summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-25 11:44:12 +0000
commit9814dcf231b50bd1d8e712db8534051ff8a8c8c6 (patch)
treedb40fb794b2ed5a87477c6d026e98123d3425b39 /public
parent1eee6b3a30dfa2e0b7c9aaa5db3da3b3c9965b19 (diff)
downloadredmine-9814dcf231b50bd1d8e712db8534051ff8a8c8c6.tar.gz
redmine-9814dcf231b50bd1d8e712db8534051ff8a8c8c6.zip
Use css pseudo-classes instead of cycle("odd", "even") (#15361).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@16249 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js4
-rw-r--r--public/stylesheets/application.css9
2 files changed, 6 insertions, 7 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 6ad6ac035..c99e35ab5 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -697,10 +697,6 @@ function beforeShowDatePicker(input, inst) {
type: 'put',
dataType: 'script',
data: data,
- success: function(data){
- sortable.children(":even").removeClass("even").addClass("odd");
- sortable.children(":odd").removeClass("odd").addClass("even");
- },
error: function(jqXHR, textStatus, errorThrown){
alert(jqXHR.status);
sortable.sortable("cancel");
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 641dd01e7..d9afc8e83 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -320,6 +320,8 @@ table.permissions td.role {color:#999;font-size:90%;font-weight:normal !importan
tr.wiki-page-version td.updated_on, tr.wiki-page-version td.author {text-align:center;}
+div.mypage-box table.time-entries tr.time-entry { background-color: #fff; }
+div.mypage-box table.time-entries tr.odd { background-color:#f6f7f8; }
tr.time-entry { text-align: center; white-space: nowrap; }
tr.time-entry td.issue, tr.time-entry td.comments, tr.time-entry td.subject, tr.time-entry td.activity { text-align: left; white-space: normal; }
td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
@@ -333,7 +335,7 @@ table.plugins span.url { display: block; font-size: 0.9em; }
table.list.enumerations {table-layout: fixed; margin-bottom: 2em;}
-tr.group td { padding: 0.8em 0 0.5em 0.3em; border-bottom: 1px solid #ccc; text-align:left; }
+tr.group td { padding: 0.8em 0 0.5em 0.3em; border-bottom: 1px solid #ccc; text-align:left; background-color: #fff;}
tr.group span.name {font-weight:bold;}
tr.group span.count {font-weight:bold; position:relative; top:-1px; color:#fff; font-size:10px; background:#9DB9D5; padding:0px 6px 1px 6px; border-radius:3px; margin-left:4px;}
tr.group span.totals {color: #aaa; font-size: 80%;}
@@ -346,8 +348,9 @@ table.list tbody tr:hover { background-color:#ffffdd; }
table.list tbody tr.group:hover { background-color:inherit; }
table td {padding:2px;}
table p {margin:0;}
-.odd {background-color:#f6f7f8;}
-.even {background-color: #fff;}
+
+table.list tbody tr:nth-child(odd), table.list.odd-even tbody tr.odd, #issue-changesets div.changeset:nth-child(odd) { background-color:#f6f7f8; }
+table.list tbody tr:nth-child(even), table.list.odd-even tbody tr.even, #issue-changesets div.changeset:nth-child(even) { background-color: #fff; }
tr.builtin td.name {font-style:italic;}