forked from unimatrix/web
74 lines
11 KiB
CSS
74 lines
11 KiB
CSS
/* Approved community portal; shared masthead and navigation remain unchanged. */
|
|
body.portal-community main#main{display:grid;grid-template-columns:minmax(170px,210px) minmax(0,1fr) minmax(210px,270px);gap:22px;width:min(1640px,96%);max-width:none;margin:24px auto;padding:0;align-items:start}.portal-directory,.portal-stories,.portal-realm-status{min-width:0;display:grid;gap:20px}.portal-community-card,.portal-directory-group{padding:20px;border:1px solid #9e8546;border-radius:12px;background:linear-gradient(135deg,#1d4033,#102b23);color:#eee3c7}.portal-directory-group{padding:0;overflow:hidden}.portal-directory-group summary{padding:14px;color:#eed495;font:700 18px Georgia,serif;cursor:pointer;border-bottom:1px solid #687044}.portal-directory-group nav{display:grid;gap:5px;padding:9px}.portal-directory-group a{display:block;padding:10px 12px;border:1px solid #475c3e;border-radius:6px;background:#102b22;text-decoration:none;color:#ede1bc}.portal-directory-group a:hover,.portal-directory-group a:focus-visible{background:#294b37;border-color:#d7b660}.portal-community-card h2{font-family:Georgia,serif;color:#eed495;margin-top:0}.portal-community-card a{color:#eed495}.portal-placeholder{display:block;padding:9px 12px;border-left:2px solid #ab9258;color:#b9cbbd;background:#0c261e;font-size:12px}.portal-briefing{text-align:center;background:linear-gradient(#14352be8,#102b23f2),url('/assets/political-imperial-chamber-v1.png') center/cover}.portal-briefing small{font-size:10px;letter-spacing:.12em}.portal-briefing img{object-fit:contain;margin:8px auto}.portal-community .portal-stories>.dune-page-marker{width:100%;min-height:0!important;padding:18px!important;display:flex;flex-wrap:wrap;gap:12px;border:1px solid #9e8546!important;border-radius:12px;background:linear-gradient(100deg,#102d24e8,#153a2dba),url('/assets/political-imperial-chamber-v1.png') center/cover}.portal-community .portal-stories>.dune-page-marker>img{width:90px!important;height:100px!important;flex-basis:90px!important}.portal-community .portal-stories>.dune-page-marker>div{flex:1;min-width:170px;max-width:none;text-align:left}.portal-community .portal-stories>.dune-page-marker p{font-size:22px!important}.portal-community .portal-realm-status>.world-status{position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box;padding:14px;border:1px solid #9e8546;border-radius:12px;background:#102b23}.portal-community .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-community .moderation-columns{display:grid;grid-template-columns:1fr;gap:20px}.portal-community .three-grid{grid-template-columns:1fr}.portal-community #server-bans{min-width:0}.portal-community .portal-stories .panel{margin:0;padding:20px}.portal-community .feature{margin:0;min-height:180px}.portal-community .portal-account-card{max-width:100%;box-sizing:border-box}
|
|
@media(max-width:1100px){body.portal-community main#main{grid-template-columns:170px minmax(0,1fr)}.portal-realm-status{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){body.portal-community main#main{display:flex;flex-direction:column;width:94%;gap:16px}.portal-directory,.portal-stories,.portal-realm-status{width:100%}.portal-directory{grid-template-columns:1fr}.portal-realm-status{grid-template-columns:1fr}.portal-community .news-grid{grid-template-columns:1fr}}
|
|
|
|
/* Scope above the legacy portal selectors. Cards respond to their column,
|
|
rather than the viewport: three narrow cards must never share half a panel. */
|
|
body.portal-redesign.portal-community main#main .moderation-columns{
|
|
display:grid;grid-template-columns:minmax(0,1fr);gap:20px;
|
|
}
|
|
body.portal-redesign.portal-community main#main .three-grid,
|
|
body.portal-redesign.portal-community main#main .news-grid{
|
|
display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;overflow:visible;
|
|
}
|
|
body.portal-redesign.portal-community main#main .three-grid>.record-card{
|
|
min-width:0;width:100%;max-width:none;
|
|
}
|
|
body.portal-redesign.portal-community main#main .record-card .card-copy{min-width:0;}
|
|
body.portal-redesign.portal-community main#main .record-card dl{
|
|
display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:10px 0 16px;
|
|
padding:0;background:none;border:1px solid #536a47;border-radius:7px;overflow:hidden;
|
|
}
|
|
body.portal-redesign.portal-community main#main .record-card dt{
|
|
min-width:0;padding:9px 12px 2px;font-size:10px;letter-spacing:.06em;
|
|
text-transform:uppercase;color:#d0ba7c;background:#19392c;
|
|
}
|
|
body.portal-redesign.portal-community main#main .record-card dd{
|
|
min-width:0;margin:0;padding:2px 12px 10px;font-size:13px;line-height:1.5;
|
|
color:#eee3c7;background:#19392c;overflow-wrap:anywhere;word-break:normal;
|
|
}
|
|
body.portal-redesign.portal-community main#main .record-card dt:nth-of-type(even),
|
|
body.portal-redesign.portal-community main#main .record-card dd:nth-of-type(even){background:#112d23;}
|
|
|
|
/* The main menu already provides the directory: keep the portal center wide. */
|
|
body.portal-redesign.portal-community main#main{grid-template-columns:minmax(0,1fr) minmax(230px,290px)}
|
|
.portal-mentat-frame{display:block;width:100%;min-width:0;border:0;background:transparent;border-radius:12px}
|
|
@media(max-width:1100px){body.portal-redesign.portal-community main#main{grid-template-columns:minmax(0,1fr) minmax(210px,260px)}.portal-realm-status{grid-column:auto;grid-template-columns:minmax(0,1fr)}}
|
|
@media(max-width:700px){body.portal-redesign.portal-community main#main{display:flex;flex-direction:column}}
|
|
|
|
/* One imperial Minecraft frame asset, reused by every portal panel. */
|
|
body.portal-redesign.portal-community main#main .portal-community-card,
|
|
body.portal-redesign.portal-community main#main .portal-stories>.panel,
|
|
body.portal-redesign.portal-community main#main .portal-stories>.feature,
|
|
body.portal-redesign.portal-community main#main .portal-stories>.dune-page-marker,
|
|
body.portal-redesign.portal-community main#main .portal-realm-status>.world-status{
|
|
border:24px solid transparent!important;border-image-source:url('/assets/imperial-panel-frame-v1.png')!important;
|
|
border-image-slice:230 fill!important;border-image-width:24px!important;border-image-repeat:stretch!important;
|
|
border-radius:0!important;background-clip:padding-box!important;box-shadow:0 12px 28px #0005;
|
|
padding:14px!important;
|
|
}
|
|
body.portal-redesign.portal-community main#main .record-card,
|
|
body.portal-redesign.portal-community main#main .news-card{border:10px solid transparent;border-image:url('/assets/imperial-panel-frame-v1.png') 230 fill / 10px / 0 stretch;border-radius:0;background-clip:padding-box;}
|
|
.portal-shop-sales{position:relative;overflow:hidden;background:linear-gradient(155deg,#421c25ee,#16392df2 55%),url('/assets/clan-atelier-v1.webp') center/cover;color:#f7e8c1;text-align:center}
|
|
.portal-shop-sales>img{display:block;width:100%;height:auto;max-height:100px;object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 5px 7px #0008)}
|
|
.portal-shop-sales .portal-sale-heading{border-top:1px solid #c7a45477;padding-top:14px}.portal-shop-sales h2{font-size:23px;margin:10px 0 6px;text-transform:uppercase;letter-spacing:.04em}
|
|
.portal-sale-ribbon{display:inline-block;padding:5px 12px;background:linear-gradient(110deg,#651b2b,#a53c37,#651b2b);color:#fff1bd;border:1px solid #d3ad57;font-size:10px;font-weight:800;letter-spacing:.12em;box-shadow:0 3px 12px #0006}
|
|
.portal-sale-state{font-size:11px;line-height:1.55;color:#cccfb7}.portal-sale-items{display:grid;gap:12px;margin:16px 0}
|
|
.portal-sale-product{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:10px;border:1px solid #aa8d49;border-radius:7px;background:linear-gradient(130deg,#173a2c,#0c251e);color:#eee3c7;text-align:left;text-decoration:none;box-shadow:0 4px 12px #0004}
|
|
.portal-sale-product>img{width:64px;height:116px;object-fit:contain;align-self:center;background:#0b231b;border-radius:4px}.portal-sale-product h3{font-size:13px!important;line-height:1.4;margin:7px 0;overflow-wrap:anywhere}.portal-sale-saving{display:inline-block;background:#852c32;border:1px solid #cdac5c;color:#fff0b6;padding:2px 7px;font-size:11px;font-weight:800;border-radius:4px}
|
|
.portal-sale-prices{display:grid;gap:2px}.portal-sale-prices del{font-size:11px;color:#c4bcac}.portal-sale-prices strong{font-size:20px;line-height:1.25;color:#f5d57b}.portal-sale-view{display:block;margin-top:8px;font-size:11px;color:#d8bf79}
|
|
.portal-sale-action{display:block;padding:12px 8px;border:1px solid #d2b469;border-radius:6px;background:linear-gradient(#8e702f,#54441f);color:#fff0bb!important;font-weight:800;font-size:12px;text-decoration:none;box-shadow:0 5px 14px #0005}.portal-sale-product:hover,.portal-sale-product:focus-visible{outline:2px solid #ead086;outline-offset:2px}
|
|
@media(max-width:700px){body.portal-redesign.portal-community main#main .portal-community-card,body.portal-redesign.portal-community main#main .portal-stories>.panel,body.portal-redesign.portal-community main#main .portal-realm-status>.world-status{border-width:18px!important;border-image-width:18px!important;padding:12px!important}}
|
|
|
|
/* Gazette reports are full-width editorial rows, not nested card columns. */
|
|
body.portal-redesign.portal-community main#main #news-grid{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:18px}
|
|
body.portal-redesign.portal-community main#main #news-grid>.news-card{display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr);align-items:stretch;min-width:0;max-width:none;min-height:180px;height:auto;padding:0}
|
|
body.portal-redesign.portal-community main#main #news-grid>.news-card>img{width:100%;height:100%;min-height:180px;max-height:260px;aspect-ratio:auto;object-fit:cover}
|
|
body.portal-redesign.portal-community main#main #news-grid .card-copy{display:flex;flex-direction:column;align-items:stretch;justify-content:center;min-width:0;padding:18px;gap:7px}
|
|
body.portal-redesign.portal-community main#main #news-grid .card-copy h3{display:block;margin:3px 0;color:#f0d594;font-size:21px;line-height:1.3;overflow-wrap:anywhere}
|
|
body.portal-redesign.portal-community main#main #news-grid .card-copy>p{display:block;font-size:13px;line-height:1.55;margin:0;color:#d9decd}
|
|
body.portal-redesign.portal-community main#main #news-grid .card-copy time{text-align:left;margin:0;font-size:11px}
|
|
body.portal-redesign.portal-community main#main #news-grid .card-copy .tag{align-self:flex-start}
|
|
body.portal-redesign.portal-community main#main .portal-sale-heading{display:block;width:100%;height:auto;min-height:0;box-sizing:border-box;padding:14px 0 0;text-align:center;background:transparent;position:static}
|
|
body.portal-redesign.portal-community main#main .portal-shop-sales h2{font-size:22px;line-height:1.25;white-space:normal;word-break:normal;overflow-wrap:normal;writing-mode:horizontal-tb;margin:12px 0 8px}
|
|
@media(max-width:520px){body.portal-redesign.portal-community main#main #news-grid>.news-card{grid-template-columns:minmax(0,1fr)}body.portal-redesign.portal-community main#main #news-grid>.news-card>img{height:160px;min-height:160px;max-height:160px}}
|

Staff