linkfree-themes
Version:
CSS themes for a free and open source alternative to LinkTree
90 lines (79 loc) • 1.55 kB
CSS
@import url("//fonts.googleapis.com/css2?family=Mulish:wght@400;700&display=swap");
:root {
--shadow: 2px 2px 10px #999999, -2px -2px 10px #ffffff;
--inner-shadow: inset 2px 2px 10px #999999, inset -2px -2px 10px #ffffff;
}
body {
align-items: center;
background-color: #ffffff;
display: flex;
flex-direction: column;
font-family: "Mulish", sans-serif;
font-size: 112.5%;
font-weight: 400;
margin: 0;
min-height: 100vh;
padding-block: clamp(2rem, 10vw, 4rem);
gap: 1em;
}
h1 {
font-size: clamp(1.9em, 7vw, 4em);
font-weight: 700;
margin: 0;
text-align: center;
}
a {
color: inherit;
text-decoration: none;
}
#userPhoto {
border-radius: 50%;
box-shadow: var(--inner-shadow);
height: 8em;
position: relative;
width: 8em;
}
#userPhoto:hover,
.picture:focus {
box-shadow: var(--shadow);
outline: none;
}
#userPhoto::before {
content: "";
background: url("homer.jpg");
background-size: contain;
border-radius: 50%;
inset: 0;
position: absolute;
z-index: -1;
}
p {
border-radius: 5px;
box-shadow: var(--shadow);
min-width: 20ch;
padding: 0.5em 1em;
text-align: center;
}
#links {
align-items: center;
display: flex;
flex-direction: column;
gap: 1em;
vertical-align: middle;
}
.link {
border-radius: 5px;
box-shadow: var(--shadow);
min-width: 20ch;
padding: 0.5em 1em;
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5em;
justify-content: center;
}
.link:hover,
.link:focus {
box-shadow: var(--inner-shadow);
outline: none;
}