/
engineunity_sub
/
doxml_work_site
Обзор
Документация
Войти
/
engineunity_sub
/
doxml_work_site
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
master
src/css/blocks/cookie.css
118 строк
2 KB
PauloChaser
move content from branch dev to master
12 фев 2025, 18:06
12 фев 2025, 18:06
a2e2735
Код
Авторство
О чём код?
.cookie { position: fixed; left: 50%; bottom: 40px; padding: 15px 33px; background-color: #fff; -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, .5); box-shadow: 5px 5px 10px rgba(0, 0, 0, .5); z-index: -1; -webkit-box-align: center; -ms-flex-align: center; align-items: center; border-radius: 60px; -webkit-transform: translateX(-50%) translateY(110px); -ms-transform: translateX(-50%) translateY(110px); transform: translateX(-50%) translateY(110px); opacity: 0; display: flex; -webkit-transition: opacity .4s, z-index .2s, -webkit-transform .2s; transition: transform .2s, opacity .4s, z-index .2s, -webkit-transform .2s; -o-transition: transform .2s, opacity .4s, z-index .2s } .cookie--active { display: -webkit-box; display: -ms-flexbox; display: flex; z-index: 50; opacity: 1; -webkit-transform: translateX(-50%) translateY(0); -ms-transform: translateX(-50%) translateY(0); transform: translateX(-50%) translateY(0) } .cookie__text { font-style: normal; font-weight: 500; font-size: 16px; line-height: 100%; color: var(--black); padding: 0; margin: 0 } .cookie__button, .cookie__link { font-weight: 600; font-size: 16px } .cookie__link { color: var(--black); -webkit-transition: color .2s; -o-transition: color .2s; transition: color .2s } .cookie__button { line-height: 100%; letter-spacing: -.01em; text-transform: uppercase; color: #fff; background-color: var(--blue); border-radius: 40px; border: none; outline: 0; padding: 12px 51px; margin-left: 33px; cursor: pointer; -webkit-transition: background-color .2s; -o-transition: background-color .2s; transition: background-color .2s } .cookie__button:hover { background-color: var(--black) } .cookie { display: -webkit-box; display: -ms-flexbox } .cookie__link:hover { color: var(--blue) } @media screen and (max-width: 1150px) { .cookie { bottom: 25px; min-width: 410px } .cookie__text { font-size: 14px; line-height: 1 } .cookie__button { font-size: 14px; padding: 12px 31px } } @media screen and (max-width: 991px) { .cookie { bottom: 0; width: 100%; min-width: 320px; border-radius: 0; padding: 15px 25px } .cookie__button { margin-left: auto } }