Template:PatchHighlights/styles.css
Template page
More actions
/* Container (matches PatchNav border vibe) */
.sv-highlights-wrap {
border: 2px solid #372b54;
border-radius: 10px;
padding: 0.75rem;
background: transparent;
}
/* Grid: 3 columns desktop */
.sv-highlights {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
grid-auto-rows: auto;
align-items: start;
width: 100%;
direction: rtl; /* keeps visual order consistent with your previous layout */
}
/* Empty state inside grid */
.sv-empty {
grid-column: 1 / -1;
opacity: .75;
text-align: center;
padding: 1rem;
direction: ltr;
}
/* Card base */
.sv-card {
text-align: left;
padding: 1rem 1.5rem 0.75rem;
direction: ltr;
border-radius: 8px;
}
/* Card title + divider + date + blurb */
.sv-card__title {
font-size: 1.4em;
font-weight: 700;
line-height: 1.2;
margin: -0.2em 0 0.3em 0;
}
.sv-card__divider {
height: 1px;
background: rgba(55, 43, 84, 0.25);
margin: 0.35rem 0 0.5rem 0;
}
.sv-card__date {
margin: .1em 0;
font-size: .85em;
font-style: italic;
color: var(--text-color);
}
.sv-card__blurb {
font-size: .9em;
line-height: 1.75em;
color: var(--text-color);
margin: .3em 0 0 0;
}
/* Mobile: show only the newest card, 1 column, normal LTR */
@media (max-width: 640px) {
.sv-highlights {
grid-template-columns: 1fr;
direction: ltr;
}
.sv-highlights > .sv-card:not(:first-child) {
display: none;
}
}