La hice con grid, me gustaria feedback de ser necesario. Nunca pares de aprender.
.main-tables-container-title {
text-align: left;
margin: 15px;
font-size: 1.8rem;
color: #FF9536;
}
.main-tables-container {
display: grid;
grid-template-columns: repeat(2, minmax(100px, 300px));
grid-template-rows: 50px 120px 65px;
width: 70%;
min-width: 235px;
max-width: 500px;
margin: 0 auto;
font-family: "Inter", sans-serif;
font-size: 1.6rem;
font-weight: 500;
color: #b5b0ac;
list-style: none;
}
.main-tables-container li {
height: 40px;
min-width: 100px;
margin: 1px;
padding: 12px;
border-radius: 5%;
text-align: left;
background-color: var(--just-white);
}
.main-tables-container-coins,
.main-tables-container-coins-value {
grid-row: 2 / 2;
}
.main-tables-container .main-tables-container-coins-value {
color: #757575;
font-size: 1.4rem;
font-weight: 400;
}
.main-tables-container-coins-value li:nth-child(1) span {
width: 15px;
height: 10px;
background: url(../assets/icons/trending-down.svg) center/cover no-repeat;
}
.main-tables-container-coins-value li:nth-child(2) span {
width: 15px;
height: 10px;
background: url(../assets/icons/trending-up.svg) center/cover no-repeat;
}
.main-tables-container-coins-value li:nth-child(3) span {
width: 15px;
height: 10px;
background: url(../assets/icons/trending-down.svg) center/cover no-repeat;
}
.main-tables-container-coins-value li:nth-child(4) span {
width: 15px;
height: 10px;
background: url(../assets/icons/trending-down.svg) center/cover no-repeat;
}
.main-tables-container-coins-value li {
display: flex;
justify-content: space-between;
}
.main-tables-container-subtitle {
grid-row: 4;
grid-column: 1 / 3;
padding: 8px;
border-radius: 8%;
font-size: 1.6rem;
font-weight: 700;
line-height: 1.9rem;
background-color: var(--soft-orange);
color: var(--warm-black);
}
.main-tables-container-subtitle::after {
content: "19 Octubre 23:10";
font-weight: 400;
font-size: 1.2rem;
line-height: 1.5rem;
}
¿Quieres ver más aportes, preguntas y respuestas de la comunidad? Crea una cuenta o inicia sesión.