body { font-family: sans-serif; margin: 0; } 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: none; } a.button { color: #a66; background: transparent; border: thin #a66 solid; border-radius: 5px; padding: 5px 10px; text-align: center; transition: 0.2s all; } a.button:hover { background: #a66; color: white; } a.button.block { display: inline-block; margin: 5px auto; } a.button.inverted { color: white; border-color: white; } a.button.inverted:hover { background: white; color: #a00; } .vertical-buttons { display: flex; flex-direction: column; } .vertical-buttons a.button { flex: 1; border-bottom: none; border-radius: 0; } .vertical-buttons a.button:first-child { border-radius: 5px 5px 0 0; } .vertical-buttons a.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-links { font-size: 1.4em; } #nav-links, #nav-search { margin: auto 0; } main { padding: 20px; } .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%; } .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; } @media only screen and (min-width: 900px) { .documents { max-width: 80%; } } @media only screen and (min-width: 600px) and (max-width: 899px) { .documents { max-width: 90%; } } @media only screen and (max-width: 800px) { a.button { padding: 3px 5px; } }