@use 'sass:math';

@use '_variables' as *;
@use '_mixins' as *;

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

input:not([type=submit]) {
  @include peertube-input-text($form-base-input-width);
  display: block;
}

my-input-text {
  @include responsive-width($form-base-input-width);

  display: block;
}

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

my-select-custom-value {
  @include responsive-width($form-base-input-width);

  display: block;
}

.danger-zone {
  button {
    @include danger-button;
    @include disable-outline;
  }
}

.dashboard {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
  max-width: 900px;

  > div {
    box-sizing: border-box;
    flex: 0 0 math.percentage(math.div(1, 3));
    padding: 0 5px;
    margin-bottom: 10px;

    > a {
      @include disable-default-a-behaviour;

      text-decoration: none;
      color: inherit;
      display: block;
      font-size: 18px;

      &:active,
      &:focus,
      &:hover {
        opacity: .8;
      }
    }

    > a,
    > div {
      padding: 20px;
      background: pvar(--submenuBackgroundColor);
      border-radius: 4px;
      box-sizing: border-box;
      height: 100%;
    }
  }

  .dashboard-num,
  .dashboard-text {
    text-align: center;
    font-size: 130%;
    color: pvar(--mainForegroundColor);
    line-height: 30px;
    margin-bottom: 20px;
  }

  .dashboard-label {
    font-size: 90%;
    color: pvar(--inputPlaceholderColor);
    text-align: center;
  }
}
