Skip to content

Commit

Permalink
Zebra - IE Styling issue fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
duboisp committed Mar 25, 2013
1 parent dcea07a commit b690d38
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 17 deletions.
88 changes: 88 additions & 0 deletions src/js/sass/includes/_zebra-ie.scss
Expand Up @@ -23,4 +23,92 @@
}
}
}
}


/* In separate CSS because IE have conflit when it's combined with the CSS3 nthChild instruction */
.wet-boew-zebra {
/* List Zebra */
li {
&.list-even {
background-color: #ddd;
border: 1px solid #CCC;
}
&.list-odd {
background-color: #eee;
border: 1px solid #CCC;
}
&.list-hover {
background-color: #f0fcff;
}

}

/* Style Alterwg (Alternate White and Gray stripe) */
&.alterwg {
li {
&.list-even {
background-color: #ddd;
border: none;
}
&.list-odd {
background-color: #fff;
border: none;
}
}
}

/* Traditionel Table Zebra Stripping */
&.colzebra {
colgroup {
col {
&.table-odd {
background-color: #f0fcff;
}
}
}
}
&.rowzebra {
tbody {
tr {
&.table-odd {
background-color: #f0fcff;
}
}
}
}
&.columnhighlight {
colgroup {
col.table-hover {
background-color: #eee;
}
&.table-summary col.table-hover {
background-color: #f0fcff;
}
}
}

&.rowhover, &.rowtdhover {
tbody, tfoot {
tr.table-hover,
tr.table-hover td.table-keycell,
tr.table-hover td.table-desccell,
tr.table-hover td.table-layoutCell,
tr.table-hover th.table-layoutCell {
background-color: #eee;
}

/* Hover for summary rows */
tr.table-summary.table-hover,
tr.table-summary.table-hover td.table-keycell,
tr.table-summary.table-hover td.table-desccell,
tr.table-summary.table-hover td.table-layoutCell,
tr.table-summary.table-hover th.table-layoutCell {
background-color: #f0fcff;
}

}

}

}
54 changes: 37 additions & 17 deletions src/js/sass/includes/_zebra.scss
Expand Up @@ -133,34 +133,32 @@ dl {

/* Ordered and Unordered list */
> li {
&.list-even, &:nth-child(2n) {
&:nth-child(2n) {
background-color: #ddd;
border: 1px solid #CCC;
}
&.list-odd, &:nth-child(2n + 1) {
&:nth-child(2n + 1) {
background-color: #eee;
border: 1px solid #CCC;
}
&.list-hover, &:hover {
&:hover {
background-color: #f0fcff;
}

}


/* Style Alterwg (Alternate White and Gray stripe) */
&.alterwg {
li {
&.list-even, &:nth-child(2n) {
> li {
&:nth-child(2n) {
background-color: #ddd;
border: none;
}
&.list-odd, &:nth-child(2n + 1) {
&:nth-child(2n + 1) {
background-color: #fff;
border: none;
}
}

dt, dd {
&.list-even {
background-color: #ddd;
Expand Down Expand Up @@ -194,10 +192,6 @@ dl {

/* Scope of cells */
td {

&.table-summary {
background-color: #f0fcff;
}
&.table-keycell {
padding: 8px;
}
Expand All @@ -213,8 +207,10 @@ dl {
}

/* Summary Group Styling */
tr.table-summary, tbody.table-summary tr, colgroup col.table-summary, colgroup.table-summary, tfoot tr {
background-color: #f0fcff; /* Summary Row/Col highligth */
tr.table-summary, tbody.table-summary tr,
colgroup col.table-summary, colgroup.table-summary,
tfoot tr, td.table-summary {
background-color: #eee; /* Summary Row/Col highligth */
}

/* Delimiter between table group */
Expand All @@ -234,7 +230,7 @@ dl {
&.colzebra {
colgroup {
col {
&.table-odd, &:nth-child(2n) {
&:nth-child(2n) {
background-color: #f0fcff;
}
}
Expand All @@ -243,7 +239,7 @@ dl {
&.rowzebra {
tbody {
tr {
&.table-odd, &:nth-child(2n) {
&:nth-child(2n) {
background-color: #f0fcff;
}
}
Expand All @@ -257,7 +253,12 @@ dl {
col.table-hover {
background-color: #eee;
}
&.table-summary col.table-hover {
background-color: #f0fcff;
}
}


th.table-hover {
background-color: #ccc;
}
Expand Down Expand Up @@ -285,6 +286,15 @@ dl {
tr:hover th.table-layoutCell, tr.table-hover th.table-layoutCell {
background-color: #eee;
}

/* Hover for summary rows */
tr.table-summary:hover, tr.table-summary.table-hover td,
tr.table-summary:hover td.table-keycell, tr.table-summary.table-hover td.table-keycell,
tr.table-summary:hover td.table-desccell, tr.table-summary.table-hover td.table-desccell,
tr.table-summary:hover td.table-layoutCell, tr.table-summary.table-hover td.table-layoutCell,
tr.table-summary:hover th.table-layoutCell, tr.table-summary.table-hover th.table-layoutCell {
background-color: #f0fcff;
}
}
}
&.rowhover {
Expand All @@ -296,6 +306,16 @@ dl {
tr:hover th.table-layoutCell, tr.table-hover th.table-layoutCell {
background-color: #eee;
}

/* Hover for summary rows */
tr.table-summary:hover, tr.table-summary.table-hover td,
tr.table-summary:hover td.table-keycell, tr.table-summary.table-hover td.table-keycell,
tr.table-summary:hover td.table-desccell, tr.table-summary.table-hover td.table-desccell,
tr.table-summary:hover td.table-layoutCell, tr.table-summary.table-hover td.table-layoutCell,
tr.table-summary:hover th.table-layoutCell, tr.table-summary.table-hover th.table-layoutCell {
background-color: #f0fcff;
}


tr:hover th, tr.table-hover th {
background-color: #ccc;
Expand Down

0 comments on commit b690d38

Please sign in to comment.