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.

11.2 KB
Raw Blame
.projects-page {
  height: 100%;
  overflow-y: auto;
  background: var(--conversation-bg);
  color: var(--text);
}

.projects-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.projects-page-header h1,
.projects-page-header p,
.projects-library-heading h2,
.projects-empty p {
  margin: 0;
  letter-spacing: 0;
}

.projects-page-header h1 {
  min-height: var(--page-title-row-height);
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.25;
}

.projects-page-header p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.projects-header-actions {
  min-height: var(--page-title-row-height);
  display: flex;
  align-items: center;
  gap: 10px;
}

.projects-primary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  border-bottom: 1px solid var(--border-hairline);
}

.projects-dimension-tabs {
  display: flex;
  align-items: stretch;
  gap: 24px;
  flex: 0 0 auto;
}

.projects-dimension-tabs button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.projects-dimension-tabs button:hover,
.projects-dimension-tabs button[aria-selected="true"] {
  color: var(--text);
}

.projects-dimension-tabs button[aria-selected="true"] {
  font-weight: 600;
}

.projects-dimension-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.projects-category-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.projects-category-tabs::-webkit-scrollbar {
  display: none;
}

.projects-category-tabs button {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  transition: color 180ms ease;
  white-space: nowrap;
}

.projects-category-tabs button:hover {
  color: var(--text);
}

.projects-category-tabs button[aria-selected="true"] {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.projects-search {
  width: min(260px, 36vw);
  min-width: 110px;
  flex: 0 1 260px;
  height: 36px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  box-sizing: border-box;
}

.projects-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

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

.projects-search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
}

.projects-library {
  margin-top: 30px;
}

.projects-library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.projects-library-summary {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.projects-library-heading h2 {
  font-size: 17px;
  font-weight: 650;
}

.projects-library-summary span,
.projects-selected-count {
  color: var(--muted);
  font-size: 12px;
}

.projects-batch-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.projects-selected-count {
  margin-right: 3px;
  white-space: nowrap;
}

.projects-batch-button {
  min-width: 0;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 580;
  white-space: nowrap;
}

.projects-batch-button:not(:disabled):hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.projects-batch-button.is-destructive {
  border-color: color-mix(in srgb, var(--destructive) 34%, var(--border));
  color: var(--destructive);
}

.projects-batch-button.is-destructive:not(:disabled):hover {
  background: var(--destructive-soft);
}

.projects-batch-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.projects-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.project-card[data-current="true"] {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}

.project-card.is-selected {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 16%, transparent);
}

.project-card-open {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 0;
  color: inherit;
  text-align: left;
}

.project-card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: var(--surface-2);
}

.project-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-card-cover small {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(20, 22, 26, 0.82);
  color: #f7f7f8;
  font-size: 10px;
  font-weight: 620;
}

.project-card-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px 42px 13px 12px;
}

.project-card-copy > small,
.project-card-copy > span {
  color: var(--muted);
  font-size: 11px;
}

.project-card-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-output-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.project-output-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.project-output-open {
  width: 100%;
  min-width: 0;
  display: block;
  padding: 0;
  color: inherit;
  text-align: left;
}

.project-output-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--muted);
}

.project-output-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.project-output-card:hover .project-output-preview img {
  transform: scale(1.025);
}

.project-output-file-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
}

.project-output-preview > small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(20, 22, 26, 0.82);
  color: #f7f7f8;
  font-size: 10px;
  font-weight: 620;
}

.project-output-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.project-output-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.project-output-kind {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.project-output-copy strong,
.project-output-copy > span:not(.project-output-kind) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-output-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
}

.project-output-copy > span:not(.project-output-kind),
.project-output-copy > small {
  color: var(--muted);
  font-size: 11px;
}

.projects-download-error {
  margin: -4px 0 14px;
  color: var(--destructive);
  font-size: 12px;
}

.project-card-menu {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}

.project-card-checkbox {
  position: absolute;
  z-index: 2;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.project-card-checkbox:disabled {
  cursor: not-allowed;
}

.project-card.is-managing .project-card-open {
  cursor: pointer;
}

.project-card.is-managing .project-card-copy {
  padding-right: 12px;
}

.project-card:hover .project-card-cover img {
  transform: scale(1.025);
}

.project-card-menu:hover {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.project-card-menu:focus-visible {
  background: var(--destructive-soft);
  color: var(--destructive);
}

.project-delete-error {
  display: block;
  color: var(--destructive);
}

.project-delete-description,
.project-delete-files-option > span {
  display: grid;
  gap: 6px;
}

.project-delete-description {
  gap: 14px;
}

.project-delete-files-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  color: var(--text);
  cursor: pointer;
}

.project-delete-files-option input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--danger);
}

.project-delete-files-option strong {
  font-size: 13px;
  font-weight: 600;
}

.project-delete-files-option small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.projects-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.projects-empty strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 14px;
}

.projects-empty p {
  font-size: 12px;
}

.projects-page button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .projects-card-grid,
  .project-output-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .projects-card-grid,
  .project-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .projects-card-grid,
  .project-output-grid {
    grid-template-columns: 1fr;
  }

  .projects-library-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .projects-batch-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .projects-page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .projects-header-actions {
    min-width: 0;
    width: 100%;
  }

  .projects-primary-row {
    gap: 10px;
  }

  .projects-dimension-tabs {
    gap: 10px;
  }

  .projects-dimension-tabs button {
    padding: 0 1px;
    font-size: 13px;
  }

  .projects-search {
    width: min(160px, 34vw);
    min-width: 92px;
    flex: 0 1 160px;
  }
}

@media (max-width: 370px) {
  .projects-primary-row {
    flex-wrap: wrap;
  }

  .projects-search {
    margin-left: auto;
  }
}