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

Module:GameInfo/styles.css: Difference between revisions

From SpiritVale Wiki
No edit summary
No edit summary
Line 332: Line 332:
   REQUIREMENTS / USERS (COMPACT, CENTERED, SHRINK-TO-FIT)
   REQUIREMENTS / USERS (COMPACT, CENTERED, SHRINK-TO-FIT)
   - No full-width bars
   - No full-width bars
   - Stay side-by-side on mobile; shrink instead of stacking
   - Desktop: ~50% narrower + centered
  - Mobile: stay side-by-side; shrink instead of stacking
---------------------------------------------------------------------------- */
---------------------------------------------------------------------------- */


Line 343: Line 344:
}
}


/* Two buttons: narrower + no grow (prevents stretching) */
.sv-reqrow > * {
.sv-reqrow > * {
   flex: 1 1 0;
   flex: 0 1 140px;   /* shrink-to-fit, no expansion */
   max-width: 280px; /* about ~half feel */
   max-width: 140px; /* ~50% narrower than prior 280px */
   min-width: 0;     /* allow shrink without overflow */
   min-width: 0;
}
}


/* Single button: still compact (not full row) */
.sv-reqrow > *:only-child {
.sv-reqrow > *:only-child {
   flex: 0 1 560px;
   flex: 0 1 280px;
   max-width: 560px;
   max-width: 280px;
}
}