Skip to content

Commit 2efe4af

Browse files
authored
Merge pull request #8 from Alina-2005/Alina-2005-patch-5
Update styles.css
2 parents c36079c + 6c8b724 commit 2efe4af

File tree

1 file changed

+1
-320
lines changed

1 file changed

+1
-320
lines changed

styles/styles.css

Lines changed: 1 addition & 320 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
@font-face {
23
font-family: "PT-Sans";
34
font-style: normal;
@@ -44,12 +45,6 @@ body {
4445
line-height: 21px;
4546
color: #333;
4647
background-color: #f2f2f2;
47-
}
48-
49-
.link {
50-
text-decoration: none;
51-
color: #000;
52-
}
5348

5449
.link.is-current {
5550
pointer-events: none;
@@ -226,312 +221,14 @@ img {
226221
top: 0;
227222
z-index: 1;
228223
border-bottom: 1px solid #fafafa;
229-
}
230-
231-
.wrapper-text {
232-
width: 680px;
233-
margin: auto;
234-
padding: 70px 0;
235-
text-align: center;
236-
}
237-
238-
.section-description {
239-
font-size: 22px;
240-
line-height: 26px;
241-
margin: 0;
242-
}
243-
244-
/* INDEX */
245-
/* HEADER */
246-
247-
.page-header .line {
248-
flex-direction: row;
249-
}
250-
251-
.logo {
252-
flex: 0 0 140px;
253-
height: 64px;
254-
margin-right: 28px;
255-
z-index: 1;
256-
}
257-
258-
.navigation {
259-
display: flex;
260-
flex: 1 1 auto;
261-
}
262-
263-
.navigation-list {
264-
display: flex;
265-
flex-wrap: wrap;
266-
}
267-
268-
.navigation-list__link {
269-
display: block;
270-
position: relative;
271-
padding: 20px 16px;
272-
font-size: 20px;
273-
font-weight: 700;
274-
line-height: 24px;
275-
}
276-
277-
.navigation-list--menu .link::after {
278-
content: "";
279-
display: block;
280-
position: absolute;
281-
left: 0;
282-
right: 0;
283-
bottom: -1px;
284-
height: 2px;
285-
margin: 0 16px;
286-
background-color: transparent;
287-
z-index: 1;
288-
}
289-
290-
.navigation-list__link:hover {
291-
color: #756257;
292-
}
293-
294-
.navigation-list--menu .link:hover::after {
295-
background-color: #756257;
296-
}
297224

298-
.navigation-list__link.is-current::after {
299-
background-color: #756257;
300-
}
301-
302-
.navigation-list--user {
303-
justify-content: flex-end;
304-
flex: 1 0 135px;
305-
max-width: 135px;
306-
margin-right: 20px;
307-
margin-left: auto;
308-
}
309-
310-
.navigation-list--user .navigation-list__link {
311-
display: inline-flex;
312-
padding: 22px 12px;
313-
}
314-
315-
.navigation-list__link--search:hover,
316-
.navigation-list__link--favorite:hover {
317-
color: #615048;
318-
}
319-
320-
.navigation-list__link--search:active,
321-
.navigation-list__link--favorite:active {
322-
color: rgba(117, 97, 87, 0.3);
323-
}
324-
325-
.count {
326-
position: absolute;
327-
top: 10px;
328-
left: 20px;
329-
min-width: 20px;
330-
height: 20px;
331-
font-size: 10px;
332-
line-height: 20px;
333-
font-weight: 400;
334-
text-align: center;
335-
padding: 0 2px;
336-
color: #fff;
337-
background-color: #7db54f;
338-
border-radius: 20px;
339-
white-space: nowrap;
340-
text-overflow: ellipsis;
341-
overflow: hidden;
342-
}
343-
344-
.navigation-button {
345-
display: flex;
346-
flex-direction: column;
347-
flex: 0 0 160px;
348-
gap: 14px;
349-
padding: 14px 0;
350225
}
351226
.navigation-button__link {
352227
width: 160px;
353228
}
354229

355230
/* HERO */
356231

357-
.hero {
358-
position: relative;
359-
}
360-
361-
.hero::after {
362-
content: "";
363-
display: block;
364-
position: absolute;
365-
bottom: 0;
366-
height: 57px;
367-
width: 100%;
368-
background-image: url("../images/divider.svg");
369-
}
370-
371-
.hero-welcome {
372-
padding-top: 50px;
373-
padding-bottom: 82px;
374-
}
375-
376-
.hero-welcome {
377-
background-color: #81B3D3;
378-
background-image: url("../images/hero-bg.jpg");
379-
background-size: cover;
380-
background-position: center;
381-
background-repeat: no-repeat;
382-
}
383-
384-
.hero-welcome__img {
385-
margin: 0 auto;
386-
}
387-
388-
/* ADVANTAGES */
389-
390-
.advantages-text {
391-
margin-bottom: 20px;
392-
}
393-
394-
.advantages-text__title {
395-
margin-bottom: 25px;
396-
}
397-
398-
.advantages-grid__list {
399-
display: grid;
400-
grid-template-columns: repeat(3, 400px);
401-
}
402-
403-
.advantages-grid__item {
404-
background-color: rgba(131, 179, 211, 0.12);
405-
}
406-
407-
.advantages-grid__item:nth-child(4n+3) {
408-
background-color: rgba(131, 179, 211, 0.20);
409-
}
410-
411-
.advantages-grid__item .wrapper {
412-
width: 230px;
413-
text-align: center;
414-
}
415-
416-
.advantages-grid__text {
417-
display: flex;
418-
justify-content: center;
419-
align-items: center;
420-
width: 400px;
421-
min-height: 385px;
422-
height: 100%;
423-
padding: 75px 0;
424-
}
425-
426-
.advantages-grid__title {
427-
font-size: 24px;
428-
line-height: 28px;
429-
text-transform: uppercase;
430-
margin-bottom: 30px;
431-
}
432-
433-
.advantages-grid__description {
434-
margin: 0;
435-
}
436-
437-
.advantages-grid__description::before {
438-
content: "";
439-
display: block;
440-
position: relative;
441-
height: 2px;
442-
width: 60px;
443-
margin: 30px auto;
444-
background-color: #000;
445-
opacity: .3;
446-
}
447-
448-
.advantages-grid__item--image {
449-
grid-column: 1 / -1;
450-
display: flex;
451-
flex-wrap: wrap;
452-
background-color: #82B3D3;
453-
color: #fff;
454-
}
455-
456-
.advantages-grid__item--reverse {
457-
flex-direction: row-reverse;
458-
}
459-
460-
.advantages-grid__item--image .advantages-grid__title {
461-
color: #fff;
462-
}
463-
464-
.advantages-grid__item--image .advantages-grid__description::before {
465-
background-color: #fff;
466-
}
467-
468-
.advantages-grid__item--image img {
469-
object-fit: cover;
470-
margin: auto 0;
471-
min-height: 100%;
472-
}
473-
474-
/* ADVANTAGES-SLOGAN */
475-
476-
.advantages-slogan .wrapper-text {
477-
padding: 64px 0;
478-
}
479-
480-
/* ADVANTAGES-SERVICE */
481-
482-
.advantages-service__list {
483-
display: grid;
484-
grid-template-columns: repeat(3, 400px);
485-
}
486-
487-
.advantages-service__content {
488-
display: flex;
489-
justify-content: center;
490-
align-items: center;
491-
width: 400px;
492-
min-height: 385px;
493-
height: 100%;
494-
padding: 75px 0;
495-
}
496-
497-
.advantages-service__item .wrapper {
498-
width: 230px;
499-
text-align: center;
500-
}
501-
502-
.advantages-service__item {
503-
background-color: rgba(131, 179, 211, 0.12);
504-
}
505-
506-
.advantages-service__item:nth-child(even) {
507-
background-color: #fff;
508-
}
509-
510-
.advantages-service__image {
511-
margin: auto;
512-
margin-bottom: 30px;
513-
}
514-
515-
.advantages-service__title {
516-
font-size: 24px;
517-
line-height: 28px;
518-
text-transform: uppercase;
519-
margin-bottom: 30px;
520-
}
521-
522-
.advantages-service__text {
523-
margin: 0;
524-
}
525-
526-
/* SEARCH */
527-
528-
.search .wrapper-text {
529-
padding: 96px 0;
530-
}
531-
532-
.search-text__description {
533-
margin-bottom: 54px;
534-
}
535232

536233
/* SUBSCRIBE */
537234

@@ -647,22 +344,6 @@ img {
647344

648345
.contacts-address__phone:not(:last-child) {
649346
margin-bottom: 10px;
650-
}
651-
652-
.contacts-address__phone:hover,
653-
.footer-logo__link:hover {
654-
color: #756157;
655-
}
656-
657-
.contacts-address__phone:focus-visible,
658-
.footer-logo__link:focus-visible {
659-
color: #756157;
660-
}
661-
662-
.contacts-address__phone:active,
663-
.footer-logo__link:active {
664-
color: rgba(117, 97, 87, 0.3);
665-
}
666347

667348
/* CATALOG-PAGE */
668349
/* FILTER */

0 commit comments

Comments
 (0)