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.

17.8 KB
Raw Blame
.schedules-view {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
}

.schedules-view__inner {
  width: min(980px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: var(--page-title-inset) 28px 48px;
}

.schedules-view__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.schedules-view__header h1 {
  min-height: var(--page-title-row-height);
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.schedules-view__header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.schedules-view__header > .schedule-button {
  min-height: var(--page-title-row-height);
}

.schedule-button,
.schedule-icon-button {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.schedule-button {
  min-height: 36px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-weight: 600;
}

.schedule-button--primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent);
}

.schedule-button--secondary {
  background: var(--surface-2);
}

.schedule-button:hover:not(:disabled),
.schedule-icon-button:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--accent-strong) 52%, var(--border));
}

.schedule-button--primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-strong) 86%, var(--surface));
}

.schedule-button:disabled,
.schedule-icon-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.schedule-icon-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.schedule-icon-button--plain {
  border-color: transparent;
}

.schedule-create-menu {
  position: relative;
  z-index: 4;
}

.schedule-create-menu__popover {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  width: 230px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-create-menu__popover button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
}

.schedule-create-menu__popover button:hover {
  background: var(--surface-2);
}

.schedule-create-menu__popover button > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.schedule-create-menu__popover strong,
.schedule-create-menu__popover small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-create-menu__popover strong {
  font-size: 13px;
}

.schedule-create-menu__popover small {
  color: var(--muted);
  font-size: 12px;
}

.schedules-search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}

.schedules-search:focus-within {
  border-color: color-mix(in srgb, var(--accent-strong) 55%, var(--border));
}

.schedules-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.schedules-search input::placeholder {
  color: var(--subtle);
}

.schedules-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
}

.schedules-filters button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted);
}

.schedules-filters button.is-active {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
}

.schedules-state,
.schedules-empty {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
}

.schedules-state h2,
.schedules-state p,
.schedules-empty strong,
.schedules-empty span {
  margin: 0;
}

.schedules-state h2,
.schedules-empty strong {
  color: var(--text);
  font-size: 15px;
}

.schedules-empty span {
  color: var(--muted);
  font-size: 13px;
}

.schedules-state--error {
  color: var(--danger);
}

.schedules-list {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.schedule-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 17px 8px;
  border-bottom: 1px solid var(--border);
}

.schedule-row__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
}

.schedule-row__content {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.schedule-row__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.schedule-row__title h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.schedule-row__title-button {
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-overflow: inherit;
  white-space: inherit;
}

.schedule-row__title-button:hover {
  color: var(--accent-strong);
}

.schedule-running-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  color: var(--warning);
  font-size: 12px;
}

.schedule-row__content > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.schedule-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--subtle);
  font-size: 12px;
}

.schedule-row__run-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
}

.schedule-row__error {
  color: var(--danger) !important;
}

.schedule-row__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  margin-right: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-3);
}

.schedule-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 160ms ease, background 160ms ease;
}

.schedule-switch[aria-checked="true"] {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.schedule-switch[aria-checked="true"]::after {
  transform: translateX(16px);
  background: var(--accent-strong);
}

.schedule-suggestions {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.schedule-suggestions > h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.schedule-suggestion-list {
  display: grid;
}

.schedule-suggestion-list > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 11px 6px;
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
}

.schedule-suggestion-list > button:hover {
  background: var(--surface-2);
}

.schedule-suggestion-list > button > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.schedule-suggestion-list strong {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.schedule-suggestion-list strong small {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
}

.schedule-suggestion-list button span > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-suggestion-icon {
  margin-top: 1px;
}

.schedule-suggestion-icon--blue {
  color: var(--muted);
}

.schedule-suggestion-icon--violet {
  color: var(--subtle);
}

.schedule-suggestion-icon--green {
  color: var(--text);
}

.schedule-editor {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.schedule-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--scrim) 62%, transparent);
}

.schedule-editor-dialog {
  width: min(760px, 100%);
  height: min(820px, calc(100vh - 48px));
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 24px 64px color-mix(in srgb, var(--shadow-base) 28%, transparent);
}

.schedule-editor__topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.schedule-editor__topbar strong {
  font-size: 16px;
  font-weight: 600;
}

.schedule-editor__scroll {
  min-height: 0;
  overflow: auto;
  padding: 24px 20px 32px;
  scrollbar-gutter: stable;
}

.schedule-form-error {
  margin: 0 0 16px;
  padding: 9px 10px;
  border: 1px solid color-mix(in srgb, var(--danger) 38%, var(--border));
  border-radius: var(--radius);
  background: var(--danger-soft);
  color: var(--danger);
}

.schedule-title-field,
.schedule-prompt-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.schedule-title-field > span,
.schedule-prompt-field > span,
.schedule-editor-group > h2 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.schedule-title-field > span,
.schedule-prompt-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.schedule-title-field > span small {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 400;
}

.schedule-title-field input {
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.schedule-title-field input:focus {
  border-color: var(--accent-strong);
}

.schedule-prompt-field {
  margin-top: 22px;
}

.schedule-prompt-field textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.6;
}

.schedule-prompt-field textarea:focus {
  border-color: color-mix(in srgb, var(--accent-strong) 58%, var(--border));
}

.schedule-title-field input[aria-invalid="true"],
.schedule-prompt-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.schedule-field__error {
  color: var(--danger);
  font-size: 12px;
}

.schedule-editor-group {
  margin-top: 26px;
}

.schedule-editor-group > h2 {
  margin: 0 0 8px;
}

.schedule-setting-list {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.schedule-setting-list--time-popover {
  position: relative;
  overflow: visible;
  z-index: 2;
}

.schedule-setting-row {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 16px;
  padding: 0 13px;
  border-bottom: 1px solid var(--border);
}

.schedule-setting-row:last-child {
  border-bottom: 0;
}

.schedule-setting-row > span:first-child {
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.schedule-setting-value {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
}

.schedule-select-control {
  position: relative;
  min-width: 0;
  display: block;
  justify-self: stretch;
  color: var(--muted);
}

.schedule-select-control :is(select, .app-select-trigger),
.schedule-setting-input,
.schedule-time-input {
  min-width: 0;
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--muted);
  text-align: right;
}

.schedule-select-control :is(select, .app-select-trigger) {
  appearance: none;
  padding-right: 24px;
  cursor: pointer;
}

.schedule-select-control > svg {
  position: absolute;
  top: 50%;
  right: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.schedule-setting-input::placeholder {
  color: var(--subtle);
}

.schedule-time-picker {
  position: relative;
  justify-self: end;
}

.schedule-time-picker__trigger {
  min-width: 86px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.schedule-time-picker__trigger:hover,
.schedule-time-picker__trigger[aria-expanded="true"] {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.schedule-time-picker__popover {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: calc(100% + 5px);
  width: 218px;
  height: 242px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--popover);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow-base) 18%, transparent);
}

.schedule-time-picker__column {
  min-width: 0;
  overflow-y: auto;
  padding: 4px;
  border-left: 1px solid var(--border);
}

.schedule-time-picker__column:first-child {
  border-left: 0;
}

.schedule-time-picker__column button {
  width: 100%;
  height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  padding: 0 8px 0 10px;
  border-radius: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.schedule-time-picker__column button:hover {
  background: var(--state-hover-bg);
  color: var(--text);
}

.schedule-time-picker__column button[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text);
}

.schedule-time-picker__column button svg {
  justify-self: end;
}

.schedule-hourly-control,
.schedule-timeout-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-hourly-control input,
.schedule-timeout-control input {
  width: 64px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: right;
}

.schedule-day-picker {
  display: flex;
  gap: 5px;
  padding: 10px 13px;
  border-top: 1px solid var(--border);
}

.schedule-day-picker button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
}

.schedule-day-picker button.is-selected {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.schedule-legacy-note {
  padding: 11px 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.schedule-editor-advanced {
  margin-top: 18px;
}

.schedule-editor-advanced > h2 {
  margin: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.schedule-editor-advanced .schedule-setting-list {
  margin-top: 4px;
}

.schedule-editor__enabled {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--text);
}

.schedule-editor__enabled input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}

.schedule-editor__enabled span {
  display: grid;
  gap: 2px;
}

.schedule-editor__enabled small {
  color: var(--muted);
  font-size: 12px;
}

.schedule-editor__actions {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.schedule-editor__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
}

.schedule-spin {
  animation: schedule-spin 850ms linear infinite;
}

@keyframes schedule-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .schedules-view__inner {
    padding: 22px 12px 36px;
  }

  .schedules-view__header {
    align-items: center;
  }

  .schedules-view__header h1 {
    font-size: 23px;
  }

  .schedules-view__header p {
    max-width: 220px;
    font-size: 12px;
  }

  .schedule-create-menu__popover {
    width: min(230px, calc(100vw - 24px));
  }

  .schedule-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding-right: 2px;
    padding-left: 2px;
  }

  .schedule-row__actions {
    grid-column: 2;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .schedule-suggestion-list strong {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .schedule-suggestion-list button span > span {
    white-space: normal;
  }

  .schedule-editor__scroll {
    padding: 20px 16px 28px;
  }

  .schedule-title-field input {
    font-size: 14px;
  }

  .schedule-setting-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .schedule-day-picker {
    justify-content: space-between;
    padding-right: 10px;
    padding-left: 10px;
  }

  .schedule-editor__actions {
    padding: 0 16px;
  }

  .schedule-editor-overlay {
    padding: 12px;
  }

  .schedule-editor-dialog {
    height: calc(100vh - 24px);
  }
}

@media (max-width: 380px) {
  .schedules-view__header {
    align-items: flex-start;
  }

  .schedules-view__header p {
    display: none;
  }

  .schedule-setting-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .schedule-day-picker button {
    width: 28px;
    height: 28px;
  }
}