diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-03 09:15:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-12-03 09:15:31 +0000 |
commit | 48f72a3d15def45352c0be4e7f27b2ba3852f949 (patch) | |
tree | 728515a1a7a51bac340ed908582780411e4f4a07 /public | |
parent | 3e86a2ab52bcadea6ed92522a3d3e88b6dc4aa30 (diff) | |
download | redmine-48f72a3d15def45352c0be4e7f27b2ba3852f949.tar.gz redmine-48f72a3d15def45352c0be4e7f27b2ba3852f949.zip |
Use css pseudo-classes instead "odd", "even" classes (#15361).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@16050 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r-- | public/javascripts/application.js | 4 | ||||
-rw-r--r-- | public/stylesheets/application.css | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js index f38b69b3c..8d703ade1 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -685,10 +685,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 bb2b0b888..4ed40bcb1 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -317,6 +317,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; } @@ -330,7 +332,7 @@ table.plugins span.url { display: block; font-size: 0.9em; } table.list.enumerations {table-layout: fixed;} -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%;} @@ -343,8 +345,8 @@ 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), #issue-changesets div.changeset:nth-child(odd) {background-color:#f6f7f8;} +table.list tbody tr:nth-child(even), #issue-changesets div.changeset:nth-child(even) {background-color: #fff;} tr.builtin td.name {font-style:italic;} |