new_nav.scss 2.0 KB
Newer Older
P
Phil Hughes 已提交
1 2 3 4
@import "framework/variables";
@import 'framework/tw_bootstrap_variables';
@import "bootstrap/variables";

P
Phil Hughes 已提交
5 6
$new-navbar-bg: #2d2d2d;

P
Phil Hughes 已提交
7
header.navbar-gitlab-new {
P
Phil Hughes 已提交
8 9
  color: $gray-normal;
  background-color: $new-navbar-bg;
P
Phil Hughes 已提交
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

  .header-content {
    padding-left: 0;

    .title-container {
      padding-top: 0;
      overflow: visible;
    }

    .title {
      padding-top: 14px;
      padding-right: 10px;
      color: currentColor;

      @media (min-width: $screen-sm-min) {
        padding-right: 20px;
      }
    }

    .dropdown.open {
      > a {
P
Phil Hughes 已提交
31
        border-bottom-color: $blue-400;
P
Phil Hughes 已提交
32 33 34 35 36 37 38 39 40 41
      }
    }

    .dropdown-menu {
      margin-top: 4px;
      min-width: 130px;
    }
  }

  .navbar-collapse {
P
Phil Hughes 已提交
42
    color: $gray-dark;
P
Phil Hughes 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
  }

  .container-fluid {
    .navbar-toggle {
      border-left: 1px solid currentColor;

      &:hover,
      &:focus,
      &.active {
        color: currentColor;
        background-color: transparent;
      }
    }

    .navbar-toggle-left {
      right: 0;
      border-left: 0;
      border-right: 1px solid currentColor;
    }

    .navbar-nav {
      @media (max-width: $screen-xs-max) {
        padding-right: 10px;
      }
    }

    .nav > li > a:hover,
    .nav > li > a:focus {
P
Phil Hughes 已提交
71
      color: $gray-normal;
P
Phil Hughes 已提交
72 73

      > svg {
P
Phil Hughes 已提交
74
        fill: $gray-normal;
P
Phil Hughes 已提交
75 76 77 78 79 80 81 82
      }
    }
  }
}

.navbar-sub-nav {
  display: flex;
  margin-bottom: 0;
P
Phil Hughes 已提交
83
  color: $gray-dark;
P
Phil Hughes 已提交
84 85 86

  > li {
    &.active > a {
P
Phil Hughes 已提交
87
      border-bottom-color: $blue-400;
P
Phil Hughes 已提交
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
    }

    > a {
      display: block;
      padding: 16px 9px 13px;
      font-size: 13px;
      color: currentColor;
      border-bottom: 3px solid transparent;

      @media (min-width: $screen-sm-min) {
        padding: 15px 15px 12px;
        font-size: 14px;
      }

      &:hover,
      &:focus {
P
Phil Hughes 已提交
104
        color: $gray-normal;
P
Phil Hughes 已提交
105 106 107 108 109 110 111 112 113 114 115 116 117
        text-decoration: none;
      }
    }
  }

  .dropdown-chevron {
    font-size: 12px;
  }
}

.search {
  form,
  .search-input {
P
Phil Hughes 已提交
118
    background-color: $gl-gray-light;
P
Phil Hughes 已提交
119 120 121 122
  }

  .search-input,
  .search-input::placeholder {
P
Phil Hughes 已提交
123
    color: $gray-normal;
P
Phil Hughes 已提交
124 125
  }
}