Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
huhliar committed Aug 27, 2024
1 parent fa5e4a4 commit 12e8992
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 6 deletions.
Binary file added src/images/png-close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ <h1 class="header__title">Strategic Agency</h1>
class="menu page__menu"
id="menu"
>
<div>
<a
href="#"
class="menu__icon--close"
></a>
</div>

<div class="menu__bottom">
<nav class="nav menu__nav">
<ul class="nav__list-aside">
Expand Down
4 changes: 0 additions & 4 deletions src/styles/blocks/contact-us.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
text-align: left;
color: #fff;
text-decoration: none;

@include hover(transform, scale(1.2));
}

&__address {
Expand All @@ -79,8 +77,6 @@
text-align: left;
color: #fff;
text-decoration: none;

@include hover(transform, scale(1.2));
}

&__socials {
Expand Down
3 changes: 2 additions & 1 deletion src/styles/blocks/expertise.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
}

&__article {
@include hover(transform, scale(1.2));
@include hover(transform, scale(1.1));

&-title {
margin-bottom: 16px;
text-align: center;
Expand Down
13 changes: 13 additions & 0 deletions src/styles/blocks/menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
pointer-events: none;
transition: all 0.3s;
transform: translateX(-100%);
z-index: 2;

&:target {
opacity: 1;
Expand All @@ -24,4 +25,16 @@
display: flex;
justify-content: space-between;
}

&__icon--close {
display: block;
background-image: url(../images/png-close.png);
width: 32px;
height: 32px;
z-index: 3;
position: fixed;
right: 20px;
top: 20px;
background-size: cover;
}
}
2 changes: 1 addition & 1 deletion src/styles/blocks/testimonials.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
background-color: #fff;
border-radius: 16px;

@include hover(transform, scale(1));
@include hover(transform, scale(1.1));
}

&__container-title {
Expand Down

0 comments on commit 12e8992

Please sign in to comment.