// TODO: tabs should be added to the Pattern Library
.tabs {
    @include clearfix();
    @extend %reset-lists;
    @include border-top-radius(4px);
    padding: ($baseline*0.75) 0 ($baseline*0.75) 0;

    .tab {
        @include float(left);
        list-style: none;
        margin-bottom: 0;

        &.prominent {
            @include margin-right(16px);
            background: rgba(255, 255, 255, 0.5);
            border-radius: 3px;
        }

        &.prominent + li {
            @include border-left(1px solid $lms-border-color);
            @include padding-left($baseline*0.75);
        }

        a,
        a:visited {
            @include padding($baseline/2, $baseline*0.75, 13px, $baseline*0.75);
            display: block;
            text-align: center;
            text-decoration: none;
            border-style: solid;
            border-width: 0 0 4px 0;
            border-bottom-color: transparent;
            color: $lms-label-color;
            font-size: 14px;

            &:hover,
            &:focus {
                color: $lms-active-color;
                border-bottom-color: $lms-active-color;
            }

            &.active {
                color: $lms-active-color;
                border-bottom-color: $lms-active-color;
                background-color: transparent;
            }
        }
    }
}

// TODO: search box should be in the Pattern Library
.page-header-search {
    display: inline-block;

    .search-form {
        display: inline-block;
    }

    .search-box {
        display: inline-block;
        position: relative;
        vertical-align: middle;
    }

    .search-input {
        width: 12rem;
    }

    .action-search {
        text-shadow: none;
        vertical-align: middle;
        padding: $baseline/5 $baseline/2;
    }

    .action-clear {
        @include right(0);
        @include margin(0, ($baseline/4), 0, 0);
        position: absolute;
        top: 0;
        color: $lms-gray;
        padding: $baseline/4;

        // STATE: hover and focus
        &:hover,
        &:focus {
            color: $lms-label-color;
            border-width: 0;
        }
    }
}

.wrapper-preview-menu {
  @include clearfix();
  @include box-sizing(border-box);
  margin: 0 auto 0;
  padding: ($baseline*0.75);
  background-color: $lms-preview-menu-color;

  @media print {
    display: none;
  }

  .preview-menu {
    max-width: $lms-max-width;
    width: auto;
    margin: 0 auto;
  }

  .preview-actions {
    @include margin-left(0);
    display: inline-block;
    margin-bottom: 0;

    .action-preview {
      display: inline-block;

      .action-preview-label {
        @include margin-right($baseline/2);
        display: inline-block;
        margin-bottom: 0;
        vertical-align: middle;
      }

      .action-preview-select {
        @include margin-right($baseline);
      }

      .action-preview-username-container {
        display: none;

        .action-preview-username {
          vertical-align: middle;
          height: 25px;
        }
      }
    }
  }

  .preview-specific-student-notice {
    margin-top: ($baseline/2);
    font-size: 90%;

    > p {
      margin-bottom: 0;
    }
  }
}

.section {
    .icon {
        width: 20px;
        text-align: center;
    }
}

.section:not(:first-child) {
    margin-top: $baseline;
}
