Улучшена мобильная адаптация и поведение фильтров на главной
This commit is contained in:
@@ -75,3 +75,88 @@
|
||||
th:first-child { z-index: 3; }
|
||||
td input { transform: scale(1.05); }
|
||||
.matrix-tip { margin:0 0 6px; font-size:12px; color:#37507d; }
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.wrap {
|
||||
width: calc(100% - 16px);
|
||||
margin: 8px auto 16px;
|
||||
}
|
||||
.top {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
padding: 12px;
|
||||
}
|
||||
.top > div:last-child {
|
||||
width: 100%;
|
||||
display: grid !important;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.top > div:last-child a,
|
||||
.top > div:last-child form,
|
||||
.top > div:last-child button {
|
||||
width: 100%;
|
||||
}
|
||||
.scope-switch {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.scope-chip {
|
||||
flex: 1 1 auto;
|
||||
text-align: center;
|
||||
}
|
||||
.grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.lists {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.list-box {
|
||||
max-height: 300px;
|
||||
}
|
||||
.list-item {
|
||||
align-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.matrix-wrap {
|
||||
padding: 8px;
|
||||
}
|
||||
.matrix-scroll {
|
||||
max-height: 62vh;
|
||||
}
|
||||
th, td {
|
||||
font-size: 11px;
|
||||
padding: 5px;
|
||||
}
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
min-width: 170px;
|
||||
}
|
||||
input[type="text"],
|
||||
select,
|
||||
button {
|
||||
min-height: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.top > div:last-child {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.inline-product {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.matrix-h-scroll {
|
||||
height: 24px;
|
||||
}
|
||||
.matrix-scroll::-webkit-scrollbar,
|
||||
.matrix-h-scroll::-webkit-scrollbar {
|
||||
height: 18px;
|
||||
width: 12px;
|
||||
}
|
||||
th:first-child,
|
||||
td:first-child {
|
||||
min-width: 145px;
|
||||
}
|
||||
.matrix-tip {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,6 +283,53 @@
|
||||
font-size: 17px;
|
||||
color: #1f3f77;
|
||||
}
|
||||
.active-filters {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin: 0 0 12px;
|
||||
padding: 9px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #c9dafd;
|
||||
background: linear-gradient(145deg, #e8f0ff, #dbe8ff);
|
||||
box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
|
||||
}
|
||||
.active-filter {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
border-radius: 999px;
|
||||
padding: 6px 8px 6px 10px;
|
||||
border: 1px solid #cfe0ff;
|
||||
background: linear-gradient(145deg, #f8fbff, #edf4ff);
|
||||
color: #21457f;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.active-filter .kind {
|
||||
opacity: .7;
|
||||
font-weight: 600;
|
||||
letter-spacing: .2px;
|
||||
}
|
||||
.active-filter .remove {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: #dbe9ff;
|
||||
color: #1f4a8f;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
transition: .16s ease;
|
||||
}
|
||||
.active-filter .remove:hover {
|
||||
background: #c4dbff;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.rows {
|
||||
display: grid;
|
||||
@@ -347,3 +394,99 @@
|
||||
.credit .name { font-size: 8px; }
|
||||
.credit a { font-size: 6px; }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.wrap {
|
||||
width: calc(100% - 16px);
|
||||
margin: 10px auto 18px;
|
||||
}
|
||||
.brand-strip {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.brand-logo {
|
||||
width: clamp(132px, 42vw, 190px);
|
||||
}
|
||||
.hero {
|
||||
padding: 16px 14px 20px;
|
||||
border-radius: 16px;
|
||||
}
|
||||
.hero h1 {
|
||||
font-size: clamp(22px, 7vw, 32px);
|
||||
line-height: 1.06;
|
||||
}
|
||||
.hero p {
|
||||
font-size: 14px;
|
||||
}
|
||||
.mode-switch {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
.mode-btn {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
}
|
||||
.card {
|
||||
min-height: 0;
|
||||
padding: 12px;
|
||||
}
|
||||
.chip-grid {
|
||||
max-height: 260px;
|
||||
}
|
||||
.chip {
|
||||
font-size: 12px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.footer-bar {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 8px;
|
||||
background: rgba(255, 255, 255, .78);
|
||||
border: 1px solid #dbe7ff;
|
||||
border-radius: 12px;
|
||||
padding: 10px;
|
||||
}
|
||||
button.action {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
}
|
||||
.result {
|
||||
margin-top: 12px;
|
||||
padding: 12px;
|
||||
}
|
||||
.active-filters {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.active-filter {
|
||||
width: 100%;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.result-head h3 {
|
||||
font-size: 15px;
|
||||
}
|
||||
.rows {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.credit {
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
background: rgba(255, 255, 255, .86);
|
||||
border: 1px solid #dbe6ff;
|
||||
border-radius: 10px;
|
||||
padding: 4px 6px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 420px) {
|
||||
.hero::before,
|
||||
.hero::after {
|
||||
opacity: .72;
|
||||
}
|
||||
.search {
|
||||
padding: 10px 11px;
|
||||
}
|
||||
.tag {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user