/
RomichN
/
cookies
Обзор
Документация
Войти
/
RomichN
/
cookies
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/app/app.component.css
374 строки
6 KB
RomichN
first commit
13 дек 2024, 11:44
13 дек 2024, 11:44
0e0691e
Код
Авторство
О чём код?
.main { position: relative; overflow: hidden; } .currency{ -webkit-user-select: none; position: fixed; right: 50px; bottom: 50px; border: 1px solid white; padding: 5px 10px; height: 25px; min-width: 25px; border-radius: 50px; text-align: center; cursor: pointer; line-height: 28px; z-index: 1; user-select: none; transform: scale(1); animation: pulse 2s infinite; } @keyframes pulse { 0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,255,255, 0.5); } 70%{ transform: scale(1); box-shadow: 0 0 0 10px rgba(255,255,255, 0); } 100%{ transform: scale(0.9); box-shadow: 0 0 0 0 rgba(255,255,255, 0); } } .button{ background-color: white; border-radius: 60px; width:178px; height: 58px; box-sizing: border-box; padding: 18px; text-align: center; font-size: 18px; color:#5243F4; border:0; outline: none; cursor:pointer; } .violet-button { background-color: #5243F4; color: white; } .button:disabled { cursor: not-allowed; color: gray; background-color: #343434; } .button:hover:not(:disabled){ background-color: #eeeeee; } .button.violet-button:hover:not(:disabled) { background-color: #3b2cd8; } .common-title { text-align: center; font-family: 'Steppe-ExtraBold',sans-serif; font-size: 60px; line-height: 100%; } .header .container { display: flex; align-items: center; } .logo img{ vertical-align: bottom; } .menu{ margin-left: 250px; } .menu-list{ list-style: none; display:flex; gap: 50px; } .menu-item a{ font-size: 16px; line-height: 130%; text-decoration: none; cursor:pointer; color:white; } .menu-item a:hover{ border-bottom: 2px solid white; } .main-content{ padding-top: 161px; padding-bottom: 200px; } .main-info{ max-width: 811px; } .main-title{ font-family: 'Steppe-ExtraBold',sans-serif; font-size: 90px; line-height: 100%; margin-bottom: 20px; } .main-text{ max-width:697px; font-size: 18px; line-height: 130%; margin-bottom: 40px; } .main-image{ position: absolute; top: 0; right: 0; z-index: -1; } .products{ padding:100px 0; position: relative; } .products-items { display: grid; grid-template-columns: repeat(3,384px); gap: 90px 24px; margin-top: 110px; } .products-item { background-color: white; color: #5D3427; } .products-item-image { height: 202px; text-align: center; } .products-item-image img { height: 272px; top: -70px; position: relative; max-width: 100%; } .products-item-details { padding: 24px; } .products-item-title{ font-family: 'Steppe-ExtraBold',sans-serif; font-size: 18px; margin-bottom: 20px; } .products-item-text { height: 110px; font-size: 14px; line-height: 120%; margin-bottom: 20px; } .products-item-extra { display: flex; justify-content: space-between; align-items: center; } .products-item-price { font-family: 'Steppe-ExtraBold',sans-serif; font-size: 24px; color: #5243F4; margin-bottom: 10px; } .products-item-weight { font-size: 12px; } .love { padding: 64px 0 150px 0; } .love-items { margin-top: 40px; display: flex; gap: 20px; } .love-item { width: 590px; height: 453px; } .love-item-white { background-color: white; padding: 110px 80px; box-sizing: border-box; color: #5D3427; } .love-item-title{ font-family: 'Steppe-ExtraBold',sans-serif; font-size: 24px; line-height: 110%; margin-bottom: 10px; } .love-item-text { font-size: 18px; line-height: 130%; } .order { padding-bottom: 102px; position: relative; } .order .container { position: relative; } .order-block { -webkit-backdrop-filter: blur(50px); margin-top: 103px; background-color: rgb(255 255 255 / 30%); backdrop-filter: blur(50px); display: flex; } .order-form { margin-left: 200px; max-width: 387px; padding:40px 0 44px 0; box-sizing: border-box; } .order-form-text { font-family: 'Steppe-ExtraBold',sans-serif; font-size: 18px; line-height: 130%; } .order-form-inputs { display: flex; flex-direction: column; margin-top: 20px; } .order-form-inputs input { border: 1px solid white; border-radius: 60px; margin-bottom: 16px; padding: 24px 22px; font-size: 18px; width:385px; height: 68px; background: transparent; box-sizing: border-box; outline:none; color: white; } ::placeholder{ color: rgba(255, 255, 255,0.4); } .order-form-inputs .button.violet-button { width: 387px; height: 71px; } .order-block-image { height: 501px; margin-left: 109px; } .order-image { height: 559px; top: -58px; position: relative; } .order-bg-image { position: absolute; top: 0; right: calc(100% - 810px); z-index: -1; } .footer { padding: 126px 0 50px 0; text-align: center; } .rights { margin-top: 14px; font-size: 18px; line-height: 130%; } .line1{ position: absolute; z-index: -1; top: 0; left: calc(100% - 968px); } .line2{ position: absolute; z-index: -1; top: -40px; left: 0; } .line3{ position: absolute; z-index: -1; top: -920px; left: 0; } .order-form-inputs input.error { border-color: red; } .sugar-free { margin: 20px 0; font-size: 0; display: flex; align-items: center; justify-content: center; gap: 20px; } .sugar-free > div { font-size: 18px; } .sugar-free input[type=checkbox]{ display: none; } .sugar-free label { cursor: pointer; width: 80px; height: 40px; border-radius: 50px; position: relative; border: 2px solid white; } .sugar-free label:after { content: ''; position: absolute; top: 5px; left: 5px; width: 30px; height: 30px; background: #fff; border-radius: 45px; transition: 0.3s; } .sugar-free input:checked + label:after { left: calc(100% - 5px); transform: translateX(-100%); } .sugar-free label:active:after { width: 50px; }