This commit is contained in:
Dennis Eichhorn 2017-10-03 16:56:19 +02:00
parent 00ee93ad82
commit 229629bda3
3 changed files with 82 additions and 76 deletions

View File

@ -33,6 +33,10 @@ form {
background: #bebebe; background: #bebebe;
} }
table.layout {
table-layout: fixed;
}
.layout td+td { .layout td+td {
padding-left: 5px; padding-left: 5px;
} }

View File

@ -4744,6 +4744,8 @@ table.table {
table.table .empty { table.table .empty {
text-align: center; text-align: center;
color: #d8d8d8; } color: #d8d8d8; }
table.table tfoot {
border: none; }
table.table tfoot label { table.table tfoot label {
float: left; } float: left; }
table.table tfoot select { table.table tfoot select {
@ -4764,15 +4766,17 @@ table.list td {
table.table { table.table {
border: 0; border: 0;
width: 100%; } width: 100%; }
table.table thead { table.table thead {
display: none; } display: none; }
table.table tbody tr {
table.table tr { height: auto;
display: block; display: block;
margin-bottom: .625em; } margin-bottom: .625em; }
table.table tbody tr:last-child td {
table.table td { border-bottom: none; }
table.table tbody tr:last-child td:last-child {
border-bottom: 1px solid #b7b7b7; }
table.table tbody td {
border-left: 1px solid #b7b7b7; border-left: 1px solid #b7b7b7;
border-right: 1px solid #b7b7b7; border-right: 1px solid #b7b7b7;
display: block; display: block;
@ -4781,8 +4785,7 @@ table.list td {
position: relative; position: relative;
height: 2rem; height: 2rem;
line-height: 2rem; } line-height: 2rem; }
table.table tbody td:before {
table.table td:before {
content: attr(data-label); content: attr(data-label);
position: absolute; position: absolute;
left: 0; left: 0;
@ -4790,13 +4793,7 @@ table.list td {
transform: translateY(-50%); transform: translateY(-50%);
margin-left: 20px; margin-left: 20px;
font-weight: bold; font-weight: bold;
display: inline-block; } display: inline-block; } }
table.table td:last-child {
border-bottom: 1px solid #b7b7b7; }
table.table tbody tr {
height: auto; } }
.nobreak { .nobreak {
white-space: nowrap; } white-space: nowrap; }

View File

@ -118,6 +118,8 @@ table.table {
} }
tfoot { tfoot {
border: none;
label { label {
float: left; float: left;
} }
@ -150,18 +152,27 @@ table.list {
table.table { table.table {
border: 0; border: 0;
width: 100%; width: 100%;
}
table.table thead { thead {
display: none; display: none;
} }
table.table tr { tbody {
tr {
height: auto;
display: block; display: block;
margin-bottom: .625em; margin-bottom: .625em;
&:last-child td {
border-bottom: none;
&:last-child {
border-bottom: 1px solid $content-border-color;
}
}
} }
table.table td { td {
border-left: 1px solid $content-border-color; border-left: 1px solid $content-border-color;
border-right: 1px solid $content-border-color; border-right: 1px solid $content-border-color;
display: block; display: block;
@ -170,9 +181,8 @@ table.list {
position: relative; position: relative;
height: 2rem; height: 2rem;
line-height: 2rem; line-height: 2rem;
}
table.table td:before { &:before {
content: attr(data-label); content: attr(data-label);
position: absolute; position: absolute;
left: 0; left: 0;
@ -182,13 +192,8 @@ table.list {
font-weight: bold; font-weight: bold;
display: inline-block; display: inline-block;
} }
table.table td:last-child {
border-bottom: 1px solid $content-border-color;
} }
}
table.table tbody tr {
height: auto;
} }
} }