nav.scss 3.2 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
      color: #000;
30 31 32 33 34 35 36 37 38 39
      border-bottom: 2px solid #4688f1;
    }

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

  .nav-links {
    display: inline-block;
    width: 50%;
62
    margin-bottom: 0;
63
    border-bottom: none;
64 65

    /* Small devices (phones, tablets, 768px and lower) */
66
    @media (max-width: $screen-sm-max) {
67 68
      width: 100%;
    }
69 70 71 72 73 74 75 76
  }

  .nav-controls {
    width: 50%;
    display: inline-block;
    float: right;
    text-align: right;
    padding: 11px 0;
77
    margin-bottom: 0;
78 79

    > .dropdown {
80
      margin-right: $gl-padding-top;
81
      display: inline-block;
82 83 84 85

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

88
    > .btn {
89
      margin-right: $gl-padding-top;
90
      display: inline-block;
91 92 93 94 95 96 97 98

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

    > .btn-grouped {
      float: none;
99
    }
100

101 102
    > form {
      display: inline-block;
103
      margin-top: -1px;
104 105
    }

A
Alfredo Sumaran 已提交
106 107 108 109
    .icon-label {
      display: none;
    }

110
    input {
111
      height: 34px;
112
      display: inline-block;
113
      position: relative;
114
      top: 2px;
115
      margin-right: $gl-padding-top;
116 117 118 119 120

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

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

123 124 125 126 127 128 129
      &.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; }
      }
130 131
    }

132 133 134 135
    @media (max-width: $screen-xs-max) {
      padding-bottom: 0;

      .btn, form, .dropdown, .dropdown-menu-toggle, .form-control {
136
        margin: 0 0 10px;
A
Alfredo Sumaran 已提交
137
        display: block;
138
        width: 100%;
A
Alfredo Sumaran 已提交
139 140 141 142 143
      }

      form {
        display: block;
        height: auto;
144 145 146

        input {
          width: 100%;
A
Alfredo Sumaran 已提交
147
          margin: 0 0 10px;
148
        }
A
Alfredo Sumaran 已提交
149 150
      }

A
Alfredo Sumaran 已提交
151
      .input-short {
A
Alfredo Sumaran 已提交
152 153 154 155 156 157
        width: 100%;
      }

      .icon-label {
        display: inline-block;
      }
158 159 160 161 162 163

      // Applies on /dashboard/issues
      .project-item-select-holder {
        display: block;
        margin: 0;
      }
164 165 166 167 168 169 170 171 172 173
    }

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

      input {
        width: 300px;
      }
174 175 176
    }
  }
}