167 lines
3.3 KiB
SCSS
Raw Permalink Normal View History

2025-01-03 17:25:18 +01:00
.-best-posts {
.rewind-report-container {
display: grid;
grid-template-columns: repeat(3, calc(32% - (1em / 3)));
2025-01-03 17:25:18 +01:00
gap: 1em;
@media screen and (width <= 580px) {
padding: 1em;
grid-template-columns: 1fr;
}
}
.rewind-report-title {
margin-left: 0;
width: 100%;
text-align: center;
box-sizing: border-box;
border: none;
margin-bottom: 1em;
2025-01-03 17:25:18 +01:00
}
2025-03-17 12:03:35 +01:00
2025-01-06 11:53:18 -06:00
.rewind-card {
box-sizing: border-box;
padding: 0.5em;
2025-01-10 14:26:35 -06:00
position: relative;
color: var(--rewind-black);
display: flex;
flex-direction: column;
text-align: left;
max-width: 700px;
height: 100%;
background: linear-gradient(
225deg,
transparent 13px,
var(--rewind-white) 13px
);
&::before {
content: "";
display: block;
width: 0;
position: absolute;
top: -1px;
right: -1px;
border: 10px solid transparent;
border-left: 10px solid var(--rewind-white);
border-bottom: 10px solid var(--rewind-white);
box-shadow:
0 2px 4px rgb(0 0 0 / 0.4),
-1px 1px 4px rgb(0 0 0 / 0.4);
}
2025-03-17 12:03:35 +01:00
2025-01-10 14:26:35 -06:00
&.rank-1 {
&::before {
border-left: 10px solid #ffd82a;
border-bottom: 10px solid #ffd82a;
}
2025-01-10 14:26:35 -06:00
}
2025-03-17 12:03:35 +01:00
2025-01-10 14:26:35 -06:00
&.rank-2 {
&::before {
border-left: 10px solid #d6d6d6;
border-bottom: 10px solid #d6d6d6;
}
2025-01-10 14:26:35 -06:00
}
2025-03-17 12:03:35 +01:00
2025-01-10 14:26:35 -06:00
&.rank-3 {
&::before {
border-left: 10px solid #cd7f32;
border-bottom: 10px solid #cd7f32;
}
2025-01-10 14:26:35 -06:00
}
2025-01-06 11:53:18 -06:00
}
2025-03-17 12:03:35 +01:00
2025-01-06 11:53:18 -06:00
.best-posts__post {
width: 100%;
@media screen and (width <= 475px) {
2025-01-10 21:08:47 -06:00
max-height: 300px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
p {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
}
}
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
.best-posts__post p {
font-family: var(--pixel-text) !important;
2025-01-06 11:53:18 -06:00
font-weight: normal;
font-size: var(--font-down-2);
2025-01-06 11:53:18 -06:00
width: 100%;
text-align: left;
color: var(--rewind-grey);
2025-03-17 12:03:35 +01:00
@media screen and (width <= 475px) {
2025-01-10 21:08:47 -06:00
font-size: var(--font-down-2);
}
}
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
.best-posts__post h1,
.best-posts__post h2 {
font-family: var(--jersey-heading);
font-size: 32px;
line-height: 22px;
}
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
.best-post__post h5 {
font-family: var(--jersey-heading);
}
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
.best-posts__post table {
font-family: var(--pixel-text) !important;
font-weight: normal;
font-size: var(--font-down-1);
}
2025-03-17 12:03:35 +01:00
2025-01-22 09:23:40 -06:00
.best-posts__post img {
max-width: 100%;
height: auto;
}
2025-03-17 12:03:35 +01:00
2025-01-22 09:23:40 -06:00
.best-posts__post code,
.best-posts__post pre {
font-family: var(--pixel-text);
font-weight: normal;
font-size: var(--font-down-1);
}
2025-03-17 12:03:35 +01:00
2025-01-10 21:08:47 -06:00
.best-posts__metadata a {
font-family: var(--pixel-text);
text-transform: uppercase;
color: var(--rewind-blue);
text-decoration: underline;
2025-01-06 11:53:18 -06:00
}
2025-03-17 12:03:35 +01:00
2025-01-06 11:53:18 -06:00
.best-posts__metadata {
font-weight: normal;
font-size: 12px;
display: flex;
gap: 10px;
color: var(--primary-700);
align-items: center;
margin-top: auto;
width: 100%;
2025-01-06 11:53:18 -06:00
}
2025-03-17 12:03:35 +01:00
2025-01-06 11:53:18 -06:00
.best-posts__likes,
.best-posts__replies {
2025-01-10 21:08:47 -06:00
font-family: var(--pixel-text);
border: 1px solid var(--rewind-light-grey);
2025-01-06 11:53:18 -06:00
padding: 3px 8px;
2025-01-10 14:26:35 -06:00
border-radius: var(--rewind-border-radius);
2025-01-06 11:53:18 -06:00
display: flex;
gap: 5px;
align-items: center;
2025-03-17 12:03:35 +01:00
2025-01-06 11:53:18 -06:00
svg {
color: var(--primary-700);
}
}
2025-01-03 17:25:18 +01:00
}