1
0
Fork 0
IdreXyz/idre/static/css/base.css
2023-09-15 10:17:30 +02:00

161 lines
2.8 KiB
CSS

:root {
--idre-white: #f4f4f4;
--idre-salmon: #ff6188;
--idre-green: #a9dc76;
--idre-orange: #fc9867;
--idre-purple: #ab9df2;
--idre-cyan: #78dce8;
}
@font-face {
font-family: 'Neuton';
src: url('/static/label/Neuton-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
margin: 0;
width: 100%;
background-color: black;
color: var(--idre-white);
font-family: "Lato", "Open Sans", "Arial", sans-serif;
font-size: 16px;
}
.release-list {
display: flex;
flex-flow: row wrap;
width: 100%;
}
.release {
position: relative;
margin: 0;
width: 50%;
height: auto;
}
.release img {
margin: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
@media screen and (min-width: 992px) {
.release {
width: 25%;
}
}
.release-infos-slab {
position: absolute;
bottom: 0;
right: 0;
width: 100%;
background: rgba(0, 0, 0, 0.5);
}
.release-infos {
position: relative;
display: flex;
flex-flow: column nowrap;
justify-content: end;
align-items: left;
padding: 1em;
text-align: left;
font-family: "Neuton", serif;
text-shadow: 0px 0px 4px #000000;
}
.release-infos .title {
margin: 0;
font-size: 1.3em;
line-height: 1.1em;
}
.release-infos .contributors,
.release-infos .extras {
margin: 0;
font-size: 1em;
}
.release-links {
position: absolute;
bottom: 0.5em;
right: 0.5em;
height: 1.5em;
width: 100%;
display: flex;
justify-content: right;
gap: 0.5em;
z-index: 1;
}
.release-link img {
max-width: 1.5em;
border: 1px solid white;
border-radius: 0.5em;
}
@media screen and (min-width: 992px) {
.release-infos-slab {
top: 0;
margin: 10%;
width: 80%;
height: 80%;
border-radius: 1em;
opacity: 0;
transition: opacity 0.1s linear;
background: rgba(0, 0, 0, 0.8);
}
.release-infos-slab:hover {
opacity: 1;
}
.release-infos {
justify-content: center;
align-items: center;
padding: 2em;
height: 80%;
text-align: center;
}
.release-infos .title {
font-size: 2em;
}
.release-infos .contributors,
.release-infos .extras {
font-size: 1.4em;
}
.release-links {
bottom: -1em;
right: unset;
height: 3em;
justify-content: center;
}
.release-link img {
max-width: 3em;
border: 2px solid white;
}
}
@keyframes fadeColor {
0% { color: var(--idre-white); }
16% { color: var(--idre-salmon); }
32% { color: var(--idre-green); }
48% { color: var(--idre-orange); }
64% { color: var(--idre-purple); }
80% { color: var(--idre-cyan); }
100% { color: var(--idre-white); }
}
.release-infos .contributors {
animation: fadeColor 10s infinite;
}