Skip to content

Commit

Permalink
Merge pull request #99 from gudzsv/header-fix-scale
Browse files Browse the repository at this point in the history
Fix scale
  • Loading branch information
gudzsv authored May 1, 2024
2 parents 483c749 + f96e791 commit c72d69a
Showing 1 changed file with 49 additions and 52 deletions.
101 changes: 49 additions & 52 deletions src/partials/header/header.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

.header-container {
position: absolute;
left: 50%;
Expand Down Expand Up @@ -43,7 +42,6 @@
.name-icon:hover {
width: 93px;
height: 24px;

}

.name-icon:focus {
Expand Down Expand Up @@ -106,17 +104,16 @@

.list-item-link {
color: rgb(250, 250, 250);
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item-link:hover {
color: rgb(237, 59, 68);

color: rgb(237, 59, 68);
}

.list-item-link:focus {
Expand All @@ -133,33 +130,33 @@ color: rgb(237, 59, 68);

@media only screen and (min-width: 768px) {
.order-btn {
display: flex;
width: 174px;
height: 56px;
padding: 18px 24px 18px 24px;
border-radius: 60px;
color: rgb(250, 250, 250);
background-color: rgb(237, 59, 68);
margin-left: auto;
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
animation-duration: 1s;
animation-name: slidein;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
transition: scale 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
display: flex;
width: 174px;
height: 56px;
padding: 18px 24px 18px 24px;
border-radius: 60px;
color: rgb(250, 250, 250);
background-color: rgb(237, 59, 68);
margin-left: auto;
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
animation-duration: 1s;
animation-name: slidein;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.order-btn:hover {
background-color: rgb(224, 55, 63);
scale: 1.05;
}
background-color: rgb(224, 55, 63);
transform: scale(1.05);
}

.order-btn:focus {
background-color: rgb(224, 55, 63);
}
background-color: rgb(224, 55, 63);
}
}

.burger-btn-box {
Expand Down Expand Up @@ -201,13 +198,13 @@ color: rgb(237, 59, 68);
opacity: 0;

background-repeat: no-repeat;
background-size: cover;
background-image: url('@assets/img/hero/hero_red_mobile_1x.webp');

@media (min-resolution: 2dppx) {
background-image: url('@assets/img/hero/hero_red_mobile_2x.webp');
background-size: cover;
background-image: url('@assets/img/hero/hero_red_mobile_1x.webp');

@media (min-resolution: 2dppx) {
background-image: url('@assets/img/hero/hero_red_mobile_2x.webp');
background-size: cover;
}
}
}

.burger-menu.is-open {
Expand Down Expand Up @@ -239,18 +236,18 @@ color: rgb(237, 59, 68);

.burger-list-item-link {
color: rgb(250, 250, 250);
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
text-decoration: underline;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
font-family: 'Inter Tight';
font-size: 16px;
font-weight: 500;
line-height: 1.19;
letter-spacing: -0.02em;
text-decoration: underline;
transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-list-item-link:hover {
color: rgb(237, 59, 68);
}
color: rgb(237, 59, 68);
}

.burger-list-item-link:focus {
color: rgb(237, 59, 68);
Expand All @@ -261,7 +258,7 @@ color: rgb(237, 59, 68);
}

.burger-order-btn-box {
margin-bottom: 64px;
margin-bottom: 64px;
}

.burger-order-btn {
Expand Down Expand Up @@ -302,4 +299,4 @@ color: rgb(237, 59, 68);
transform: translateY(0);
opacity: 1;
}
}
}

0 comments on commit c72d69a

Please sign in to comment.