Chocobozzz/PeerTube

View on GitHub
client/src/app/+video-studio/edit/video-studio-edit.component.scss

Summary

Maintainability
Test Coverage
@use '_variables' as *;
@use '_mixins' as *;

my-timestamp-input {
  display: block;
  width: 85px;
}

.grid-container {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;

  @include rfs(3rem, column-gap);
  @include rfs(2rem, row-gap);

  form {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .embed-container {
    grid-column: 2;
    grid-row: 1;
  }

  .tasks-container {
    grid-column: 2;
    grid-row: 2;
  }
}

@include on-small-main-col {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;

    form {
      grid-column: 1;
      grid-row: 2;
    }

    .embed-container {
      grid-column: 1;
      grid-row: 1;
    }

    .tasks-container {
      grid-column: 1;
      grid-row: 3;
    }
  }
}

h1 {
  font-size: 20px;
}

h2 {
  font-weight: $font-bold;
  font-size: 16px;
  color: pvar(--mainColor);
  background-color: pvar(--mainBackgroundColor);
  padding: 0 5px;
  width: fit-content;
  margin: -8px 0 0;
}

.section {
  $min-width: 600px;

  min-width: $min-width;
  margin-bottom: 50px;
  border: 1px solid $separator-border-color;
  border-radius: 5px;
  width: fit-content;

  @include padding-left(10px);

  .form-group,
  .description {
    @include margin-left(5px);
  }

  .description {
    color: pvar(--greyForegroundColor);
    margin-top: 5px;
    margin-bottom: 15px;
  }

  @media screen and (max-width: $min-width) {
    min-width: 100%;
  }
}

my-embed {
  display: block;
  max-width: 500px;
  width: 100%;
}

my-reactive-file {
  display: block;
  width: fit-content;
}