AutorÃa | Ultima modificación | Ver Log |
import {
LinearProgress,
Rating,
linearProgressClasses,
styled
} from '@mui/material'
export const TopicContainer = styled('div')`
background-color: var(--bg-color);
border-radius: 10px;
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
display: grid;
grid-template-rows: auto 1fr auto;
overflow: hidden;
width: 100%;
.c-header {
border-bottom: 1px solid var(--border-primary);
padding: 0.5rem;
overflow: hidden;
width: 100%;
h3 {
color: var(--subtitle-color);
font-variant: 14px;
text-align: center;
}
}
.c-body {
position: relative;
overflow: hidden;
svg {
position: absolute;
left: 1rem;
top: 0.5rem;
}
}
img {
aspect-ratio: 7/10;
object-fit: cover;
width: 100%;
}
.c-footer {
align-items: center;
background-color: var(--bg-color);
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
display: flex;
gap: 0.5rem;
justify-content: space-between;
padding: 0.5rem;
}
`
export const TopicProgress = styled(LinearProgress)`
border-radius: 10px;
flex: 1 1 50%;
background-color: var(--bg-color);
& .${linearProgressClasses.bar} {
border-radius: 10px;
background-color: var(--font-color);
}
`
export const TopicsGrid = styled('section')`
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
margin-top: 1rem;
width: 100%;
`
export const CapsuleRating = styled(Rating)`
display: flex;
span {
font-size: inherit;
}
svg {
color: var(--font-color);
}
`