This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/assets/styles/components/music-chart.css
2024-05-01 21:45:18 -07:00

125 lines
No EOL
2.1 KiB
CSS

.music-chart {
& .item {
justify-content: space-between;
&:not(:last-of-type) {
margin-bottom: var(--sizing-md);
}
& .progress-bar__wrapper {
max-width: 40%;
margin-left: var(--sizing-lg);
}
& img {
border: 1px solid var(--accent-color);
}
& img {
width: calc(var(--sizing-3xl) * 1.5);
height: calc(var(--sizing-3xl) * 1.5);
}
& .meta {
justify-content: start;
gap: var(--sizing-md);
max-width: calc(70% - var(--sizing-lg));
}
& .meta-text {
display: flex;
flex-direction: column;
justify-content: start;
max-width: 75%;
}
& .title {
font-weight: var(--font-weight-bold);
}
& .title,
& .subtext,
& .subtext p {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
& .subtext,
& .timestamp {
font-size: var(--font-size-xs);
}
& .title,
& .subtext,
& .timestamp {
line-height: 1.5;
}
& .timestamp {
margin-left: var(--sizing-lg);
text-align: right;
white-space: nowrap;
}
& .presentation {
display: flex;
flex-direction: row;
max-width: calc(60% - var(--sizing-lg));
}
& .count {
margin-right: var(--sizing-sm);
}
& .info {
max-width: calc(95% - var(--sizing-lg));
}
}
& .item,
& .meta {
display: flex;
flex-direction: row;
align-items: center;
}
&.grid {
display: grid;
gap: var(--sizing-sm);
grid-template-columns: repeat(2,minmax(0,1fr));
margin-bottom: var(--sizing-base);
& .item {
& .meta {
max-width: 80%;
& .title {
line-height: var(--line-height-sm);
}
& .subtext p {
margin: 0;
line-height: var(--line-height-sm);
}
}
}
}
}
@media screen and (min-width: 768px) {
.music-chart {
& .item .meta-text {
max-width: 85%;
}
&.grid {
grid-template-columns: repeat(3,minmax(0,1fr));
& .item img {
width: calc(var(--sizing-3xl) * 2);
height: calc(var(--sizing-3xl) * 2);
}
}
}
}