Skip to content
Snippets Groups Projects
header.scss 4.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    /*
     *  Application Header
     *
     */
    
      transition: padding $sidebar-transition-duration;
    
      &.navbar-empty {
    
        background: #fff;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
        border-bottom: 1px solid $btn-gray-hover;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    
        .center-logo {
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
          text-align: center;
    
          .tanuki-logo, img {
    
            height: 36px;
    
        margin-bottom: 0;
    
        height: $header-height;
    
        background-color: $background-color;
    
        border-bottom: 1px solid $border-color;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
        @media (max-width: $screen-xs-min) {
          padding: 0 16px;
        }
    
    
        &.with-horizontal-nav {
          border-bottom: none;
        }
    
    
        .container-fluid {
    
          width: 100% !important;
    
            color: $gl-icon-color;
    
            font-size: 18px;
    
            margin: ($header-height - 28) / 2 0;
    
            min-width: 28px;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
    
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
            &:hover, &:focus, &:active {
    
              background-color: $background-color;
    
    Dmitriy Zaporozhets's avatar
    Dmitriy Zaporozhets committed
            }
    
          .navbar-toggle {
    
            border-radius: 0;
    
            position: absolute;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
            right: -10px;
            padding: 6px 10px;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
              background-color: $btn-gray-hover;
    
              color: $gl-icon-color;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
    
        .side-nav-toggle {
          position: absolute;
          left: -10px;
    
    Clement Ho's avatar
    Clement Ho committed
          margin: 7px 0;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
          padding: 6px 10px;
          border: none;
          background-color: $background-color;
    
          &:hover {
            background-color: $btn-gray-hover;
          }
    
          &:focus {
            outline: none;
          }
        }
    
      .header-content {
    
        position: relative;
    
        height: $header-height;
    
        @media (min-width: $screen-sm-min) {
          padding-right: 0;
        }
    
        .dropdown-menu {
          margin-top: -5px;
        }
    
    
          transition-duration: .3s;
          z-index: 999;
    
    
    Ashley Dumaine's avatar
    Ashley Dumaine committed
          #logo {
            position: relative;
            left: -50%;
          }
    
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
          @media (max-width: $screen-xs-max) {
    
        .title {
    
          position: relative;
          padding-right: 20px;
    
          margin: 0;
    
          font-size: 19px;
    
          line-height: $header-height;
    
          font-weight: normal;
    
          color: $gl-text-color;
    
          overflow: hidden;
    
          text-overflow: ellipsis;
          vertical-align: top;
          white-space: nowrap;
    
          @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
            max-width: 300px;
          }
    
          @media (max-width: $screen-xs-max) {
    
            color: $gl-text-color;
    
            &:hover {
              text-decoration: underline;
            }
          }
    
            color: $gl-text-color;
            border: transparent;
            background: transparent;
    
            line-height: 19px;
            margin-top: (($header-height - 19) / 2);
    
            padding: 0;
    
    Phil Hughes's avatar
    Phil Hughes committed
            font-size: 10px;
    
            text-align: center;
            cursor: pointer;
          }
    
          .project-item-select {
            right: auto;
            left: 0;
    
    
        .navbar-collapse {
          float: right;
    
    Annabel Dunstone's avatar
    Annabel Dunstone committed
          @media (max-width: $screen-xs-max) {
    
      .project-item-select-holder {
        display: inline;
      }
    
    
      .impersonation i {
        color: $red-normal;
      }
    
    @media (max-width: $screen-xs-max) {
    
      header .container-fluid {
    
        font-size: 18px;
    
        .navbar-nav {
    
          float: none !important;
    
    
          .visible-xs, .visable-sm {
            display: table-cell !important;
          }
        }
    
    
        .navbar-collapse {
          padding-left: 5px;
    
    
          .nav > li {
    
            display: table-cell;
            width: 1%;
          }
    
    
    .header-user {
      .dropdown-menu-nav {
        width: 140px;
        margin-top: -5px;
      }
    }
    
    .header-user-avatar {
      float: left;
      margin-right: 5px;
      border-radius: 50%;
    }