This repository has been archived on 2026-05-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GallerySubscriber/extension/popup/popup.css
T
2026-01-25 18:47:06 -05:00

346 lines
6.3 KiB
CSS

/* Light theme (default) */
:root {
--primary-color: #1976d2;
--primary-hover: #1565c0;
--success-color: #4caf50;
--warning-color: #ff9800;
--error-color: #f44336;
--bg-color: #ffffff;
--bg-secondary: #f5f5f5;
--bg-hover: #f5f9ff;
--text-color: #212121;
--text-secondary: #757575;
--border-color: #e0e0e0;
--alert-warning-bg: #fff8e1;
--alert-warning-border: #ffcc02;
--alert-warning-text: #795548;
--status-success-bg: #e8f5e9;
--status-success-text: #2e7d32;
--status-success-border: #a5d6a7;
--status-error-bg: #ffebee;
--status-error-text: #c62828;
--status-error-border: #ef9a9a;
}
/* Dark theme */
[data-theme="dark"] {
--primary-color: #64b5f6;
--primary-hover: #42a5f5;
--success-color: #81c784;
--warning-color: #ffb74d;
--error-color: #e57373;
--bg-color: #1e1e1e;
--bg-secondary: #2d2d2d;
--bg-hover: #2a3a4a;
--text-color: #e0e0e0;
--text-secondary: #9e9e9e;
--border-color: #424242;
--alert-warning-bg: #3d3224;
--alert-warning-border: #8b6914;
--alert-warning-text: #ffcc02;
--status-success-bg: #1b3d1b;
--status-success-text: #81c784;
--status-success-border: #2e7d32;
--status-error-bg: #3d1b1b;
--status-error-text: #e57373;
--status-error-border: #c62828;
}
/* Auto-detect system theme preference */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--primary-color: #64b5f6;
--primary-hover: #42a5f5;
--success-color: #81c784;
--warning-color: #ffb74d;
--error-color: #e57373;
--bg-color: #1e1e1e;
--bg-secondary: #2d2d2d;
--bg-hover: #2a3a4a;
--text-color: #e0e0e0;
--text-secondary: #9e9e9e;
--border-color: #424242;
--alert-warning-bg: #3d3224;
--alert-warning-border: #8b6914;
--alert-warning-text: #ffcc02;
--status-success-bg: #1b3d1b;
--status-success-text: #81c784;
--status-success-border: #2e7d32;
--status-error-bg: #3d1b1b;
--status-error-text: #e57373;
--status-error-border: #c62828;
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
color: var(--text-color);
background: var(--bg-color);
min-width: 320px;
max-width: 400px;
}
.popup-container {
padding: 12px;
}
.header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border-color);
}
.header h1 {
font-size: 16px;
font-weight: 600;
flex: 1;
}
.logo {
width: 24px;
height: 24px;
}
.status-indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--error-color);
cursor: help;
}
.status-indicator.connected {
background: var(--success-color);
}
.section {
margin-bottom: 16px;
}
.section h2 {
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
color: var(--text-secondary);
margin-bottom: 8px;
letter-spacing: 0.5px;
}
.platforms-grid {
display: grid;
gap: 8px;
}
.platform-card {
display: flex;
align-items: center;
padding: 10px 12px;
border: 1px solid var(--border-color);
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
background: var(--bg-color);
}
.platform-card:hover:not(.disabled) {
border-color: var(--primary-color);
background: var(--bg-hover);
}
.platform-card.disabled {
opacity: 0.6;
cursor: not-allowed;
}
.platform-card .platform-icon {
width: 32px;
height: 32px;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
margin-right: 10px;
color: white;
font-weight: bold;
font-size: 14px;
}
.platform-card .info {
flex: 1;
min-width: 0;
}
.platform-card .name {
font-weight: 500;
font-size: 14px;
}
.platform-card .status {
font-size: 12px;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.platform-card .status.ready {
color: var(--success-color);
}
.platform-card .status.no-cookies {
color: var(--warning-color);
}
.platform-card .status.error {
color: var(--error-color);
}
.platform-card .action-icon {
width: 20px;
height: 20px;
opacity: 0.5;
flex-shrink: 0;
}
.platform-card.loading .action-icon {
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 16px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: background 0.15s ease;
}
.btn-primary {
background: var(--primary-color);
color: white;
}
.btn-primary:hover {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--bg-secondary);
color: var(--text-color);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background: var(--border-color);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-icon {
background: none;
border: none;
padding: 6px;
cursor: pointer;
border-radius: 4px;
color: var(--text-secondary);
transition: background 0.15s ease;
}
.btn-icon:hover {
background: var(--bg-secondary);
color: var(--text-color);
}
.full-width {
width: 100%;
}
.mt-2 {
margin-top: 8px;
}
.alert {
padding: 12px;
border-radius: 6px;
margin-bottom: 12px;
}
.alert strong {
display: block;
margin-bottom: 4px;
}
.alert p {
font-size: 13px;
margin: 0;
}
.alert-warning {
background: var(--alert-warning-bg);
border: 1px solid var(--alert-warning-border);
color: var(--alert-warning-text);
}
.status-message {
padding: 10px 12px;
border-radius: 6px;
margin-bottom: 12px;
font-size: 13px;
}
.status-message.success {
background: var(--status-success-bg);
color: var(--status-success-text);
border: 1px solid var(--status-success-border);
}
.status-message.error {
background: var(--status-error-bg);
color: var(--status-error-text);
border: 1px solid var(--status-error-border);
}
.status-message.warning {
background: var(--alert-warning-bg);
color: var(--alert-warning-text);
border: 1px solid var(--alert-warning-border);
}
.footer {
display: flex;
align-items: center;
justify-content: space-between;
padding-top: 12px;
border-top: 1px solid var(--border-color);
}
.version {
font-size: 11px;
color: var(--text-secondary);
}
.hidden {
display: none !important;
}