✨ Add Claude Arabic Voice Input extension - Arabic speech-to-text for Claude.ai with Gemini AI processing
This commit is contained in:
290
claude-arabic-voice/styles.css
Normal file
290
claude-arabic-voice/styles.css
Normal file
@@ -0,0 +1,290 @@
|
||||
/* ─── Popup Styles ─────────────────────────────────────────────────────────── */
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Segoe UI', Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
background: #1a1a2e;
|
||||
color: #e0e0e0;
|
||||
width: 380px;
|
||||
min-height: 400px;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.popup-container {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
/* ─── Header ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.popup-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
.popup-icon {
|
||||
font-size: 32px;
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: linear-gradient(135deg, #6c63ff, #4834d4);
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.popup-title h1 {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.popup-title .subtitle {
|
||||
font-size: 11px;
|
||||
color: #888;
|
||||
margin: 2px 0 0 0;
|
||||
}
|
||||
|
||||
/* ─── Status ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.status-section {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.status-indicator {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 50%;
|
||||
background: #666;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-dot.online {
|
||||
background: #00c853;
|
||||
box-shadow: 0 0 8px rgba(0, 200, 83, 0.5);
|
||||
}
|
||||
|
||||
.status-dot.offline {
|
||||
background: #ff5252;
|
||||
box-shadow: 0 0 8px rgba(255, 82, 82, 0.5);
|
||||
}
|
||||
|
||||
.status-dot.listening {
|
||||
background: #ff1744;
|
||||
animation: pulse-dot 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse-dot {
|
||||
0% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.6);
|
||||
}
|
||||
|
||||
50% {
|
||||
box-shadow: 0 0 0 8px rgba(255, 23, 68, 0);
|
||||
}
|
||||
|
||||
100% {
|
||||
box-shadow: 0 0 0 0 rgba(255, 23, 68, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/* ─── Settings ────────────────────────────────────────────────────────────── */
|
||||
|
||||
.settings-section {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.settings-section h2 {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #ccc;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.settings-section h3 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #bbb;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.setting-group {
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.setting-group label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #aaa;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.setting-group select,
|
||||
.setting-group input[type="password"],
|
||||
.setting-group input[type="text"] {
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 6px;
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.setting-group select:focus,
|
||||
.setting-group input:focus {
|
||||
border-color: #6c63ff;
|
||||
}
|
||||
|
||||
.setting-group select option {
|
||||
background: #1a1a2e;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.setting-hint {
|
||||
font-size: 11px;
|
||||
color: #777;
|
||||
margin-top: 4px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.setting-hint a {
|
||||
color: #6c63ff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.setting-hint a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* ─── Checkbox ────────────────────────────────────────────────────────────── */
|
||||
|
||||
.checkbox-group {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.checkbox-label {
|
||||
display: flex !important;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
cursor: pointer;
|
||||
font-size: 13px !important;
|
||||
color: #ddd !important;
|
||||
}
|
||||
|
||||
.checkbox-label input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
accent-color: #6c63ff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ─── Divider ─────────────────────────────────────────────────────────────── */
|
||||
|
||||
.divider {
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
/* ─── Gemini Settings ─────────────────────────────────────────────────────── */
|
||||
|
||||
.gemini-settings {
|
||||
margin-top: 10px;
|
||||
padding: 12px;
|
||||
background: rgba(108, 99, 255, 0.08);
|
||||
border: 1px solid rgba(108, 99, 255, 0.2);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.gemini-settings label {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.gemini-settings label:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/* ─── Help Section ────────────────────────────────────────────────────────── */
|
||||
|
||||
.help-section {
|
||||
margin-bottom: 16px;
|
||||
padding: 12px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.help-section h2 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #ccc;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.help-section ol {
|
||||
padding-right: 20px;
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
line-height: 1.8;
|
||||
}
|
||||
|
||||
.help-section ol li strong {
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
/* ─── Footer ──────────────────────────────────────────────────────────────── */
|
||||
|
||||
.popup-footer {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.save-btn {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
background: linear-gradient(135deg, #6c63ff, #4834d4);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.save-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 15px rgba(108, 99, 255, 0.4);
|
||||
}
|
||||
|
||||
.save-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.save-message {
|
||||
font-size: 12px;
|
||||
margin-top: 8px;
|
||||
min-height: 18px;
|
||||
}
|
||||
Reference in New Issue
Block a user