//
// Page Header
// --------------------------------------------------


// Generic spacing and stuff
//
//##
.page-header {
  border-bottom-width: 1px;
  margin: 0px;
  margin-top: @line-height-computed * -1;
  margin-bottom: @line-height-computed;
  padding: @line-height-computed 0px;

  &>.container {
    h1 {
      margin: 0px;
      padding: 0px;
      overflow: visible;

      font-size: @font-size-large * 1.5;

      .main, .sub {
        float: left;

        font-weight: normal;
      }

      .main {
        a {
          color: @text-color;
        }
      }

      .sub {
        margin-left: @line-height-computed / 2;

        color: lighten(@text-color, 25%);
      }
    }
  }
}


// Breadcrumb
//
//##
.page-header {
  &>.container {
    .breadcrumb {
      margin-bottom: (@line-height-computed * @headings-line-height) * -1;

      color: @breadcrumb-color;
      font-size: @font-size-small;

      &>li {
        + li:before {
          /* Tinysh hack to remove BS3's style */
          display: none;
        }

        a:link, a:visited {
          color: @breadcrumb-color;
        }

        a:hover, a:active {
          color: @breadcrumb-active-color;
          text-decoration: none;
        }

        span {
          margin: 0px 4px 0px 6px;
        }
      }
    }
  }
}


// Actions
//
//##
.page-header {
  &>.container {
    .page-actions {
      float: right;
      margin-top: (@line-height-computed * @headings-line-height) * -1 - (@line-height-computed * 1.5) + @padding-base-vertical - 1;

      .dropdown-menu {
        left: auto;
        right: 0px;

        &:after {
          left: auto;
          right: 12px;
        }
      }
    }
  }
}

/* Small displays */
@media (max-width: @screen-sm-min) {
  .page-header {
    &>.container {
      .page-actions {
        clear: both;
        float: none;
        margin-top: @line-height-computed;
      }
    }
  }
}


// Details
//
//##
.page-header {
  &>.container {
    .page-details {
      display: block;
      clear: both;
      margin-bottom: 0;

      color: @text-muted;

      a:link, a:visited {
        color: @text-muted;
      }

      a:active, a:hover {
        color: @text-color;
        text-decoration: none;
      }
    }
  }
}

/* Small displays */
@media (max-width: @screen-sm-min) {
  .page-header {
    &>.container {
      .page-details {
        margin-top: @line-height-computed;
      }
    }
  }
}


// Pills and Tabs
//
//##
.page-pills {
  border-bottom: 1px solid @page-header-border-color;
  margin: @line-height-computed * -1 0px @line-height-computed;
  padding: (@line-height-computed / 2) 0px;

  .nav-pills {
    margin: 0px;
  }
}

.page-tabs {
  border-bottom: 2px solid @page-header-border-color;
  margin: @line-height-computed * -1 0px @line-height-computed;
  padding: 0px;

  .nav-tabs {
    margin: 0px;
    margin-bottom: -2px;
  }
}
