Skip to content

The free and privacy-friendly screen recorder with no limits 🎥

2.5 KB
Raw Blame
@use "../../../styles/_variables" as *;

.video-item-root {
  width: calc(100% - 2 * #{$spacing-03});
  border-radius: 15px;
  padding: $spacing-03;
  display: block;
  .video-item {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .video-item-left {
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    align-items: center;
    min-width: 0;
    justify-content: left;
  }
  .video-item-thumbnail {
    // 16:9 at a size the 960x540 stored thumbnail can still resolve into
    min-width: 64px;
    width: 64px;
    height: 36px;
    background: $color-border;
    border-radius: 6px;
    overflow: hidden;
    margin-right: $spacing-04;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }
  .video-item-info {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: $spacing-02;
  }
  .video-item-info-title {
    color: $color-text-primary;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .video-item-info-date {
    margin-top: $spacing-02;
    display: flex;
    align-items: center;
    color: $color-text-secondary;
    font-size: $font-size-small;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .video-item-lock {
    width: 11px;
    height: 11px;
    margin-right: 5px;
    flex-shrink: 0;
  }
}

.video-item-root:hover {
  cursor: pointer;
  background: #e9eaee;
}
.video-item-root:focus-visible {
  box-shadow: $focus-border;
  outline: none !important;
}

/* Actions */
.video-item-right {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: $spacing-03;
  min-width: max-content;
  opacity: 0;

  .copy-link {
    background: $color-background;
    height: 32px;
    width: 32px;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    z-index: 999999;
  }
  .copy-link:focus-visible {
    box-shadow: $focus-border;
    outline: none !important;
  }
  .more-actions {
    height: 32px;
    width: 32px;
    background: $color-background;
    text-align: center;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .more-actions:focus-visible {
    box-shadow: $focus-border;
    outline: none !important;
  }
}

.video-item-root:hover,
.video-item-root:focus-visible {
  .video-item-right {
    opacity: 1;
  }
}

// .video-item-right:focus-within {
//   opacity: 1;
// }