823 lines
14 KiB
CSS
823 lines
14 KiB
CSS
:root {
|
|
/* Light theme colors */
|
|
--bg-primary: #f5f5f5;
|
|
--bg-secondary: #fff;
|
|
--bg-tertiary: #f8f9fa;
|
|
--text-primary: #333;
|
|
--text-secondary: #666;
|
|
--text-muted: #999;
|
|
--border-color: #e9ecef;
|
|
--border-light: #ddd;
|
|
--shadow: rgba(0, 0, 0, 0.1);
|
|
--accent-primary: #007bff;
|
|
--accent-primary-hover: #0056b3;
|
|
--accent-danger: #dc3545;
|
|
--accent-danger-hover: #c82333;
|
|
--accent-secondary: #6c757d;
|
|
--accent-secondary-hover: #545b62;
|
|
--success-bg: #d4edda;
|
|
--success-text: #155724;
|
|
--error-bg: #f8d7da;
|
|
--error-text: #721c24;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
/* Dark theme colors */
|
|
--bg-primary: #1a1a1a;
|
|
--bg-secondary: #2d2d2d;
|
|
--bg-tertiary: #3a3a3a;
|
|
--text-primary: #e0e0e0;
|
|
--text-secondary: #b0b0b0;
|
|
--text-muted: #888;
|
|
--border-color: #444;
|
|
--border-light: #555;
|
|
--shadow: rgba(0, 0, 0, 0.3);
|
|
--accent-primary: #4dabf7;
|
|
--accent-primary-hover: #339af0;
|
|
--accent-danger: #f03e3e;
|
|
--accent-danger-hover: #e03131;
|
|
--accent-secondary: #868e96;
|
|
--accent-secondary-hover: #adb5bd;
|
|
--success-bg: #2b5a3b;
|
|
--success-text: #a3d9a5;
|
|
--error-bg: #5a2b2b;
|
|
--error-text: #f1aeb5;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: system-ui, -apple-system, sans-serif;
|
|
background-color: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
transition: background-color 0.3s ease, color 0.3s ease;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.header {
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px var(--shadow);
|
|
transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 20px;
|
|
}
|
|
|
|
.header-text {
|
|
flex: 1;
|
|
}
|
|
|
|
.title {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
margin-bottom: 8px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.credit {
|
|
font-size: 11px;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 50%;
|
|
width: 50px;
|
|
height: 50px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
transition: all 0.3s ease;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px var(--shadow);
|
|
transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.tab {
|
|
flex: 1;
|
|
padding: 15px 20px;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.tab:first-child {
|
|
border-radius: 8px 0 0 8px;
|
|
}
|
|
|
|
.tab:last-child {
|
|
border-radius: 0 8px 8px 0;
|
|
}
|
|
|
|
.tab.active {
|
|
background-color: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.tab:hover:not(.active) {
|
|
background-color: var(--bg-tertiary);
|
|
}
|
|
|
|
.content {
|
|
background-color: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 4px var(--shadow);
|
|
transition: background-color 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
padding: 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
.table th {
|
|
background-color: var(--bg-tertiary);
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.table tr:hover {
|
|
background-color: var(--bg-tertiary);
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--accent-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: var(--accent-primary-hover);
|
|
}
|
|
|
|
.btn-danger {
|
|
background-color: var(--accent-danger);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background-color: var(--accent-danger-hover);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--accent-secondary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: var(--accent-secondary-hover);
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.form-label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-input {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
|
|
}
|
|
|
|
.audio-player {
|
|
width: 100%;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.error {
|
|
background-color: var(--error-bg);
|
|
color: var(--error-text);
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.success {
|
|
background-color: var(--success-bg);
|
|
color: var(--success-text);
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
margin-bottom: 20px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.feed-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 15px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
background-color: var(--bg-secondary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.feed-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.feed-title {
|
|
font-weight: 500;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.feed-url {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.feed-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Feed management specific styles */
|
|
.feed-manager {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.feed-section {
|
|
margin-bottom: 2rem;
|
|
padding: 1.5rem;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border-color);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.feed-section h2 {
|
|
margin: 0 0 1rem 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* RSS Endpoints specific styles */
|
|
.rss-endpoints {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.rss-endpoints-header {
|
|
text-align: center;
|
|
margin-bottom: 2rem;
|
|
padding: 1.5rem;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.rss-endpoints-header h1 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.rss-endpoints-header p {
|
|
margin: 0;
|
|
opacity: 0.9;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.rss-section {
|
|
margin-bottom: 3rem;
|
|
}
|
|
|
|
.rss-section h2 {
|
|
margin: 0 0 1.5rem 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
border-bottom: 2px solid var(--accent-primary);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.rss-endpoints-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.rss-endpoint-card {
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 8px var(--shadow);
|
|
transition: all 0.2s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.rss-endpoint-card:hover {
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed {
|
|
grid-column: 1 / -1;
|
|
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .endpoint-header h3 {
|
|
color: white;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .endpoint-description {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.endpoint-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 1rem;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.endpoint-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.endpoint-badges {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.endpoint-badge {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.endpoint-badge.main {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
}
|
|
|
|
.endpoint-badge.category {
|
|
background: #e3f2fd;
|
|
color: #1976d2;
|
|
}
|
|
|
|
.endpoint-badge.feed {
|
|
background: #f3e5f5;
|
|
color: #7b1fa2;
|
|
}
|
|
|
|
.endpoint-badge.category-tag {
|
|
background: #e8f5e8;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.endpoint-description {
|
|
color: var(--text-secondary);
|
|
margin-bottom: 1rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.endpoint-url {
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .endpoint-url {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.endpoint-url code {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-primary);
|
|
font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
|
|
font-size: 0.9rem;
|
|
word-break: break-all;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .endpoint-url code {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.endpoint-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.copy-btn,
|
|
.open-btn {
|
|
background: var(--accent-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
padding: 0.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
font-size: 1rem;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.copy-btn:hover,
|
|
.open-btn:hover {
|
|
background: var(--accent-primary-hover);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.copy-btn.copied {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .copy-btn,
|
|
.rss-endpoint-card.main-feed .open-btn {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
color: white;
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .copy-btn:hover,
|
|
.rss-endpoint-card.main-feed .open-btn:hover {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.rss-endpoint-card.main-feed .copy-btn.copied {
|
|
background: rgba(39, 174, 96, 0.8);
|
|
}
|
|
|
|
.usage-info {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 12px;
|
|
padding: 2rem;
|
|
margin-top: 3rem;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.usage-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
gap: 1.5rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.usage-card {
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
padding: 1.5rem;
|
|
box-shadow: 0 2px 4px var(--shadow);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.usage-card h3 {
|
|
margin: 0 0 1rem 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.usage-card p {
|
|
margin: 0;
|
|
color: var(--text-secondary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.rss-endpoints {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.rss-endpoints-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.endpoint-url {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.endpoint-url code {
|
|
min-width: unset;
|
|
text-align: center;
|
|
}
|
|
|
|
.endpoint-actions {
|
|
justify-content: center;
|
|
}
|
|
|
|
.usage-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
/* Additional form elements */
|
|
select {
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 4px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
|
|
}
|
|
|
|
/* Links */
|
|
a {
|
|
color: var(--accent-primary);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--accent-primary-hover);
|
|
}
|
|
|
|
/* Form labels */
|
|
.form-label {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Tab text color for better readability */
|
|
.tab {
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Component-specific styles for better dark theme support */
|
|
.episode-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.episode-title {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.episode-meta {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.episode-meta-text {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.episode-search-bar {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.episode-search-input {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 4px;
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.episode-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
|
|
}
|
|
|
|
.episode-category-select {
|
|
padding: 8px 12px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 4px;
|
|
min-width: 120px;
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.episode-category-select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 0 2px rgba(77, 171, 247, 0.25);
|
|
}
|
|
|
|
.episode-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.episode-action-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.episode-link {
|
|
text-decoration: none;
|
|
color: var(--accent-primary);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.episode-link:hover {
|
|
color: var(--accent-primary-hover);
|
|
}
|
|
|
|
.episode-feed-info {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.episode-article-info {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.episode-article-link {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.episode-description {
|
|
font-size: 14px;
|
|
max-width: 200px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.episode-file-size {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.pagination-container {
|
|
margin-top: 20px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.pagination-pages {
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
}
|
|
|
|
.pagination-page-btn {
|
|
min-width: 40px;
|
|
}
|
|
|
|
.pagination-size-selector {
|
|
margin-left: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.pagination-size-select {
|
|
padding: 4px 8px;
|
|
font-size: 14px;
|
|
border: 1px solid var(--border-light);
|
|
border-radius: 4px;
|
|
background-color: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|