Files
MangaCircus/public/greatest.css
T

52 lines
4.8 KiB
CSS

.greatest-intro { padding: 18px 0 14px; max-width: 750px; }
.greatest-intro h1 { font-size: clamp(28px, 5vw, 42px); letter-spacing: -.03em; }
.greatest-intro p { margin: 7px 0; }
.greatest-eyebrow { color: #e9a47d; text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 800; }
.greatest-toolbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.greatest-toolbar > input { flex: 1; min-width: 0; }
.greatest-sort, .greatest-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.greatest-filters { margin: 10px 0 12px; }
.greatest-periods { margin-top: 12px; }
.greatest-period { padding: 20px 0 28px; border-top: 2px solid #48404a; }
.greatest-period-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.greatest-period-heading h2 { margin: 0; font-size: 21px; }
.greatest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 22px 16px; }
.greatest-tile { min-width: 0; display: flex; flex-direction: column; }
.greatest-open { position: relative; display: block; flex: 1; width: 100%; padding: 0; border: 0; text-align: left; color: inherit; background: none; cursor: pointer; font: inherit; }
.greatest-open:hover .greatest-cover img { transform: scale(1.035); }
.greatest-open:focus-visible, .greatest-vote:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.greatest-cover { position: relative; display: block; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 9px; background: linear-gradient(150deg, #49343c, #282c38 60%, #18181d); box-shadow: 0 4px 17px #0007; }
.greatest-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.greatest-cover-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #dbc8bd; font: 700 80px/1 Georgia, serif; opacity: .6; }
.greatest-owned { position: absolute; top: 7px; right: 7px; padding: 2px 7px; border-radius: 9px; background: #183d34; color: #a7f0d1; font-size: 11px; font-weight: 700; box-shadow: 0 1px 8px #0008; }
.greatest-name { display: block; margin-top: 8px; font-weight: 700; line-height: 1.25; }
.greatest-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.greatest-reason-label { display: block; margin-top: 10px; color: #e9a47d; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.greatest-reason { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; margin-top: 3px; color: var(--fg); font-size: 12px; line-height: 1.4; }
.greatest-votes { display: flex; gap: 8px; margin-top: 12px; }
.greatest-votes.compact { gap: 3px; margin-top: 6px; }
.greatest-vote { display: inline-grid; place-items: center; flex: 1; min-width: 0; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--fg); cursor: pointer; font: inherit; }
.greatest-vote:hover { background: var(--card2); }
.greatest-vote.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 25%, var(--card)); }
.greatest-vote:disabled { opacity: .5; cursor: wait; }
.greatest-dialog { width: min(780px, calc(100vw - 24px)); max-height: min(850px, calc(100vh - 30px)); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--fg); box-shadow: 0 18px 70px #000a; }
.greatest-dialog::backdrop { background: #000b; }
.greatest-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.greatest-dialog-body { display: grid; grid-template-columns: minmax(130px, 230px) minmax(0, 1fr); gap: 22px; }
.greatest-dialog-body h2 { margin: 0 0 8px; font-size: 25px; }
.greatest-reason-heading { margin: 18px 0 3px; font-size: 15px; color: #e9a47d; }
.greatest-dialog-body p { margin: 9px 0; }
.greatest-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 17px 0; }
.greatest-hoster-panel { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 4px; }
.greatest-hoster-row, .greatest-hoster-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.greatest-hoster-row > a { overflow-wrap: anywhere; }
.greatest-hoster-row > .btn { margin-left: auto; }
.greatest-hoster-tools > input { flex: 1 1 220px; min-width: 0; }
.greatest-hoster-results { max-height: 240px; overflow: auto; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 680px) {
.greatest-toolbar { align-items: stretch; flex-direction: column; }
.greatest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.greatest-dialog-body { grid-template-columns: 1fr; }
.greatest-dialog-body > .greatest-cover { width: min(160px, 42vw); }
}