Start styling changes. After updating to this force a refresh (shift+refresh) in your browser to reload styles.

Make more use of card-type layouts.
Make tables responsive.
This commit is contained in:
Tim 2015-06-28 16:59:36 +02:00
commit 762199344c
14 changed files with 1367 additions and 303 deletions

View file

@ -0,0 +1,106 @@
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child {
position: relative;
padding-left: 30px;
cursor: pointer;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child:before {
top: 8px;
left: 4px;
height: 16px;
width: 16px;
display: block;
position: absolute;
color: white;
border: 2px solid white;
border-radius: 16px;
text-align: center;
line-height: 14px;
box-shadow: 0 0 3px #444;
box-sizing: content-box;
content: '+';
background-color: #31b131;
}
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child.dataTables_empty:before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child.dataTables_empty:before {
display: none;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td:first-child:before,
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th:first-child:before {
content: '-';
background-color: #d33333;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.child td:before {
display: none;
}
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child,
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child {
padding-left: 27px;
}
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > td:first-child:before,
table.dataTable.dtr-inline.collapsed.compact > tbody > tr > th:first-child:before {
top: 5px;
left: 4px;
height: 14px;
width: 14px;
border-radius: 14px;
line-height: 12px;
}
table.dataTable.dtr-column > tbody > tr > td.control,
table.dataTable.dtr-column > tbody > tr > th.control {
position: relative;
cursor: pointer;
}
table.dataTable.dtr-column > tbody > tr > td.control:before,
table.dataTable.dtr-column > tbody > tr > th.control:before {
top: 50%;
left: 50%;
height: 16px;
width: 16px;
margin-top: -10px;
margin-left: -10px;
display: block;
position: absolute;
color: white;
border: 2px solid white;
border-radius: 16px;
text-align: center;
line-height: 14px;
box-shadow: 0 0 3px #444;
box-sizing: content-box;
content: '+';
background-color: #31b131;
}
table.dataTable.dtr-column > tbody > tr.parent td.control:before,
table.dataTable.dtr-column > tbody > tr.parent th.control:before {
content: '-';
background-color: #d33333;
}
table.dataTable > tbody > tr.child {
padding: 0.5em 1em;
}
table.dataTable > tbody > tr.child:hover {
background: transparent !important;
}
table.dataTable > tbody > tr.child ul {
display: inline-block;
list-style-type: none;
margin: 0;
padding: 0;
}
table.dataTable > tbody > tr.child ul li {
border-bottom: 1px solid #efefef;
padding: 0.5em 0;
}
table.dataTable > tbody > tr.child ul li:first-child {
padding-top: 0;
}
table.dataTable > tbody > tr.child ul li:last-child {
border-bottom: none;
}
table.dataTable > tbody > tr.child span.dtr-title {
display: inline-block;
min-width: 75px;
font-weight: bold;
}

View file

@ -79,7 +79,6 @@
.dataTables_paginate {
float: right;
text-align: right;
margin-top: 7px;
margin-right: 15px;
}
@ -145,7 +144,7 @@ table.display {
clear: both;
width: 100%;
font-size: 14px;
line-height: 30px;
line-height: 25px;
/* Note Firefox 3.5 and before have a bug with border-collapse
* ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 )
* border-spacing: 0; is one possible option. Conditional-css.com is
@ -176,6 +175,36 @@ table.display thead th i {
margin-top: -1px;
}
table.display thead .sorting,
table.display thead .sorting_asc,
table.display thead .sorting_desc {
cursor: pointer;
*cursor: hand;
}
table.display thead .sorting,
table.display thead .sorting_asc,
table.display thead .sorting_desc,
table.display thead .sorting_asc_disabled,
table.display thead .sorting_desc_disabled {
background-repeat: no-repeat;
background-position: left;
}
table.display thead .sorting {
background-image: url("../images/sort_both.png");
}
table.display thead .sorting_asc {
background-image: url("../images/sort_asc.png");
}
table.display thead .sorting_desc {
background-image: url("../images/sort_desc.png");
}
table.display thead .sorting_asc_disabled {
background-image: url("../images/sort_asc_disabled.png");
}
table.display thead .sorting_desc_disabled {
background-image: url("../images/sort_desc_disabled.png");
}
table.display tfoot th {
padding: 3px 18px 3px 10px;
border-top: 1px solid black;
@ -188,7 +217,6 @@ table.display tr.heading2 td {
table.display td {
padding: 5px 0 5px 20px;
white-space:nowrap;
}
table.display td.title {
@ -619,4 +647,8 @@ div.box {
overflow: auto;
border: 1px solid #8080FF;
background-color: #E5E5FF;
}
td.no-wrap, th.no-wrap {
white-space:nowrap;
}

View file

@ -863,7 +863,6 @@ pre code {
.label,
.badge {
display: inline-block;
font-size: 14px;
padding: 4px 8px;
border-radius: 10px;
vertical-align: baseline;
@ -879,7 +878,6 @@ pre code {
display: inline-block;
font-weight: normal;
padding: 4px 8px;
font-size: 14px;
border-radius: 10px;
vertical-align: baseline;
white-space: nowrap;
@ -1217,7 +1215,7 @@ button,
select,
textarea {
color: #fff;
font-size: 16px;
font-size: 14x;
font-weight: normal;
line-height: normal;
}
@ -2224,6 +2222,7 @@ input[type="button"].btn-block {
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
padding: 6px 25px;
}
.btn-primary:hover,
.btn-primary:focus,
@ -4070,6 +4069,7 @@ text-shadow: 0 0 10px rgba(255,255,255,0.85);
}
.pagination {
margin: 0px 0;
padding-top: 12px;
}
.pagination ul {
display: inline-block;
@ -4094,7 +4094,7 @@ text-shadow: 0 0 10px rgba(255,255,255,0.85);
line-height: 20px;
text-decoration: none;
background-color: #262626;
border: 1px solid #1f1f1f;
border: 1px solid #444444;
border-left-width: 0;
}
.pagination ul > li > a:hover,
@ -4114,7 +4114,7 @@ text-shadow: 0 0 10px rgba(255,255,255,0.85);
.pagination ul > .disabled > a,
.pagination ul > .disabled > a:hover,
.pagination ul > .disabled > a:focus {
color: #222;
color: #444444;
background-color: transparent;
cursor: default;
text-shadow: none;
@ -8168,4 +8168,30 @@ ol.test >li {
color: #999999;
text-align: center;
line-height: 300px;
}
.card-back {
padding: 20px;
background-color: #282828;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
width: 80%;
overflow: hidden;
}
.table-card-back {
padding: 20px 20px 20px 40px;
background-color: #282828;
margin-left: auto;
margin-right: auto;
margin-top: 20px;
margin-bottom: 20px;
width: 90%;
overflow: hidden;
}
.table-card-back td {
font-size: 12px;
}