header.scss 3.1 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
1 2 3 4
/*
 *  Application Header
 *
 */
5
header {
6 7
  transition-duration: .3s;

D
Dmitriy Zaporozhets 已提交
8
  &.navbar-empty {
9
    height: 58px;
D
Dmitriy Zaporozhets 已提交
10
    background: #FFF;
D
Dmitriy Zaporozhets 已提交
11
    border-bottom: 1px solid #EEE;
D
Dmitriy Zaporozhets 已提交
12 13

    .center-logo {
14
      margin: 11px 0;
D
Dmitriy Zaporozhets 已提交
15
      text-align: center;
16

17 18 19
      #tanuki-logo, img {
        width: 36px;
        height: 36px;
20
      }
D
Dmitriy Zaporozhets 已提交
21
    }
D
Dmitriy Zaporozhets 已提交
22 23
  }

24
  &.navbar-gitlab {
25
    padding: 0 20px;
26
    z-index: 100;
27
    margin-bottom: 0;
28
    min-height: $header-height;
29
    background-color: #fff;
30
    border: none;
31
    border-bottom: 1px solid #EEE;
D
Dmitriy Zaporozhets 已提交
32

33
    .container-fluid {
34
      width: 100% !important;
35
      filter: none;
36
      padding: 0;
37 38

      .nav > li > a {
39 40
        color: #7f8fa4;
        font-size: 18px;
41
        padding: 0;
42
        margin: ($header-height - 28) / 2 0;
43
        margin-left: 10px;
44 45 46
        height: 28px;
        width: 28px;
        line-height: 28px;
47
        text-align: center;
D
Dmitriy Zaporozhets 已提交
48

D
Dmitriy Zaporozhets 已提交
49
        &:hover, &:focus, &:active {
50
          background-color: #FFF;
D
Dmitriy Zaporozhets 已提交
51
        }
52 53
      }

54
      .navbar-toggle {
55
        color: #666;
56
        margin: 6px 0;
57
        border-radius: 0;
58 59
        position: absolute;
        right: 2px;
60 61 62 63

        &:hover {
          background-color: #EEE;
        }
64 65 66
        &.active {
          color: #7f8fa4;
        }
67 68
      }
    }
69 70
  }

D
Dmitriy Zaporozhets 已提交
71 72 73 74 75
  .header-content {
    height: $header-height;

    .title {
      margin: 0;
D
Dmitriy Zaporozhets 已提交
76
      font-size: 19px;
77
      line-height: $header-height;
78 79
      font-weight: normal;
      color: #4c4e54;
80 81 82
      text-overflow: ellipsis;
      vertical-align: top;
      white-space: nowrap;
D
Dmitriy Zaporozhets 已提交
83 84

      a {
85
        color: #4c4e54;
D
Dmitriy Zaporozhets 已提交
86 87 88 89
        &:hover {
          text-decoration: underline;
        }
      }
90 91

      .dropdown-toggle-caret {
P
Phil Hughes 已提交
92 93
        position: relative;
        top: -2px;
94 95
        width: 12px;
        line-height: 12px;
96
        margin-left: 5px;
P
Phil Hughes 已提交
97
        font-size: 10px;
98 99 100 101 102 103 104
        text-align: center;
        cursor: pointer;
      }

      .project-item-select {
        right: auto;
        left: 0;
105
      }
D
Dmitriy Zaporozhets 已提交
106
    }
107 108 109

    .navbar-collapse {
      float: right;
110
      border-top: none;
111
    }
D
Dmitriy Zaporozhets 已提交
112 113
  }

114
  .search {
D
Dmitriy Zaporozhets 已提交
115
    margin-right: 10px;
116
    margin-left: 10px;
117
    margin-top: ($header-height - 36) / 2;
D
Dmitriy Zaporozhets 已提交
118 119 120

    form {
      margin: 0;
D
Dmitriy Zaporozhets 已提交
121
      padding: 0;
D
Dmitriy Zaporozhets 已提交
122
    }
D
Dmitriy Zaporozhets 已提交
123

D
Dmitriy Zaporozhets 已提交
124
    .search-input {
125
      width: 220px;
126 127 128 129 130

      &:focus {
        @include box-shadow(none);
        outline: none;
      }
D
Dmitriy Zaporozhets 已提交
131 132
    }
  }
133 134 135 136

  .impersonation i {
    color: $red-normal;
  }
D
Dmitriy Zaporozhets 已提交
137 138
}

D
Dmitriy Zaporozhets 已提交
139
@mixin collapsed-header {
140
  margin-left: $sidebar_collapsed_width;
D
Dmitriy Zaporozhets 已提交
141 142
}

143
@media (max-width: $screen-md-max) {
D
Dmitriy Zaporozhets 已提交
144
  .header-collapsed, .header-expanded {
D
Dmitriy Zaporozhets 已提交
145
    @include collapsed-header;
D
Dmitriy Zaporozhets 已提交
146 147 148 149 150
  }
}

@media(min-width: $screen-md-max) {
  .header-collapsed {
D
Dmitriy Zaporozhets 已提交
151
    @include collapsed-header;
D
Dmitriy Zaporozhets 已提交
152 153 154
  }

  .header-expanded {
155
    margin-left: $sidebar_width;
D
Dmitriy Zaporozhets 已提交
156 157
  }
}
D
Dmitriy Zaporozhets 已提交
158 159

@media (max-width: $screen-xs-max) {
160
  header .container-fluid {
D
Dmitriy Zaporozhets 已提交
161 162 163
    font-size: 18px;

    .navbar-nav {
164 165
      margin: 0px;
      float: none !important;
D
Dmitriy Zaporozhets 已提交
166 167 168 169 170 171

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

D
Dmitriy Zaporozhets 已提交
172 173 174 175 176 177 178 179 180 181 182
    .navbar-collapse {
      padding-left: 5px;

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

        a {
          margin-left: 8px !important;
        }
      }
D
Dmitriy Zaporozhets 已提交
183 184 185
    }
  }
}