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

144 lines
2.5 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
}
2023-09-14 00:19:12 +02:00
@media screen and (min-width: 992px) {
.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%;
background: rgba(0, 0, 0, 0.4);
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;
justify-content: center;
align-items: center;
padding: 1em;
font-family: "Neuton", serif;
text-align: center;
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;
font-size: 1.5em;
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;
font-size: 1.2em;
}
2015-03-14 22:38:12 +01:00
2023-09-14 00:19:12 +02:00
@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 {
padding: 2em;
height: 80%;
}
.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 {
position: absolute;
bottom: -1.5em;
height: 3em;
width: 100%;
display: flex;
justify-content: center;
gap: 0.5em;
}
.release-link img {
max-width: 3em;
border: 2px solid white;
border-radius: 0.5em;
}
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
}