Skip to content

Commit

Permalink
fixes #63
Browse files Browse the repository at this point in the history
  • Loading branch information
Cerem Cem ASLAN committed Feb 9, 2017
1 parent ae24b93 commit 4dfc419
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/client/components/r-table/rwd-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,48 @@ body {
border-radius: .4em;
overflow: hidden;
}
.rwd-table > tr {
.rwd-table > tbody > tr {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
border-color: #46637f;
}
.rwd-table > th {
.rwd-table > thead > tr > th {
display: none;
}
.rwd-table > td {
.rwd-table > tbody > tr > td {
display: block;
}
.rwd-table > td:before {
.rwd-table > tbody > tr > td:before {
content: attr(data-th) " ";
font-weight: bold;
display: inline-block;
color: black;
}

.rwd-table > td:first-child {
.rwd-table > tbody > tr > td:first-child {
padding-top: .5em;
}
.rwd-table > td:last-child {
.rwd-table > tbody > tr > td:last-child {
padding-bottom: .5em;
}
.rwd-table > tr:nth-child(odd) {
.rwd-table > tbody > tr:nth-child(odd) {
background-color: rgb(0, 80, 50, 0.05);
}

.rwd-table > th,
.rwd-table > td {
.rwd-table > thead > tr > th,
.rwd-table > tbody > tr > td {
text-align: left;
margin: .5em 1em;
display: table-cell;
padding: 1em !important;
}

.rwd-table > th:first-child,
.rwd-table > td:first-child {
.rwd-table > thead > tr > th:first-child,
.rwd-table > tbody > tr > td:first-child {
padding-left: 0;
}
.rwd-table > th:last-child,
.rwd-table > td:last-child {
.rwd-table > thead > tr > th:last-child,
.rwd-table > tbody > tr > td:last-child {
padding-right: 0;
}

Expand All @@ -63,7 +63,7 @@ body {
/* ------------------------------------------------------------------------ */

@media (min-width: 601px) {
.rwd-table > td:before {
.rwd-table > tbody > tr > td:before {
display: none;
}
}
Expand All @@ -77,34 +77,34 @@ body {
display: none;
}

.rwd-table > tr {
.rwd-table > tbody > tr {
margin-bottom: 10px;
display: block;
border-bottom: 2px solid #ddd;
}

.rwd-table > td {
.rwd-table > tbody > tr > td {
display: block;
/*text-align: right;*/
font-size: 13px;
border-bottom: 1px dotted #ccc;
}

.rwd-table > td[data-th] {
.rwd-table > tbody > tr > td[data-th] {
text-align: right;
}

.rwd-table > td:last-child {
.rwd-table > tbody > tr > td:last-child {
border-bottom: 0;
}

.rwd-table > td:before {
.rwd-table > tbody > tr > td:before {
content: attr(data-th);
float: left;
font-weight: bold !important;
}

.table>tbody>tr>td {
.table > tbody > tr > td {
border-top: 0;
}
}
Expand All @@ -118,30 +118,30 @@ body {
display: none;
}

.rwd-table > tr {
.rwd-table > tbody > tr {
margin-bottom: 10px;
display: block;
border-bottom: 2px solid #ddd;
}

.rwd-table > td {
.rwd-table > tbody > tr > td {
display: block;
text-align: left;
font-size: 13px;
border-bottom: 1px dotted #ccc;
}

.rwd-table > td:last-child {
.rwd-table > tbody > tr > td:last-child {
border-bottom: 0;
}

.rwd-table > td:before {
.rwd-table > tbody > tr > td:before {
content: attr(data-th);
font-weight: bold;
display: block !important;
}

.table>tbody>tr>td {
.table > tbody > tr > td {
border-top: 0;
}
}

0 comments on commit 4dfc419

Please sign in to comment.