mirror of
https://github.com/johnggli/linktree.git
synced 2026-08-17 06:56:04 +01:00
87 lines
1.7 KiB
CSS
87 lines
1.7 KiB
CSS
@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');
|
|
|
|
:root {
|
|
--bgColor: #1C1C1C;
|
|
--accentColor: #E6E6E6;
|
|
--font: 'Karla', sans-serif;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bgColor);
|
|
}
|
|
|
|
#profilePicture {
|
|
width: 96px;
|
|
height: 96px;
|
|
display: block;
|
|
margin: 35px auto 20px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
#userName {
|
|
color: #bbb;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
line-height: 1.25;
|
|
display: block;
|
|
font-family: var(--font);
|
|
width: 100%;
|
|
text-align: center;
|
|
text-decoration: none;
|
|
}
|
|
|
|
#links {
|
|
max-width: 675px;
|
|
width: auto;
|
|
display: block;
|
|
margin: 27px auto;
|
|
}
|
|
|
|
.link {
|
|
font-family: var(--font);
|
|
color: var(--bgColor);
|
|
background-color: var(--accentColor);
|
|
border: solid var(--accentColor) 2px;
|
|
border-radius: 10px;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
display: block;
|
|
margin-bottom: 20px;
|
|
padding: 17px;
|
|
text-decoration: none;
|
|
transition: all .25s cubic-bezier(.08, .59, .29, .99);
|
|
}
|
|
|
|
.link:hover {
|
|
background-color: var(--bgColor);
|
|
color: var(--accentColor);
|
|
}
|
|
|
|
#profileQuote {
|
|
color: #bbb;
|
|
font-size: 1rem;
|
|
margin-bottom: 20px;
|
|
display: block;
|
|
font-family: var(--font);
|
|
width: 100%;
|
|
text-align: center;
|
|
|
|
/* animation */
|
|
overflow: hidden;
|
|
background: linear-gradient(90deg, #000, #fff, #000);
|
|
background-repeat: no-repeat;
|
|
background-size: 80%;
|
|
animation: animate 3s linear infinite;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: rgba(255, 255, 255, 0);
|
|
}
|
|
|
|
@keyframes animate {
|
|
0% {
|
|
background-position: -500%;
|
|
}
|
|
100% {
|
|
background-position: 500%;
|
|
}
|
|
} |