nav.scss 5.6 KB
Newer Older
1 2 3 4
.nav-links {
  padding: 0;
  margin: 0;
  list-style: none;
5
  height: auto;
6 7 8 9 10 11 12
  border-bottom: 1px solid $border-color;

  li {
    display: inline-block;

    a {
      display: inline-block;
13
      padding: 14px;
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
      padding-top: $gl-padding;
      padding-bottom: 11px;
      margin-bottom: -1px;
      font-size: 15px;
      line-height: 28px;
      color: #959494;
      border-bottom: 2px solid transparent;

      &:hover, &:active, &:focus {
        text-decoration: none;
        outline: none;
      }
    }

    &.active a {
29 30
      border-bottom: 2px solid $link-underline-blue;
      color: $black;
31 32 33 34 35 36 37 38 39
    }

    .badge {
      font-weight: normal;
      background-color: #eee;
      color: #78a;
    }
  }
}
40 41

.top-area {
42 43
  @include clearfix;

44
  border-bottom: 1px solid #eee;
45 46 47 48 49 50 51

  .nav-text {
    padding-top: 16px;
    padding-bottom: 11px;
    display: inline-block;
    width: 50%;
    line-height: 28px;
52 53 54 55 56

    /* Small devices (phones, tablets, 768px and lower) */
    @media (max-width: $screen-sm-min) {
      width: 100%;
    }
57 58
  }

59 60
  .nav-search {
    display: inline-block;
61
    width: 100%;
62 63 64
    padding: 11px 0;

    /* Small devices (phones, tablets, 768px and lower) */
65 66
    @media (min-width: $screen-sm-min) {
      width: 50%;
67 68 69
    }
  }

70 71 72
  .nav-links {
    display: inline-block;
    width: 50%;
73
    margin-bottom: 0;
74
    border-bottom: none;
75 76

    /* Small devices (phones, tablets, 768px and lower) */
77
    @media (max-width: $screen-sm-max) {
78 79
      width: 100%;
    }
80 81 82 83 84 85 86 87
  }

  .nav-controls {
    width: 50%;
    display: inline-block;
    float: right;
    text-align: right;
    padding: 11px 0;
88
    margin-bottom: 0;
89 90

    > .dropdown {
91
      margin-right: $gl-padding-top;
92
      display: inline-block;
93 94 95 96

      &:last-child {
        margin-right: 0;
      }
97 98
    }

99
    > .btn {
100
      margin-right: $gl-padding-top;
101
      display: inline-block;
102 103 104 105 106 107 108 109

      &:last-child {
        margin-right: 0;
      }
    }

    > .btn-grouped {
      float: none;
110
    }
111

112 113
    > form {
      display: inline-block;
114
      margin-top: -1px;
115 116
    }

A
Alfredo Sumaran 已提交
117 118 119 120
    .icon-label {
      display: none;
    }

121
    input {
P
Phil Hughes 已提交
122
      height: 35px;
123
      display: inline-block;
124
      position: relative;
125
      top: 2px;
126
      margin-right: $gl-padding-top;
127 128 129 130 131

      /* Medium devices (desktops, 992px and up) */
      @media (min-width: $screen-md-min) { width: 200px; }

      /* Large devices (large desktops, 1200px and up) */
132
      @media (min-width: $screen-lg-min) { width: 250px; }
133

134 135 136 137 138 139 140
      &.input-short {
        /* Medium devices (desktops, 992px and up) */
        @media (min-width: $screen-md-min) { width: 170px; }

        /* Large devices (large desktops, 1200px and up) */
        @media (min-width: $screen-lg-min) { width: 210px; }
      }
141 142
    }

143 144 145 146 147 148
    .project-filter-form {
      input {
        background-color: $background-color;
      }
    }

149 150 151 152
    @media (max-width: $screen-xs-max) {
      padding-bottom: 0;

      .btn, form, .dropdown, .dropdown-menu-toggle, .form-control {
153
        margin: 0 0 10px;
A
Alfredo Sumaran 已提交
154
        display: block;
155
        width: 100%;
A
Alfredo Sumaran 已提交
156 157 158 159 160
      }

      form {
        display: block;
        height: auto;
161 162 163

        input {
          width: 100%;
A
Alfredo Sumaran 已提交
164
          margin: 0 0 10px;
165
        }
A
Alfredo Sumaran 已提交
166 167
      }

A
Alfredo Sumaran 已提交
168
      .input-short {
A
Alfredo Sumaran 已提交
169 170 171 172 173 174
        width: 100%;
      }

      .icon-label {
        display: inline-block;
      }
175 176 177 178 179 180

      // Applies on /dashboard/issues
      .project-item-select-holder {
        display: block;
        margin: 0;
      }
181 182 183 184 185 186 187 188 189 190
    }

    /* Small devices (tablets, 768px and lower) */
    @media (max-width: $screen-sm-max) {
      width: 100%;
      text-align: left;

      input {
        width: 300px;
      }
191 192 193
    }
  }
}
194 195

.layout-nav {
196
  position: fixed;
A
Annabel Dunstone 已提交
197
  top: $header-height;
198
  width: 100%;
P
Phil Hughes 已提交
199
  z-index: 11;
D
Dmitriy Zaporozhets 已提交
200
  background: $background-color;
201
  border-bottom: 1px solid $border-color;
202
  transition-duration: .3s;
203

204 205 206 207
  .container-fluid {
    position: relative;
  }

208 209
  .controls {
    float: right;
210
    padding: 7px 0 0;
211

A
Annabel Dunstone 已提交
212 213 214 215 216 217 218 219 220
    @media (max-width: $screen-xs-min) {
      float: none;
      padding: 0 9px;

      .dropdown-new {
        width: 100%;
      }
    }

221 222 223 224 225 226 227 228 229 230 231 232 233
    i {
      color: $layout-link-gray;
    }

    .fa-rss,
    .fa-cog {
      font-size: 16px;
    }

    .fa-caret-down {
      margin-left: 5px;
      color: $gl-icon-color;
    }
234 235 236

    .dropdown {
      margin-left: 7px;
A
Annabel Dunstone 已提交
237 238 239 240

      @media (max-width: $screen-xs-min) {
        margin-left: 0;
      }
241 242 243 244

      li.active {
        font-weight: bold;
      }
245
    }
246 247
  }

248 249
  .nav-links {
    border-bottom: none;
250 251 252
    height: 51px;
    white-space: nowrap;
    overflow-x: auto;
A
Annabel Dunstone 已提交
253 254 255 256 257
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    &::-webkit-scrollbar {
      display: none;
    }
258

A
Annabel Dunstone 已提交
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
    .fa-arrow-right {
      display: none;
      position: absolute;
      color: #7e7c7c;
      bottom: 11px;
      right: 0;
      padding: 10px 10px 10px 25px;
      background: -webkit-linear-gradient(left, rgba(250, 250, 250, 0.4), $background-color 45%);

      &.end-scroll {
        opacity: 0;
        transition-duration: .3s;
      }
    }

    @media (max-width: 790px) {
      margin-right: 19px;

      .fa-arrow-right {
        display: block;
        transition-duration: .3s;
      }
    }

283 284
    li {

285 286 287 288 289 290 291 292 293 294 295 296 297 298
      a {
        padding-top: 10px;
      }

      a, i {
        color: $layout-link-gray;
      }

      &.active {
        a, i {
          color: $black;
        }
      }

299 300 301 302
      .badge {
        color: $gl-icon-color;
      }
    }
A
Annabel Dunstone 已提交
303 304 305 306 307

    &.end-scroll {
      margin-right: 0;
      transition-duration: .3s;
    }
308
  }
309 310 311 312

}

.page-with-layout-nav {
313
  margin-top: $header-height + 2;
A
Annabel Dunstone 已提交
314 315 316 317 318 319

  &.controls-dropdown-visible {
    @media (max-width: $screen-xs-min) {
      margin-top: 96px;
    }
  }
A
Annabel Dunstone 已提交
320 321

  .right-sidebar {
322
    top: ($header-height * 2) + 2;
A
Annabel Dunstone 已提交
323
  }
324
}