new_nav.scss 2.7 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
$new-navbar-bg: #380D75;
P
Phil Hughes 已提交
6

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: $white-light;
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: $white-light;
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
  }

  .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;
      }
    }

P
Phil Hughes 已提交
82 83 84 85 86
    .nav > li > a {
      opacity: .9;
      will-change: opacity;
    }

P
Phil Hughes 已提交
87 88
    .nav > li > a:hover,
    .nav > li > a:focus {
P
Phil Hughes 已提交
89 90
      color: $white-light;
      opacity: 1;
P
Phil Hughes 已提交
91 92

      > svg {
P
Phil Hughes 已提交
93
        fill: $white-light;
P
Phil Hughes 已提交
94 95 96 97 98 99 100 101
      }
    }
  }
}

.navbar-sub-nav {
  display: flex;
  margin-bottom: 0;
P
Phil Hughes 已提交
102
  color: $white-light;
P
Phil Hughes 已提交
103 104

  > li {
P
Phil Hughes 已提交
105 106 107 108 109 110 111
    &.active > a,
    a:hover,
    a:focus {
      border-bottom-color: $white-light;
      text-decoration: none;
      outline: 0;
      opacity: 1;
P
Phil Hughes 已提交
112 113 114 115 116 117 118 119
    }

    > a {
      display: block;
      padding: 16px 9px 13px;
      font-size: 13px;
      color: currentColor;
      border-bottom: 3px solid transparent;
P
Phil Hughes 已提交
120 121
      opacity: .9;
      will-change: opacity;
P
Phil Hughes 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135

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

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

.search {
P
Phil Hughes 已提交
136 137 138 139 140 141 142 143 144 145 146 147
  form {
    border-color: #2D0573;

    &:hover {
      border-color: rgba($white-light, .5);
    }
  }

  &.search-active form {
    border-color: $white-light;
  }

P
Phil Hughes 已提交
148 149
  form,
  .search-input {
P
Phil Hughes 已提交
150
    background-color: #451C7F;
P
Phil Hughes 已提交
151 152
  }

153
  .search-input {
P
Phil Hughes 已提交
154
    color: $white-light;
P
Phil Hughes 已提交
155
  }
P
Phil Hughes 已提交
156

157
  .search-input::placeholder {
P
Phil Hughes 已提交
158
    color: $white-light;
159 160
  }

P
Phil Hughes 已提交
161
  .location-badge {
P
Phil Hughes 已提交
162
    color: $white-light;
P
Phil Hughes 已提交
163
    background-color: $new-navbar-bg;
P
Phil Hughes 已提交
164 165 166 167 168
  }

  &.search-active {
    .search-input-wrap {
      i {
P
Phil Hughes 已提交
169
        color: $white-light;
P
Phil Hughes 已提交
170 171 172
      }
    }
  }
P
Phil Hughes 已提交
173
}