Skip to content

Commit

Permalink
add hover effects for slider icons
Browse files Browse the repository at this point in the history
  • Loading branch information
katya-sn committed Aug 21, 2024
1 parent 3f30e9e commit 89d42c0
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 20 deletions.
10 changes: 0 additions & 10 deletions src/images/slider/arrow-left-black.svg

This file was deleted.

12 changes: 10 additions & 2 deletions src/images/slider/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions src/images/slider/arrow-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/images/slider/hover-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/images/slider/hover-right.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/slider/slide-img-1.jpg
Binary file not shown.
2 changes: 2 additions & 0 deletions src/styles/blocks/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@

font-size: 24px;
line-height: 36px;

@include hover(color, $color-hover-blue);
}

&__contacts {
Expand Down
4 changes: 4 additions & 0 deletions src/styles/blocks/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
padding-top: 48px;
}

&__logo {
@include hover(scale, 1.05)
}

&__menu {
margin-left: 32px;
width: 24px;
Expand Down
18 changes: 12 additions & 6 deletions src/styles/blocks/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,26 @@
}

&__icon {
background-color: $color-white;
height: 32px;
width: 32px;
background-size: cover;
border-radius: 50%;
background-repeat: no-repeat;
background-position: center;
transition: background-image 0.3s;

&--left {
background-image: url('/src/images/slider/arrow-left-black.svg');
background-image: url('/src/images/slider/arrow-left.svg');

&:hover {
background-image: url('/src/images/slider/hover-left.svg');
}
}

&--right {
background-image: url('/src/images/slider/arrow-left-black.svg');
rotate: 180deg;
background-image: url('/src/images/slider/arrow-right.svg');

&:hover {
background-image: url('/src/images/slider/hover-right.svg');
}
}
}

Expand Down

0 comments on commit 89d42c0

Please sign in to comment.