Theme rework: polish dark mode and previews
Refine mobile nav layout, improve dark theme UI polish, and update README previews with light/dark variants.
This commit is contained in:
+783
-11
@@ -1,27 +1,36 @@
|
||||
footer {
|
||||
margin-top: auto;
|
||||
padding: 25px;
|
||||
padding: 20px 25px;
|
||||
/* Light mode: keep the original light gray footer */
|
||||
background-color: #f8f9fa;
|
||||
color: var(--app-text);
|
||||
text-align: center;
|
||||
width: min(100%, calc(1320px - 24px));
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
||||
}
|
||||
#footer-text {
|
||||
margin: -5px;
|
||||
margin: 6px 0 0;
|
||||
font-family:monospace;
|
||||
font-size: small;
|
||||
}
|
||||
|
||||
#footer-copy {
|
||||
margin: -5px;
|
||||
margin: 0;
|
||||
font-family:monospace;
|
||||
font-size: smaller;
|
||||
padding-top: 10px;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
#copy {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#copy::after {
|
||||
content: " 🐴";
|
||||
}
|
||||
|
||||
/* Simple, clean loading indicator (no spinner spam) */
|
||||
.loading-indicator {
|
||||
display: flex;
|
||||
@@ -219,6 +228,8 @@ footer {
|
||||
color: rgba(0,0,0,0.6);
|
||||
}
|
||||
|
||||
/* (reserved) */
|
||||
|
||||
.movie-imdb-block {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -245,16 +256,21 @@ footer {
|
||||
}
|
||||
|
||||
.movie-rating-block .imdb-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
margin-left: 4px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.movie-imdb-wrap {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
gap: 0;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.movie-imdb-wrap .movie-rating-stars {
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.movie-rating-stars {
|
||||
@@ -267,7 +283,7 @@ footer {
|
||||
.movie-star {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: rgba(0,0,0,0.25);
|
||||
color: rgba(0, 0, 0, 0.5);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1;
|
||||
padding: 0 1px;
|
||||
@@ -331,11 +347,23 @@ footer {
|
||||
}
|
||||
|
||||
.imdb-icon {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
height: 18px;
|
||||
padding: 0 6px;
|
||||
vertical-align: middle;
|
||||
margin-left: 6px;
|
||||
display: inline-block;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: #f5c518;
|
||||
color: #111;
|
||||
border-radius: 4px;
|
||||
font-family: "Arial Black", Arial, sans-serif;
|
||||
font-size: 11px;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.4px;
|
||||
line-height: 1;
|
||||
text-transform: none;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.watched-badge {
|
||||
@@ -442,10 +470,25 @@ footer {
|
||||
line-height: 1.1;
|
||||
}
|
||||
|
||||
.stats-movie-imdb.btn {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.stats-movie-imdb.btn:hover,
|
||||
.stats-movie-imdb.btn:focus {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.stats-movie-imdb .imdb-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
margin-left: 0;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
/* Admin → Settings: keep controls compact */
|
||||
@@ -457,4 +500,733 @@ footer {
|
||||
.admin-settings-narrow {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--app-bg: #f5f6fb;
|
||||
--app-surface: #ffffff;
|
||||
--app-surface-alt: #f1f3f9;
|
||||
--app-text: #111827;
|
||||
--app-text-muted: rgba(17, 24, 39, 0.6);
|
||||
--app-border: rgba(15, 23, 42, 0.12);
|
||||
--app-ring: rgba(37, 99, 235, 0.35);
|
||||
--app-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
|
||||
--app-overlay: rgba(246, 247, 251, 0.7);
|
||||
--app-loader-card: rgba(255, 255, 255, 0.9);
|
||||
--app-navbar: #0a0b0d;
|
||||
--app-navbar-border: rgba(255, 255, 255, 0.08);
|
||||
--app-link: #1d4ed8;
|
||||
--app-link-hover: #1e40af;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
/* Darker overall background + slightly deeper surfaces */
|
||||
--app-bg: #05070b;
|
||||
--app-surface: #0b1017;
|
||||
--app-surface-alt: #101825;
|
||||
--app-text: #e6e9f0;
|
||||
--app-text-muted: rgba(230, 233, 240, 0.7);
|
||||
--app-border: rgba(255, 255, 255, 0.11);
|
||||
--app-ring: rgba(96, 165, 250, 0.45);
|
||||
--app-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
|
||||
--app-overlay: rgba(4, 6, 10, 0.78);
|
||||
--app-loader-card: rgba(18, 22, 33, 0.9);
|
||||
--app-navbar: #0b0d12;
|
||||
--app-navbar-border: rgba(255, 255, 255, 0.1);
|
||||
--app-link: #8ab4ff;
|
||||
--app-link-hover: #b1ccff;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--app-bg);
|
||||
color: var(--app-text);
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
body > .container {
|
||||
flex: 1 0 auto;
|
||||
}
|
||||
|
||||
body > footer {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--app-link);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--app-link-hover);
|
||||
}
|
||||
|
||||
/* Tabs (light mode): keep it neutral (no bright blue) */
|
||||
.nav-tabs .nav-link {
|
||||
color: rgba(17, 24, 39, 0.72);
|
||||
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.1px;
|
||||
padding: 0.45rem 0.8rem;
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link:hover {
|
||||
color: rgba(17, 24, 39, 0.9);
|
||||
}
|
||||
|
||||
.nav-tabs .nav-link.active {
|
||||
color: #111827;
|
||||
}
|
||||
|
||||
|
||||
body.bg-light {
|
||||
background-color: var(--app-bg) !important;
|
||||
}
|
||||
|
||||
.bg-light {
|
||||
background-color: var(--app-surface-alt) !important;
|
||||
}
|
||||
|
||||
.text-dark {
|
||||
color: var(--app-text) !important;
|
||||
}
|
||||
|
||||
.text-muted {
|
||||
color: var(--app-text-muted) !important;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .logo-invert {
|
||||
filter: invert(1) brightness(1.05);
|
||||
}
|
||||
|
||||
/* Dark mode: footer matches tiles/cards */
|
||||
html[data-theme="dark"] footer {
|
||||
background-color: var(--app-surface);
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
footer.footer--plain {
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
footer.footer--player {
|
||||
width: min(100%, calc(1100px - 24px));
|
||||
}
|
||||
|
||||
footer.footer--auth {
|
||||
width: min(100%, 400px);
|
||||
}
|
||||
|
||||
.card,
|
||||
.modal-content,
|
||||
.list-group-item,
|
||||
.dropdown-menu {
|
||||
background-color: var(--app-surface);
|
||||
color: var(--app-text);
|
||||
border-color: var(--app-border);
|
||||
box-shadow: var(--app-shadow);
|
||||
}
|
||||
|
||||
.modal-header,
|
||||
.modal-footer {
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
/* Bootstrap modal close (X) visibility in dark mode */
|
||||
html[data-theme="dark"] .modal-header .btn-close {
|
||||
filter: invert(1) grayscale(100%);
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .modal-header .btn-close:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .modal-header .btn-close:focus {
|
||||
box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
|
||||
}
|
||||
|
||||
.table {
|
||||
--bs-table-color: var(--app-text);
|
||||
--bs-table-bg: transparent;
|
||||
--bs-table-striped-bg: rgba(15, 23, 42, 0.05);
|
||||
--bs-table-hover-bg: rgba(15, 23, 42, 0.08);
|
||||
--bs-table-border-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .table {
|
||||
--bs-table-striped-bg: rgba(255, 255, 255, 0.04);
|
||||
--bs-table-hover-bg: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .progress {
|
||||
background-color: rgba(255, 255, 255, 0.10);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .progress-bar {
|
||||
background-color: #60a5fa;
|
||||
}
|
||||
|
||||
.page-loader-overlay {
|
||||
background: var(--app-overlay);
|
||||
}
|
||||
|
||||
.page-loader-card {
|
||||
background: var(--app-loader-card);
|
||||
border-color: var(--app-border);
|
||||
box-shadow: var(--app-shadow);
|
||||
}
|
||||
|
||||
.page-loader-title,
|
||||
.page-loader-subtitle {
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
.page-loader-progress {
|
||||
background: rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .page-loader-progress {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.page-loader-bar {
|
||||
background: var(--app-text);
|
||||
}
|
||||
|
||||
.navbar-custom {
|
||||
background-color: var(--app-navbar);
|
||||
border-bottom: 1px solid var(--app-navbar-border);
|
||||
}
|
||||
|
||||
/* The logo image has a bit of built-in left whitespace; nudge it back to align with page titles. */
|
||||
.navbar-custom .navbar-brand img {
|
||||
margin-left: -9px;
|
||||
}
|
||||
|
||||
/* Mobile navbar: add vertical gaps + clean user row */
|
||||
@media (max-width: 991.98px) {
|
||||
.navbar-custom .navbar-nav {
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-nav .nav-link.btn {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
margin-right: 0 !important; /* overrides me-2 on mobile */
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-user {
|
||||
width: 100%;
|
||||
margin-top: 0.85rem !important;
|
||||
padding-top: 0.85rem;
|
||||
/* Mobile divider between nav buttons and user row */
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.18);
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-user-name-mobile {
|
||||
max-width: 42vw;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-right: 0.75rem;
|
||||
margin-right: 0.75rem !important; /* extra gap before hamburger */
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
/* Avoid showing the username twice when the menu is open */
|
||||
.navbar-custom .navbar-user #user-name {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-custom .navbar-user .theme-toggle {
|
||||
margin-right: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .navbar-custom .btn-outline-light {
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
border-color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .navbar-custom .btn-outline-light:hover {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .btn-outline-dark {
|
||||
color: var(--app-text);
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .btn-outline-dark:hover {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .badge.bg-warning.text-dark {
|
||||
color: #1f2937 !important;
|
||||
}
|
||||
|
||||
/* Use a consistent "admin" blue instead of Bootstrap warning yellow. */
|
||||
.btn-warning {
|
||||
background-color: #1d4ed8;
|
||||
border-color: #1d4ed8;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-warning:hover {
|
||||
background-color: #1e40af;
|
||||
border-color: #1e40af;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.btn-warning:focus,
|
||||
.btn-warning:focus-visible {
|
||||
box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.35);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .badge.bg-light {
|
||||
background-color: var(--app-surface-alt) !important;
|
||||
color: var(--app-text) !important;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .badge.bg-dark {
|
||||
background-color: #0f172a !important;
|
||||
}
|
||||
|
||||
.movie-info-box {
|
||||
background: var(--app-surface-alt);
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
.movie-rating-block,
|
||||
.movie-imdb-block,
|
||||
.movie-rating-sub,
|
||||
.movie-info-summary,
|
||||
.movie-info-category,
|
||||
.movie-info-desc,
|
||||
.stats-movie-details summary {
|
||||
color: var(--app-text-muted);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-star {
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-star.is-active {
|
||||
color: #f4b400;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .stats-movie-item {
|
||||
background: var(--app-surface);
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .stats-movie-item--clickable:hover {
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admin-subtabs.nav-pills .nav-link {
|
||||
background: var(--app-surface);
|
||||
border-color: var(--app-border);
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admin-subtabs.nav-pills .nav-link:hover {
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .admin-subtabs.nav-pills .nav-link.active {
|
||||
background: #4f7cff;
|
||||
border-color: #4f7cff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .nominee-option:hover {
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .nominee-option.selected {
|
||||
box-shadow: 0 2px 8px rgba(79, 124, 255, 0.35);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .nominee-checkmark {
|
||||
background-color: rgba(255, 255, 255, 0.18);
|
||||
color: #cfe1ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .nominee-option.selected .nominee-checkmark {
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
color: #1d4ed8;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .picks-table tbody tr:hover {
|
||||
background-color: rgba(99, 102, 241, 0.12);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .picks-table tbody tr.has-selection {
|
||||
background-color: rgba(99, 102, 241, 0.18);
|
||||
border-left-color: #6ea8fe;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .pick-item {
|
||||
border-bottom-color: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .correct-pick {
|
||||
background-color: rgba(16, 185, 129, 0.18);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .incorrect-pick {
|
||||
background-color: rgba(248, 113, 113, 0.18);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .meta-muted {
|
||||
color: var(--app-text-muted);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .player-surface {
|
||||
border-color: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .quality-toggle {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(255, 255, 255, 0.18);
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .quality-label {
|
||||
color: var(--app-text-muted);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .quality-pill {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(255, 255, 255, 0.15);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .quality-btn {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .quality-btn.is-active {
|
||||
background: #f8fafc;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table thead th,
|
||||
html[data-theme="dark"] .user-table thead th {
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .user-table tbody td:first-child,
|
||||
html[data-theme="dark"] .user-table tbody td:nth-child(3) {
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .stats-tabs .nav-link {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .stats-tabs .nav-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .stats-tabs .nav-link.active {
|
||||
color: #fff;
|
||||
background: rgba(79, 124, 255, 0.18);
|
||||
border-color: rgba(79, 124, 255, 0.4);
|
||||
}
|
||||
|
||||
.user-table,
|
||||
#pane-winners .table,
|
||||
#pane-completion .table {
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #pane-winners .table,
|
||||
html[data-theme="dark"] #pane-completion .table {
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #pane-winners .table thead th,
|
||||
html[data-theme="dark"] #pane-winners .table tbody td,
|
||||
html[data-theme="dark"] #pane-completion .table thead th,
|
||||
html[data-theme="dark"] #pane-completion .table tbody td {
|
||||
color: rgba(255, 255, 255, 0.88);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .user-table a {
|
||||
color: #b9e3ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .user-table a:hover {
|
||||
color: #d7efff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabs .nav-link {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabs .nav-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabs .nav-link.active {
|
||||
color: #fff;
|
||||
background: rgba(79, 124, 255, 0.18);
|
||||
border-color: rgba(79, 124, 255, 0.4);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .table {
|
||||
--bs-table-color: var(--app-text);
|
||||
--bs-table-striped-color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .table thead th {
|
||||
background-color: var(--app-surface-alt);
|
||||
color: var(--app-text);
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .table tbody td {
|
||||
color: rgba(230, 235, 245, 0.92);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .table .table-success {
|
||||
--bs-table-bg: rgba(96, 165, 250, 0.14);
|
||||
--bs-table-striped-bg: rgba(96, 165, 250, 0.1);
|
||||
--bs-table-hover-bg: rgba(96, 165, 250, 0.18);
|
||||
color: rgba(230, 235, 245, 0.92);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .bg-white {
|
||||
background-color: var(--app-surface) !important;
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .border {
|
||||
border-color: var(--app-border) !important;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabs,
|
||||
html[data-theme="dark"] #editMovieTabs {
|
||||
border-bottom-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabs .nav-link,
|
||||
html[data-theme="dark"] #editMovieTabs .nav-link {
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
border-color: transparent;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabs .nav-link:hover,
|
||||
html[data-theme="dark"] #editMovieTabs .nav-link:hover {
|
||||
color: #fff;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabs .nav-link.active,
|
||||
html[data-theme="dark"] #editMovieTabs .nav-link.active {
|
||||
color: #fff;
|
||||
background: rgba(79, 124, 255, 0.18);
|
||||
border-color: rgba(79, 124, 255, 0.4);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .table,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table {
|
||||
--bs-table-color: var(--app-text);
|
||||
--bs-table-striped-color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .table thead th,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table thead th {
|
||||
background-color: var(--app-surface-alt);
|
||||
color: var(--app-text);
|
||||
border-color: var(--app-border);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .table tbody td,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table tbody td {
|
||||
color: rgba(230, 235, 245, 0.92);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .table .text-muted,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table .text-muted {
|
||||
color: rgba(230, 235, 245, 0.65) !important;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .table a,
|
||||
html[data-theme="dark"] #adminTabsContent .table .btn-link,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table a,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .table .btn-link {
|
||||
color: rgba(230, 235, 245, 0.92);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #adminTabsContent .admin-movies-table td,
|
||||
html[data-theme="dark"] #adminTabsContent .admin-movies-table th,
|
||||
html[data-theme="dark"] #adminTabsContent .admin-movies-table .text-muted,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .admin-movies-table td,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .admin-movies-table th,
|
||||
html[data-theme="dark"] #adminTabs + .tab-content .admin-movies-table .text-muted {
|
||||
color: rgba(230, 235, 245, 0.92) !important;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .btn-outline-primary {
|
||||
color: rgba(226, 232, 240, 0.95);
|
||||
border-color: rgba(148, 163, 184, 0.6);
|
||||
background: rgba(15, 23, 42, 0.2);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] #picksTabsContent .btn-outline-primary:hover {
|
||||
color: #fff;
|
||||
border-color: rgba(148, 163, 184, 0.85);
|
||||
background: rgba(148, 163, 184, 0.18);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table .table-success {
|
||||
--bs-table-bg: rgba(96, 165, 250, 0.14);
|
||||
--bs-table-striped-bg: rgba(96, 165, 250, 0.1);
|
||||
--bs-table-hover-bg: rgba(96, 165, 250, 0.18);
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table .table-success td {
|
||||
border-color: rgba(96, 165, 250, 0.22);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table .table-danger {
|
||||
--bs-table-bg: rgba(148, 163, 184, 0.12);
|
||||
--bs-table-striped-bg: rgba(148, 163, 184, 0.09);
|
||||
--bs-table-hover-bg: rgba(148, 163, 184, 0.16);
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table .table-danger td {
|
||||
border-color: rgba(148, 163, 184, 0.2);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table {
|
||||
--bs-table-color: var(--app-text);
|
||||
--bs-table-striped-color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .movie-table tbody td {
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .form-control,
|
||||
html[data-theme="dark"] .form-select,
|
||||
html[data-theme="dark"] .form-check-input {
|
||||
background-color: var(--app-surface);
|
||||
border-color: var(--app-border);
|
||||
color: var(--app-text);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .form-control::placeholder {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .form-control:focus,
|
||||
html[data-theme="dark"] .form-select:focus,
|
||||
html[data-theme="dark"] .form-check-input:focus {
|
||||
border-color: rgba(96, 165, 250, 0.6);
|
||||
box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.25);
|
||||
}
|
||||
|
||||
.theme-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 56px;
|
||||
height: 30px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--app-border);
|
||||
background: var(--app-surface-alt);
|
||||
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
|
||||
transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
|
||||
}
|
||||
|
||||
/* Make spacing between toggle and logout feel equal to username→toggle */
|
||||
nav.navbar .theme-toggle {
|
||||
margin-right: 0.45rem;
|
||||
}
|
||||
|
||||
.theme-toggle:focus-visible {
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 3px var(--app-ring);
|
||||
}
|
||||
|
||||
.theme-toggle-icon {
|
||||
position: absolute;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--app-text-muted);
|
||||
transition: color 160ms ease;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.theme-toggle-icon svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.theme-toggle-icon-sun {
|
||||
left: 8px;
|
||||
}
|
||||
|
||||
.theme-toggle-icon-moon {
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.theme-toggle-thumb {
|
||||
position: absolute;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
background: var(--app-text);
|
||||
transform: translateX(-12px);
|
||||
transition: transform 180ms ease, background 160ms ease;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .theme-toggle {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(255, 255, 255, 0.2);
|
||||
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .theme-toggle-icon {
|
||||
color: rgba(255, 255, 255, 0.65);
|
||||
}
|
||||
|
||||
html[data-theme="dark"] .theme-toggle-thumb {
|
||||
transform: translateX(12px);
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.theme-toggle--floating {
|
||||
position: fixed;
|
||||
top: 16px;
|
||||
right: 16px;
|
||||
z-index: 1060;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
.theme-toggle--floating {
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user