/
outthevoid
/
frontend_developer_module_6
Обзор
Документация
Войти
/
outthevoid
/
frontend_developer_module_6
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
source/styles/blocks/features.scss
155 строк
3 KB
darthmorgot
Мелкие правки стилей.
14 май 2024, 17:58
14 май 2024, 17:58
95d64a9
Код
Авторство
О чём код?
// Features block .features { padding-top: 45px; padding-bottom: 60px; text-align: center; @media (min-width: $tablet-width) { padding-top: 50px; padding-bottom: 115px; } @media (min-width: $desktop-width) { padding-top: 95px; padding-bottom: 87px; } } .features__heading { margin: 2px 0 0; @media (min-width: $tablet-width) { margin-top: 1px; margin-bottom: 57px; } @media (min-width: $desktop-width) { margin-bottom: 80px; } } .features__list { padding: 0; margin: 35px 0 0; list-style: none; @media (min-width: $tablet-width) { display: flex; flex-wrap: wrap; justify-content: space-between; } @media (min-width: $desktop-width) { margin-left: 20px; margin-right: 20px; } } .features__item { display: flex; flex-direction: column; margin-bottom: 36px; padding-top: 66px; background-position: center 0; background-repeat: no-repeat; @media (min-width: $tablet-width) { flex-flow: row wrap; width: 339px; height: auto; padding-left: 82px; padding-top: 4px; margin-bottom: 50px; text-align: left; background-position: 11px 7px; } @media (min-width: $desktop-width) { flex-direction: column; width: 318px; padding-left: 0; padding-top: 77px; text-align: center; background-position: center 0; } &--speed { background-image: url("../../icons/icon-speed.svg"); background-size: 50px 56px; } &--comfort { background-image: url("../../icons/icon-comfort.svg"); background-size: 52px 56px; } &--energy { background-image: url("../../icons/icon-energy.svg"); background-size: 42px 56px; } &--eco { background-image: url("../../icons/icon-eco.svg"); background-size: 46px 56px; } &:nth-child(even) { @media (min-width: $tablet-width) { margin-right: 20px; } @media (min-width: $desktop-width) { margin-right: 0; } } &:nth-child(2) { @media (min-width: $tablet-width) { background-position: 10px 3px; } } &:nth-child(3) { @media (min-width: $tablet-width) { background-position: 15px 3px; } } &:nth-child(4) { @media (min-width: $tablet-width) { background-position: 13px 7px; } } &:nth-child(2), &:nth-child(3), &:nth-child(4) { @media (min-width: $desktop-width) { background-position: center 0; } } } .features__item h3 { margin: auto 0 0; font-weight: 700; font-size: 18px; line-height: 32px; @media (min-width: $tablet-width) { margin: 0 0 6px; font-size: 24px; line-height: 36px; } } .features__item p { margin: 4px 0 -4px; font-size: 14px; line-height: 20px; @media (min-width: $tablet-width) { font-size: 16px; line-height: 24px; } }