diff --git a/static/styles.css b/static/styles.css index 5c294b1..269b756 100644 --- a/static/styles.css +++ b/static/styles.css @@ -473,8 +473,10 @@ button.sheet-skill:hover { background: var(--panel-2); } .hands { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #d6b48a; border: 1px solid rgba(214, 180, 138, .5); border-radius: 4px; padding: 0 4px; } -/* Paper doll: a compact slot grid on a warrior's outline, details beside it */ -.doll-wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; } +/* Paper doll: a compact slot grid on a warrior's outline, details beside it, or below it once + they don't fit beside it (the side keeps its min-content width, so it wraps instead of clipping) */ +.doll-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: start; } +.doll-col { flex: none; } .doll { position: relative; display: grid; grid-template-columns: repeat(3, 52px); gap: 8px; padding: 6px; } .doll-figure { position: absolute; inset: -4px; display: grid; place-items: center; opacity: .09; pointer-events: none; } .doll-figure .gi { width: 100%; height: 100%; } @@ -489,13 +491,13 @@ button.sheet-skill:hover { background: var(--panel-2); } .doll-slot .hands { position: absolute; top: 2px; right: 2px; font-size: 9px; padding: 0 3px; } .doll-slot.small { width: 40px; height: 40px; cursor: default; } .doll-slot.small .gi { width: 26px; height: 26px; } -.doll-side { min-width: 0; } +.doll-side { flex: 1 1 0; } .worn-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .worn-head > span:nth-child(2) { display: grid; } .worn-head .ico .gi { width: 22px; height: 22px; } .worn-head .btn { margin-left: auto; } .tool-slots { display: flex; flex-wrap: wrap; gap: 8px; } -@media (max-width: 520px) { .doll-wrap { grid-template-columns: 1fr; justify-items: center; } .doll-side { width: 100%; } } +@media (max-width: 520px) { .doll-wrap { justify-content: center; } .doll-side { flex-basis: 100%; } } /* Swapping gear from the doll */ .swap-head { margin-top: 2px; }