Files
Jellyfin_Request_tvandmovies/Jellyfin.Plugin.Request/Web/request.css
T
Michael SloanandCursor 0a5ea07838 feat(nav): embed request ui in home top tabs
Replace full-page navigation with a native emby-tab-button and pageTabContent panel so Request behaves like Home and Favorites.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-02 17:00:07 -04:00

274 lines
4.7 KiB
CSS

:root {
--req-bg: #101010;
--req-panel: #1c1c1c;
--req-border: #2e2e2e;
--req-text: #eee;
--req-muted: #9a9a9a;
--req-accent: #00a4dc;
--req-danger: #e24040;
--req-ok: #4caf50;
--req-warn: #f0ad4e;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
background: var(--req-bg);
color: var(--req-text);
font-family: Inherit, "Segoe UI", Roboto, sans-serif;
}
body {
padding: 1.25rem;
}
.req-embed {
color: inherit;
background: transparent;
padding: 0;
}
.req-embed .req-title {
font-size: 1.35rem;
}
.req-header {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: center;
justify-content: space-between;
margin-bottom: 1.25rem;
}
.req-title {
margin: 0;
font-size: 1.6rem;
font-weight: 600;
}
.req-tabs {
display: flex;
gap: 0.5rem;
}
.req-tab,
.req-btn,
.req-type-btn {
border: 1px solid var(--req-border);
background: var(--req-panel);
color: var(--req-text);
border-radius: 4px;
padding: 0.55rem 0.9rem;
cursor: pointer;
font: inherit;
}
.req-tab.active,
.req-type-btn.active,
.req-btn.primary {
background: var(--req-accent);
border-color: var(--req-accent);
color: #fff;
}
.req-btn.danger {
border-color: var(--req-danger);
color: #fff;
background: var(--req-danger);
}
.req-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.req-search-row {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1rem;
}
.req-search-row input[type="search"] {
flex: 1 1 220px;
min-width: 180px;
padding: 0.7rem 0.85rem;
border-radius: 4px;
border: 1px solid var(--req-border);
background: var(--req-panel);
color: var(--req-text);
font: inherit;
}
.req-type-toggle {
display: flex;
gap: 0.35rem;
}
.req-status-banner {
margin-bottom: 1rem;
padding: 0.75rem 1rem;
border-radius: 4px;
background: #2a1f00;
border: 1px solid var(--req-warn);
color: #ffe8b0;
}
.req-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 1rem;
}
.req-card {
background: var(--req-panel);
border: 1px solid var(--req-border);
border-radius: 6px;
overflow: hidden;
cursor: pointer;
display: flex;
flex-direction: column;
}
.req-card:hover {
border-color: var(--req-accent);
}
.req-card img,
.req-detail-poster {
width: 100%;
aspect-ratio: 2 / 3;
object-fit: cover;
background: #000;
display: block;
}
.req-card-body,
.req-detail-meta {
padding: 0.65rem 0.75rem 0.85rem;
}
.req-card-title,
.req-detail-title {
font-weight: 600;
margin: 0 0 0.25rem;
}
.req-muted {
color: var(--req-muted);
font-size: 0.9rem;
}
.req-hidden {
display: none !important;
}
.req-detail {
display: grid;
grid-template-columns: 180px 1fr;
gap: 1.25rem;
background: var(--req-panel);
border: 1px solid var(--req-border);
border-radius: 8px;
padding: 1rem;
}
.req-detail-actions {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
margin-top: 1rem;
}
.req-seasons {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 0.5rem;
margin-top: 0.75rem;
}
.req-season {
display: flex;
gap: 0.5rem;
align-items: center;
padding: 0.45rem 0.6rem;
border: 1px solid var(--req-border);
border-radius: 4px;
}
.req-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.req-list-item {
display: grid;
grid-template-columns: 64px 1fr auto;
gap: 0.85rem;
align-items: center;
background: var(--req-panel);
border: 1px solid var(--req-border);
border-radius: 6px;
padding: 0.65rem;
}
.req-list-item img {
width: 64px;
height: 96px;
object-fit: cover;
border-radius: 3px;
background: #000;
}
.req-badge {
display: inline-block;
padding: 0.15rem 0.45rem;
border-radius: 999px;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.req-badge.pending { background: #5a4500; color: #ffd978; }
.req-badge.approved { background: #0f3d1f; color: #8dffb0; }
.req-badge.rejected { background: #4a1212; color: #ff9d9d; }
.req-badge.fulfilled { background: #0a3345; color: #8ad7ff; }
.req-list-actions {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.req-message {
margin: 1rem 0;
color: var(--req-muted);
}
.req-error {
color: #ff8e8e;
}
@media (max-width: 700px) {
.req-detail {
grid-template-columns: 1fr;
}
.req-list-item {
grid-template-columns: 56px 1fr;
}
.req-list-actions {
grid-column: 1 / -1;
flex-direction: row;
flex-wrap: wrap;
}
}