Skip to content

Formerly KrillinAI, VideoTranslation and Dubbing Tool for 120+ Languages. Open-source AI workspace for creators, powered by Codex. Video downloader, video translation, create videos, images, audios, and edits with Agents in one place. For your Social Media like YouTube, TikTok, Instagram, etc.

5.9 KB
Raw Blame
.tts-voice-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.tts-voice-picker-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tts-voice-select {
  width: 100%;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 11px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tts-voice-select:hover:not(:disabled) {
  border-color: var(--border-strong);
}

.tts-voice-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tts-voice-select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.tts-voice-select > svg {
  flex-shrink: 0;
  color: var(--muted);
}

.tts-voice-select[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.tts-voice-select-text {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
}

.tts-voice-select-text > span,
.tts-voice-select-text > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tts-voice-select-text > span {
  flex-shrink: 0;
  max-width: 70%;
  font-size: 13px;
  font-weight: 500;
}

.tts-voice-select-text > small {
  min-width: 0;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 450;
}

.tts-voice-menu {
  position: fixed;
  z-index: 500;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-popover);
  box-shadow: var(--shadow-popover);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.tts-voice-menu.is-searchable { display: flex; flex-direction: column; overflow: hidden; }
.tts-voice-menu-search { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 5px 8px 10px; margin-bottom: 5px; border-bottom: 1px solid var(--border-hairline); color: var(--muted); }
.tts-voice-menu-search > svg { flex-shrink: 0; }
.tts-voice-menu-search input { width: 100%; min-width: 0; height: 28px; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; }
.tts-voice-menu-search input:focus-visible { outline: 0; box-shadow: none; }
.tts-voice-menu-search input::placeholder { color: var(--muted); }
.is-searchable .tts-voice-menu-options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.is-searchable .tts-voice-option { min-height: 36px; padding: 8px 10px; box-sizing: border-box; }
.is-searchable .tts-voice-option-text { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.is-searchable .tts-voice-option-text > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tts-voice-menu-empty { padding: 22px 10px; color: var(--muted); text-align: center; }

.tts-voice-menu-group {
  padding: 8px 8px 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
}

.tts-voice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.tts-voice-option.is-active {
  background: var(--state-hover-bg);
}

.tts-voice-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.tts-voice-option > svg {
  flex-shrink: 0;
  color: var(--accent-strong);
}

.tts-voice-option-check {
  flex-shrink: 0;
  width: 15px;
}

.tts-voice-option-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tts-voice-option-text > span {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.tts-voice-option-text > small {
  color: var(--muted);
  font-size: 11px;
}

.tts-voice-picker-actions {
  display: flex;
  gap: 6px;
}

.tts-voice-picker-actions button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--muted);
}

.tts-voice-picker-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.tts-voice-picker-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.tts-voice-picker-custom,
.tts-voice-picker-meta,
.tts-voice-picker-error {
  grid-column: 1 / -1;
}

.tts-voice-picker-custom {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.tts-voice-preview-language {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.tts-voice-preview-language > span { font-weight: 600; }

.tts-voice-preview-language .tts-voice-select {
  height: 44px;
  padding-inline: 12px;
  border-radius: 8px;
  background: var(--surface);
}

.tts-voice-preview-language small {
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.5;
  color: var(--subtle);
}

.tts-voice-picker-custom input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text);
  padding: 0 11px;
  font: inherit;
}

.tts-voice-picker-meta,
.tts-voice-picker-error {
  min-height: 16px;
  font-size: 11px;
}

.tts-voice-picker-meta {
  color: var(--subtle);
}

.tts-voice-picker-error {
  color: var(--destructive);
}

.tts-voice-picker-spinner {
  animation: tts-voice-picker-spin 0.8s linear infinite;
}

@keyframes tts-voice-picker-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .tts-voice-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .tts-voice-picker-actions {
    justify-content: flex-end;
  }
}