2025-08-22 21:55:03 -03:00
|
|
|
/* src/components/TickerWidget.css */
|
2025-09-01 14:04:40 -03:00
|
|
|
.ticker-wrapper {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
|
|
|
|
|
gap: 1.5rem;
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 1280px;
|
|
|
|
|
margin: 20px auto;
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
2025-09-01 14:04:40 -03:00
|
|
|
.ticker-card {
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border: 1px solid #e0e0e0;
|
|
|
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
|
|
|
|
padding: 15px 20px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-header {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2025-08-25 10:25:54 -03:00
|
|
|
border-bottom: 1px solid #e0e0e0; /* Borde más claro */
|
2025-08-22 21:55:03 -03:00
|
|
|
padding-bottom: 10px;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-header h3 {
|
|
|
|
|
margin: 0;
|
2025-08-25 10:25:54 -03:00
|
|
|
color: #212529; /* Color de título oscuro */
|
|
|
|
|
font-size: 1.2em;
|
|
|
|
|
font-weight: 700;
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-stats {
|
|
|
|
|
display: flex;
|
|
|
|
|
gap: 20px;
|
|
|
|
|
font-size: 0.9em;
|
2025-08-25 10:25:54 -03:00
|
|
|
color: #555;
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-stats strong {
|
2025-08-25 10:25:54 -03:00
|
|
|
color: #0073e6; /* Se usa el azul primario para destacar */
|
2025-08-22 21:55:03 -03:00
|
|
|
font-size: 1.1em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-results {
|
2025-09-01 14:04:40 -03:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
gap: 12px; /* Espacio entre partidos */
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-party .party-info {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 5px;
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-party .party-name {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
padding-right: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-party .party-percent {
|
2025-08-25 10:25:54 -03:00
|
|
|
font-weight: 700;
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.party-bar-background {
|
2025-08-25 10:25:54 -03:00
|
|
|
background-color: #e9ecef; /* Fondo de barra claro */
|
2025-08-22 21:55:03 -03:00
|
|
|
border-radius: 4px;
|
|
|
|
|
height: 10px;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.party-bar-foreground {
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
transition: width 0.5s ease-in-out;
|
2025-08-25 10:25:54 -03:00
|
|
|
/* El color de fondo se sigue aplicando desde el componente, esto es correcto */
|
2025-09-01 14:04:40 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ticker-results {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Aumentamos el tamaño mínimo */
|
|
|
|
|
gap: 20px;
|
|
|
|
|
}
|
|
|
|
|
.ticker-party {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 10px; /* Espacio entre logo y detalles */
|
|
|
|
|
}
|
|
|
|
|
.party-logo {
|
|
|
|
|
flex-shrink: 0;
|
2025-09-02 15:39:17 -03:00
|
|
|
width: 75px;
|
|
|
|
|
height: 75px;
|
2025-09-01 14:04:40 -03:00
|
|
|
}
|
|
|
|
|
.party-logo img {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
|
}
|
|
|
|
|
.party-details {
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
min-width: 0; /* Previene que el flex item se desborde */
|
2025-08-22 21:55:03 -03:00
|
|
|
}
|