Files
santeh-ray/static/css/style.css
Azimkin 28c4e08bb6
Some checks failed
Build and Push Docker Image / build (push) Failing after 12s
feat: добавить auth функционал, URL и Docker конфигурацию
- Добавлены views, URL и страницы для входа, регистрации, профиля
- Обновлён основной маршрут users/urls.py
- Перенаправлен маршрут catalog вместо items
- Обновлена структура header с добавлением ссылки на главную
- Создан Dockerfile и workflow для сборки и доставки образов
2026-03-30 22:32:31 +02:00

283 lines
4.7 KiB
CSS

*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--dark: #36213e;
--mid: #554971;
--blue-gray: #63768d;
--light-blue: #b8f3ff;
--white: #ffffff;
--bg: white;
}
body {
font-family: 'Inter', sans-serif;
color: var(--dark);
background: var(--bg);
overflow-x: hidden;
}
/* Container to maintain consistent width */
.container {
max-width: 1160px;
margin: 0 auto;
width: 100%;
}
a {
text-decoration: none;
color: inherit;
}
/* --- LIB --- */
.flex-right {
display: flex;
justify-content: flex-end;
align-items: flex-end;
flex-direction: column;
width: 100%;
height: 100%;
}
.text-align-right {
text-align: right;
}
.active-page {
text-decoration: underline;
}
.full-page {
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.center-wrapper {
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* ── HEADER ── */
header {
position: sticky;
top: 0;
z-index: 100;
background: var(--bg);
border-bottom: 1px solid rgba(54, 33, 62, .08);
box-shadow: 0 2px 20px rgba(54, 33, 62, .06);
}
.header-top {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 80px;
gap: 20px;
}
.logo {
font-family: 'Playfair Display', serif;
font-size: 32px;
color: var(--dark);
white-space: nowrap;
letter-spacing: 1px;
}
.search-wrap {
display: flex;
align-items: center;
justify-content: space-between;
border: 1px solid var(--dark);
flex: 1;
max-width: 420px;
margin: 0 24px;
}
.search-wrap select {
border: none;
border-right: 1px solid var(--dark);
padding: 10px 14px;
font-family: 'Inter', sans-serif;
font-size: 13px;
color: var(--mid);
background: transparent;
outline: none;
cursor: pointer;
}
.search-wrap input {
flex: 1;
border: none;
padding: 10px 5px 10px 10px;
font-size: 12px;
color: var(--mid);
outline: none;
background: transparent;
display: block;
}
.search-wrap input::placeholder {
color: var(--mid);
opacity: .6;
}
.search-wrap button {
border: none;
background: transparent;
padding: 10px 14px;
cursor: pointer;
display: flex;
align-items: center;
}
.search-wrap button svg {
width: 20px;
height: 20px;
}
.header-icons {
display: flex;
align-items: center;
gap: 18px;
}
.header-icons a {
display: flex;
align-items: center;
cursor: pointer;
color: var(--dark);
transition: opacity .2s;
}
.header-icons a:hover {
opacity: .6;
}
.header-icons svg {
width: 28px;
height: 28px;
}
.nav-bar {
display: flex;
align-items: center;
padding: 10px 80px;
gap: 0;
border-top: 1px solid rgba(54, 33, 62, .07);
justify-content: space-between;
}
.nav-bar .catalog-btn {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: var(--mid);
margin-right: 32px;
cursor: pointer;
font-weight: 400;
transition: color .2s;
}
.nav-bar .catalog-btn:hover {
color: var(--dark);
}
.nav-links {
display: flex;
align-items: center;
gap: 28px;
flex: 1;
max-width: 430px;
}
.nav-links a {
font-size: 14px;
color: var(--mid);
transition: color .2s;
white-space: nowrap;
}
.nav-links a:hover {
color: var(--dark);
}
.phone-link {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
color: var(--mid);
text-decoration: underline;
white-space: nowrap;
}
/* ── FOOTER ── */
footer {
background: var(--blue-gray);
}
.footer-container {
padding: 50px 80px 40px;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 40px;
margin-top: 60px;
}
.footer-logo {
font-family: 'Playfair Display', serif;
font-size: 30px;
color: rgba(184, 243, 255, .85);
margin-bottom: 8px;
}
.footer-col h4 {
font-size: 16px;
font-weight: 600;
color: rgba(184, 243, 255, .85);
text-transform: uppercase;
letter-spacing: .5px;
margin-bottom: 16px;
}
.footer-col ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 10px;
}
.footer-col ul li a, .footer-col ul li {
font-size: 16px;
color: rgba(184, 243, 255, .8);
transition: opacity .2s;
}
.footer-col ul li a:hover {
opacity: .65;
}
/* ── RESPONSIVE ── */
@media (max-width: 900px) {
header, .header-top, .nav-bar {
padding-left: 24px;
padding-right: 24px;
}
footer {
grid-template-columns: 1fr 1fr;
padding: 40px 24px;
}
}