Skip to content

Commit a69d7d5

Browse files
committed
7.24
1 parent a59eeee commit a69d7d5

File tree

2 files changed

+55
-21
lines changed

2 files changed

+55
-21
lines changed

catalog.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ <h3 class="hotel-name">Amara Resort & Spa</h3>
158158
<a href="#" class="more-details-button button">
159159
Подробнее
160160
</a>
161-
<button class="add-button added button">В избранное</button>
161+
<button class="add-button button">В избранное</button>
162162
</div>
163163
<div class="rating-information">
164164
<h3 class="visually-hidden">Информайия о рейтинге гостиницы</h3>
@@ -190,7 +190,7 @@ <h3 class="hotel-name">Desert Quail Inn</h3>
190190
<a href="#" class="more-details-button button">
191191
Подробнее
192192
</a>
193-
<button class="add-button added button">В избранное</button>
193+
<button class="add-button button">В избранное</button>
194194
</div>
195195
<div class="rating-information">
196196
<h3 class="visually-hidden">Информайия о рейтинге гостиницы</h3>
@@ -206,7 +206,7 @@ <h3 class="hotel-name">GreenTree Inn</h3>
206206
<a href="#" class="more-details-button button">
207207
Подробнее
208208
</a>
209-
<button class="add-button added button">В избранное</button>
209+
<button class="add-button button">В избранное</button>
210210
</div>
211211
<div class="rating-information">
212212
<h3 class="visually-hidden">Информайия о рейтинге гостиницы</h3>
@@ -240,8 +240,8 @@ <h3 class="visually-hidden">Информайия о рейтинге гости
240240
<section class="subscribtion-section catalog-subscribtion-section">
241241
<header class="section-header subscription-header catalog-subscribtion-header">
242242
<div class="section-header-wrapper subscribtion-section-header-wrapper">
243-
<h2 class="subscription-heading subscription-heading-bright">Подпишитесь на рассылку</h2>
244-
<p class="reasons-text reasons-text-bright">Только полезная информация и никакого спама,
243+
<h2 class="subscription-heading">Подпишитесь на рассылку</h2>
244+
<p class="reasons-text">Только полезная информация и никакого спама,
245245
честное бойскаутское!</p>
246246
</div>
247247
</header>

styles/style.css

Lines changed: 50 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,6 @@ a {
271271
color: #333333;
272272
}
273273

274-
.advantages-header-bright, .description-bright, .subscription-heading-bright, .reasons-text-bright {
275-
color: #FFFFFF;
276-
}
277-
278274
.reasons-text {
279275
margin: 0;
280276
line-height: 26px;
@@ -301,6 +297,7 @@ a {
301297
}
302298

303299
.index-subscribtion-section {
300+
background-color: #44759e;
304301
background: url("../images/email-blur-background.jpg") no-repeat;
305302
}
306303

@@ -317,6 +314,10 @@ a {
317314
margin: 0;
318315
}
319316

317+
.advantages-header-bright, .description-bright, .subscription-heading-bright, .reasons-text-bright {
318+
color: #FFFFFF;
319+
}
320+
320321
.reasons-text-bright {
321322
margin-top: 20px;
322323
}
@@ -354,14 +355,20 @@ a {
354355
display: flex;
355356
align-items: center;
356357
width: 1060px;
358+
margin-top: 40px;
359+
margin-bottom: 30px;
357360
}
358361

359362
.footer-sotial-list {
360363
margin-right: 41px;
361364
width: 142px;
362365
display: flex;
363366
flex-wrap: wrap;
364-
justify-content: space-between;
367+
}
368+
369+
.footer-social-item a {
370+
display: block;
371+
padding: 13px 13px;
365372
}
366373

367374
.htmlacademy {
@@ -426,6 +433,7 @@ a {
426433
}
427434

428435
.hotels-filter-section {
436+
background-color: #44759e;
429437
background: url('../images/filter-background.jpg') no-repeat;
430438
display: flex;
431439
justify-content: center;
@@ -574,8 +582,9 @@ a {
574582
}
575583

576584
.hotels-cards-list {
577-
display: flex;
578-
flex-wrap: wrap;
585+
display: grid;
586+
grid-template-columns: repeat(3, 340px);
587+
gap: 20px;
579588
width: 1060px;
580589
margin-top: 40px;
581590
margin-right: 70px;
@@ -584,33 +593,58 @@ a {
584593
}
585594

586595
.hotel-card-item {
596+
box-sizing: border-box;
587597
border: solid 1px #E6E6E6;
588-
width: 337px;
589-
margin-right: 20px;
590-
margin-bottom: 20px;
598+
width: 340px;
599+
display: grid;
600+
grid-template-rows: 212px repeat(4, auto);
601+
gap: 16px;
602+
padding: 20px;
591603
}
592604

593605
.hotel-name {
594606
text-transform: none;
607+
margin: 0;
595608
}
596609

597-
.hotel-card-item:nth-child(3n) {
598-
margin-right: 0;
610+
.information {
611+
margin: 0;
599612
}
600613

601-
.hotel-card-item:last-child {
602-
margin-bottom: 0;
614+
.information span {
615+
padding-left: 138px;
603616
}
604617

605-
.hotel-card-item:first-child, .hotel-card-item:last-child {
606-
margin-left: 0;
618+
.cards-buttons {
619+
display: grid;
620+
grid-template-columns: repeat(2, 140px);
621+
gap: 20px;
622+
min-height: 36px;
623+
}
624+
625+
.cards-buttons .more-details-button {
626+
padding-top: 8px;
627+
}
628+
629+
.rating-information {
630+
display: grid;
631+
grid-template-columns: repeat(2, 140px);
632+
gap: 20px;
633+
min-height: 36px;
634+
}
635+
636+
.rating-information img {
637+
padding-top: 10px;
607638
}
608639

609640
.rating{
610641
font-size: 16px;
611642
line-height: 20px;
612643
color: #333333;
613644
background-color: #F2F2F2;
645+
margin: 0;
646+
text-align: center;
647+
padding-top: 8px;
614648
}
615649

616650
.pagination {

0 commit comments

Comments
 (0)