/
engineunity_sub
/
doxml_work_site
Обзор
Документация
Войти
/
engineunity_sub
/
doxml_work_site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
src/css/sections/mainAbout.css
235 строк
4 KB
PauloChaser
move content from branch dev to master
12 фев 2025, 18:06
12 фев 2025, 18:06
a2e2735
Код
Авторство
О чём код?
.about__cards, .about__heading { display: -webkit-box; display: -ms-flexbox } .about__heading { -ms-flex-direction: column; -webkit-box-orient: vertical; -webkit-box-direction: normal } .about.about--main { padding-top: 81px; padding-bottom: 44px; scroll-margin-top: 80px; } .about__heading { display: flex; flex-direction: column; grid-gap: 30px; margin-bottom: 30px } .about__cards { display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; flex-wrap: wrap; width: 100%; grid-gap: 20px } .about__advantages { display: flex; justify-content: space-between; grid-gap: 50px; margin-bottom: 40px; padding-top: 40px; border-top: 2px solid var(--light-gray); } .about__advantagesItem { flex: 1; display: flex; flex-direction: column; grid-gap: 12px; font-weight: 300; } .about__advantagesItem p { color: var(--gray); } .about__possibilitiesTitle { margin-bottom: 20px; } @media screen and (max-width: 991px) { .about__advantages { flex-direction: column; grid-gap: 20px; padding-top: 20px; } .about__advantagesItem { grid-gap: 5px; max-width: 80%; } } @media screen and (max-width: 550px) { .about__advantages { flex-direction: column; grid-gap: 20px; } .about__advantagesItem { grid-gap: 5px; max-width: 100%; } } .about__card { border: 2px solid var(--gray-2); border-radius: 25px; padding: 33px; background-color: white; transition: .2s ease; width: calc(50% - 10px) } .about__card--colored { background-color: #ebf3ff; } .about__card--link { cursor: pointer; text-decoration: none; color: white; background-color: var(--blue); border-color: var(--blue); position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; } .about__card--link::before { content: ''; position: absolute; top: 0; left: -150%; width: 100%; height: 100%; background: rgba(255, 255, 255, .2); -webkit-transform: skewX(-20deg); -ms-transform: skewX(-20deg); transform: skewX(-20deg); -webkit-filter: blur(8px); filter: blur(8px); -webkit-transition: none; -o-transition: none; transition: none } .about__card--link:hover { transform: scale(1.02); } .about__card--link:hover::before { -webkit-animation: 2s linear infinite slide; animation: 2s linear infinite slide } .about__card--link .about__cardText { color: white; font-size: 20px; line-height: 145%; font-weight: 300; } .about__cardTitle { margin-bottom: 20px; } @media screen and (max-width: 1150px) { .about__cards { display: -ms-grid; display: grid; grid-auto-rows: 1fr } .about__card { width: 100% } .about__card:first-child { width: 60% } .about__card:nth-child(2) { width: 80% } } @media screen and (max-width: 991px) { .about { padding-top: 37px; padding-bottom: 0 } .about.about--main { padding-top: 40px; padding-bottom: 0; scroll-margin-top: 60px; } .about__heading { margin-bottom: 20px; grid-gap: 15px } .about__cards { -ms-flex-pack: start; justify-content: flex-start; -ms-flex-direction: column; flex-direction: column; grid-gap: 20px } .about__cards, .form { -webkit-box-pack: start } .about__cards { -webkit-box-direction: normal; -webkit-box-orient: vertical } .about__card, .about__card:first-child, .about__card:nth-child(2) { width: 100% } .about__card { border-radius: 25px; padding: 18px 20px } .about__cardTitle { margin-bottom: 10px } .about__card--link .about__cardText { font-size: 18px; } } @media screen and (max-width: 550px) { .about__card--link .about__cardText { font-size: 16px; } }