1
0
Fork 0
IdreXyz/idre/static/css/base.css

161 lines
2.8 KiB
CSS
Raw Normal View History

2023-09-14 00:19:12 +02:00
:root {
--idre-white: #f4f4f4;
--idre-salmon: #ff6188;
--idre-green: #a9dc76;
--idre-orange: #fc9867;
--idre-purple: #ab9df2;
--idre-cyan: #78dce8;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
@font-face {
font-family: 'Neuton';
src: url('/static/label/Neuton-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
body {
margin: 0;
width: 100%;
background-color: black;
color: var(--idre-white);
font-family: "Lato", "Open Sans", "Arial", sans-serif;
font-size: 16px;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release-list {
display: flex;
flex-flow: row wrap;
width: 100%;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release {
position: relative;
2017-08-17 17:11:03 +02:00
margin: 0;
width: 50%;
2023-09-14 00:19:12 +02:00
height: auto;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release img {
margin: 0;
width: 100%;
height: 100%;
object-fit: cover;
2015-03-14 22:38:12 +01:00
}
@media screen and (min-width: 1200px) {
2023-09-14 00:19:12 +02:00
.release {
width: 25%;
}
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release-infos-slab {
position: absolute;
bottom: 0;
right: 0;
width: 100%;
2023-09-15 10:15:23 +02:00
background: rgba(0, 0, 0, 0.5);
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release-infos {
position: relative;
display: flex;
flex-flow: column nowrap;
2023-09-15 10:15:23 +02:00
justify-content: end;
align-items: left;
2023-09-14 00:19:12 +02:00
padding: 1em;
2023-09-15 10:15:23 +02:00
text-align: left;
2023-09-14 00:19:12 +02:00
font-family: "Neuton", serif;
text-shadow: 0px 0px 4px #000000;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release-infos .title {
margin: 0;
2023-09-15 10:15:23 +02:00
font-size: 1.3em;
2023-09-14 22:34:18 +02:00
line-height: 1.1em;
2015-03-14 22:38:12 +01:00
}
2023-09-14 00:19:12 +02:00
.release-infos .contributors,
.release-infos .extras {
margin: 0;
2023-09-15 10:15:23 +02:00
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;
2023-09-14 00:19:12 +02:00
}
2015-03-14 22:38:12 +01:00
@media screen and (min-width: 1200px) {
2023-09-14 00:19:12 +02:00
.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 {
2023-09-15 10:15:23 +02:00
justify-content: center;
align-items: center;
2023-09-14 00:19:12 +02:00
padding: 2em;
height: 80%;
2023-09-15 10:15:23 +02:00
text-align: center;
2023-09-14 00:19:12 +02:00
}
.release-infos .title {
font-size: 2em;
}
.release-infos .contributors,
.release-infos .extras {
font-size: 1.4em;
}
2023-09-14 22:34:18 +02:00
.release-links {
2023-09-15 10:15:23 +02:00
bottom: -1em;
right: unset;
2023-09-14 22:34:18 +02:00
height: 3em;
justify-content: center;
}
.release-link img {
max-width: 3em;
border: 2px solid white;
}
2023-09-14 00:19:12 +02:00
}
2015-03-14 22:38:12 +01:00
2023-09-14 00:19:12 +02:00
@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); }
2017-08-17 15:21:14 +02:00
}
2017-08-17 19:25:59 +02:00
2023-09-14 00:19:12 +02:00
.release-infos .contributors {
animation: fadeColor 10s infinite;
2017-08-17 19:25:59 +02:00
}