personal-site/v2.css

669 lines
10 KiB
CSS
Raw Normal View History

2021-06-03 21:35:02 +00:00
html {
width: 100%;
overflow-x: hidden;
font-display: swap;
scroll-behavior: smooth;
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
font-family: Lato, Helvetica;
font-display: swap;
font-size: 18px;
line-height: 1.5;
color: #222;
2021-06-04 06:56:31 +00:00
position: relative;
2021-06-03 21:35:02 +00:00
}
:root {
--main-color: #E14646;
--base-color: #222;
}
/*................................................... Body */
body {
width: 100%;
display: block;
margin: 0px;
overflow: hidden;
/*background-color: #B8FFE1;*/
}
header {
position: fixed;
left: 40px;
top: 40px;
width: 200px;
z-index: 1000;
2021-06-06 09:29:14 +00:00
color: inherit;
2021-06-03 21:35:02 +00:00
}
header > a {
2021-06-06 09:29:14 +00:00
font-family: "hennigar";
2021-06-03 21:35:02 +00:00
font-size: 24px;
text-transform: uppercase;
border: none;
2021-06-05 15:11:16 +00:00
letter-spacing: 1px;
2021-06-06 09:29:14 +00:00
color: inherit;
2021-06-03 21:35:02 +00:00
}
nav {
margin-top: 20px;
display: flex;
flex-direction: column;
align-items: flex-start;
2021-06-06 09:29:14 +00:00
color: inherit;
2021-06-03 21:35:02 +00:00
}
nav > a {
margin-bottom: 10px;
font-size: 14px;
2021-06-06 09:29:14 +00:00
color: inherit;
2021-06-03 21:35:02 +00:00
}
nav > a:hover {
color: #E14646;
}
section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 40px;
position: relative;
}
section > div {
width: 960px;
display: flex;
justify-content: center;
}
section > div > div{
flex-grow: 1;
width: 50%;
display: flex;
flex-direction: column;
}
/*................................................... Text */
a {
text-decoration: none;
color: #222222;
border-bottom: 2px solid transparent;
cursor: pointer;
font-size: inherit;
transition: all .3s ease-out;
}
a:hover {
border-bottom: 2px solid #E14646;
}
h1, h2, h3, h4 {
2021-06-06 09:29:14 +00:00
font-family: "hennigar";
2021-06-03 21:35:02 +00:00
margin-top: 0px;
margin-bottom: 15px;
width: 100%;
line-height: 1.2;
color: inherit;
text-transform: uppercase;
2021-06-05 15:11:16 +00:00
letter-spacing: 1px;
font-weight: normal;
2021-06-03 21:35:02 +00:00
}
h1 {
font-size: 42px;
}
h2 {
2021-06-05 15:11:16 +00:00
font-size: 30px;
2021-06-03 21:35:02 +00:00
}
h3 {
}
h4 {
2021-06-06 09:29:14 +00:00
font-family: "Lato";
text-transform: none;
width: auto;
2021-06-03 21:35:02 +00:00
}
p {
font-size: 16px;
line-height: 1.5;
margin-top: 0px;
margin-bottom: 20px;
color: inherit;
width: 100%;
font-weight: 400;
}
span {
font-size: inherit;
2021-06-06 09:29:14 +00:00
font-weight: inherit;
font-family: inherit;
color: inherit;
2021-06-03 21:35:02 +00:00
}
/*................................................... Interactives */
button {
border: none;
background-color: black;
padding: 10px 20px;
color: white;
cursor: pointer;
}
button:hover {
background-color: darkblue;
}
input, textarea {
padding: 15px;
border-radius: 5px;
border: 1px solid rgba(0,0,0,0.2);
margin-bottom: 15px;
width: 100%;
font-size: 14px;
}
input:focus {
border: 1px solid blue;
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.2);
}
/*................................................... General classes and IDs */
2021-06-05 15:11:16 +00:00
.preloader-init {
position: fixed;
width: 100vw;
height: 100vh;
background-color: var(--main-color);
bottom: 0;
left: 0;
z-index: 2000;
}
.preloader {
position: fixed;
width: 100vw;
height: 100vh;
background-color: var(--main-color);
bottom: 0;
left: 0;
z-index: 2000;
animation: preloaderexit 1s;
animation-fill-mode: both;
animation-delay: 1s;
animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 );
}
@keyframes preloaderexit {
0%{display: none; transform: none; opacity: 1; height: 100vh;}
99%{transform: skewY(-3deg); opacity: 1; height: 0px; bottom: -200px;}
100%{display: none; transform: skewY(-3deg); opacity: 0; height: 0px;}
}
2021-06-03 21:35:02 +00:00
.aside-header {
position: fixed;
top: 40px;
right: 40px;
display: flex;
flex-direction: column;
align-items: flex-end;
z-index: 1000;
}
.aside-header > a {
font-size: 14px;
}
.social-media-link-block {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: var(--main-color);
margin-top: 10px;
}
2021-06-06 09:29:14 +00:00
.hero-graphic-wrapper-init {
width: 400px;
height: 600px;
display: flex;
flex-direction: column;
align-items: center;
margin-right: -20px;
opacity: 0;
}
2021-06-03 21:35:02 +00:00
.hero-graphic-wrapper {
width: 400px;
height: 600px;
display: flex;
flex-direction: column;
align-items: center;
2021-06-04 06:56:31 +00:00
margin-right: -20px;
2021-06-06 09:29:14 +00:00
animation: herographicintro 1.5s;
/* animation-fill-mode: both;*/
animation-delay: 1.3s;
animation-timing-function: cubic-bezier( 0.215, 0.61, 0.355, 1 );
transition: all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 );
}
@keyframes herographicintro {
0% {transform: translateY(100px) rotateX(5deg); opacity: 0;}
100% {transform: none; opacity: 1;}
2021-06-03 21:35:02 +00:00
}
#benjamin-hero-text {
2021-06-06 09:29:14 +00:00
font-family: "hennigar";
2021-06-05 15:11:16 +00:00
font-size: 105px;
2021-06-03 21:35:02 +00:00
text-transform: uppercase;
2021-06-05 15:11:16 +00:00
letter-spacing: 0px;
2021-06-03 21:35:02 +00:00
color: var(--main-color);
}
#toby-hero-text {
2021-06-06 09:29:14 +00:00
font-family: "hennigar";
2021-06-05 15:11:16 +00:00
font-size: 205px;
2021-06-03 21:35:02 +00:00
text-transform: uppercase;
2021-06-05 15:11:16 +00:00
letter-spacing: 0px;
2021-06-03 21:35:02 +00:00
color: var(--main-color);
line-height: 1;
2021-06-05 15:11:16 +00:00
margin-top: -63px;
2021-06-03 21:35:02 +00:00
}
.hero-graphic-block {
width: 350px;
height: 300px;
background-color: var(--main-color);
border-radius: 20px;
2021-06-05 15:11:16 +00:00
margin-top: -35px;
2021-06-03 21:35:02 +00:00
display: flex;
align-items: center;
justify-content: center;
}
.hero-graphic-block > img {
position: relative;
top: -40px;
}
.hero-text-wrapper {
2021-06-06 09:29:14 +00:00
width: 240px;
2021-06-03 21:35:02 +00:00
padding-top: 100px;
align-items: flex-start;
margin-left: 50px;
}
.hero-text-wrapper > a {
background-color: #393051;
color: white;
padding: 10px 20px;
border-radius: 5px;
border: none;
transition: all .3s ease;
}
.hero-text-wrapper > a:hover {
background-color: #393051;
padding: 12px 23px;
}
2021-06-04 06:56:31 +00:00
.scroll-down-link-block {
position: absolute;
background-color: white;
color: #222;
font-size: 36px;
font-weight: 700;
2021-06-04 20:11:31 +00:00
top: 480px;;
right: 30vw;
2021-06-04 06:56:31 +00:00
display: flex;
align-items: center;
justify-content: center;
width: 70px;
height: 80px;
border-radius: 10px;
padding-top: 20px;
cursor: pointer;
2021-06-04 20:11:31 +00:00
z-index: 100;
2021-06-04 06:56:31 +00:00
}
.scroll-link-icon {
transform: rotate(90deg);
font-size: inherit;
font-weight: inherit;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
margin: 0;
text-align: center;
line-height: 1;
left: 3px;
}
2021-06-03 21:35:02 +00:00
.hero-text-block {
font-size: 24px;
font-weight: 500;
margin-bottom: 40px;
}
.hero-text-block > h1 {
font-size: inherit;
color: var(--base-color);
display: inline;
font-weight: 600;
text-transform: none;
}
.hero-text-block > h1 > span {
font-size: inherit;
color: var(--main-color);
display: inline;
font-weight: inherit;
border-bottom: 2px solid var(--main-color);
cursor: pointer;
transition: all .3s ease;
}
.hero-text-block > h1 > span:hover {
padding: 5px 10px;
background-color: black;
color: white;
border-color: #393051;
}
.hero-watermark {
position: absolute;
2021-06-05 15:11:16 +00:00
font-size: 35em;
2021-06-06 09:29:14 +00:00
font-family: "hennigar";
2021-06-03 21:35:02 +00:00
z-index: -1;
2021-06-05 15:11:16 +00:00
top: -20px;
2021-06-03 21:35:02 +00:00
left: 50%;
transform: translateX(-50%);
2021-06-05 15:11:16 +00:00
color: rgba(0,0,0,0.05);
2021-06-06 09:29:14 +00:00
letter-spacing: 5px;
2021-06-03 21:35:02 +00:00
}
2021-06-04 20:11:31 +00:00
.below-fold {
background-color: var(--main-color);
padding-top: 200px;
padding-bottom: 200px;
}
2021-06-03 21:35:02 +00:00
.skewed-bg {
position: absolute;
width: 100%;
height: 400px;
transform: skewY(-3deg);
background-color: var(--main-color);
top: -200px;
z-index: -1;
2021-06-05 15:11:16 +00:00
animation: skewintro 1.2s;
animation-fill-mode: both;
animation-delay: 1s;
animation-timing-function: cubic-bezier( 0.39, 0.575, 0.565, 1 );
}
@keyframes skewintro {
0%{transform: none; top: 0;}
100%{transform: skewY(-3deg); top: -200px;}
2021-06-03 21:35:02 +00:00
}
.container-darkbg {
color: white;
display: flex;
align-items: flex-end;
text-align: right;
2021-06-06 09:29:14 +00:00
position: relative;
z-index: 10;
2021-06-03 21:35:02 +00:00
}
2021-06-06 09:29:14 +00:00
.right-column {
display: flex;
flex-direction: column;
align-items: flex-start;
position: relative;
z-index: 10;
}
.section-watermark {
font-family: "hennigar";
position: absolute;
color: rgba(0,0,0,0.05);
font-size: 15em;
top: -350px;
left: auto;
right: auto;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
z-index: 0;
}
.portfolio-item {
margin-left: 100px;
margin-bottom: 20px;
color: white;
display: flex;
flex-direction: column;
align-items: flex-end;
transition: all .5s ease-out;
border: none;
}
.portfolio-item:hover {
border: none;
}
.portfolio-item:first-child {
margin-top: -100px;
}
.portfolio-item:last-child {
margin-bottom: -300px;
color: #222;
}
.portfolio-item > h4 {
transition: all .5s ease-out;
border-bottom: 2px solid transparent;
}
.portfolio-item > div {
width: 350px;
height: 250px;
background-color: #222;
border-radius: 10px;
margin-bottom: 10px;
background-size: cover;
background-repeat: no-repeat;
background-position: center;
transition: all .3s ease-out;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.portfolio-item img {
position: absolute;
width: 100%;
transition: all .4s ease-out;
}
.portfolio-item:hover img {
width: 110%;
transform: rotate(5deg);
filter: brightness(105%);
}
.portfolio-item:hover > h4 {
border-bottom: 2px solid white;
}
.portfolio-item:hover > div {
box-shadow: 0px 0px 35px -5px rgba(0,0,0,0.4);
background-size: 120%;
}
.portfolio-item:last-child:hover > h4 {
border-bottom: 2px solid var(--main-color);
}
.portfolio-item-image {
}
2021-06-03 21:35:02 +00:00
2021-06-04 06:56:31 +00:00
/*Animations*/
.translate {
2021-06-04 20:11:31 +00:00
transition: all .8s cubic-bezier( 0.39, 0.575, 0.565, 1 );
2021-06-04 06:56:31 +00:00
}
2021-06-06 09:29:14 +00:00
.fade-in-bottom {
animation: fadeinbottom 1s;
animation-fill-mode: both;
animation-timing-function: ease-out;
}
@keyframes fadeinbottom {
0% {transform: translateY(100px) rotateX(5deg); opacity: 0;}
100% {transform: none; opacity: 1;}
}
.scroll-into-view {
opacity: 0;
}
2021-06-04 06:56:31 +00:00
2021-06-03 21:35:02 +00:00
/*.................................................................................................................. Mobile Styles */
@media (max-width: 950px) {
}
@media (max-width: 800px) {
}
@media (max-width: 550px) {
}
@media (max-width: 450px) {
}
@media (max-width: 350px) {
}