Files
portfolio/home/index.css
2022-12-22 21:30:44 -05:00

288 lines
5.7 KiB
CSS

@media (min-aspect-ratio: 6 / 5) {
.nav2, .nav3 {
display: none !important;
}
}
@media (min-aspect-ratio: 3 / 4) and (max-aspect-ratio: 6 / 5) {
.nav1, .nav3 {
display: none !important;
}
.nav12 > p {
display: none;
}
}
@media (max-aspect-ratio: 3 / 4) {
.nav1, .nav2, .nav12 {
display: none !important;
}
}
/*----------------------------------------------------------------------------*/
html {
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
overflow-y: scroll;
overflow-x: hidden;
padding: 100vh 0;
color: white;
}
header {
position: fixed;
top: 0;
left: 0;
width: 100vw;
z-index: 1000;
filter: drop-shadow(0px 0px 100px #000);
}
#title-page > * {
opacity: calc(1 - 1.25 * var(--scroll, 0));
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
#title-page {
position: fixed;
width: 100vw;
background-color: var(--light);
-webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%);
clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 0% 100%);
height: calc(90vh - 77.5vh * var(--scroll, 0));
overflow: hidden;
display: flex;
flex-direction: column;
align-items: center;
}
#title-bottom {
position: absolute;
top: 65%;
}
#avatar {
position: fixed;
top: 50vh;
translate: 0 calc(-70% - 35% * var(--scroll, 0));
filter: grayscale(1) opacity(0.3);
z-index: -1;
width: max(90vmin, 60vh);
height: max(90vmin, 60vh);
image-rendering: crisp-edges;
image-rendering: -webkit-optimize-contrast;
}
#title-name::before {
content: "Hi! I'm";
position: absolute;
text-transform: none;
font-family: "Source Code Pro";
font-weight: normal;
font-size: calc(min(6vh, 8vw));
line-height: calc(min(5vh, 7vw));
top: 0;
left: 0;
translate: 1vmin -100%;
color: var(--dark);
}
.fade-text::before {
content: attr(data-t) " " attr(data-t) " " attr(data-t) " " attr(data-t) " " attr(data-t) " " attr(data-t) " " attr(data-t);
text-transform: uppercase;
font-size: calc(min(12vh, 16vw));
line-height: calc(min(11vh, 14vw));
font-family: "Open Sans", sans-serif;
font-weight: 900;
white-space: pre;
color: black;
}
#title-name {
position: absolute;
top: 0;
left: 50%;
text-transform: uppercase;
translate: -50% 0;
font-size: calc(min(12vh, 16vw));
line-height: calc(min(11vh, 14vw));
font-family: "Open Sans", sans-serif;
font-weight: 900;
color: transparent;
-webkit-background-clip: text;
background-clip: text;
background-image: var(--grad);
transform: translateZ(0);
}
.fade1 { opacity: 05%; translate: 0 0; }
.fade2 { opacity: 10%; translate: -5% 0; }
.fade3 { opacity: 20%; translate: 5% 0; }
.fade4 { opacity: 25%; translate: -10% 0; }
.fade5 { opacity: 30%; translate: 10% 0; }
.navbar {
padding: 2vmin 3vmin;
width: 100vw;
position: absolute;
display: flex;
box-sizing: border-box;
align-items: flex-start;
z-index: 100;
}
.button {
white-space: nowrap;
position: relative;
font-style: normal;
display: flex;
justify-content: center;
align-items: center;
font-size: 4vh;
font-family: "Open Sans", sans-serif;
font-weight: 900;
padding: 1vh 3vh;
color: var(--color, var(--dark));
background: transparent;
text-decoration: none;
transition: transform var(--timing) 1s, filter var(--timing) 1s;
}
.button.icon {
font-size: 2.5vh;
}
.button:active {
transition: transform var(--timing) 0.3s, filter var(--timing) 0.3s;
transform: scale(0.9);
}
.button.icon::before {
content: attr(data-i);
font-family: "Material Symbols Outlined";
font-size: 4vh;
}
.button::after {
content: "";
width: 100%;
height: 100%;
position: absolute;
background-color: var(--color, var(--dark));
filter: opacity(0);
transform: scale(0.9);
z-index: -1;
border-radius: 1vh;
transition: transform var(--timing) 1s, filter var(--timing) 1s;
}
.button:hover::after {
filter: opacity(0.25);
transform: scale(1);
}
@media (hover: none) {
.button:hover::after {
filter: opacity(0);
transform: scale(0.9);
}
}
.button:active::after {
filter: opacity(0.5);
}
/*----------------------------------------------------------------------------*/
#menu-modal::backdrop {
background-color: #0008;
}
#menu-modal {
position: fixed;
height: 100vh;
width: 100vw;
max-height: 100vh;
max-width: 100vw;
background: transparent;
}
#menu-inner {
padding: 2vmin 3vmin;
position: fixed;
height: 100vh;
width: 75vw;
display: flex;
box-sizing: border-box;
align-items: flex-start;
flex-direction: column;
-webkit-clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
background-color: var(--light);
}
/*----------------------------------------------------------------------------*/
.body {
font-family: "Source Code Pro", monospace;
}
.head {
font-family: "Open Sans", sans-serif;
font-weight: 900;
}
#about-me {
width: 100vw;
min-height: 100vh;
margin: 10vh 0;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
flex-wrap: wrap;
}
#about-me__title {
text-align: right;
margin-right: 10vmin;
margin-bottom: 10vmin;
font-size: 15vmin;
flex-basis: 60vmin;
z-index: 100;
line-height: 15vmin;
}
#about-me__text-outer {
filter: drop-shadow(0px 20px 20px #0009);
flex-basis: 80vmin;
}
#about-me__text {
--x: 50%;
--y: 30%;
--path: polygon(
-25% -50%,
155% -30%,
150% 150%,
-30% 130%
);
font-size: 4vmin;
background: var(--red);
outline: 100vmax solid var(--red);
-webkit-clip-path: var(--path);
clip-path: var(--path);
position: relative;
}
.back-text {
position: absolute;
bottom: -50%;
left: 50%;
transform: translateX(-50%);
}