chore: clean up css — generic styles where they make sense; remove deprecated styles, fragments of utility nonsense etc

This commit is contained in:
Cory Dransfeldt 2024-06-14 14:30:43 -07:00
parent d73d791989
commit 8708b71227
No known key found for this signature in database
54 changed files with 137 additions and 244 deletions

View file

@ -2,6 +2,9 @@
margin-bottom: var(--sizing-base);
& .item {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
&:not(:last-of-type) {
@ -15,19 +18,23 @@
& img {
border: 1px solid var(--accent-color);
}
& img {
width: calc(var(--sizing-3xl) * 1.5);
height: calc(var(--sizing-3xl) * 1.5);
}
& .meta {
& .meta,
& .presentation {
justify-content: start;
gap: var(--sizing-md);
width: calc(55% - var(--sizing-lg));
}
& .meta {
display: flex;
flex-direction: row;
align-items: center;
}
& .meta-text {
display: flex;
flex-direction: column;
@ -37,37 +44,28 @@
& .title {
font-weight: var(--font-weight-bold);
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
line-height: 1.5;
}
& .title,
& .subtext,
& .subtext p {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
& .subtext p,
& .timestamp {
line-height: 1.5;
}
& .subtext,
& .timestamp {
font-size: var(--font-size-sm);
}
& .title,
& .subtext,
& .timestamp {
line-height: 1.5;
white-space: nowrap;
}
& .timestamp {
margin-left: var(--sizing-lg);
text-align: right;
white-space: nowrap;
}
& .presentation {
display: flex;
flex-direction: row;
width: calc(55% - var(--sizing-lg));
}
& .count {
@ -79,17 +77,10 @@
}
}
& .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));
grid-template-columns: repeat(2, 1fr);
margin-bottom: var(--sizing-base);
& .item {
@ -127,7 +118,7 @@
}
&.grid {
grid-template-columns: repeat(3,minmax(0,1fr));
grid-template-columns: repeat(3, 1fr);
& .item img {
width: calc(var(--sizing-3xl) * 2);