Persons: other people's charts with package slots, list page, switcher
- charts.kind own/person; a new person uses a 'person' unit (not refunded on delete); person packages and an unlimited entitlement; admins unlimited - a person's birth data can be corrected within an hour (admins any time) - /kepletek list with tiles, /kepletek/uj, correction page, mock person packages, chart page title switches between charts keeping the tab Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -330,3 +330,61 @@ td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.tabs { scroll-margin-top: 88px; }
|
||||
.tab-panel { padding-top: 20px; }
|
||||
@media (max-width: 640px) { .tab { padding: 12px 10px; font-size: 14px; } .tabs { scroll-margin-top: 120px; } }
|
||||
|
||||
/* Charts list, persons */
|
||||
.chart-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
|
||||
.chart-card {
|
||||
background: var(--panel); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.chart-card:hover { border-color: var(--line-2); }
|
||||
.chart-card-link, .chart-card-new { display: flex; flex-direction: column; gap: 6px; padding: 20px; color: inherit; text-decoration: none; flex: 1; }
|
||||
.chart-card-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
|
||||
.chart-card-tag { margin: 0 20px 16px; font-size: 13px; color: var(--gold); }
|
||||
.chart-card-new { border-style: dashed; justify-content: center; align-items: flex-start; min-height: 150px; }
|
||||
.chart-card-new:hover { border-color: var(--gold); }
|
||||
.chart-card-plus { font-size: 28px; line-height: 1; color: var(--gold); }
|
||||
.sign-trio { display: flex; gap: 16px; margin-top: 8px; }
|
||||
.sign-trio > span { display: inline-flex; align-items: baseline; gap: 4px; }
|
||||
.sign-trio .sym:first-child, .trio-ac { color: var(--muted); font-size: 14px; }
|
||||
.trio-ac { font: 600 11px var(--font-body); letter-spacing: 0.3px; }
|
||||
.trio-sign { color: var(--gold); font-size: 20px; }
|
||||
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0 12px 12px; border-top: 1px solid var(--line); padding-top: 8px; margin: 0 8px; }
|
||||
.btn-danger { border-color: var(--danger); color: var(--danger); }
|
||||
.btn-danger:hover { background: rgba(242, 160, 160, 0.08); color: var(--danger); border-color: var(--danger); }
|
||||
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
|
||||
.pack {
|
||||
display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 16px 18px;
|
||||
background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius);
|
||||
}
|
||||
.pack strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
|
||||
.pack .btn { margin-top: 8px; }
|
||||
|
||||
/* Chart switcher (the chart page title) */
|
||||
.switcher { position: relative; align-self: flex-start; }
|
||||
.switcher h1 { margin: 0; }
|
||||
.switcher-button {
|
||||
font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
|
||||
display: inline-flex; align-items: baseline; gap: 10px;
|
||||
}
|
||||
.switcher-button:hover .switcher-caret, .switcher-button[aria-expanded="true"] .switcher-caret { color: var(--gold); }
|
||||
.switcher-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
|
||||
.switcher-caret { font-size: 0.55em; color: var(--muted); transition: color 0.15s; }
|
||||
.switcher-menu {
|
||||
position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 280px; max-width: min(360px, calc(100vw - 32px));
|
||||
background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
|
||||
padding: 6px; font-family: var(--font-body);
|
||||
}
|
||||
.switcher-menu ul { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
|
||||
.switcher-menu li a {
|
||||
display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; min-height: 44px;
|
||||
border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px;
|
||||
}
|
||||
.switcher-menu li a strong { font-weight: 500; }
|
||||
.switcher-menu li a .muted { font-size: 13px; white-space: nowrap; }
|
||||
.switcher-menu li a:hover { background: var(--panel-2); }
|
||||
.switcher-menu li a[aria-current="page"] { background: var(--panel-2); }
|
||||
.switcher-menu li a[aria-current="page"] strong { color: var(--gold); }
|
||||
.switcher-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 6px; padding: 10px 12px 6px; font-size: 14px; }
|
||||
.switcher-foot a { color: var(--gold); text-decoration: none; }
|
||||
.switcher-foot a:hover { text-decoration: underline; }
|
||||
|
||||
Reference in New Issue
Block a user