infokiosque/_src/styles/global.css

253 lines
3.8 KiB
CSS

@import url("./fonts.css");
:root {
--background-color: black;
--text-color: white;
}
html, body {
margin: 0;
padding: 0;
}
body {
background-color: var(--background-color);
font-family: "Open Sans", sans-serif;
color: var(--text-color);
margin-top: 10vh;
margin-bottom: 15vh;
box-sizing: border-box;
padding: 25px;
}
body.with-layout {
margin-top: 0;
}
body > * {
width: 100%;
max-width: 800px;
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
}
h1 {
font-family: "Degheest Director";
font-weight: 700;
font-size: min(3em, 10vw);
}
@media screen and (max-width: 500px) {
h1 {
line-break: loose;
}
}
h1 small, h2 small {
display: block;
}
h1 small {
font-size: 0.5em;
margin-top: 1ex;
font-weight: 400;
}
h2 {
font-weight: normal;
}
ul {
list-style-type: none;
}
a {
color: inherit;
text-decoration: none;
}
a:hover, a:active {
text-decoration: underline;
}
h1, h2, h3, p {
margin-bottom: 35px;
}
p {
line-height: 1.5;
}
hr {
border: none;
margin-top: 100px;
margin-bottom: 100px;
}
body > img {
width: max-content;
height: max-content;
object-fit: scale-down;
max-height: 50vh;
max-width: 100%;
display: block;
}
body > img:first-child {
margin-bottom: 10vh;
}
ul li > a:first-child::before {
content: "🠺";
font-family: "Open Sans", sans-serif;
margin-left: -1.5ex;
margin-right: 0.5ex;
}
i, ul li > a:first-child::before {
font-size: 1.5em;
vertical-align: middle;
display: inline-block;
font-style: normal;
}
ul li > a:first-child:hover::before {
opacity: 1;
transform: translateX(0.25ex);
}
[typeof="Collection"] ul {
padding-left: 0;
margin-top: 100px;
}
[typeof="Collection"] ul li > a:first-child::before {
content: unset;
}
[typeof="Collection"] ul li > a {
text-decoration: none;
}
[typeof="Collection"] ul li {
margin-bottom: 25px;
}
[typeof="Collection"] .publication-card {
margin-bottom: 50px;
}
body > section {
margin-top: 150px;
}
/* home */
.home > h1 {
text-align: center;
}
.home nav li a::before {
content: none;
}
.home nav ul {
padding: 0;
display: flex;
justify-content: center;
align-items: center;
gap: 5px;
}
.home nav li {
color: #fff600;
}
.home nav ul li:not(:last-child)::after {
content: "•";
margin-left: 5px;
}
/* publication card */
.publication-card {
display: grid;
grid-template-columns: 150px 1fr;
grid-template-rows: 1fr;
grid-auto-rows: min-content;
column-gap: 15px;
text-decoration: none !important;
width: 100%;
}
.publication-card > img:first-child {
grid-column: 1;
grid-row: 1 / 3;
width: 100%;
}
.publication-card h1 {
font-size: 1.5em;
margin: 0;
text-align: left;
}
.publication-card p {
margin: 0;
margin-top: 15px;
grid-column: 1 / 3;
}
.publication-card nav {
text-align: right;
margin-top: 15px;
grid-column: 1 / 3;
}
@media screen and (max-width: 500px) {
.publication-card {
grid-template-columns: 1fr;
}
.publication-card h1 {
font-size: 1.2em;
margin: 0;
}
.publication-card > img:first-child {
grid-column: 1;
grid-row: 1;
max-width: 150px;
margin-left: auto;
margin-right: auto;
margin-bottom: 15px;
}
.publication-card p, .publication-card nav {
grid-column: 1;
}
}
#empruntables .publication-card nav {
grid-column: 3;
grid-row: 2;
margin-top: 15px;
}
#empruntables .publication-card h1 {
grid-row: 1;
grid-column: 2 / 4;
}
#empruntables .publication-card .meta {
grid-row: 2;
grid-column: 2;
align-self: flex-end;
}
#empruntables [property="abstract"] {
display: none;
}