header.scss 3 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
      filter: none;
15 16

      .nav > li > a {
17
        font-size: 14px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
18 19 20
        line-height: 32px;
        padding: 6px 10px;

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
21
        &:hover, &:focus, &:active {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
22 23
          background: none;
        }
24 25 26 27 28 29 30
      }

      /** NAV block with links and profile **/
      .nav {
        float: right;
        margin-right: 0;
      }
31 32 33

      .navbar-toggle {
        color: $style_color;
kingcody's avatar
kingcody committed
34
        margin: 0;
35 36 37 38 39 40 41 42 43 44 45 46 47
        padding: 10px;
        border-radius: 0;

        button i { font-size: 22px; }

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

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

48 49 50 51 52
    .turbolink-spinner {
      font-size: 20px;
      margin-right: 10px;
    }

53 54 55 56
    @media (max-width: $screen-xs-max) {
      border-width: 0;
      font-size: 18px;

57
      .title {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
58
        @include str-truncated(70%);
59 60 61
      }

      .navbar-collapse {
62
        margin-top: 47px;
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
        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;
        }
      }
84 85 86
    }
  }

87 88
  .container {
    width: 100% !important;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
89
    padding: 0px;
90 91
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
92
  /**
93
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
94 95 96 97
   * Logo holder
   *
   */
  .app_logo {
98
    float: left;
99
    margin-right: 9px;
100

101
    a {
102
      float: left;
103 104 105 106 107 108 109 110
      padding: 5px 0;
      height: 46px;
      width: 52px;
      text-align: center;

      img {
        width: 36px;
        height: 36px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
111 112
      }
    }
113 114 115
    &:hover {
      background-color: #EEE;
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
116 117 118
  }

  /**
119
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
120 121 122
   * Project / Area name
   *
   */
123
  .title {
124 125 126
    position: relative;
    float: left;
    margin: 0;
127
    margin-left: 5px;
128
    @include header-font;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
129
    @include str-truncated(37%);
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
130 131
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
132
  .profile-pic {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
133 134 135 136
    padding: 0px !important;
    width: 46px;
    height: 46px;
    margin-left: 5px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
137
    img {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
138 139
      width: 46px;
      height: 46px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
140 141 142
    }
  }

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
143
  /**
144
   *
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
145 146 147
   * Search box
   *
   */
148
  .search {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
149
    margin-right: 10px;
150
    margin-left: 10px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
151
    margin-top: 8px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
152 153 154

    form {
      margin: 0;
155
      padding: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
156
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
157

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
158
    .search-input {
159
      background-image: image-url("icon-search.png");
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
160 161
      background-repeat: no-repeat;
      background-position: 10px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
162 163
      height: inherit;
      padding: 4px 6px;
164
      padding-left: 25px;
165
      font-size: 13px;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
166
      @include border-radius(3px);
167
      border: 1px solid #c6c6c6;
168
      box-shadow: none;
169
      @include transition(all 0.15s ease-in 0s);
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
170 171 172 173
    }
  }
}

174 175 176
.search .search-input {
  width: 300px;
  &:focus {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
177
    width: 330px;
178 179 180 181 182 183 184
  }
}

@media (max-width: 1200px)  {
  .search .search-input {
    width: 200px;
    &:focus {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
185
      width: 230px;
186 187 188
    }
  }
}
Drew Blessing's avatar
Drew Blessing committed
189 190 191 192 193 194

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