Feat: Mapa Styles
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
}
|
||||
|
||||
.panelNacionalContainer {
|
||||
max-width: 1200px;
|
||||
max-width: 900px;
|
||||
margin: auto;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 8px;
|
||||
@@ -151,9 +151,9 @@
|
||||
.resultadosColumn {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 1.25rem;
|
||||
padding: 1rem;
|
||||
transition: all 0.5s ease-in-out;
|
||||
min-width: 320px;
|
||||
min-width: 350px;
|
||||
}
|
||||
|
||||
.partidoFila {
|
||||
@@ -186,14 +186,55 @@
|
||||
grid-template-columns: 1fr auto;
|
||||
grid-template-rows: auto auto;
|
||||
align-items: center;
|
||||
gap: 0.25rem 0.75rem;
|
||||
gap: 0.5rem 0.75rem; /* Aumentamos el gap vertical para más aire */
|
||||
}
|
||||
|
||||
/* El contenedor de la barra */
|
||||
.partidoBarraConVotos {
|
||||
grid-column: 1 / 3;
|
||||
position: relative; /* Clave para superponer el texto */
|
||||
height: 28px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* La barra de progreso coloreada */
|
||||
.partidoBarraForeground {
|
||||
height: 100%;
|
||||
border-radius: 6px;
|
||||
transition: width 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
/* La ÚNICA capa de texto, posicionada de forma absoluta */
|
||||
.partidoVotosEnBarra {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 10px;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
.animatedNumberWrapper {
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.partidoTopRow { display: contents; }
|
||||
.partidoInfoWrapper { min-width: 0; text-align: left; }
|
||||
.partidoInfoWrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
min-width: 0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.partidoNombre {
|
||||
font-weight: 700;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
color: #212529;
|
||||
white-space: nowrap;
|
||||
@@ -203,7 +244,7 @@
|
||||
}
|
||||
|
||||
.partidoNombreNormal {
|
||||
font-size: 1rem;
|
||||
font-size: 0.9rem;
|
||||
color: #212529;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
@@ -212,18 +253,16 @@
|
||||
}
|
||||
|
||||
.candidatoNombre {
|
||||
font-size: 0.75rem;
|
||||
color: #6c757d;
|
||||
font-weight: 500;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.partidoStats { flex-shrink: 0; text-align: right; padding-left: 1rem; }
|
||||
.partidoPorcentaje { font-size: 1.35rem; font-weight: 700; display: block; }
|
||||
.partidoVotos { font-size: 0.9rem; color: #666; display: block; }
|
||||
.partidoPorcentaje { font-size: 1.15rem; font-weight: 700; display: block; }
|
||||
|
||||
.partidoBarraBackground {
|
||||
height: 12px;
|
||||
height: 16px;
|
||||
background-color: #f0f0f0;
|
||||
border-radius: 4px;
|
||||
grid-column: 1 / 3;
|
||||
|
||||
Reference in New Issue
Block a user