new_nav.scss 2.4 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

  .header-content {
    padding-left: 0;

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

    .title {
      padding-top: 14px;
P
Phil Hughes 已提交
21
      padding-right: 9px;
P
Phil Hughes 已提交
22 23 24
      color: currentColor;

      @media (min-width: $screen-sm-min) {
P
Phil Hughes 已提交
25 26 27 28 29 30 31 32 33
        padding-right: 15px;
      }

      a {
        &:hover,
        &:focus {
          color: currentColor;
          text-decoration: none;
        }
P
Phil Hughes 已提交
34 35 36 37 38
      }
    }

    .dropdown.open {
      > a {
P
Phil Hughes 已提交
39
        border-bottom-color: $blue-400;
P
Phil Hughes 已提交
40 41 42 43 44 45
      }
    }

    .dropdown-menu {
      margin-top: 4px;
      min-width: 130px;
P
Phil Hughes 已提交
46 47 48 49 50

      @media (max-width: $screen-xs-max) {
        left: auto;
        right: 0;
      }
P
Phil Hughes 已提交
51 52 53 54
    }
  }

  .navbar-collapse {
P
Phil Hughes 已提交
55
    color: $gray-dark;
P
Phil Hughes 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
  }

  .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 已提交
84
      color: $gray-normal;
P
Phil Hughes 已提交
85 86

      > svg {
P
Phil Hughes 已提交
87
        fill: $gray-normal;
P
Phil Hughes 已提交
88 89 90 91 92 93 94 95
      }
    }
  }
}

.navbar-sub-nav {
  display: flex;
  margin-bottom: 0;
P
Phil Hughes 已提交
96
  color: $gray-dark;
P
Phil Hughes 已提交
97 98 99

  > li {
    &.active > a {
P
Phil Hughes 已提交
100
      border-bottom-color: $blue-400;
P
Phil Hughes 已提交
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
    }

    > 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 已提交
117
        color: $gray-normal;
P
Phil Hughes 已提交
118 119 120 121 122 123 124 125 126 127 128 129 130
        text-decoration: none;
      }
    }
  }

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

.search {
  form,
  .search-input {
P
Phil Hughes 已提交
131
    background-color: $gl-gray-light;
P
Phil Hughes 已提交
132 133
  }

134
  .search-input {
P
Phil Hughes 已提交
135
    color: $gray-normal;
P
Phil Hughes 已提交
136
  }
P
Phil Hughes 已提交
137

138 139 140 141
  .search-input::placeholder {
    color: $gray-dark;
  }

P
Phil Hughes 已提交
142 143 144 145 146 147 148 149 150 151 152 153
  .location-badge {
    color: $gray-normal;
    background-color: #2d2d2d;
  }

  &.search-active {
    .search-input-wrap {
      i {
        color: $gray-normal;
      }
    }
  }
P
Phil Hughes 已提交
154
}