Files
BetterDesk/web-nodejs/public/css/languages.css
T
UNITRONIX dd0889e3d6 Add SessionManager; update docs, i18n & CI
Introduce a SessionManager for relay-based remote sessions in the Tauri MGMT client: new SessionCommand API, start/stop/session input routing, clipboard/recording/quality controls, and notification read/dismiss state. Wire AppState with new mutexes and show main window on startup. CI: add SBOM generation (anchore) and Trivy vulnerability scan steps. Misc: change console Docker DB path, large README/CHANGELOG updates (chat E2E, unattended access/WOL, i18n expansion, CDAP/SDK docs), and many web-nodejs assets/locales/routes/views/services and server-side changes.
2026-04-05 13:42:07 +02:00

347 lines
6.8 KiB
CSS

/* Languages Management — BetterDesk Console */
.lang-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 12px;
}
.lang-header h2 {
margin: 0;
font-size: 18px;
font-weight: 600;
color: var(--text-primary, #e6edf3);
}
.lang-stats-row {
display: flex;
gap: 16px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.lang-stat-card {
flex: 1;
min-width: 140px;
background: var(--bg-secondary, #161b22);
border: 1px solid var(--border-primary, #30363d);
border-radius: 8px;
padding: 16px;
text-align: center;
}
.lang-stat-card .stat-value {
font-size: 28px;
font-weight: 700;
color: var(--accent-blue, #58a6ff);
}
.lang-stat-card .stat-label {
font-size: 12px;
color: var(--text-secondary, #8b949e);
margin-top: 4px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.lang-stat-card.stat-complete .stat-value { color: #3fb950; }
.lang-stat-card.stat-review .stat-value { color: #d29922; }
.lang-stat-card.stat-ref .stat-value { color: var(--accent-blue, #58a6ff); }
/* Language grid */
.lang-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 12px;
}
.lang-card {
background: var(--bg-secondary, #161b22);
border: 1px solid var(--border-primary, #30363d);
border-radius: 8px;
padding: 16px;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
position: relative;
overflow: hidden;
}
.lang-card:hover {
border-color: var(--accent-blue, #58a6ff);
box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.15);
}
.lang-card.is-reference {
border-color: var(--accent-blue, #58a6ff);
background: rgba(88, 166, 255, 0.04);
}
.lang-card-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.lang-flag {
font-size: 24px;
line-height: 1;
}
.lang-info {
flex: 1;
min-width: 0;
}
.lang-name {
font-size: 14px;
font-weight: 600;
color: var(--text-primary, #e6edf3);
}
.lang-native {
font-size: 12px;
color: var(--text-secondary, #8b949e);
margin-top: 1px;
}
.lang-code-badge {
display: inline-flex;
align-items: center;
padding: 2px 8px;
border-radius: 10px;
font-size: 11px;
font-weight: 600;
font-family: 'SFMono-Regular', Consolas, monospace;
background: rgba(88, 166, 255, 0.1);
color: var(--accent-blue, #58a6ff);
}
.lang-badges {
display: flex;
gap: 6px;
margin-bottom: 10px;
flex-wrap: wrap;
}
.lang-badge {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 2px 7px;
border-radius: 10px;
font-size: 10px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.lang-badge.badge-reference {
background: rgba(88, 166, 255, 0.15);
color: #58a6ff;
}
.lang-badge.badge-review {
background: rgba(210, 153, 34, 0.15);
color: #d29922;
}
.lang-badge.badge-rtl {
background: rgba(188, 140, 255, 0.15);
color: #bc8cff;
}
.lang-badge.badge-complete {
background: rgba(63, 185, 80, 0.15);
color: #3fb950;
}
/* Coverage bar */
.lang-coverage {
margin-bottom: 8px;
}
.lang-coverage-bar {
height: 6px;
background: var(--bg-tertiary, #0d1117);
border-radius: 3px;
overflow: hidden;
margin-bottom: 4px;
}
.lang-coverage-fill {
height: 100%;
border-radius: 3px;
transition: width 0.5s ease;
}
.lang-coverage-fill.cov-100 { background: #3fb950; }
.lang-coverage-fill.cov-high { background: #58a6ff; }
.lang-coverage-fill.cov-medium { background: #d29922; }
.lang-coverage-fill.cov-low { background: #f85149; }
.lang-coverage-text {
display: flex;
justify-content: space-between;
font-size: 11px;
color: var(--text-secondary, #8b949e);
}
/* Key stats row */
.lang-key-stats {
display: flex;
gap: 12px;
font-size: 11px;
color: var(--text-secondary, #8b949e);
margin-bottom: 10px;
}
.lang-key-stats span {
display: flex;
align-items: center;
gap: 3px;
}
.lang-key-stats .missing { color: #f85149; }
.lang-key-stats .extra { color: #d29922; }
/* Card actions */
.lang-actions {
display: flex;
gap: 6px;
padding-top: 10px;
border-top: 1px solid var(--border-primary, #30363d);
}
.lang-actions button {
flex: 1;
padding: 5px 8px;
border: 1px solid var(--border-primary, #30363d);
border-radius: 4px;
background: var(--bg-tertiary, #0d1117);
color: var(--text-secondary, #8b949e);
font-size: 11px;
cursor: pointer;
transition: all 0.15s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
}
.lang-actions button:hover {
color: var(--text-primary, #e6edf3);
border-color: var(--accent-blue, #58a6ff);
background: rgba(88, 166, 255, 0.08);
}
.lang-actions button .material-icons-round {
font-size: 14px;
}
/* Detail modal */
.lang-detail-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lang-detail-overlay.active {
opacity: 1;
visibility: visible;
}
.lang-detail-panel {
background: var(--bg-secondary, #161b22);
border: 1px solid var(--border-primary, #30363d);
border-radius: 10px;
width: 600px;
max-width: 90vw;
max-height: 80vh;
overflow-y: auto;
padding: 20px;
}
.lang-detail-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.lang-detail-header h3 {
margin: 0;
font-size: 16px;
color: var(--text-primary, #e6edf3);
}
.lang-detail-close {
background: none;
border: none;
color: var(--text-secondary, #8b949e);
cursor: pointer;
padding: 4px;
border-radius: 4px;
}
.lang-detail-close:hover {
color: var(--text-primary, #e6edf3);
background: rgba(255, 255, 255, 0.05);
}
.lang-key-list {
list-style: none;
padding: 0;
margin: 0;
}
.lang-key-list li {
padding: 6px 0;
border-bottom: 1px solid var(--border-primary, #30363d);
font-size: 12px;
}
.lang-key-list li:last-child {
border-bottom: none;
}
.lang-key-name {
font-family: 'SFMono-Regular', Consolas, monospace;
color: var(--accent-blue, #58a6ff);
font-size: 11px;
}
.lang-key-value {
color: var(--text-secondary, #8b949e);
font-size: 11px;
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 500px;
}
/* Responsive */
@media (max-width: 768px) {
.lang-grid {
grid-template-columns: 1fr;
}
.lang-stats-row {
flex-direction: column;
}
.lang-stat-card {
min-width: unset;
}
}