alfieking.dev/static/css/main.css
2024-09-05 00:52:28 +01:00

318 lines
5.3 KiB
CSS

:root {
--primary-color: #5cdd8b;
--text-color: #b1b8c0;
--background-color: #090c10;
--secondary-background-color: #0d1117;
--font-size: 0.5cm;
--font-family: 'Roboto Mono', sans-serif;
}
body {
background-color: var(--background-color);
color: var(--text-color);
font-size: var(--font-size);
font-family: var(--font-family);
padding: 0;
margin: 0;
display: flex;
overflow-y: hidden;
}
nav {
height: 100vh;
width: 4rem;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
height: 100%;
}
nav ul li {
writing-mode: vertical-lr;
text-orientation: upright;
padding: 2rem 0rem 0rem 1.4rem;
width: fit-content;
}
nav ul li a {
color: var(--text-color);
text-decoration: none;
font-weight: 100;
font-family: 'Impact', sans-serif;
transition: all 0.3s ease-in-out
}
nav ul li a img {
width: 1.5rem;
height: 1.5rem;
transition: all 0.3s ease-in-out;
border-radius: 50%;
}
nav ul li a:hover {
color: var(--primary-color);
font-weight: 900;
}
nav ul li a:hover img {
border-radius: 35%;
}
nav ul li#music {
z-index: 100;
margin-top: auto;
padding-bottom: 2rem;
display: none;
transition: all 0.3s ease-in-out;
align-items: center;
flex-direction: column;
}
nav ul li#music img {
width: 1.5rem;
height: 1.5rem;
transition: all 0.3s ease-in-out;
border-radius: 50%;
}
nav ul li#music div#music-expand {
display: none;
width: 0rem;
height: 0rem;
border-radius: 0 500px 500px 0;
background-color: var(--secondary-background-color);
display: flex;
flex-direction: row;
box-sizing: border-box;
transition: all 0.3s ease-in-out;
overflow: hidden;
}
nav ul li#music h1 {
display: none;
font-size: 100%;
max-width: 90%;
writing-mode: horizontal-tb;
margin: 0.5rem 0 0 0.5rem;
transition: all 0.3s ease-in-out;
}
nav ul li#music h2 {
display: none;
font-size: 1rem;
max-width: 90%;
writing-mode: horizontal-tb;
margin: 0;
font-weight: 100;
margin: 0.5rem 0 0 0.5rem;
transition: all 0.3s ease-in-out;
}
nav ul li#music div#music-progress {
display: none;
width: 100%;
margin-top: auto;
height: 1rem;
background-color: var(--primary-color);
transition: all 3s ease;
}
main {
width: 100%;
height: 100vh;
overflow: scroll;
scrollbar-width: none;
scroll-behavior: smooth;
}
header {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
header div.row {
position: relative;
left: -3rem;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
margin: 0;
gap: 1.5rem;
}
header div.column {
display: flex;
flex-direction: column;
justify-content: center;
margin: 0;
}
header img {
width: 13rem;
height: 13rem;
}
header h1 {
font-size: 5rem;
font-weight: 900;
padding: 0;
margin: 0;
}
header h2 {
font-size: 1.75rem;
font-weight: 100;
padding: 0;
margin: 0;
position: relative;
top: -1rem;
}
main section {
width: 100%;
min-height: 100vh;
display: flex;
flex-direction: column;
box-sizing: border-box;
padding: 4rem;
}
main section h1 {
font-size: 4.5rem;
font-weight: 900;
margin: 0;
padding: 0;
}
main section h2 {
font-size: 1.75rem;
margin: 0;
padding: 0;
}
main section p {
font-size: 1.25rem;
margin: 0;
padding: 0;
font-weight: 300;
}
main section a {
color: var(--primary-color);
text-decoration: none;
transition: all 0.3s ease-in-out;
}
main section a:hover {
text-decoration: underline;
}
.projects {
display: flex;
flex-direction: row;
gap: 2rem;
margin-top: 2rem;
flex-wrap: wrap;
}
.project {
width: 30%;
display: flex;
flex-direction: column;
}
.project img {
width: 100%;
aspect-ratio: 5/2;
border-radius: 1rem 1rem 0 0;
}
.project .project-info {
padding: 0 1rem 1rem 1rem;
background-color: var(--secondary-background-color);
border-radius: 0 0 1rem 1rem;
}
.links {
display: flex;
flex-direction: row;
gap: 2rem;
margin-top: 2rem;
flex-wrap: wrap;
}
.links a img {
height: 120px;
transition: all 0.2s ease-in-out;
}
.links a:nth-child(even) img:hover {
transform: scale(1.1) rotate(5deg);
}
.links a:nth-child(odd) img:hover {
transform: scale(1.1) rotate(-5deg);
}
.links iframe {
height: 120px;
transition: all 0.2s ease-in-out;
}
.links iframe:hover {
transform: scale(1.1);
}
.blinkies {
display: flex;
flex-direction: column;
}
.blinkies a img {
height: 60px;
transition: all 0.2s ease-in-out;
}
.blinkies a {
height: 60px;
}
img.btn {
height: 60px !important;
transition: all 0.2s ease-in-out;
}
#links h2 {
margin-top: 2rem;
}
.btns {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 2rem;
}
.btns img {
height: 40px;
transition: all 0.2s ease-in-out;
}
.btns img:hover:nth-child(even) {
transform: scale(1.3) rotate(5deg);
}
.btns img:hover:nth-child(odd) {
transform: scale(1.3) rotate(-5deg);
}