Chocobozzz/PeerTube

View on GitHub
client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss

Summary

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

$form-base-input-width: 340px;
$form-max-width: 500px;

form {
  padding-bottom: 1.5rem;
}

my-markdown-textarea {
  display: block;
  max-width: $form-max-width;
}

.homepage my-markdown-textarea {
  display: block;
  max-width: 90%;

  ::ng-deep textarea {
    height: 300px !important;
  }
}

input[type=text],
input[type=number] {
  @include peertube-input-text($form-base-input-width);
}

.number-with-unit {
  position: relative;
  width: fit-content;

  input[type=number] + span {
    position: absolute;
    top: 0.2em;
    right: 2.5rem;

    @media screen and (max-width: $mobile-view) {
      display: none;
    }
  }

  input[disabled] {
    background-color: #f9f9f9;
    pointer-events: none;
  }
}

input[type=checkbox] {
  @include peertube-checkbox(1px);
}

.peertube-select-container {
  @include peertube-select-container($form-base-input-width);
}

my-select-options,
my-select-custom-value {
  display: block;

  @include responsive-width($form-base-input-width);
}

input[type=submit] {
  display: flex;

  @include peertube-button;
  @include orange-button;
  @include margin-left(auto);

  + .form-error {
    display: inline;

    @include margin-left(5px);
  }
}

.inner-form-description {
  font-size: 15px;
  margin-bottom: 15px;
}

textarea {
  max-width: 100%;
  display: block;

  @include peertube-textarea(500px, 150px);

  &.small {
    height: 75px;
  }
}

.label-small-info {
  font-style: italic;
  margin-bottom: 10px;
  font-size: 14px;
}

.disabled-checkbox-extra {
  &,
  ::ng-deep label {
    opacity: .5;
    pointer-events: none;
  }
}

input[disabled] {
  opacity: 0.5;
}

ngb-tabset:not(.previews) ::ng-deep {
  .nav-link {
    font-size: 105%;
  }
}

.submit-error {
  margin-bottom: 20px;
}

.alert-signup {
  width: fit-content;
  margin-top: 10px;
}

.callout-container {
  position: absolute;
  display: flex;
  height: 0;
  width: 100%;
  justify-content: right;

  .callout-link {
    position: relative;
    right: 3.3em;
    top: .3em;
    font-size: 90%;
    color: pvar(--mainColor);
    background-color: pvar(--mainBackgroundColor);
    padding: 0 .3em;

    @include peertube-button-link;
  }
}

my-actor-banner-edit {
  max-width: $form-max-width;
}

h4 {
  font-weight: $font-bold;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}