Snootalogue/wwwroot/css/style.css
2020-09-18 00:22:51 +10:00

209 lines
3.1 KiB
CSS

body {
font-family: sans-serif;
min-height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 200;
text-align: center;
}
.centred {
margin: 0 auto;
width: max-content;
text-align: center;
}
.subtle {
color: #888;
font-style: italic;
}
a {
text-decoration: underline dotted transparent;
color: #a66;
transition: 0.2s;
}
a:not(.button):hover {
text-decoration: underline dotted;
}
.button {
font-size: 1em;
color: #a66;
background: transparent;
border: thin #a66 solid;
border-radius: 5px;
padding: 5px 10px;
text-align: center;
transition: 0.2s all;
}
.button:hover {
background: #a66;
color: white;
}
.button.block {
display: inline-block;
margin: 5px auto;
}
.button.inverted {
color: white;
border-color: white;
}
.button.inverted:hover {
background: white;
color: #a00;
}
.vertical-buttons {
display: flex;
flex-direction: column;
}
.vertical-buttons .button {
flex: 1;
border-bottom: none;
border-radius: 0;
}
.vertical-buttons .button:first-child {
border-radius: 5px 5px 0 0;
}
.vertical-buttons .button:last-child {
border-bottom: thin #a66 solid;
border-radius: 0 0 5px 5px;
}
nav {
padding: 20px 15px;
background: #a00;
color: white;
display: flex;
justify-content: space-between;
}
nav.slim {
padding: 5px 15px;
font-size: 0.75em;
}
#nav-links {
font-size: 1.4em;
}
#nav-links a {
color: white;
}
#nav-links, #nav-search {
margin: auto 0;
}
#nav-search {
padding: 8px;
border: thin #a66 solid;
}
nav.slim #nav-search {
padding: 3px;
}
main {
flex-grow: 1;
margin: 0;
}
main:not(.no-padding) {
padding: 20px;
}
footer {
background-color: #eee;
text-align: center;
font-size: 0.8em;
font-style: italic;
padding: 3px;
}
.documents {
display: flex;
flex-direction: column;
margin: 0 auto;
}
.document {
display: flex;
flex: 1;
flex-direction: row;
margin: 10px;
padding-top: 10px;
border-top: thin #ccc solid;
}
.document-column {
width: 10%;
padding: 0 10px;
display: flex;
flex-direction: column;
justify-content: center;
}
.document-column.left {
background-size: contain;
background-repeat: no-repeat;
background-position: center;
flex-grow: 1;
}
.document-column.centre {
width: 80%;
}
.document-column.right ul {
list-style: none;
padding: 0;
}
.document-column.centre div {
margin: 3px 0;
}
.document-column .title {
font-size: 1.4em;
font-weight: 200;
text-align: center;
}
.document-column .authors {
text-align: center;
font-style: italic;
}
.document-column .tags {
font-size: 0.8em;
}
.document-column .tags .list-empty::before,
.document-details .tags .list-empty::before {
display: inline-block;
content: "No tags";
}
.document-column .metadata {
font-size: 0.8em;
color: #888;
}
.document-details {
margin: 10px auto;
width: min-content;
}
#document-viewer {
height: 100%;
width: 100%;
border: 0;
}
@media only screen and (min-width: 1000px) {
.documents {
max-width: 80%;
}
}
@media only screen and (min-width: 600px) and (max-width: 999px) {
.documents {
max-width: 90%;
}
}
@media only screen and (max-width: 800px) {
.button {
padding: 3px 5px;
}
}