90 lines
1.9 KiB
SCSS
Raw Permalink Normal View History

2025-01-03 17:25:18 +01:00
.-best-topics {
.rewind-report-container {
flex-direction: column;
gap: 1em;
}
2025-01-06 15:04:58 -06:00
.best-topics__title {
color: var(--primary);
}
.rewind-card {
gap: 1em;
align-items: flex-start;
max-width: 700px;
background: none;
border: none;
2025-01-10 17:02:27 -06:00
padding: 0;
2025-01-06 15:04:58 -06:00
}
2025-01-10 21:08:47 -06:00
.best-topics__header {
font-family: var(--jersey-heading);
margin: 0;
font-size: var(--font-up-3);
line-height: var(--font-0);
}
2025-01-06 15:04:58 -06:00
.best-topics__topic {
2025-01-10 21:08:47 -06:00
padding: 0.5em;
2025-01-06 15:04:58 -06:00
position: relative;
color: var(--primary);
display: flex;
flex-direction: column;
text-align: left;
max-width: 700px;
2025-01-10 14:26:35 -06:00
@include rewind-border;
2025-01-06 15:04:58 -06:00
&.rank-1 {
--background: #ffe46a;
--border-color: #ffd82a;
}
&.rank-2 {
--background: #d6d6d6;
--border-color: #c4c4c4;
}
&.rank-3 {
--background: #dca570;
--border-color: #cd7f32;
}
background: var(--secondary);
}
2025-01-10 14:26:35 -06:00
.best-topics.-rank {
z-index: -1;
2025-01-06 15:04:58 -06:00
position: absolute;
2025-01-10 14:26:35 -06:00
top: 8px;
2025-01-13 12:58:59 -06:00
left: -20px;
2025-01-10 14:26:35 -06:00
width: 0px;
height: 0px;
2025-01-06 15:04:58 -06:00
display: flex;
align-items: center;
justify-content: center;
2025-01-10 14:26:35 -06:00
box-shadow: none;
border-right: 28px solid var(--border-color);
border-top: 28px solid transparent;
&:nth-child(2) {
z-index: -1;
position: absolute;
top: 8px;
2025-01-13 12:58:59 -06:00
left: -20px;
2025-01-10 14:26:35 -06:00
width: 0px;
height: 0px;
display: flex;
align-items: center;
justify-content: center;
border-left: 28px solid var(--border-color);
border-right: 0;
transform: rotate(180deg);
}
2025-01-06 15:04:58 -06:00
}
.best-topics__excerpt {
2025-01-10 21:08:47 -06:00
font-family: var(--pixel-text);
font-size: var(--font-down-1);
2025-01-06 15:04:58 -06:00
font-weight: 400;
color: var(--primary-800);
text-align: left;
2025-01-13 20:00:12 -06:00
@media screen and (max-width: 475px) {
2025-01-10 21:08:47 -06:00
max-width: 100%;
overflow: hidden;
font-size: var(--font-down-2);
}
2025-01-06 15:04:58 -06:00
&:empty {
display: none;
}
}
2025-01-03 17:25:18 +01:00
}