Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

Template:PatchHighlights/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Bordered container */
/* outer padding inside the table cell */
.sv-highlights-wrap {
.sv-highlights-pad{padding:.75rem}
  border: 2px solid #372b54;
 
  border-radius: 10px;
/* grid: fixed cols; rtl so newest appears leftmost while preserving source order */
  padding: 0.75rem;
.sv-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;align-items:start;width:100%;direction:rtl}
  background: transparent;
 
}
/* empty state */
.sv-empty{grid-column:1/-1;opacity:.75;text-align:center;padding:1rem;direction:ltr}


/* Responsive grid: naturally flows 3 → 2 → 1 as space shrinks */
/* remove duplicate chrome; table provides border/radius/shadow */
.sv-highlights {
.sv-highlights-wrap{border:0;border-radius:0;padding:0;background:transparent}
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  grid-auto-rows: auto;
  align-items: start;
  width: 100%;
}


/* Empty state */
/* card */
.sv-empty {
.sv-card{text-align:left;padding:1rem 1.5rem .75rem;direction:ltr;border-radius:8px;min-width:0;word-wrap:break-word}
  grid-column: 1 / -1;
  opacity: .75;
  text-align: center;
  padding: 1rem;
  direction: ltr;
}


/* Card base */
/* bits */
.sv-card {
.sv-card__title{font-size:1.4em;font-weight:700;line-height:1.2;margin:-.2em 0 .3em 0}
  text-align: left;
.sv-card__divider{height:1px;background:rgba(55,43,84,.25);margin:.35rem 0 .5rem 0}
  padding: 1rem 1.5rem 0.75rem;
.sv-card__date{margin:.1em 0;font-size:.85em;font-style:italic;color:var(--text-color)}
  direction: ltr;
.sv-card__blurb{font-size:.9em;line-height:1.75em;color:var(--text-color);margin:.3em 0 0 0}
  border-radius: 8px;
  min-width: 0;
  word-wrap: break-word;
}


/* Card pieces */
/* tablet: 2 cols, hide 3rd+ */
.sv-card__title {
@media (max-width:1024px){
  font-size: 1.4em;
   .sv-highlights{grid-template-columns:repeat(2,1fr)}
  font-weight: 700;
  .sv-highlights>.sv-card:nth-of-type(n+3){display:none}
  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: 1 column and hide all but the newest card. */
/* mobile: 1 col, show newest only and restore LTR */
@media (max-width: 640px) {
@media (max-width:640px){
   .sv-highlights { grid-template-columns: 1fr; }
   .sv-highlights{grid-template-columns:1fr;direction:ltr}
   .sv-highlights > div.sv-card:nth-of-type(n+2) { display: none; }
   .sv-highlights>.sv-card:nth-of-type(n+2){display:none}
}
}