.block {
  &.weight {
    .gl-field-error {
      margin-top: $gl-padding-8;
      margin-left: -6px;
      display: flex;
      align-items: center;
    }
  }

  &.epic {
    .title {
      display: flex;
    }

    .dropdown-contents-loading {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      z-index: 9;
      padding-top: 45px;
      background-color: $dropdown-loading-bg;
    }

    .sidebar-dropdown-toggle:hover {
      text-decoration: underline;
      color: $blue-800;
    }
  }
}

.add-issuable-form-input-wrapper {
  height: auto;
  padding: $gl-vert-padding $gl-vert-padding 0 $gl-input-padding;

  &.focus,
  &.focus:hover {
    border-color: $blue-300;
    box-shadow: 0 0 4px $dropdown-input-focus-shadow;
  }

  .gl-show-field-errors &.form-control:not(textarea) {
    height: auto;
  }
}

.limit-container-width {
  .epic-page-container .issuable-details,
  .emoji-list-container {
    @include fixed-width-container;
  }
}

// This override is needed because `display: flex`
// on `.epic` above causes hiding logic in global
// stylesheet is of lower specificity.
.right-sidebar.right-sidebar-collapsed {
  .block.epic .hide-collapsed {
    display: none;
  }
}

.health-status {
  line-height: $gl-line-height;

  .status {
    &-at-risk {
      color: $red-500;
      background-color: $red-100;
    }

    &-needs-attention {
      color: $orange-700;
      background-color: $orange-50;
    }

    &-on-track {
      color: $green-600;
      background-color: $green-100;
    }
  }

  .gl-label-text {
    font-weight: $gl-font-weight-bold;
    font-size: 0.75rem;
  }
}

.issuable-tag-valign {
  vertical-align: 1px;
}

.issuable-assignees {
  a:not(.btn) {
    color: inherit;
  }
}
