Store picker in topbar, redesign cabinet, rename to WBfeed.ru

- index.html: store dropdown in topbar (switch without leaving page)
- cabinet.html: store-cards with Активировать/Проверить, edit hidden in <details>
- Removed 'Используется' button, active shown as green card + label
- next=index param to return to main page after store switch
- Brand name changed to WBfeed.ru across all templates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-15 21:30:03 +03:00
parent 17f898f73f
commit de278227ac
5 changed files with 221 additions and 36 deletions
+143
View File
@@ -1847,3 +1847,146 @@ fieldset:disabled .filter-pill { pointer-events: none; opacity: 0.5; }
font-weight: 700;
margin-right: 6px;
}
/* ── Store picker (topbar dropdown) ─────────────────────── */
.store-picker {
position: relative;
}
.store-picker__btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
border-radius: var(--r-sm);
background: var(--line);
border: 1.5px solid var(--line-strong);
color: var(--text);
font-size: 13px;
font-weight: 500;
cursor: pointer;
box-shadow: none;
transition: background var(--t);
white-space: nowrap;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
}
.store-picker__btn:hover { background: var(--line-strong); filter: none; transform: none; box-shadow: none; }
.store-picker__dropdown {
display: none;
position: absolute;
top: calc(100% + 6px);
right: 0;
min-width: 200px;
background: #fff;
border: 1.5px solid var(--line);
border-radius: var(--r);
box-shadow: var(--shadow-md);
z-index: 300;
overflow: hidden;
padding: 6px;
}
.store-picker.open .store-picker__dropdown { display: block; }
.store-picker__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
padding: 9px 12px;
border-radius: var(--r-sm);
font-size: 13px;
font-weight: 500;
color: var(--text);
background: transparent;
border: none;
cursor: pointer;
text-decoration: none;
box-shadow: none;
transition: background var(--t);
text-align: left;
}
.store-picker__item:hover { background: var(--line); filter: none; transform: none; box-shadow: none; }
.store-picker__item--active { color: var(--green); font-weight: 600; }
.store-picker__sep { height: 1px; background: var(--line); margin: 4px 0; }
/* ── Store cards (cabinet) ───────────────────────────────── */
.store-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.store-card {
border: 2px solid var(--line);
border-radius: var(--r);
padding: 18px 20px;
background: var(--card);
transition: border-color var(--t);
}
.store-card--active {
border-color: var(--green-line);
background: var(--green-bg);
}
.store-card__header {
display: flex;
align-items: center;
gap: 14px;
}
.store-card__icon {
width: 42px;
height: 42px;
border-radius: var(--r-sm);
background: var(--line);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
color: var(--muted);
}
.store-card--active .store-card__icon {
background: var(--green-line);
color: var(--green);
}
.store-card__info { flex: 1; min-width: 0; }
.store-card__name {
font-size: 15px;
font-weight: 600;
color: var(--text);
}
.store-card__active-label {
font-size: 12px;
font-weight: 600;
color: var(--green);
margin-top: 2px;
display: block;
}
.store-card__actions {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.btn-activate {
background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
color: #fff;
padding: 8px 16px;
font-size: 13px;
box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}
.btn-activate:hover { opacity: 0.88; box-shadow: 0 4px 12px rgba(34,197,94,0.4); filter: none; }
.store-card__edit {
margin-top: 14px;
padding-top: 14px;
border-top: 1px solid var(--line);
}
.store-card__edit summary {
font-size: 13px;
color: var(--muted);
cursor: pointer;
user-select: none;
list-style: none;
}
.store-card__edit summary:hover { color: var(--text); }
.store-card__edit summary::marker,
.store-card__edit summary::-webkit-details-marker { display: none; }
.store-card__edit summary::before { content: '▸ '; font-size: 11px; }
.store-card__edit[open] summary::before { content: '▾ '; }