Reminder, Watchlist

This commit is contained in:
Gogs
2026-07-10 14:06:25 +02:00
parent 8795d9b607
commit 8b68ba2e9b
10 changed files with 1170 additions and 38 deletions
+293
View File
@@ -498,3 +498,296 @@
font: inherit;
font-weight: 800;
}
.sidebar-nav a {
position: relative;
}
.sidebar-count {
min-width: 22px;
margin-left: auto;
padding: 2px 7px;
color: #cbd5e1;
background: rgba(51, 65, 85, 0.8);
border-radius: 999px;
font-size: 0.72rem;
line-height: 1.35;
text-align: center;
}
.sidebar-nav a.active .sidebar-count {
color: white;
background: rgba(255, 255, 255, 0.2);
}
.watchlist-notifications {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
margin-bottom: 22px;
padding: 18px 20px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 16px;
}
.watchlist-notifications strong {
display: block;
margin-bottom: 5px;
}
.watchlist-notifications p {
margin: 0;
color: var(--muted);
font-size: 0.88rem;
}
.watchlist-notifications button {
flex: 0 0 auto;
padding: 10px 15px;
color: white;
background: var(--accent);
border: 1px solid var(--accent);
border-radius: 11px;
font-weight: 750;
cursor: pointer;
}
.watchlist-grid {
display: grid;
grid-template-columns:
repeat(auto-fill, minmax(320px, 1fr));
gap: 16px;
}
.watchlist-card {
position: relative;
min-width: 0;
display: flex;
align-items: stretch;
background: var(--panel);
border: 1px solid var(--border);
border-left-width: 5px;
border-radius: 16px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
overflow: hidden;
transition:
border-color 0.16s ease,
background 0.16s ease,
transform 0.16s ease,
box-shadow 0.16s ease;
}
.watchlist-card:hover {
background: var(--panel-2);
transform: translateY(-2px);
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.watchlist-card-current {
border-left-color: #22c55e;
}
.watchlist-card-soon {
border-left-color: #f59e0b;
}
.watchlist-card-future {
border-left-color: #3b82f6;
}
.watchlist-card-past {
border-left-color: #64748b;
opacity: 0.72;
}
.watchlist-card-unknown {
border-left-color: var(--border);
}
.watchlist-card-open {
min-width: 0;
display: flex;
align-items: center;
flex: 1;
gap: 14px;
padding: 16px 46px 16px 16px;
color: var(--text);
background: transparent;
border: 0;
font: inherit;
text-align: left;
cursor: pointer;
}
.watchlist-logo {
flex: 0 0 auto;
width: 64px;
height: 48px;
padding: 5px;
object-fit: contain;
background: rgba(255, 255, 255, 0.94);
border-radius: 10px;
}
.watchlist-card-body {
min-width: 0;
display: flex;
flex: 1;
flex-direction: column;
gap: 5px;
}
.watchlist-card-heading {
min-width: 0;
display: flex;
align-items: center;
gap: 8px;
}
.watchlist-card-heading strong {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.watchlist-subtitle,
.watchlist-details {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.watchlist-subtitle {
color: #cbd5e1;
font-size: 0.88rem;
}
.watchlist-details {
color: var(--muted);
font-size: 0.8rem;
}
.watchlist-status {
flex: 0 0 auto;
padding: 3px 7px;
border-radius: 999px;
font-size: 0.66rem;
font-weight: 800;
line-height: 1.25;
white-space: nowrap;
}
.watchlist-status-current {
color: #bbf7d0;
background: rgba(34, 197, 94, 0.18);
border: 1px solid rgba(34, 197, 94, 0.42);
}
.watchlist-status-soon {
color: #fde68a;
background: rgba(245, 158, 11, 0.18);
border: 1px solid rgba(245, 158, 11, 0.42);
}
.watchlist-status-future {
color: #bfdbfe;
background: rgba(59, 130, 246, 0.18);
border: 1px solid rgba(59, 130, 246, 0.42);
}
.watchlist-status-past,
.watchlist-status-unknown {
color: #cbd5e1;
background: rgba(100, 116, 139, 0.18);
border: 1px solid rgba(100, 116, 139, 0.42);
}
.watchlist-remove-button {
position: absolute;
top: 10px;
right: 10px;
width: 30px;
height: 30px;
padding: 0;
color: var(--muted);
background: rgba(15, 23, 42, 0.76);
border: 1px solid var(--border);
border-radius: 999px;
font-size: 1.2rem;
line-height: 1;
cursor: pointer;
}
.watchlist-remove-button:hover {
color: white;
background: rgba(239, 68, 68, 0.75);
border-color: rgba(239, 68, 68, 0.85);
}
@media (max-width: 620px) {
.watchlist-notifications {
align-items: stretch;
flex-direction: column;
}
.watchlist-notifications button {
width: 100%;
}
.watchlist-grid {
grid-template-columns: 1fr;
}
.watchlist-status {
display: none;
}
}
.watchlist-card-body strong,
.watchlist-card-body span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.watchlist-card-body strong {
font-size: 1rem;
}
+43
View File
@@ -111,3 +111,46 @@
font-size: 1.05rem;
font-weight: 700;
}
.programme-modal-actions {
display: flex;
justify-content: flex-end;
margin-top: 22px;
padding-top: 18px;
border-top: 1px solid var(--border);
}
.programme-watchlist-button {
padding: 10px 16px;
color: var(--text);
background: var(--panel-2);
border: 1px solid var(--border);
border-radius: 12px;
font-weight: 750;
cursor: pointer;
transition:
background 0.16s ease,
border-color 0.16s ease,
transform 0.16s ease;
}
.programme-watchlist-button:hover {
background: var(--accent-soft);
border-color: var(--accent);
}
.programme-watchlist-button:active {
transform: scale(0.98);
}
.programme-watchlist-button.is-saved {
color: #fef3c7;
background: rgba(245, 158, 11, 0.16);
border-color: rgba(245, 158, 11, 0.55);
}