Guild roster: cards / table views
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
30be596a3f
commit
0e89f37283
3 changed files with 102 additions and 18 deletions
|
|
@ -318,15 +318,48 @@ table.parts td:last-child { text-align: right; font-variant-numeric: tabular-num
|
|||
.ledger li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
|
||||
.ledger .when { color: var(--muted); font-size: 12px; display: block; }
|
||||
.ledger .got { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
|
||||
.roster-views { margin-bottom: 14px; }
|
||||
.avatar { position: relative; flex: none; line-height: 0; }
|
||||
.avatar .online { position: absolute; top: -2px; right: -4px; margin: 0; border: 2px solid var(--panel); box-sizing: content-box; }
|
||||
button.who { background: none; border: 0; padding: 0; font-weight: 700; text-align: left; }
|
||||
.person { display: flex; flex-direction: column; gap: 12px; margin-bottom: 0; cursor: pointer; }
|
||||
.person:hover { border-color: var(--muted); }
|
||||
.roster-table tbody tr:hover td { background: var(--panel-2); }
|
||||
.person .top { display: flex; gap: 12px; align-items: center; }
|
||||
.person .ico { font-size: 30px; }
|
||||
.levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; font-size: 13px; margin-top: 12px; }
|
||||
.levels .lvl { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px solid var(--line); }
|
||||
.levels .lvl .ico { width: 18px; text-align: center; flex: none; font-size: 14px; line-height: 1; }
|
||||
.levels .lvl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.levels .lvl b { font-variant-numeric: tabular-nums; font-weight: 650; }
|
||||
.levels .lvl.low { color: var(--muted); }
|
||||
.levels .lvl.low b { font-weight: 400; }
|
||||
.person .grow { flex: 1; min-width: 0; }
|
||||
.person button.who { font-size: 17px; }
|
||||
.person .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.person .total { text-align: right; line-height: 1.1; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
|
||||
.person .total b { display: block; font-size: 22px; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
|
||||
.person .status { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--side); border-radius: 8px; }
|
||||
.person .status .grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||
.person .status .favour { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.sk-grid { display: grid; grid-auto-flow: row dense; gap: 8px 4px; }
|
||||
.sk-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 2px 3px; }
|
||||
.sk-row { display: grid; gap: 4px; }
|
||||
.sk { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0 4px; border-radius: 6px; background: var(--panel-2); font-size: 16px; line-height: 1; }
|
||||
.sk b { font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
|
||||
.sk.top { box-shadow: inset 0 0 0 1px rgba(224, 176, 74, .45); }
|
||||
.sk.top b { color: var(--gold); }
|
||||
.sk.low { background: none; opacity: .45; }
|
||||
.sk.low b { font-weight: 400; }
|
||||
.roster-table { overflow-x: auto; padding: 8px 14px 4px; }
|
||||
.roster-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
|
||||
.roster-table th { color: var(--muted); font-weight: 600; padding: 6px 4px; font-size: 12px; }
|
||||
.roster-table th .gi { width: 15px; height: 15px; }
|
||||
/* The player column stays put while the skills scroll on a phone. */
|
||||
.roster-table tbody td:first-child, .roster-table thead tr:last-child th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
|
||||
.roster-table th.grp { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
|
||||
.roster-table td { padding: 9px 4px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
|
||||
.roster-table tbody tr { cursor: pointer; }
|
||||
.roster-table .left { text-align: left; }
|
||||
.roster-table .sep { border-left: 1px solid var(--line); }
|
||||
.roster-table td.total { font-weight: 700; font-size: 15px; }
|
||||
.roster-table td.low { color: var(--muted); opacity: .55; }
|
||||
.roster-table td.best { color: var(--gold); font-weight: 700; }
|
||||
.roster-table td.favour, .roster-table th.favour { text-align: right; }
|
||||
.who-cell, .roster-table .doing { display: flex; align-items: center; gap: 8px; }
|
||||
.who-cell { gap: 10px; min-width: 170px; }
|
||||
|
||||
/* --- character sheet -------------------------------------------------- */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue