98 lines
1.5 KiB
CSS
98 lines
1.5 KiB
CSS
/* PAGE STYLES */
|
|
@import url(https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css);
|
|
|
|
/* --> BASE STYLES <-- */
|
|
body {
|
|
font-family: 'fira code', monospace;
|
|
font-size: 1.2em;
|
|
color: #1e1e3cff;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
a, a:visited {
|
|
color: #1e1e3cff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* --> NAVIGATION <-- */
|
|
nav {
|
|
margin: 20px;
|
|
}
|
|
|
|
nav>span {
|
|
font-size: 1.5em;
|
|
color: #1e1e3c33;
|
|
transition: color ease 0.5s;
|
|
}
|
|
|
|
nav>span:hover {
|
|
color: #1e1e3cff;
|
|
transition: color ease 0.1s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
nav>span.active {
|
|
color: #1e1e3cff;
|
|
transition: color 1s ease;
|
|
}
|
|
|
|
nav>span.active::after {
|
|
color: #1e1e3cff;
|
|
margin-left: 14px;
|
|
content: attr(data-link);
|
|
}
|
|
|
|
h1#menuItem {
|
|
position: absolute;
|
|
left: 20px;
|
|
bottom: 20px;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 32vw;
|
|
opacity: 0;
|
|
transform: translateY(300px);
|
|
transition: opacity ease-in-out 0.1s, transform ease-in-out 0.1s;
|
|
}
|
|
|
|
h1#menuItem.active {
|
|
opacity: 1 !important;
|
|
transform: translateY(0px) !important;
|
|
}
|
|
|
|
/* --> MAINPAGE CONSTRUCTION <-- */
|
|
|
|
section.content {
|
|
display: grid;
|
|
margin: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
max-height: 0px;
|
|
overflow: hidden;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
section.content.visible {
|
|
margin: 20px 67px;
|
|
opacity: 1;
|
|
height: inherit;
|
|
overflow: inherit;
|
|
}
|
|
|
|
section.content ul.subMenu {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
section.content ul.subMenu li {
|
|
border-left: thin solid #d2d2d8;
|
|
padding: 5px 10px;
|
|
}
|
|
|
|
section.content ul.subMenu li:hover {
|
|
background: #d2d2d8;
|
|
cursor: pointer;
|
|
}
|