header.scss 3.82 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1 2 3 4
/*
 *  Application Header
 *
 */
5
header {
6
  &.navbar-gitlab {
7
    z-index: 100;
8
    margin-bottom: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
9
    min-height: 40px;
10
    border: none;
11
    width: 100%;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
12

13
    .navbar-inner {
14 15
      background: #FFF;
      border-bottom: 1px solid #DDD;
16
      filter: none;
17

18 19 20 21 22 23 24 25 26 27 28
      .title {
        color: #555;

        a {
          color: #555;
          &:hover {
            text-decoration: underline;
          }
        }
      }

29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
      .app_logo {
        @media (max-width: $screen-md-max) {
          width: 52px;
          h3 {
            display: none;
          }
        }
        border-bottom: 1px solid transparent;
        margin-bottom: -1px;

        a {
          padding: 5px 8px;

          img {
            float: left;
          }

          h3 {
            width: 158px;
            float: left;
            margin: 0;
            margin-left: 20px;
            font-size: 18px;
            line-height: 34px;
            font-weight: normal;
          }
        }
      }

58
      .nav > li > a {
59
        color: #666;
60
        font-size: 14px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
61 62 63
        line-height: 32px;
        padding: 6px 10px;

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
64
        &:hover, &:focus, &:active {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
65 66
          background: none;
        }
67 68 69 70 71 72 73
      }

      /** NAV block with links and profile **/
      .nav {
        float: right;
        margin-right: 0;
      }
74 75 76

      .navbar-toggle {
        color: $style_color;
kingcody's avatar
kingcody committed
77
        margin: 0;
78 79 80 81 82 83 84 85 86 87 88 89 90
        padding: 10px;
        border-radius: 0;

        button i { font-size: 22px; }

        &.collapsed { background-color: transparent !important;}

        &:hover {
          background-color: #EEE;
        }
      }
    }

91 92 93 94 95
    .turbolink-spinner {
      font-size: 20px;
      margin-right: 10px;
    }

96 97 98 99
    @media (max-width: $screen-xs-max) {
      border-width: 0;
      font-size: 18px;

100
      .title {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
101
        @include str-truncated(70%);
102 103 104
      }

      .navbar-collapse {
105
        margin-top: 47px;
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
        padding-right: 0;
        padding-left: 0;
      }

      .navbar-nav {
        margin: 5px 0;

        .visible-xs, .visable-sm {
          display: table-cell !important;
        }
      }

      li {
        display: table-cell;
        width: 1%;

        a {
          text-align: center;
          font-size: 18px !important;
        }
      }
127 128 129
    }
  }

130 131
  .container {
    width: 100% !important;
132
    padding: 0px;
133 134
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
135
  /**
136
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
137 138 139 140
   * Logo holder
   *
   */
  .app_logo {
141
    float: left;
142
    margin-right: 9px;
143

144
    a {
145
      float: left;
146
      height: 46px;
147
      width: 100%;
148 149 150 151

      img {
        width: 36px;
        height: 36px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
152 153
      }
    }
154 155 156
    &:hover {
      background-color: #EEE;
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
157 158 159
  }

  /**
160
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
161 162 163
   * Project / Area name
   *
   */
164
  .title {
165 166 167
    position: relative;
    float: left;
    margin: 0;
168 169 170 171 172
    margin-left: 25px;
    font-size: 18px;
    line-height: 44px;
    font-weight: normal;

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
173
    @include str-truncated(37%);
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
174 175
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
176
  .profile-pic {
177 178 179 180
    padding: 0px !important;
    width: 46px;
    height: 46px;
    margin-left: 5px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
181
    img {
182 183
      width: 46px;
      height: 46px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
184 185 186
    }
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
187
  /**
188
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
189 190 191
   * Search box
   *
   */
192
  .search {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
193
    margin-right: 10px;
194
    margin-left: 10px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
195
    margin-top: 8px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
196 197 198

    form {
      margin: 0;
199
      padding: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
200
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
201

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
202
    .search-input {
203
      background-image: image-url("icon-search.png");
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
204 205
      background-repeat: no-repeat;
      background-position: 10px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
206 207
      height: inherit;
      padding: 4px 6px;
208
      padding-left: 25px;
209
      font-size: 13px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
210
      @include border-radius(3px);
211
      border: 1px solid #DDD;
212
      box-shadow: none;
213
      @include transition(all 0.15s ease-in 0s);
214
      background-color: #f5f5f5;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
215 216 217 218
    }
  }
}

219 220 221
.search .search-input {
  width: 300px;
  &:focus {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
222
    width: 330px;
223 224 225 226 227 228 229
  }
}

@media (max-width: 1200px)  {
  .search .search-input {
    width: 200px;
    &:focus {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
230
      width: 230px;
231 232 233
    }
  }
}
Drew Blessing's avatar
Drew Blessing committed
234 235 236 237 238 239

@media (max-width: $screen-xs-max) {
  #nprogress .spinner {
    right: 35px !important;
  }
}