215 lines
3.3 KiB
CSS
215 lines
3.3 KiB
CSS
/** Tables */
|
|
|
|
table {
|
|
width: 100%;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 4px 15px;
|
|
border: 1px solid #E1E1E1;
|
|
vertical-align: top;
|
|
}
|
|
th:first-child,
|
|
td:first-child {
|
|
padding-left: 15px; }
|
|
th:last-child,
|
|
td:last-child {
|
|
padding-right: 15px; }
|
|
|
|
tr:nth-child(odd) {background: #f9f9f9}
|
|
tr:nth-child(even) {background: #FFF}
|
|
|
|
th {
|
|
background: #e1f6fd;
|
|
}
|
|
|
|
td.number {
|
|
text-align: right;
|
|
}
|
|
|
|
/** Footer **/
|
|
footer {
|
|
text-align: center;
|
|
}
|
|
|
|
/** Labels */
|
|
|
|
.label {
|
|
display: inline;
|
|
padding: .2em .6em .3em;
|
|
font-size: 75%;
|
|
font-weight: bold;
|
|
line-height: 1;
|
|
color: #fff;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: baseline;
|
|
border-radius: .25em;
|
|
}
|
|
|
|
.ok {
|
|
background-color: #468847;
|
|
}
|
|
.warning {
|
|
background-color: #f0ad4e;
|
|
}
|
|
.error {
|
|
background-color: #d9534f;
|
|
}
|
|
|
|
ul.menu {
|
|
list-style: none;
|
|
font-size: 125%;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.errors {
|
|
margin-bottom: 2em;
|
|
background: lightpink;
|
|
}
|
|
|
|
/* Hide/show in coach offending */
|
|
.hideable {
|
|
display: none;
|
|
}
|
|
|
|
/* Hack for long URLs in tables, please help us with a better way to do this! */
|
|
.url {
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
-webkit-hyphens: auto;
|
|
-ms-hyphens: auto;
|
|
-moz-hyphens: auto;
|
|
hyphens: auto;
|
|
}
|
|
|
|
.assetsurl {
|
|
max-width: 400px;
|
|
}
|
|
|
|
.pagesurl {
|
|
max-width: 350px;
|
|
}
|
|
|
|
.offendingurl {
|
|
max-width: 900px;
|
|
}
|
|
|
|
/* Boxes on the start summary page */
|
|
|
|
.summarybox {
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid transparent;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.summarybox.ok {
|
|
color: #468847;
|
|
background-color: #dff0d8;
|
|
border-color: #d6e9c6;
|
|
}
|
|
.summarybox.warning {
|
|
color: #c09853;
|
|
background-color: #fcf8e3;
|
|
border-color: #fbeed5;
|
|
}
|
|
.summarybox.error {
|
|
color: #b94a48;
|
|
background-color: #f2dede;
|
|
border-color: #eed3d7;
|
|
}
|
|
|
|
.summarybox.info {
|
|
background-color: #D9EDF7;
|
|
border-color: #BCE8F1;
|
|
color: #3A87AD;
|
|
}
|
|
|
|
.summarynumber {
|
|
font-size: 3rem;
|
|
line-height: 3rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.summarysmall {
|
|
font-size: 1.5rem;
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
/* Large */
|
|
|
|
.large {
|
|
font-size: 2rem;
|
|
line-height: 2rem;
|
|
}
|
|
|
|
.hidden-small {
|
|
display: inline;
|
|
}
|
|
|
|
|
|
/** Responsive tables, wrap them in a div
|
|
* We use Chris Coyiers (old) hide the table
|
|
* solution https://css-tricks.com/responsive-data-tables/
|
|
*/
|
|
@media only screen and (max-width: 800px) {
|
|
|
|
/* Force table to not be like tables anymore */
|
|
.responsive table,
|
|
.responsive thead,
|
|
.responsive tbody,
|
|
.responsive th,
|
|
.responsive td,
|
|
.responsive tr {
|
|
display: block;
|
|
}
|
|
|
|
/* Hide/show in coach offending */
|
|
.responsive tr.hideable {
|
|
display: none;
|
|
}
|
|
|
|
/* Hide table headers (but not display: none;, for accessibility) */
|
|
.responsive thead tr {
|
|
position: absolute;
|
|
top: -9999px;
|
|
left: -9999px;
|
|
}
|
|
|
|
.responsive tr { border: 4px solid #E1E1E1; }
|
|
|
|
.responsive td {
|
|
/* Behave like a "row" */
|
|
border: none;
|
|
border-bottom: 1px solid #E1E1E1;
|
|
position: relative;
|
|
padding-left: 50%;
|
|
white-space: normal;
|
|
text-align:left;
|
|
}
|
|
|
|
.responsive td:before {
|
|
/* Now like a table header */
|
|
position: absolute;
|
|
/* Top/left values mimic padding */
|
|
top: 6px;
|
|
left: 6px;
|
|
width: 30%;
|
|
padding-right: 10px;
|
|
white-space: nowrap;
|
|
text-align:left;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/*
|
|
Label the data
|
|
*/
|
|
.responsive td:before { content: attr(data-title); }
|
|
|
|
.hidden-small {
|
|
display: none;
|
|
}
|
|
}
|