pestana descargas y subcategorias funcionando
This commit is contained in:
@@ -688,12 +688,12 @@ select {
|
||||
}
|
||||
|
||||
/* ════════════════════════════════
|
||||
CATEGORÍAS
|
||||
ESTILOS DE CATEGORÍAS (vista admin)
|
||||
════════════════════════════════ */
|
||||
.categorias-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
gap: 16px;
|
||||
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.categoria-card {
|
||||
@@ -1030,6 +1030,273 @@ select {
|
||||
color: #b45309;
|
||||
}
|
||||
|
||||
/* ════════════════════════════════
|
||||
ÁRBOL DE SUBCATEGORÍAS (dentro de la card de categoría)
|
||||
Opción A: cards 2-col, acciones hover-reveal, menú kebab
|
||||
════════════════════════════════ */
|
||||
.categoria-card {
|
||||
padding: 0;
|
||||
overflow: visible; /* allow kebab menus to escape the card */
|
||||
display: block; /* override inherited flex-column from base rule */
|
||||
text-align: left; /* override inherited text-align: center */
|
||||
align-items: stretch; /* override inherited align-items: center */
|
||||
z-index: 1; /* hover card stays above siblings */
|
||||
}
|
||||
.categoria-card.menu-host { z-index: 50; } /* card with open menu */
|
||||
|
||||
.categoria-header {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr auto auto;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 16px 18px;
|
||||
}
|
||||
|
||||
.categoria-header .categoria-icon { font-size: 1.9rem; line-height: 1; }
|
||||
.categoria-header .categoria-meta { min-width: 0; }
|
||||
.categoria-header .categoria-nombre {
|
||||
font-weight: 700;
|
||||
font-size: 1.02rem;
|
||||
color: var(--ink);
|
||||
line-height: 1.2;
|
||||
}
|
||||
.categoria-header .categoria-id {
|
||||
font-size: 0.72rem;
|
||||
color: var(--ink-mute);
|
||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||
margin-top: 3px;
|
||||
}
|
||||
.categoria-header .categoria-count {
|
||||
font-size: 0.78rem;
|
||||
color: var(--ink-mute);
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Acciones de categoría: solo contienen el ⋯ (todo lo demás está dentro del menú) */
|
||||
.categoria-actions {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.subcat-tree {
|
||||
border-top: 1px solid var(--line);
|
||||
background: rgba(255, 255, 255, 0.35);
|
||||
padding: 4px 0;
|
||||
border-bottom-left-radius: calc(var(--radius-md) - 1.5px);
|
||||
border-bottom-right-radius: calc(var(--radius-md) - 1.5px);
|
||||
}
|
||||
|
||||
.subcat-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 8px 18px 8px 44px;
|
||||
position: relative;
|
||||
font-size: 0.88rem;
|
||||
transition: background .15s ease;
|
||||
}
|
||||
.subcat-row:hover { background: rgba(255,255,255,0.55); }
|
||||
.subcat-row::before {
|
||||
content: '└';
|
||||
position: absolute;
|
||||
left: 28px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
color: var(--ink-mute);
|
||||
font-size: 0.78rem;
|
||||
opacity: 0.55;
|
||||
}
|
||||
|
||||
.subcat-children .subcat-row { padding-left: 72px; }
|
||||
.subcat-children .subcat-row::before { left: 56px; }
|
||||
|
||||
.subcat-info { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
|
||||
.subcat-name {
|
||||
font-weight: 600;
|
||||
color: var(--ink);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.subcat-id {
|
||||
font-size: 0.7rem;
|
||||
color: var(--ink-mute);
|
||||
font-family: ui-monospace, SFMono-Regular, monospace;
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
/* Acciones de subcat: solo contienen el ⋯ */
|
||||
.subcat-actions {
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-icon-tiny {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
font-size: 0.85rem;
|
||||
border-radius: 8px;
|
||||
background: transparent;
|
||||
border: 1px solid transparent;
|
||||
color: var(--ink-mute);
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all .15s ease;
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn-icon-tiny:hover {
|
||||
background: rgba(255,255,255,0.85);
|
||||
border-color: var(--line);
|
||||
color: var(--ink);
|
||||
}
|
||||
.btn-icon-tiny.btn-icon-danger:hover {
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
border-color: rgba(239, 68, 68, 0.3);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
/* ════════════════════════════════
|
||||
MENÚ KEBAB (drop-down ⋯)
|
||||
════════════════════════════════ */
|
||||
.menu-dropdown {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.menu-panel:not([hidden]) {
|
||||
position: absolute;
|
||||
top: calc(100% + 6px);
|
||||
right: 0;
|
||||
min-width: 190px;
|
||||
background: var(--white);
|
||||
border: 1.5px solid var(--line-strong);
|
||||
border-radius: var(--radius-md);
|
||||
box-shadow: var(--shadow-md);
|
||||
padding: 5px;
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
animation: menuFadeIn .14s ease;
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
@keyframes menuFadeIn {
|
||||
from { opacity: 0; transform: translateY(-4px) scale(0.97); }
|
||||
to { opacity: 1; transform: translateY(0) scale(1); }
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 10px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
transition: background .12s ease, color .12s ease;
|
||||
}
|
||||
.menu-item:hover {
|
||||
background: rgba(167, 139, 250, 0.12);
|
||||
color: var(--violet-deep);
|
||||
}
|
||||
.menu-item-danger { color: var(--danger); }
|
||||
.menu-item-danger:hover {
|
||||
background: rgba(239, 68, 68, 0.10);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
font-size: 0.95rem;
|
||||
line-height: 1;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.menu-header {
|
||||
padding: 7px 10px 8px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 700;
|
||||
color: var(--ink);
|
||||
border-bottom: 1px solid var(--line);
|
||||
margin: 0 0 4px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Breadcrumb dentro del modal de subcategoría */
|
||||
.subcat-breadcrumb {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 10px 12px;
|
||||
background: rgba(167, 139, 250, 0.08);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
.subcat-breadcrumb .bc-cat {
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.subcat-breadcrumb .bc-arrow { color: var(--ink-mute); }
|
||||
.subcat-breadcrumb .bc-new {
|
||||
color: var(--violet);
|
||||
font-weight: 600;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Upload: grupos de subcategoría + indicador de destino */
|
||||
.subcat-group { animation: subcatFadeIn .2s ease; }
|
||||
@keyframes subcatFadeIn {
|
||||
from { opacity: 0; transform: translateY(-4px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
.upload-destino {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 10px 14px;
|
||||
background: rgba(124, 92, 252, 0.08);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
font-size: 0.88rem;
|
||||
}
|
||||
.upload-destino-label {
|
||||
color: var(--ink-mute);
|
||||
font-weight: 600;
|
||||
font-size: 0.78rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.upload-destino-path {
|
||||
color: var(--ink);
|
||||
font-weight: 600;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.you-badge {
|
||||
display: inline-block;
|
||||
margin-left: 6px;
|
||||
@@ -1294,6 +1561,17 @@ select {
|
||||
.subtab { padding: 8px 12px; font-size: 0.82rem; }
|
||||
.subtab-placeholder { padding: 32px 16px; }
|
||||
.subtab-placeholder-icon { font-size: 2.6rem; }
|
||||
.categoria-header {
|
||||
grid-template-columns: auto 1fr;
|
||||
grid-template-rows: auto auto;
|
||||
gap: 8px 12px;
|
||||
}
|
||||
.categoria-header .categoria-count { grid-column: 1; }
|
||||
.categoria-header .categoria-actions { grid-column: 1 / -1; }
|
||||
.subcat-row { padding-left: 32px; }
|
||||
.subcat-row::before { left: 18px; }
|
||||
.subcat-children .subcat-row { padding-left: 52px; }
|
||||
.subcat-children .subcat-row::before { left: 38px; }
|
||||
}
|
||||
|
||||
/* ════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user