Files
aeternalis/client/src/portal.css
T

12 lines
13 KiB
CSS

:root { font-family: Inter, 'Segoe UI', sans-serif; color: #202923; background: #f8faf9; font-synthesis: none; letter-spacing: 0; --line: #dce3df; --muted: #66736d; --green: #215944; --red: #a83543; }
* { box-sizing: border-box; } body { margin: 0; } [hidden] { display: none !important; } button, input, select, textarea { font: inherit; } button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; } a { color: inherit; text-decoration: none; } button { cursor: pointer; } button:disabled, .disabled { opacity: .45; cursor: not-allowed; } :focus-visible { outline: 3px solid #81b9a3; outline-offset: 3px; } h1,h2,h3,p { margin: 0; } h1 { font-size: 28px; } h2 { font-size: 25px; font-weight: 600; } h3 { font-size: 18px; font-weight: 600; } svg { width: 18px; height: 18px; flex-shrink: 0; } .muted { color: var(--muted); font-size: 13px; } .block { display: block; margin-top: 5px; } .eyebrow { font-size: 11px; font-weight: 650; color: var(--muted); margin-bottom: 9px; } .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; padding: 10px 17px; border: 1px solid transparent; border-radius: 5px; background: var(--green); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; } .button:hover:not(:disabled):not(.disabled) { background: #183e30; } .button.secondary { background: #fff; color: #253c31; border-color: var(--line); } .button.secondary:hover { background: #edf3ef; } .button.light { background: #fff; color: #233d30; } .button.danger { background: var(--red); } .icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #48564d; flex-shrink: 0; } .icon-button:hover { background: #edf3ef; } .heading-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .wordmark { display: block; font-weight: 750; font-size: 18px; } .wordmark span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 4px; } .empty { padding: 32px 0; font-size: 14px; color: var(--muted); } .message { padding: 12px 16px; margin: 16px 0; background: #edf3ef; border-left: 3px solid #408362; font-size: 13px; overflow-wrap: anywhere; } .error { color: var(--red); font-size: 13px; min-height: 20px; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 18px 5%; gap: 24px; background: #fff; } .site-header nav { display: flex; align-items: center; gap: 26px; font-size: 13px; } .world-hero { position: relative; height: 420px; max-height: 58vh; min-height: 300px; overflow: hidden; background: #244d3a; color: #fff; } .world-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; } .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #071810b8 0%, #07181035 48%, transparent 100%); } .hero-copy { position: absolute; inset: auto 5% 48px; max-width: 560px; } .hero-copy .eyebrow { color: #d6e9dc; } .hero-copy h1 { font-family: Georgia, serif; font-size: 64px; font-weight: 400; line-height: 1.1; } .hero-copy > p:not(.eyebrow) { margin: 14px 0 25px; font-size: 16px; line-height: 1.6; } .hero-caption { position: absolute; bottom: 22px; right: 5%; font-size: 10px; color: #eff8f1; } .site-section { padding: 40px 5%; } .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; } .world-list { border-top: 1px solid var(--line); } .world-row { display: grid; grid-template-columns: 56px minmax(120px, 1fr) minmax(100px, .65fr) minmax(175px, 1fr) auto; gap: 22px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); } .world-emblem { display: grid; place-items: center; width: 52px; height: 52px; background: #e7efe9; border-radius: 5px; color: #366d53; } .world-emblem svg { width: 25px; height: 25px; } .world-name h3 { margin-bottom: 9px; overflow-wrap: anywhere; } .world-stat span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 8px; } .world-stat strong { font-size: 13px; font-weight: 550; } .journey-section { background: #edf2ef; } .active-life { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 0 0 28px; } .active-life p { margin-top: 9px; } .site-footer { display: flex; align-items: center; justify-content: space-between; padding: 30px 5%; gap: 22px; font-size: 12px; color: var(--muted); } .site-footer > span:first-child { font-weight: 700; color: #34483c; }
.control-site { display: grid; grid-template-columns: 204px minmax(0, 1fr); min-height: 100vh; background: #fff; } .control-sidebar { border-right: 1px solid var(--line); background: #f5f8f6; display: flex; flex-direction: column; padding: 28px 18px; } .control-sidebar .wordmark { padding: 0 10px; margin-bottom: 42px; } .control-sidebar nav { display: grid; gap: 7px; } .nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px; background: transparent; color: #657169; border: 0; text-align: left; border-radius: 4px; font-size: 13px; } .nav-item:hover { background: #eaf0ec; } .nav-item.active { background: #dfece4; color: #234b36; font-weight: 600; } .sidebar-bottom { margin-top: auto; padding: 40px 10px 0; display: grid; gap: 18px; } .sidebar-bottom a { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); } .control-main { min-width: 0; padding: 30px 32px; } .control-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 65px; margin-bottom: 28px; } .control-header h1 { font-size: 27px; font-weight: 600; } .metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; margin-bottom: 30px; } .metrics > div { padding: 0 22px; border-right: 1px solid var(--line); } .metrics > div:first-child { padding-left: 0; } .metrics > div:last-child { border-right: 0; } .metrics span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; } .metrics strong { font-size: 28px; font-weight: 550; } .table-tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; } .table-tools label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); } input,select,textarea { background: #fff; color: #25362b; border: 1px solid #cfdad3; border-radius: 4px; padding: 9px 10px; font-size: 13px; max-width: 100%; } select { min-height: 36px; } .search-field { position: relative; flex: 1; min-width: 160px; max-width: 340px; } .search-field svg { position: absolute; left: 11px; } .search-field input { width: 100%; padding-left: 35px; } .table-tools > .muted { margin-left: auto; } .table-wrap { width: 100%; overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; } th { color: var(--muted); font-size: 11px; font-weight: 550; background: #f6f8f7; padding: 13px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; } td { padding: 17px 14px; border-bottom: 1px solid #e6ebe8; line-height: 1.5; min-width: 95px; max-width: 360px; overflow-wrap: anywhere; } tbody tr:hover { background: #f8faf9; } .record-link { border: 0; padding: 0; background: none; color: #225e43; font-size: inherit; font-weight: 650; text-align: left; } .record-link:hover { text-decoration: underline; } .row-actions { display: flex; align-items: center; gap: 7px; } .row-actions select { min-width: 110px; max-width: 166px; font-size: 11px; } .badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; background: #eef1ef; color: #56665b; border-radius: 3px; font-size: 10px; white-space: nowrap; text-transform: capitalize; } .badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; } .state-alive,.state-gathering,.state-completed { background: #e4f2e9; color: #28714c; } .state-eligible,.state-won { background: #e3eef6; color: #326e94; } .state-cataclysm,.state-pending,.state-closed { background: #faf0db; color: #986412; } .state-dead,.state-lost,.state-rejected { background: #fae9eb; color: #a24554; } .badge-group { display: flex; flex-wrap: wrap; gap: 5px; } .table-note { padding-top: 18px; font-size: 11px; color: var(--muted); line-height: 1.6; } .access-state { padding: 100px 20px; text-align: center; } .access-state > svg { width: 34px; height: 34px; color: #587864; margin-bottom: 22px; } .access-state h2 { font-size: 23px; } .access-state p { font-size: 13px; color: var(--muted); margin: 16px auto 24px; max-width: 440px; line-height: 1.7; }
dialog { width: min(510px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid var(--line); border-radius: 7px; padding: 26px; color: #24352b; box-shadow: 0 18px 70px #11251a25; } dialog::backdrop { background: #0f211b70; } dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; } dialog h2 { font-size: 21px; overflow-wrap: anywhere; } dialog h3 { font-size: 14px; margin: 24px 0 12px; } dialog label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; margin-top: 20px; overflow-wrap: anywhere; } dialog input,dialog textarea { width: 100%; } dialog footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; } dialog .error { margin-top: 18px; } #command-context { overflow-wrap: anywhere; line-height: 1.6; } .details { display: grid; grid-template-columns: 115px minmax(0,1fr); gap: 14px; font-size: 12px; } .details dt { color: var(--muted); } .details dd { margin: 0; overflow-wrap: anywhere; } .item-list { display: grid; gap: 10px; font-size: 12px; } .item-list span { display: flex; justify-content: space-between; gap: 14px; }
@media(min-width:1600px) { .site-section { padding-left: max(5%, calc((100% - 1440px) / 2)); padding-right: max(5%, calc((100% - 1440px) / 2)); } }
@media(max-width:1100px) { .control-site { grid-template-columns: 174px minmax(0,1fr); } .control-main { padding: 26px 22px; } .world-row { grid-template-columns: 44px 1fr 100px 180px; gap: 16px; } .world-row > .button { grid-column: 2 / -1; justify-self: start; } .control-header #updated { display: none; } }
@media(max-width:720px) { .site-header { padding: 16px 5%; flex-wrap: wrap; gap: 18px; } .site-header nav { gap: 17px; width: 100%; justify-content: space-between; } .site-header nav > a { font-size: 12px; } .wordmark { font-size: 17px; } .world-hero { min-height: 300px; max-height: none; height: 350px; } .hero-copy { bottom: 45px; right: 6%; } .hero-copy h1 { font-size: 47px; } .hero-copy > p:not(.eyebrow) { font-size: 14px; max-width: 260px; } .hero-caption { font-size: 8px; } .site-section { padding-top: 30px; padding-bottom: 30px; } .section-heading h2 { font-size: 23px; } .world-row { grid-template-columns: 42px minmax(0,1fr) auto; gap: 17px 12px; } .world-emblem { width: 38px; height: 42px; } .world-name h3 { font-size: 16px; } .world-row .world-stat:nth-child(4) { grid-column: 2; } .world-row > .button { grid-column: 3; font-size: 11px; padding: 9px; } .world-stat strong { font-size: 12px; } .world-stat span { margin-bottom: 4px; } .active-life { align-items: flex-start; flex-wrap: wrap; } .site-footer { flex-wrap: wrap; } .site-footer > span:nth-child(2) { order: 3; width: 100%; } .control-site { display: block; } .control-sidebar { padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); } .control-sidebar .wordmark { margin-bottom: 18px; padding: 0; } .control-sidebar nav { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; } .nav-item { justify-content: center; padding: 11px 4px; gap: 6px; font-size: 12px; } .sidebar-bottom { display: none; } .control-main { padding: 22px 16px; } .control-header { margin-bottom: 20px; gap: 12px; } .control-header h1 { font-size: 24px; } .control-header .heading-tools { gap: 6px; } #admin-signout { display: none; } #create-world { padding: 10px; font-size: 12px; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; padding: 20px 0; margin-bottom: 20px; } .metrics > div { padding: 0 16px; } .metrics > div:nth-child(3) { padding-left: 0; } .metrics > div:nth-child(2) { border-right: 0; } .metrics strong { font-size: 24px; } .metrics span { font-size: 11px; } .table-tools { gap: 12px; } .search-field { flex-basis: 100%; max-width: none; } .table-tools > .muted { font-size: 11px; } .table-tools label { font-size: 11px; } .table-tools select { max-width: 135px; font-size: 12px; } th,td { padding: 12px 10px; } .access-state { padding: 65px 5px; } dialog { padding: 21px; } }
.button.secondary:hover:not(:disabled):not(.disabled), .button.light:hover:not(:disabled):not(.disabled) { background: #edf3ef; color: #253c31; }
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }
.active-life-summary{flex:1;min-width:0}.active-titles{padding-bottom:28px}.active-titles>h3{font-size:14px;margin-bottom:12px}.active-titles .title-list{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr))}.active-life .progression-note{margin-top:4px}td .character-progression{min-width:155px;margin-top:0}dialog .earned-title p{margin-bottom:0}