Styling lists

This commit is contained in:
Dennis Eichhorn 2018-05-11 21:32:12 +02:00
parent ecc959a7ac
commit 637d29e43d
5 changed files with 155 additions and 151 deletions

View File

@ -45,19 +45,4 @@ form {
padding: 3px 5px 3px 5px; padding: 3px 5px 3px 5px;
} }
} }
.ipt-wrap {
display: table;
box-sizing: border-box;
.ipt-first {
width: 100%;
display: table-cell;
}
.ipt-second {
padding-left: 5px;
display: table-cell;
}
}
} }

View File

@ -1,2 +1,16 @@
@import "color"; @import "color";
.ipt-wrap {
display: table;
box-sizing: border-box;
.ipt-first {
width: 100%;
display: table-cell;
}
.ipt-second {
padding-left: 5px;
display: table-cell;
}
}

View File

@ -3207,6 +3207,16 @@ article {
.darkblue { .darkblue {
background: #2969B0; } background: #2969B0; }
.ipt-wrap {
display: table;
box-sizing: border-box; }
.ipt-wrap .ipt-first {
width: 100%;
display: table-cell; }
.ipt-wrap .ipt-second {
padding-left: 5px;
display: table-cell; }
*[draggable] { *[draggable] {
cursor: move; } cursor: move; }
@ -3518,15 +3528,6 @@ form .list {
form .list td { form .list td {
white-space: nowrap; white-space: nowrap;
padding: 3px 5px 3px 5px; } padding: 3px 5px 3px 5px; }
form .ipt-wrap {
display: table;
box-sizing: border-box; }
form .ipt-wrap .ipt-first {
width: 100%;
display: table-cell; }
form .ipt-wrap .ipt-second {
padding-left: 5px;
display: table-cell; }
.infoIcon { .infoIcon {
width: .9rem; width: .9rem;
@ -4788,7 +4789,9 @@ table.table {
padding-top: 10px; } padding-top: 10px; }
table.list th { table.list th {
text-align: left; } text-align: left;
padding: 2px 0 2px 0;
vertical-align: middle; }
table.list td { table.list td {
padding: 2px 5px 2px 5px; } padding: 2px 5px 2px 5px; }

253
table.css
View File

@ -1,126 +1,127 @@
/* Global */ /* Global */
/* Content Container */ /* Content Container */
/* Content box */ /* Content box */
/* Navigation */ /* Navigation */
/* Colors */ /* Colors */
.table { .table {
background: none; } background: none; }
.table caption { .table caption {
color: #fff; } color: #fff; }
.table thead { .table thead {
color: #fff; } color: #fff; }
.table.red caption, .table.red thead { .table.red caption, .table.red thead {
background: #B8312F; } background: #B8312F; }
.table.orange caption, .table.orange thead { .table.orange caption, .table.orange thead {
background: #FBA026; } background: #FBA026; }
.table.green caption, .table.green thead { .table.green caption, .table.green thead {
background: #41A85F; } background: #41A85F; }
.table.blue caption, .table.blue thead { .table.blue caption, .table.blue thead {
background: #2C82C9; } background: #2C82C9; }
.table.white caption, .table.white thead { .table.white caption, .table.white thead {
background: #fff; } background: #fff; }
table.table { table.table {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
font-size: 0.9em; font-size: 0.9em;
max-width: 100%; max-width: 100%;
overflow: hidden; } overflow: hidden; }
table.table caption { table.table caption {
background: #fff; background: #fff;
border-right: 1px solid #b7b7b7; border-right: 1px solid #b7b7b7;
border-left: 1px solid #b7b7b7; border-left: 1px solid #b7b7b7;
border-top: 1px solid #b7b7b7; border-top: 1px solid #b7b7b7;
padding: 5px; } padding: 5px; }
table.table td { table.table td {
padding: 5px 10px 5px 10px; padding: 5px 10px 5px 10px;
white-space: nowrap; } white-space: nowrap; }
table.table tbody td:first-child { table.table tbody td:first-child {
border-left: 1px solid #b7b7b7; } border-left: 1px solid #b7b7b7; }
table.table tbody td:last-child { table.table tbody td:last-child {
border-right: 1px solid #b7b7b7; } border-right: 1px solid #b7b7b7; }
table.table tbody td { table.table tbody td {
border-top: 1px solid #b7b7b7; border-top: 1px solid #b7b7b7;
-moz-box-shadow: inset 0px 1px 0px 0px #ffffff; -moz-box-shadow: inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow: inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow: inset 0px 1px 0px 0px #ffffff;
box-shadow: inset 0px 1px 0px 0px #ffffff; } box-shadow: inset 0px 1px 0px 0px #ffffff; }
table.table tbody tr { table.table tbody tr {
height: 2rem; } height: 2rem; }
table.table tbody tr:nth-of-type(2n) { table.table tbody tr:nth-of-type(2n) {
background: #f8f8f8; } background: #f8f8f8; }
table.table tbody tr:nth-of-type(2n+1) { table.table tbody tr:nth-of-type(2n+1) {
background: #fff; } background: #fff; }
table.table tbody tr:hover { table.table tbody tr:hover {
background: #f0f0f0; } background: #f0f0f0; }
table.table tbody tr:last-child td { table.table tbody tr:last-child td {
border-bottom: 1px solid #b7b7b7; } border-bottom: 1px solid #b7b7b7; }
table.table thead { table.table thead {
background: #fff; } background: #fff; }
table.table thead td:first-child { table.table thead td:first-child {
border-left: 1px solid #b7b7b7; } border-left: 1px solid #b7b7b7; }
table.table thead td:last-child { table.table thead td:last-child {
border-right: 1px solid #b7b7b7; } border-right: 1px solid #b7b7b7; }
table.table .empty { table.table .empty {
text-align: center; text-align: center;
color: #d8d8d8; } color: #d8d8d8; }
table.table tfoot { table.table tfoot {
border: none; } border: none; }
table.table tfoot label { table.table tfoot label {
float: left; } float: left; }
table.table tfoot select { table.table tfoot select {
width: auto; width: auto;
float: right; float: right;
margin: 0; margin: 0;
min-width: 0px; } min-width: 0px; }
table.table tfoot td { table.table tfoot td {
text-align: center; text-align: center;
padding-top: 10px; } padding-top: 10px; }
table.list th { table.list th {
text-align: left; } text-align: left;
table.list td { padding: 2px 0 2px 0; }
padding: 2px 5px 2px 5px; } table.list td {
padding: 2px 5px 2px 5px; }
@media screen and (max-width: 600px) {
table.table { @media screen and (max-width: 600px) {
display: table; table.table {
table-layout: fixed; display: table;
width: 100%; table-layout: fixed;
border: 0; } width: 100%;
table.table thead { border: 0; }
display: none; } table.table thead {
table.table tbody tr { display: none; }
height: auto; table.table tbody tr {
display: block; height: auto;
margin-bottom: .625em; } display: block;
table.table tbody tr td:last-child { margin-bottom: .625em; }
border-bottom: 1px solid #b7b7b7; } table.table tbody tr td:last-child {
table.table tbody tr:last-child td { border-bottom: 1px solid #b7b7b7; }
border-bottom: none; } table.table tbody tr:last-child td {
table.table tbody tr:last-child td:last-child { border-bottom: none; }
border-bottom: 1px solid #b7b7b7; } table.table tbody tr:last-child td:last-child {
table.table tbody td { border-bottom: 1px solid #b7b7b7; }
border-left: 1px solid #b7b7b7; table.table tbody td {
border-right: 1px solid #b7b7b7; border-left: 1px solid #b7b7b7;
display: block; border-right: 1px solid #b7b7b7;
font-size: .8rem; display: block;
text-align: right; font-size: .8rem;
position: relative; text-align: right;
height: 2rem; position: relative;
line-height: 2rem; height: 2rem;
text-overflow: ellipsis; line-height: 2rem;
overflow: hidden; text-overflow: ellipsis;
max-width: 100%; } overflow: hidden;
table.table tbody td:before { max-width: 100%; }
content: attr(data-label); table.table tbody td:before {
float: left; content: attr(data-label);
margin-right: 10px; float: left;
font-weight: bold; } margin-right: 10px;
table.table tfoot { font-weight: bold; }
display: none; } } table.table tfoot {
.nobreak { display: none; } }
white-space: nowrap; } .nobreak {
white-space: nowrap; }
/*# sourceMappingURL=table.css.map */
/*# sourceMappingURL=table.css.map */

View File

@ -138,6 +138,7 @@ table.table {
table.list { table.list {
th { th {
text-align: left; text-align: left;
padding: 2px 0 2px 0;
} }
td { td {