Files
VoiceRSSSummary/frontend/src/styles.css
2025-06-08 21:53:45 +09:00

526 lines
8.1 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: system-ui, -apple-system, sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
.header {
background-color: #fff;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.title {
font-size: 24px;
font-weight: bold;
margin-bottom: 8px;
}
.subtitle {
color: #666;
font-size: 14px;
}
.tabs {
display: flex;
background-color: #fff;
border-radius: 8px;
margin-bottom: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.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: #007bff;
color: white;
}
.tab:hover:not(.active) {
background-color: #f8f9fa;
}
.content {
background-color: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
.table th,
.table td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #e9ecef;
}
.table th {
background-color: #f8f9fa;
font-weight: 600;
}
.table tr:hover {
background-color: #f8f9fa;
}
.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: #007bff;
color: white;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-danger {
background-color: #dc3545;
color: white;
}
.btn-danger:hover {
background-color: #c82333;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #545b62;
}
.form-group {
margin-bottom: 15px;
}
.form-label {
display: block;
margin-bottom: 5px;
font-weight: 500;
}
.form-input {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}
.form-input:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.audio-player {
width: 100%;
margin: 10px 0;
}
.loading {
text-align: center;
padding: 40px;
color: #666;
}
.error {
background-color: #f8d7da;
color: #721c24;
padding: 10px;
border-radius: 4px;
margin-bottom: 20px;
}
.success {
background-color: #d4edda;
color: #155724;
padding: 10px;
border-radius: 4px;
margin-bottom: 20px;
}
.empty-state {
text-align: center;
padding: 40px;
color: #666;
}
.feed-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px;
border: 1px solid #e9ecef;
border-radius: 4px;
margin-bottom: 10px;
}
.feed-info {
flex: 1;
}
.feed-title {
font-weight: 500;
margin-bottom: 4px;
}
.feed-url {
color: #666;
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: #f8f9fa;
border-radius: 8px;
border: 1px solid #e9ecef;
}
.feed-section h2 {
margin: 0 0 1rem 0;
color: #495057;
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: #2c3e50;
font-size: 1.5rem;
font-weight: 600;
border-bottom: 2px solid #3498db;
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: white;
border: 1px solid #e1e8ed;
border-radius: 12px;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.2s ease;
position: relative;
}
.rss-endpoint-card:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
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: #2c3e50;
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: #666;
margin-bottom: 1rem;
line-height: 1.5;
}
.endpoint-url {
background: #f8f9fa;
border: 1px solid #e9ecef;
border-radius: 8px;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
flex-wrap: wrap;
}
.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: #495057;
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: #3498db;
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: #2980b9;
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: #f8f9fa;
border-radius: 12px;
padding: 2rem;
margin-top: 3rem;
}
.usage-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.usage-card {
background: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.usage-card h3 {
margin: 0 0 1rem 0;
color: #2c3e50;
font-size: 1.1rem;
font-weight: 600;
}
.usage-card p {
margin: 0;
color: #666;
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;
}
}