2025-03-05 15:02:00 +01:00

134 lines
2.5 KiB
CSS

footer {
position: sticky;
flex-grow: 0;
flex-shrink: 0;
bottom: 0;
top: 100%;
height: 10em;
width: 100%;
display: flex;
grid-template-columns: 1fr 2fr 1fr;
opacity: 0.8;
z-index: 200;
padding: 2em 0;
}
footer .middle {
margin-left: 2em;
}
footer .middle h2,p {
text-align: left;
}
.mail-to p {
margin: 0;
}
footer .right {
width: 100%;
margin-left: 2%;
display: grid;
padding: 0;
grid-column-gap: 0;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
overflow-x: hidden;
overflow-y: hidden;
}
footer .right .mail-to {
grid-column-end: span 7;
display: flex;
flex-direction: row;
}
footer .right .socials {
width: 32px;
height: 32px;
align-self: start;
}
@media (max-width: 500px) {
footer .right {
margin-left: 2%;
display: grid;
padding: 0;
grid-column-gap: 0;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
footer .right .socials {
width: 25px;
height: 25px;
align-self: start;
}
footer .right .socials + .empty {
display: none;
}
}
@media (max-width: 720px) {
footer .right {
margin-left: 2%;
display: grid;
padding: 0;
grid-column-gap: 0;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
footer .right .socials {
width: 32px;
height: 32px;
align-self: start;
}
footer .right .socials + .empty {
display: none;
}
}
@media (min-width: 940px) {
footer .right {
margin-left: 2%;
display: grid;
padding: 0;
grid-column-gap: 0;
grid-template-columns: repeat(7, 1fr);
grid-template-rows: 1fr 1fr;
justify-items: center;
justify-content: center;
align-items: center;
}
}
@media (max-width: 940px) {
footer .right .mail-to + .empty{
display: none;
}
}
footer .right .socials + .empty {
display: none;
}
@media (prefers-color-scheme: dark) {
footer {
background-color: #4C585B;
}
.social {
filter: invert(1);
}
}