Skip to content

Commit b3a6d35

Browse files
authored
Merge pull request #5 from Devexlein/master
2 parents 2706bfb + 84bca49 commit b3a6d35

File tree

10 files changed

+35
-21
lines changed

10 files changed

+35
-21
lines changed

source/catalog.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,11 @@ <h3 class="additional-product__title">Витамины</h3>
322322
<section class="catalog__newsletter newsletter">
323323
<h2 class="newsletter__title section-subtitle">Акции и новинки</h2>
324324
<p class="newsletter__description">Подпишитесь на наши новости и не пропустите ни одного предложения!</p>
325-
<form class="newsletter__form form" action="https://echo.htmlacademy.ru" method="post">
325+
<form class="newsletter__form" action="https://echo.htmlacademy.ru" method="post">
326326
<label class="visually-hidden" for="newsletter-email">Укажите ваш email</label>
327327
<!-- Если поле заполнено неверно, добавить к field-input модификатор invalid -->
328-
<input class="form__input field-input" id="newsletter-email" type="email" name="newsletter-email" placeholder="kuklachev@gmail.com" required>
329-
<button class="form__button button" type="submit">Подписаться</button>
328+
<input class="newsletter__input field-input" id="newsletter-email" type="email" name="newsletter-email" placeholder="kuklachev@gmail.com" required>
329+
<button class="newsletter__button button" type="submit">Подписаться</button>
330330
</form>
331331
</section>
332332
</main>
@@ -357,7 +357,7 @@ <h2 class="visually-hidden">Как до нас добраться</h2>
357357
</section>
358358
<div class="main-footer__wrap">
359359
<a class="main-footer__logo logo" href="index.html">
360-
<img class="logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
360+
<img class="main-footer__logo-text logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
361361
</a>
362362
<ul class="main-footer__social social">
363363
<li class="social__item">

source/form.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ <h2 class="visually-hidden">Как до нас добраться</h2>
165165
</section>
166166
<div class="main-footer__wrap">
167167
<a class="main-footer__logo logo" href="index.html">
168-
<img class="logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
168+
<img class="main-footer__logo-text logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
169169
</a>
170170
<ul class="main-footer__social social">
171171
<li class="social__item">

source/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ <h2 class="visually-hidden">Как до нас добраться</h2>
173173
</section>
174174
<div class="main-footer__wrap">
175175
<a class="main-footer__logo logo" href="index.html" aria-current="page">
176-
<img class="logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
176+
<img class="main-footer__logo-text logo__text" src="images/logo-text.svg" width="128" height="24" lang="en" alt="Cat Energy">
177177
</a>
178178
<ul class="main-footer__social social">
179179
<li class="social__item">

source/styles/blocks/compare-slider.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757

5858
@media (min-width: $desktop-width) {
59-
background-image: linear-gradient(180deg, #ffffff 135px, #eaeaea 135px 100%);
59+
background-image: linear-gradient(180deg, #ffffff 135px, #f2f2f2 135px 100%);
6060
}
6161
}
6262

source/styles/blocks/example.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
@media (min-width: $desktop-width) {
1313
grid-template-columns: 1fr 660px minmax(calc(1280px - 720px), 1fr) 1fr;
1414
column-gap: 0;
15-
background-image: linear-gradient(180deg, #ffffff 135px, #eaeaea 135px 100%);
15+
background-image: linear-gradient(180deg, #ffffff 135px, #f2f2f2 135px 100%);
1616
}
1717
}
1818

@@ -101,6 +101,10 @@
101101
position: relative;
102102
width: max-content;
103103

104+
@media (min-width: $tablet-width) {
105+
margin-top: 80px;
106+
}
107+
104108
@media (min-width: $desktop-width) {
105109
margin: 0 0 10px;
106110
}

source/styles/blocks/infographic.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@
6060
}
6161

6262
@media (min-width: $desktop-width) {
63-
background-color: $bg-color-secondary-darken;
63+
background-color: $bg-color-secondary;
6464
}
6565
}

source/styles/blocks/logo.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,13 @@
1111
opacity: 0.6;
1212
}
1313
}
14+
15+
.logo__text {
16+
@media (max-width: $mobile-width-only) {
17+
transform: translate(50%);
18+
}
19+
20+
@media (min-width: $desktop-width) {
21+
width: 118px;
22+
}
23+
}

source/styles/blocks/main-footer.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,23 @@
3333
margin-bottom: 18px;
3434
display: block;
3535

36+
@media (max-width: $mobile-width-only) {
37+
transform: translateX(-64px);
38+
}
39+
3640
@media (min-width: $tablet-width) {
3741
margin-bottom: 0;
3842
padding-top: 5px;
3943
flex-shrink: 0;
4044
}
4145
}
4246

47+
.main-footer__logo-text {
48+
@media (min-width: $desktop-width) {
49+
width: 128px;
50+
}
51+
}
52+
4353
.main-footer__social {
4454
@include list-reset;
4555
margin-bottom: 18px;

source/styles/blocks/main-header.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,6 @@
2828
}
2929
}
3030

31-
.main-header__logo .logo__text {
32-
@media (max-width: $mobile-width-only) {
33-
transform: translate(50%);
34-
}
35-
36-
@media (min-width: $desktop-width) {
37-
width: 118px;
38-
}
39-
}
40-
4131
.main-header__nav {
4232
@media (max-width: $mobile-width-only) {
4333
width: 100%;

source/styles/blocks/newsletter.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
}
3939

40-
.newsletter__form .form__input {
40+
.newsletter__input {
4141
margin-bottom: 16px;
4242
width: 100%;
4343
padding: 12px;
@@ -51,7 +51,7 @@
5151
}
5252
}
5353

54-
.newsletter__form .form__button {
54+
.newsletter__button {
5555
margin: 0;
5656
padding: 15px;
5757
width: 100%;

0 commit comments

Comments
 (0)