mirror of
https://github.com/JonasunderscoreJones/jonasjones.dev.git
synced 2025-10-23 00:49:19 +02:00
Fixed an issue where the background moves when you tap somewhere like on desktop. This makes the background look weird and has therefore been fixed
173 lines
No EOL
2.9 KiB
CSS
173 lines
No EOL
2.9 KiB
CSS
/* Import Font Awesome for social media icons */
|
|
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');
|
|
|
|
@font-face {
|
|
font-family: 'sary_soft_semiboldregular';
|
|
src: url('/font/sary-soft.soft-semibold-webfont.woff2') format('woff2'),
|
|
url('/font/sary-soft.soft-semibold-webfont.woff') format('woff');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
|
|
}
|
|
|
|
html {
|
|
font-family: 'sary_soft_semiboldregular';
|
|
margin: 0px;
|
|
background-color: #202324;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'sary_soft_semiboldregular';
|
|
color: rgb(0, 255, 0);
|
|
text-align: center;
|
|
}
|
|
|
|
a {
|
|
color: rgb(0, 255, 0);
|
|
}
|
|
|
|
a:hover {
|
|
color: green;
|
|
}
|
|
|
|
.parallax-background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('/ricky.png');
|
|
background-repeat: no-repeat;
|
|
background-size: 90%;
|
|
background-position: center center;
|
|
transform: translateX(calc(-1 * (var(--mouse-x)) / 50)) translateY(calc(-1 * var(--mouse-y) / 50));
|
|
z-index: -1;
|
|
/* Place the background behind other content */
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.parallax-background {
|
|
transform:none;
|
|
}
|
|
|
|
}
|
|
|
|
/* Set container styles */
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding-right: 3%;
|
|
padding-left: 3%;
|
|
}
|
|
|
|
.image-wrapper {
|
|
position: relative;
|
|
width: 400px;
|
|
height: 400px;
|
|
perspective: 800px;
|
|
}
|
|
|
|
.card-front,
|
|
.card-back {
|
|
position: absolute;
|
|
width: 100%;
|
|
backface-visibility: hidden;
|
|
transition: transform 0.5s;
|
|
}
|
|
|
|
/* Set links styles */
|
|
.links {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.picture {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.card-front {
|
|
transform: rotateY(0);
|
|
}
|
|
|
|
.card-back {
|
|
transform: rotateY(180deg);
|
|
}
|
|
|
|
.image-wrapper:hover .card-front {
|
|
transform: rotateY(-180deg);
|
|
}
|
|
|
|
.image-wrapper:hover .card-back {
|
|
transform: rotateY(0);
|
|
}
|
|
|
|
.home-link,
|
|
.for-the-based-link {
|
|
font-size: 2rem;
|
|
margin: 0 0.5rem;
|
|
color: rgb(0, 255, 0);
|
|
text-decoration: underline;
|
|
transition: all 0.2s ease-in-out;
|
|
font-family: 'sary_soft_semiboldregular';
|
|
font-style: italic;
|
|
}
|
|
|
|
.home-link:hover,
|
|
.for-the-based-link:hover {
|
|
color: green;
|
|
text-decoration: none;
|
|
font-size: 2.5rem;
|
|
}
|
|
|
|
/* Set social media styles */
|
|
.social-media {
|
|
margin-top: 1rem;
|
|
color: white;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.row {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.row a {
|
|
margin-right: 1rem;
|
|
color: rgb(0, 255, 0);
|
|
text-decoration: none;
|
|
font-size: 24px;
|
|
transition: transform 0.2s ease-in-out;
|
|
}
|
|
|
|
.row a:hover {
|
|
transform: scale(1.3);
|
|
/* make icon 20% bigger on hover */
|
|
}
|
|
|
|
.line {
|
|
padding: 10px;
|
|
}
|
|
|
|
.line-content {
|
|
color: #333;
|
|
font-size: 0.01rem;
|
|
z-index: -1;
|
|
transition: transform 0.2s ease-in-out;
|
|
}
|
|
|
|
.line:hover+.line-content {
|
|
transform: scale(100);
|
|
color: gray;
|
|
} |