Skip to content

Commit

Permalink
refs #4536: morpheus uses odd/even css classes instead of nth-child. …
Browse files Browse the repository at this point in the history
…this way, striping works properly on nested data tables (e.g. the search engines report). also, make the css overrides more effective (e.g. add :hover).
  • Loading branch information
timo-bes committed Feb 7, 2014
1 parent 88aaf3f commit 73a1b46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion plugins/Morpheus/stylesheets/components.less
Expand Up @@ -351,7 +351,7 @@ table.dataTable tr td .dataTableRowActions {
}
}

table.dataTable tr:nth-child(2n) td .dataTableRowActions {
table.dataTable tr td.labeleven .dataTableRowActions {
a.rightmost, a {
background-color: #fff !important;
}
Expand Down
14 changes: 9 additions & 5 deletions plugins/Morpheus/stylesheets/theme.less
Expand Up @@ -379,7 +379,7 @@ table.entityTable tr td a:hover {
}
}

.dataTable {
table.dataTable {
thead {
tr {
th {
Expand Down Expand Up @@ -420,10 +420,14 @@ table.entityTable tr td a:hover {
color: @brand-blue;
}
}
&:nth-child(2n) {
td {
background-color: #fff !important;
}
& td.columneven,
& td.labeleven,
&:hover > td.labeleven,
&:hover > td.columneven,
&.subDataTable:hover > td.labeleven,
&.subDataTable:hover > td.columneven,
td.cellSubDataTable {
background-color: #fff !important;
}
}

Expand Down

0 comments on commit 73a1b46

Please sign in to comment.