Skip to content

Commit

Permalink
Merge pull request #12 from Ayronhayd/master
Browse files Browse the repository at this point in the history
  • Loading branch information
keksobot authored Jan 19, 2024
2 parents 8b0b542 + 3282947 commit 1e171d8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 23 deletions.
7 changes: 4 additions & 3 deletions source/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,11 @@ <h2 class="visually-hidden">Контакты.</h2>

<footer class="footer">
<div class="footer__container container">
<a class="footer__logo logo logo--footer" href="#">
<img class="logo__image" src="./images/logo-sign.svg" width="128" height="24" alt=" Логотип Cat Energy.">
</a>

<div class="footer__logo logo logo--footer">
<img class="logo__image" src="./images/logo-sign.svg" width="128" height="24" alt=" Логотип Cat Energy.">
</div>
</a>
<ul class="footer__social social">
<li class="social__item">
<a class="social__link" href="https://vk.com/htmlacademy">
Expand Down
4 changes: 2 additions & 2 deletions source/styles/blocks/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
width: 100%;

@media (min-width: $tablet-width) {
padding: 50px 0 50px;
padding: 55px 0;
}

@media (min-width: $desktop-width) {
padding: 55px 0 50px;
padding: 68px 0;
}
}

Expand Down
22 changes: 19 additions & 3 deletions source/styles/blocks/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,22 @@
width: 100%;
}

.header__logo {
text-decoration: none;
width: 33px;
height: 38px;

@media (min-width: $tablet-width) {
min-width: 174px;
height: 50px;
}

@media (min-width: $desktop-width) {
width: 202px;
height: 59px;
}
}

.header__toggler {
width: 24px;
height: 16px;
Expand All @@ -52,7 +68,7 @@
opacity: 0.5;
}

&:active {
&:active:not(:hover) {
opacity: 0.3;
}

Expand Down Expand Up @@ -83,15 +99,15 @@
&.is-active {
span {
&:nth-child(1) {
transform: translate(-50%, 10px) rotate(-46deg);
transform: translate(-34%, 8px) rotate(-47deg);
}

&:nth-child(2) {
display: none;
}

&:nth-child(3) {
transform: translate(-50%, -10px) rotate(46deg);
transform: translate(-31%, -8px) rotate(47deg);
}
}
}
Expand Down
14 changes: 0 additions & 14 deletions source/styles/blocks/logo.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
.logo {
text-decoration: none;
width: 33px;
height: 38px;

@media (min-width: $tablet-width) {
min-width: 174px;
height: 50px;
}

@media (min-width: $desktop-width) {
width: 202px;
height: 59px;
}

&:link:hover {
opacity: 0.8;
}
Expand Down
1 change: 1 addition & 0 deletions source/styles/blocks/site-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
text-decoration: none;
color: $color-black;
padding: 20px;
padding-bottom: 25px;
border-bottom: 1px solid $color-gray-100;

@media (min-width: $tablet-width) {
Expand Down
2 changes: 1 addition & 1 deletion source/styles/global/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ img {

html {
min-width: 320px;
height: 100%;
min-height: 100%;
font-family: $font-body;
font-size: 14px;
line-height: 18px;
Expand Down

0 comments on commit 1e171d8

Please sign in to comment.