Skip to content

Commit

Permalink
improvements completed
Browse files Browse the repository at this point in the history
  • Loading branch information
BurchakDmitry committed Dec 23, 2023
1 parent 7136d1c commit 06ffbe8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 32 deletions.
3 changes: 0 additions & 3 deletions src/images/icons/icon-arrow-hover.svg

This file was deleted.

4 changes: 2 additions & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<nav class="menu__navigation">
<ul class="menu__list">
<li class="menu__item">
<a href="#product" class="menu__link">Products</a>
<a href="#products" class="menu__link">Products</a>
</li>

<li class="menu__item">
Expand Down Expand Up @@ -110,7 +110,7 @@ <h1 class="header__title">Creative bakery</h1>

<main class="page__main">
<!-- #region PRODUCT -->
<section id="product" class="product">
<section id="products" class="product">
<h2 class="product__title">What we bake</h2>
<p class="product__description">We can customize our cookies right for your needs. Just imagine it</p>

Expand Down
12 changes: 6 additions & 6 deletions src/styles/blocks/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
border-radius: 8px;
width: 100%;
margin-bottom: 16px;

@include transition;
}

&__title {
Expand Down Expand Up @@ -52,12 +54,10 @@
color: $focused;

@include transition;

&::before {
content: url("../images/icons/icon-arrow-hover.svg");

@include transition;
}
}
}
}

.card:hover .card__image {
transform: scale(1.03);
}
6 changes: 6 additions & 0 deletions src/styles/blocks/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
background-size: contain;
grid-column: 1 / -1;

@include transition;

&:hover {
transform: scale(1.1);
}

@include on-tablet {
grid-row: 1 / 2;
grid-column: 1 / 3;
Expand Down
9 changes: 0 additions & 9 deletions src/styles/blocks/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,6 @@
}
}

&:focus {
border: 2px solid $focused;
background-color: $focused;

&::before {
content: url("../images/icons/header-btn-hover.svg");
}
}

@include on-tablet {
grid-column: 3 / 7;
margin-top: 210px;
Expand Down
10 changes: 5 additions & 5 deletions src/styles/blocks/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
pointer-events: none;
width: 50%;
height: 1px;
background-color: #F9512E;
background-color: $main-color;

@include transition;
}

&:hover {
color: #F9512E;
color: $main-color;

@include transition;

Expand All @@ -60,7 +60,7 @@
}

&--focus {
color: #F9512E;
color: $main-color;
text-transform: uppercase;
display: flex;
align-items: center;
Expand All @@ -69,7 +69,7 @@

&::after {
content: "";
background-color: #F9512E;
background-color: $main-color;
bottom: -8px;
}

Expand Down Expand Up @@ -112,7 +112,7 @@
&--close {
&::before {
content: url("../images/icons/icon-close.svg");

@include transition;
}

Expand Down
6 changes: 0 additions & 6 deletions src/styles/blocks/_product.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@
@include on-middle-display {
grid-column: span 3;
}

&:hover {
transform: scale(1.05);

@include transition;
}
}
}

Expand Down
8 changes: 7 additions & 1 deletion src/styles/blocks/_top-bar.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.top-bar {
@include on-padding-page;

display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -17,6 +17,12 @@
height: 32px;
line-height: 32px;

@include transition;

&:hover {
transform: scale(1.1);
}

&-image {
background-size: cover;
}
Expand Down

0 comments on commit 06ffbe8

Please sign in to comment.