Skip to content

Commit 49d39d8

Browse files
authored
Merge pull request #6 from MadinaSatem/module9-task1
Последняя защита
2 parents 0fa6646 + 08099ff commit 49d39d8

File tree

12 files changed

+91
-25
lines changed

12 files changed

+91
-25
lines changed

source/catalog.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
<body class="page">
2222
<header class="main-header" data-test="header">
23-
<nav class="navigation navigation--closed navigation--nojs container">
24-
<div class="navigation__container">
23+
<nav class="navigation navigation--closed navigation--nojs container navigation--catalog">
24+
<div class="navigation__container navigation__container--catalog">
2525
<a class="navigation__logo-image logo" href="index.html">
2626
<picture>
2727
<source media="(min-width: 1200px)" srcset="images/logodesktop.svg" width="70" height="59" type="image/svg+xml">

source/icons/slider.svg

Lines changed: 1 addition & 1 deletion
Loading

source/styles/blocks/advantages.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
font-weight: 400;
2121
text-align: start;
2222
width: 280px;
23-
margin-bottom: 40px;
23+
margin-bottom: 38px;
2424

2525
@media (min-width: $tablet-width) {
2626
line-height: 60px;

source/styles/blocks/copyright.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
.copyright__logo svg {
3737
fill: #666666;
38+
flex-shrink: 0;
3839
}
3940

4041
.copyright__logo:hover svg {

source/styles/blocks/example-slider.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
content: "";
1010
position: absolute;
1111
top: 0;
12-
height: calc(100% - 135px);
12+
height: 100%;
1313
background-color: #eaeaea;
1414
width: 100vw;
1515
left: calc((100vw - 100%) / -2);
@@ -23,6 +23,7 @@
2323
@media (min-width: $desktop-width) {
2424
top: 135px;
2525
background-color: #f2f2f2;
26+
height: calc(100% - 135px);
2627
}
2728
}
2829

source/styles/blocks/hero.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@
128128
margin: 0 auto;
129129
border: none;
130130
text-decoration: none;
131+
text-align: center;
132+
padding: 10px;
131133

132134

133135
@media (min-width: $tablet-width) {
@@ -163,6 +165,6 @@
163165

164166
@media (min-width: $desktop-width) {
165167
margin-top: -315px;
166-
margin-right: 22px;
168+
margin-right: 221px;
167169
}
168170
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.navigation-catalog {
2+
display: flex;
3+
flex-direction: column;
4+
position: relative;
5+
6+
&::after {
7+
content: "";
8+
position: absolute;
9+
bottom: -2px;
10+
height: 1px;
11+
background-color: #ebebeb;
12+
width: 100vw;
13+
left: calc((100vw - 100%) / -2);
14+
15+
@media (min-width: $tablet-width) {
16+
height: 0;
17+
}
18+
}
19+
20+
@media (min-width: $tablet-width) {
21+
display: flex;
22+
flex-direction: row;
23+
justify-content: space-between;
24+
align-items: center;
25+
min-height: 50px;
26+
margin-top: 25px;
27+
}
28+
29+
@media (min-width: $desktop-width) {
30+
margin-top: 55px;
31+
min-height: 59px;
32+
}
33+
}

source/styles/blocks/navigation.scss

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
text-decoration: none;
121121

122122
@media (min-width: $tablet-width) {
123-
height: 33px;
123+
min-height: 33px;
124124

125125
&:hover {
126126
opacity: 0.6;
@@ -133,7 +133,7 @@
133133

134134
@media (min-width: $desktop-width) {
135135
color: #ffffff;
136-
height: 37px;
136+
min-height: 37px;
137137

138138
&:hover {
139139
opacity: 0.6;
@@ -260,3 +260,26 @@
260260
align-items: center;
261261
}
262262
}
263+
264+
.navigation.navigation--catalog {
265+
@media (min-width: $tablet-width) {
266+
height: auto;
267+
min-height: 50px;
268+
}
269+
270+
@media (min-width: $desktop-width) {
271+
height: auto;
272+
min-height: 59px;
273+
}
274+
}
275+
276+
.navigation__container.navigation__container--catalog {
277+
@media (min-width: $tablet-width) {
278+
align-items: end;
279+
margin-top: 16px;
280+
}
281+
282+
@media (min-width: $desktop-width) {
283+
margin-top: 25px;
284+
}
285+
}

source/styles/blocks/other-products.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@
7272
@media (min-width: $tablet-width) {
7373
top: 15px;
7474
}
75+
76+
@media (min-width: $desktop-width) {
77+
top: 18px;
78+
}
7579
}
7680

7781
.other-products__title span {

source/styles/blocks/products-catalog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@
3636
width: 435px;
3737
font-size: 60px;
3838
line-height: 60px;
39-
margin: 65px 0 84px;
39+
margin: 48px 0 84px;
4040
margin-left: 0;
4141
}
4242

4343
@media (min-width: $desktop-width) {
4444
margin-left: 0;
45-
margin-top: 75px;
45+
margin-top: 57px;
4646
margin-bottom: 83px;
4747
}
4848
}

0 commit comments

Comments
 (0)