@import "settings";

// Used on a hero block that can hold a background image.
.cover {
  color: white;
  background-color: $brand-primary;

  .page-title {
    position: relative;
    color: white;
    z-index: 1;
  }

  .hero-avatar {
    border-radius: 50%;
    border: 2px solid white;

    @include for-tablet-portrait-up {
      border-width: 3px;
    }

  }

  .hero-canvas {
    border-radius: $border-radius-base;
    background-color: rgba($gray-dark, 0.8);
    color: white;
  }

  .hero-form[role='search'] {

    .form-control {
      border-radius: $input-border-radius;

      &:focus,
      &:active,
      &:focus ~ .search-icon,
      &:active ~ .search-icon {
        box-shadow: 0 2px 0 0 $brand-secondary;
      }

    }

    .form-submit,
    .search-icon {
      border-radius: 0 $input-border-radius $input-border-radius 0 !important;
    }

  }
}

.hero-action-button {
  .dropdown-menu {
    left: auto;
    right: 0;
    margin: 12px 0 0;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: 2px 4px 12px 0 rgba(0, 0, 0, .08);

    li {
      &:not(:last-child) {
        margin-bottom: 8px;
      }

      a {
        padding: 0 28px;
        font-size: 1rem;
        font-weight: 500;
        line-height: 24px;
        color: #343434;
      }
    }
  }
}
