/
Parmenid
/
BookStore
Обзор
Документация
Войти
/
Parmenid
/
BookStore
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main/resources/static/css/checkout.css
211 строк
4 KB
Sergei Prokofev
ade little changes
21 дек 2022, 12:32
21 дек 2022, 12:32
082a447
Код
Авторство
О чём код?
.wrapper { position: absolute; width: 35%; height: 500px; display: flex; background: #F6F6f6; justify-content: center; font-family: "Cascadia Code", sans-serif; -webkit-box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); -moz-box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); border: 3px solid slategray; border-radius: 8px; z-index: 1; left: 30%; top: -100%; } .checkout-container { overflow-y: hidden; width: 30%; padding: 5% 10%; } .wrapper .checkout-container input { width: 100%; min-height: 25px; font-size: 1rem; letter-spacing: .15rem; font-family: "Calibri", sans-serif; margin-top: 5px; border-radius: 4px; border: 1px solid grey; padding-left: 10px; } .checkout-container label { text-transform: uppercase; font-size: 12px; letter-spacing: 2px; margin-left: 5px; margin-bottom: -10px; } .checkout-container h5 { text-align: center; font-size: 24px; line-height: 10px; letter-spacing: 1px; height: 30px; overflow-y: hidden; } .checkout-container h5:nth-of-type(2){ margin-top: 7%; } .name-info, .address-info { justify-content: space-between; display: flex; width: 100%; } .name-info div { width: 45%; } .address-info div { width: 30%; } .cc-info { display: flex; justify-content: space-between; } .cc-info div { width: 45%; } .wrapper .checkout-container .buttons { margin-top: 10%; margin-left: 50%; height: 50px; width: 210px; } .wrapper .checkout-container .buttons button { width: 100px; color: white; background-color: #4a3b76; text-transform: uppercase; border: 0; border-radius: 4px; letter-spacing: 2px; cursor: pointer; } .wrapper .buttons button:hover{ background-color: rebeccapurple; } .checkout-container input:focus, button:focus { outline: none; } .checkout-container .name-info, .address-info, .cc-info, .address, .cc-num { flex-direction: row; width: 100%; justify-content: space-between; } .checkout-container .address input, .cc-num input{ margin: 5px 0; min-height: 30px; } .checkout-container .address { margin-top: 5px; } @media (max-width: 736px) { .wrapper { width: 50%; } .checkout-container { width: 50%; } .checkout-container .buttons { margin-left: 50%; align-items: center; } } .wrapper.active { top: 35%; } .checkout-container h5 i { margin-bottom: -5px; } .checkout-container .symbol { color: red; } .checkout-container .notice { margin-top: 10px; } .wrapper .checkout-container input.highlight { border: 1px solid red; } .checkout-notice { position: absolute; left: 40%; top: -200%; background: whitesmoke; border: #5f5f5b 3px solid; width: 270px; border-radius: 8px; opacity: 0; z-index: 1; -webkit-box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); -moz-box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); box-shadow: 9px 13px 25px 0 rgba(0, 0, 0, 0.18); } .checkout-notice .buttons { margin-top: 3%; display: flex; justify-content: space-between; padding: 12px; } .checkout-notice .buttons span{ line-height: 22px; font-size: 25px; font-weight: 500; } .checkout-notice .buttons button { background: black; color: white; height: 30px; border-radius: 8px; cursor: pointer; padding-left: 6px; padding-right: 6px; } .checkout-notice .buttons button:hover { background: #222222; } .checkout-notice.active { top: 55%; opacity: 1; transition: 0.3s; }