clean code

This commit is contained in:
Chneemann 2024-03-28 08:27:34 +01:00
parent a659bb98ae
commit 338bf3f007
6 changed files with 72 additions and 60 deletions

View file

@ -8,24 +8,6 @@ section {
box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.1); box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.1);
} }
/*------------- ANIMATION -------------*/
.animation-coming-in {
animation: coming-in 250ms ease-in-out;
opacity: 1;
}
@keyframes coming-in {
0% {
opacity: 0;
transform: translateX(100vw);
}
100% {
opacity: 1;
transform: translateX(0);
}
}
.headerline { .headerline {
display: flex; display: flex;
align-items: center; align-items: center;
@ -111,25 +93,51 @@ section {
} }
} }
/* Custom transition */ .contact {
@keyframes rotate-out { margin-top: 48px;
to { .headline {
transform: rotate(90deg); font-size: 20px;
font-weight: 400;
}
.info {
margin-top: 16px;
p {
font-size: 16px;
font-weight: 700;
padding: 24px 0 12px 0;
}
a {
font-size: 16px;
font-weight: 400;
text-decoration: none;
color: var(--light-blue);
cursor: pointer;
&:hover {
text-decoration: underline;
} }
} }
@keyframes rotate-in {
from {
transform: rotate(-90deg);
} }
} }
::view-transition-old(count),
::view-transition-new(count) { /*------------- ANIMATION -------------*/
animation-duration: 200ms;
animation-name: -ua-view-transition-fade-in, rotate-in; .animation-coming-in {
animation: coming-in 250ms ease-in-out;
opacity: 1;
} }
::view-transition-old(count) {
animation-name: -ua-view-transition-fade-out, rotate-out; @keyframes coming-in {
0% {
opacity: 0;
transform: translateX(100vw);
} }
100% {
opacity: 1;
transform: translateX(0);
}
}
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 1300px) { @media screen and (max-width: 1300px) {
.headerline { .headerline {
@ -165,32 +173,6 @@ section {
} }
} }
.contact {
margin-top: 48px;
.headline {
font-size: 20px;
font-weight: 400;
}
.info {
margin-top: 16px;
p {
font-size: 16px;
font-weight: 700;
padding: 24px 0 12px 0;
}
a {
font-size: 16px;
font-weight: 400;
text-decoration: none;
color: var(--light-blue);
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}
}
@media screen and (max-width: 1150px) { @media screen and (max-width: 1150px) {
section { section {
display: none; display: none;

View file

@ -116,6 +116,8 @@ section {
color: var(--light-blue); color: var(--light-blue);
} }
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 1150px) { @media screen and (max-width: 1150px) {
.left-frame { .left-frame {
position: fixed; position: fixed;

View file

@ -56,6 +56,8 @@ section {
display: none; display: none;
} }
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 910px) { @media screen and (max-width: 910px) {
.headline { .headline {
display: none; display: none;

View file

@ -1,5 +1,5 @@
section { section {
width: 100%; padding-right: 64px;
a { a {
text-decoration: none; text-decoration: none;
color: var(--gray); color: var(--gray);
@ -61,6 +61,14 @@ h3 {
color: var(--light-blue); color: var(--light-blue);
} }
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 910px) {
section {
padding-right: 0;
}
}
@media (max-width: 634px) { @media (max-width: 634px) {
h1 { h1 {
font-size: 36px; font-size: 36px;

View file

@ -1,5 +1,6 @@
section { section {
word-wrap: break-word; word-wrap: break-word;
padding-right: 64px;
} }
.header { .header {
@ -52,3 +53,11 @@ a {
text-decoration: underline; text-decoration: underline;
} }
} }
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 910px) {
section {
padding-right: 0;
}
}

View file

@ -1,5 +1,6 @@
section { section {
word-wrap: break-word; word-wrap: break-word;
padding-right: 64px;
} }
.header { .header {
@ -58,3 +59,11 @@ a {
text-decoration: underline; text-decoration: underline;
} }
} }
/*------------- RESPONSIVE -------------*/
@media screen and (max-width: 910px) {
section {
padding-right: 0;
}
}