AACResults/static/style.css

167 lines
2.8 KiB
CSS
Raw Permalink Normal View History

2018-08-14 08:54:02 +00:00
body {
2018-08-14 08:57:55 +00:00
margin: 0 auto;
max-width: 1000px;
2018-08-14 08:54:02 +00:00
font-family: 'Roboto Condensed', sans-serif;
font-size: 11pt;
}
2018-08-14 08:55:34 +00:00
a {
color: rgba(21, 73, 150, 100%);
2018-08-14 08:55:34 +00:00
}
h1 {
text-align: center;
}
2018-08-14 08:57:55 +00:00
article {
padding: 0 8px;
}
/* Navigation elements */
2018-08-14 08:55:34 +00:00
nav {
display: flex;
background-color: rgba(21, 73, 150, 100%);
2018-08-14 08:54:02 +00:00
text-align: center;
}
2018-08-14 08:55:34 +00:00
nav span {
flex: 1 1 auto;
}
nav span {
2018-08-14 08:57:55 +00:00
white-space: nowrap;
2018-08-14 08:55:34 +00:00
}
nav span a {
display: block;
color: #FFF;
}
nav.tabs {
}
nav.tabs span {
border-right: 1px solid #FFF;
}
nav.tabs span:last-child {
border-right: none;
}
nav.tabs span a {
padding-top: 15px;
padding-bottom: 15px;
font-size: 10pt;
font-weight: bold;
}
2018-08-14 08:55:34 +00:00
nav.nextprev {
margin-top: 10px;
padding: 0 15px;
2018-08-14 08:54:02 +00:00
}
2018-08-14 08:55:34 +00:00
nav.nextprev span.first,
nav.nextprev span.last,
nav.nextprev span.prev,
2018-08-14 08:54:02 +00:00
nav.nextprev span.next {
2018-08-14 08:55:34 +00:00
padding: 0 2px;
}
nav.nextprev span.plain,
nav.nextprev span a {
display: block;
padding: 10px 5px;
}
/* Results lists */
table {
border-collapse: collapse;
width: 100%;
overflow-x: auto;
2018-08-14 08:55:34 +00:00
}
table thead,
table tbody {
2018-08-14 08:55:34 +00:00
}
table thead th {
text-align: left;
2018-08-14 08:57:55 +00:00
font-size: 10pt;
2018-08-14 08:54:02 +00:00
}
table tr {
}
table tr td {
padding-right: 10px;
border-bottom: 1px solid grey;
}
table tr td:last-child {
padding-right: 0;
}
table tr td.nowrap {
white-space: nowrap;
}
table tr td span.label {
display: none;
}
@media
only screen and (max-width: 600px) {
/* Force table to not be like tables anymore */
table.wide,
table.wide thead,
table.wide tbody,
table.wide thead th,
table.wide tr,
table.wide tr td {
display: block;
}
table.wide thead tr {
display: none;
}
table.wide tr:nth-of-type(even) {
border: 1px solid rgba(21, 73, 150, 60%);
}
table.wide tr:nth-of-type(odd) {
background-color: rgba(21, 73, 150, 60%);
}
table.wide tr:nth-of-type(odd) a {
color: #FFF;
}
table.wide tr td {
display: flex;
align-items: center;
/* Behave like a "row" */
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 10%);
}
table.wide tr td span {
flex: 2;
padding-right: 10px;
}
table.wide tr td span.label {
display: initial;
flex: 1;
text-align: right;
}
table.wide tr td,
table.wide tr td:last-child {
padding-right: 10px;
}
}
/* Search box */
2018-08-14 08:57:55 +00:00
div.search {
margin: 0 10px 15px;
display: flex;
flex-wrap: wrap;
align-items: stretch;
}
div.search > div {
flex: 1 1 250px;
2018-08-14 08:57:55 +00:00
padding: 5px;
display: flex;
align-items: center;
}
div.search label {
flex: 1;
text-align: right;
padding-right: 10px;
}
div.search input {
flex: 2;
font-family: 'Roboto Condensed', sans-serif; /* Override firefox's occassional monospace weirdness */
padding-top: 5px; /* Override Firefox weirdness */
padding-bottom: 5px; /* Override Firefox weirdness */
}
div.search input#searchsubmit {
flex: none;
margin-left: auto;
}