AACResults/static/style.css

167 lines
2.8 KiB
CSS

body {
margin: 0 auto;
max-width: 1000px;
font-family: 'Roboto Condensed', sans-serif;
font-size: 11pt;
}
a {
color: rgba(21, 73, 150, 100%);
}
h1 {
text-align: center;
}
article {
padding: 0 8px;
}
/* Navigation elements */
nav {
display: flex;
background-color: rgba(21, 73, 150, 100%);
text-align: center;
}
nav span {
flex: 1 1 auto;
}
nav span {
white-space: nowrap;
}
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;
}
nav.nextprev {
margin-top: 10px;
padding: 0 15px;
}
nav.nextprev span.first,
nav.nextprev span.last,
nav.nextprev span.prev,
nav.nextprev span.next {
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;
}
table thead,
table tbody {
}
table thead th {
text-align: left;
font-size: 10pt;
}
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 */
div.search {
margin: 0 10px 15px;
display: flex;
flex-wrap: wrap;
align-items: stretch;
}
div.search > div {
flex: 1 1 250px;
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;
}