Pre Refinamiento Movil
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
/* Nuevo contenedor para alinear título y selector */
|
||||
/* Contenedor para alinear título y selector */
|
||||
.header-top-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
@@ -27,26 +27,55 @@
|
||||
|
||||
.categoria-selector {
|
||||
min-width: 220px;
|
||||
/* Ancho del selector */
|
||||
}
|
||||
|
||||
.breadcrumbs {
|
||||
/* --- ESTILOS MODERNOS PARA BREADCRUMBS --- */
|
||||
|
||||
.breadcrumbs-container {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem; /* Espacio entre elementos */
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.breadcrumb-link {
|
||||
background: none;
|
||||
border: none;
|
||||
color: #007bff;
|
||||
.breadcrumb-item, .breadcrumb-item-actual {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0.4rem 0.8rem;
|
||||
border-radius: 8px; /* Bordes redondeados para efecto píldora */
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
.breadcrumb-item {
|
||||
background-color: #f0f0f0;
|
||||
border: 1px solid #e0e0e0;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.breadcrumb-item:hover {
|
||||
background-color: #e0e0e0;
|
||||
border-color: #d1d1d1;
|
||||
}
|
||||
|
||||
.breadcrumb-item-actual {
|
||||
background-color: transparent;
|
||||
color: #000;
|
||||
font-weight: 700; /* Más peso para el nivel actual */
|
||||
}
|
||||
|
||||
.breadcrumb-icon {
|
||||
margin-right: 0.4rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.breadcrumb-separator {
|
||||
margin: 0 0.5rem;
|
||||
color: #a0a0a0; /* Color sutil para el separador */
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
|
||||
.panel-main-content {
|
||||
display: flex;
|
||||
height: 75vh;
|
||||
@@ -70,13 +99,126 @@
|
||||
min-width: 320px; /* Un ancho mínimo para que no se comprima demasiado */
|
||||
}
|
||||
|
||||
/* --- NUEVOS ESTILOS --- */
|
||||
/* --- NUEVO LAYOUT PARA TARJETAS DE PARTIDO --- */
|
||||
.partido-fila {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
padding: 1rem 0;
|
||||
border-bottom: 1px solid #f0f0f0; /* Separador sutil */
|
||||
border-left: 5px solid; /* El color se aplica inline */
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
.partido-logo {
|
||||
flex-shrink: 0;
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
}
|
||||
|
||||
.partido-logo img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 10%;
|
||||
}
|
||||
|
||||
.partido-main-content {
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem; /* Espacio entre la fila superior y la barra */
|
||||
}
|
||||
|
||||
.partido-top-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start; /* Alinea los elementos al tope */
|
||||
}
|
||||
|
||||
.partido-info-wrapper {
|
||||
/* Ocupa el espacio disponible a la izquierda */
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.partido-nombre {
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.candidato-nombre {
|
||||
font-size: 0.85rem;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.partido-stats {
|
||||
flex-shrink: 0;
|
||||
text-align: right;
|
||||
padding-left: 1rem; /* Espacio para que no se pegue al nombre */
|
||||
}
|
||||
|
||||
.partido-porcentaje {
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.partido-votos {
|
||||
font-size: 1rem;
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.partido-barra-background {
|
||||
height: 20px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.partido-barra-foreground {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
transition: width 0.5s ease-in-out;
|
||||
}
|
||||
/* ------------------------------------------- */
|
||||
|
||||
.panel-estado-recuento {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
padding-bottom: 1.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.estado-item {
|
||||
width: 100px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.estado-item span {
|
||||
margin-top: 0.5rem;
|
||||
font-size: 0.9rem;
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
/* --- MAPA Y ELEMENTOS ASOCIADOS (sin cambios) --- */
|
||||
.mapa-componente-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.mapa-render-area {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.mapa-volver-btn {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
@@ -89,144 +231,19 @@
|
||||
cursor: pointer;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.partido-fila {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
gap: 1rem; /* Añade un espacio entre logo, info y stats */
|
||||
}
|
||||
|
||||
.partido-logo {
|
||||
flex-shrink: 0;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
|
||||
.partido-logo img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.partido-info-wrapper {
|
||||
flex-grow: 1; /* Permite que esta sección crezca */
|
||||
flex-shrink: 1; /* Permite que se encoja si es necesario */
|
||||
min-width: 0; /* <-- TRUCO CLAVE DE FLEXBOX para que text-overflow funcione */
|
||||
}
|
||||
|
||||
.partido-nombre {
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
white-space: nowrap; /* <-- No permitir que el texto salte de línea */
|
||||
overflow: hidden; /* <-- Ocultar el texto que se desborda */
|
||||
text-overflow: ellipsis; /* <-- Añadir "..." al final */
|
||||
}
|
||||
|
||||
.candidato-nombre {
|
||||
font-size: 0.85rem;
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.partido-barra-background {
|
||||
height: 15px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 5px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.partido-barra-foreground {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
transition: width 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
.partido-stats {
|
||||
flex-shrink: 0; /* <-- MUY IMPORTANTE: Evita que este bloque se encoja */
|
||||
text-align: right;
|
||||
min-width: 100px; /* Asegura que siempre tenga espacio suficiente */
|
||||
}
|
||||
|
||||
.partido-porcentaje {
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.partido-votos {
|
||||
font-size: 0.8rem;
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.panel-estado-recuento {
|
||||
margin-top: auto;
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid #e0e0e0;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
.estado-item {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.estado-item span {
|
||||
font-size: 0.8rem;
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.estado-item strong {
|
||||
font-size: 1.2rem;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.rsm-zoomable-group {
|
||||
transition: transform 0.75s ease-in-out;
|
||||
}
|
||||
|
||||
* Contenedor principal del contenido */
|
||||
.panel-main-content {
|
||||
display: flex;
|
||||
height: 70vh;
|
||||
min-height: 500px;
|
||||
transition: all 0.5s ease-in-out; /* Transición suave para el layout */
|
||||
}
|
||||
|
||||
/* Columna del mapa */
|
||||
.mapa-column {
|
||||
flex: 2; /* Por defecto, ocupa 2/3 del espacio */
|
||||
position: relative;
|
||||
transition: flex 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
/* Columna de resultados */
|
||||
.resultados-column {
|
||||
flex: 1; /* Por defecto, ocupa 1/3 */
|
||||
overflow-y: auto;
|
||||
padding: 1.5rem;
|
||||
transition: all 0.5s ease-in-out;
|
||||
min-width: 320px; /* Un ancho mínimo para que no se comprima demasiado */
|
||||
}
|
||||
|
||||
/* --- ESTADO COLAPSADO --- */
|
||||
/* Cuando el panel principal tiene la clase 'panel-collapsed' */
|
||||
.panel-main-content.panel-collapsed .mapa-column {
|
||||
flex: 1 1 100%; /* El mapa ocupa todo el ancho */
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.panel-main-content.panel-collapsed .resultados-column {
|
||||
flex-basis: 0;
|
||||
min-width: 0;
|
||||
max-width: 0;
|
||||
padding: 0;
|
||||
overflow: hidden; /* Oculta el contenido para que no se desborde */
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* --- Estilo del botón para colapsar --- */
|
||||
.panel-toggle-btn {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -248,70 +265,53 @@
|
||||
box-shadow: -2px 0 5px rgba(0,0,0,0.1);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.panel-toggle-btn:hover {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
.rsm-geography {
|
||||
cursor: pointer;
|
||||
stroke: #000000;
|
||||
stroke-width: 0.2px;
|
||||
stroke-width: 0.25px;
|
||||
outline: none;
|
||||
transition: filter 0.2s ease-in-out, stroke 0.2s ease-in-out, stroke-width 0.2s ease-in-out;
|
||||
transition: filter 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* --- ESTADO HOVER (Sutil) --- */
|
||||
/* Se aplica solo si la geografía NO está seleccionada */
|
||||
.rsm-geography:not(.selected):hover {
|
||||
filter: brightness(1.10);
|
||||
stroke: #0000ff;
|
||||
stroke-width: 0.5px;
|
||||
filter: brightness(1.15);
|
||||
stroke: #ffffff;
|
||||
stroke-width: 0.25px;
|
||||
}
|
||||
|
||||
/* --- ESTADO SELECCIONADO (Foco) --- */
|
||||
/* Clase que añadiremos desde React para el municipio en foco */
|
||||
.rsm-geography.selected {
|
||||
stroke: #0000ff; /* Borde negro para el seleccionado */
|
||||
stroke-width: 0.5px; /* <-- Borde más grueso para destacar */
|
||||
filter: none; /* Quitamos cualquier otro filtro para que se vea nítido */
|
||||
pointer-events: none; /* Desactivamos eventos para que no interfiera el hover */
|
||||
}
|
||||
|
||||
/* Reglas para los mapas atenuados (sin cambios) */
|
||||
.rsm-geography-faded,
|
||||
.rsm-geography-faded-municipality {
|
||||
opacity: 0.3;
|
||||
stroke: #000000;
|
||||
stroke-width: 0.25px;
|
||||
filter: none;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rsm-geography-faded:hover,
|
||||
.rsm-geography-faded-municipality:hover {
|
||||
filter: none;
|
||||
stroke: #FFFFFF;
|
||||
stroke-width: 0.5px;
|
||||
.rsm-geography-faded,
|
||||
.rsm-geography-faded-municipality {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.partido-barra-foreground {
|
||||
height: 100%;
|
||||
border-radius: 4px;
|
||||
transition: width 0.5s ease-in-out;
|
||||
.caba-comuna-geography {
|
||||
stroke: #000000;
|
||||
stroke-width: 0.05px;
|
||||
}
|
||||
.caba-comuna-geography:not(.selected):hover {
|
||||
stroke: #000000;
|
||||
stroke-width: 0.055px;
|
||||
filter: brightness(1.25);
|
||||
}
|
||||
|
||||
/* Spinner para la transición entre mapas */
|
||||
.transition-spinner {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(255, 255, 255, 0.5); /* Fondo blanco semitransparente */
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
z-index: 20;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
/* Estilo del spinner en sí mismo */
|
||||
.transition-spinner::after {
|
||||
content: '';
|
||||
width: 50px;
|
||||
@@ -321,7 +321,42 @@
|
||||
border-radius: 50%;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to { transform: rotate(360deg); }
|
||||
}
|
||||
}
|
||||
.caba-magnifier-container {
|
||||
position: absolute;
|
||||
height: auto;
|
||||
transform: translate(-50%, -50%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.caba-lupa-svg {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
.caba-lupa-interactive-area {
|
||||
pointer-events: all;
|
||||
cursor: pointer;
|
||||
filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.25));
|
||||
transition: transform 0.2s ease-in-out;
|
||||
}
|
||||
.caba-lupa-interactive-area:hover {
|
||||
filter: brightness(1.15);
|
||||
stroke: #ffffff;
|
||||
stroke-width: 0.25px;
|
||||
}
|
||||
|
||||
.skeleton-fila div {
|
||||
background: #f6f7f8;
|
||||
background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 800px 104px;
|
||||
animation: shimmer 1s linear infinite;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.skeleton-logo { width: 65px; height: 65px; }
|
||||
.skeleton-text { height: 1em; }
|
||||
.skeleton-bar { height: 20px; margin-top: 4px; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user