links/style.css

170 lines
2.2 KiB
CSS
Raw Normal View History

2024-03-24 15:53:46 +01:00
@font-face {
font-family: "Maven Pro";
src: local("Maven Pro"), url(/static/MavenPro-VariableFont:wght.ttf);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
a:active {
color: ActiveText !important;
}
a:hover, a:link, a:visited {
color: LinkText;
}
body, footer, header {
display: flex;
flex-direction: column;
}
body {
background: #fff;
color: #000;
font-family: "Maven Pro", sans-serif;
font-size: 12pt;
margin: 0 auto;
max-width: 1000px;
min-height: 100vh;
padding: 1em;
width: 100vw;
}
figure {
margin: 0 auto;
max-width: 600px;
width: 100%;
}
figure > img {
height: auto;
max-height: 30vh;
width: 100%;
}
footer {
flex-grow: 1;
justify-content: end;
line-height: 1.5;
margin-top: 1em;
}
footer > p {
text-align: center;
}
header {
margin-bottom: 1em;
}
main {
display: grid;
gap: 1em;
grid-template-columns: 1fr;
}
.card {
--border-color: #000;
border-radius: 2em;
}
.card.card-animate {
animation: 0.5s wave 0.5s;
z-index: 42;
}
.card.card-highlight {
--border-color: #87bfb6;
background: #87bfb6;
font-weight: 500;
}
.card > :is(a, p) {
border: 1px solid var(--border-color);
border-radius: 2em;
display: block;
line-height: 1;
padding: 1.5em;
text-align: center;
}
.card > :is(a, p) > img {
display: none;
height: 2em;
left: 1.5em;
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 2em;
}
.card.card-has-icon > :is(a, p) {
padding: 1.5em 5em;
position: relative;
}
.card.card-has-icon > :is(a, p) > img {
display: initial;
}
.card > :is(a:active, a:hover, a:link, a:visited) {
color: inherit;
text-decoration: none;
transition: 0.5s;
}
.card > :is(a:active, a:hover, a:link, a:visited) > img {
transition: 0.5s;
}
.card > :is(a:active, a:hover) {
background: #000;
color: #fff;
}
.card > :is(a:active, a:hover) > img {
filter: invert(100%);
}
.logo {
padding: 0 3em;
}
@keyframes wave {
0% {
transform: none;
}
33.33% {
transform: rotate(-5deg);
}
66.67% {
transform: rotate(5deg);
}
100% {
transform: none;
}
}
@media only screen and (min-width: 600px) {
main {
grid-template-columns: repeat(2, 1fr);
}
.card.card-wide {
grid-column-end: span 2;
}
}
@media (prefers-reduced-motion) {
.card.card-animate {
animation: none;
}
}