header.scss 5.1 KB
Newer Older
D
Dmitriy Zaporozhets 已提交
1 2 3 4
/*
 *  Application Header
 *
 */
5
header {
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
  &.navbar-gitlab {
    .navbar-inner {
      height:45px;
      padding: 5px;
      background: #F1F1F1;

      .nav > li > a {
        color: $style_color;
        text-shadow: 0 1px 0 #fff;
      }

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

D
Dmitriy Zaporozhets 已提交
25
  z-index:10;
26
  /*height:60px;*/
D
Dmitriy Zaporozhets 已提交
27 28

  /**
29
   *
D
Dmitriy Zaporozhets 已提交
30 31 32 33
   * Logo holder
   *
   */
  .app_logo {
34
    width:170px;
D
Dmitriy Zaporozhets 已提交
35
    float:left;
36
    a {
D
Dmitriy Zaporozhets 已提交
37
      float:left;
38
      padding: 0px;
D
Dmitriy Zaporozhets 已提交
39

40
      h1 {
R
randx 已提交
41
        width:90px;
42
        background: url('logo_dark.png') no-repeat 0px -3px;
D
Dmitriy Zaporozhets 已提交
43 44
        float:left;
        margin-left:5px;
45 46
        font-size:30px;
        line-height:48px;
47 48
        font-weight:normal;
        color:$style_color;
D
Dmitriy Zaporozhets 已提交
49 50
        text-shadow: 0 1px 1px #FFF;
        padding-left:50px;
51 52
        height:40px;
        font-family: 'Korolev', sans-serif;
D
Dmitriy Zaporozhets 已提交
53
      }
54

D
Dmitriy Zaporozhets 已提交
55 56 57 58 59 60 61 62 63 64 65 66
    }
    .separator {
      float: left;
      height: 60px;
      width: 1px;
      background: white;
      border-left: 1px solid #DDD;
      margin-top: -10px;
    }
  }

  /**
67
   *
D
Dmitriy Zaporozhets 已提交
68 69 70 71
   * Project / Area name
   *
   */
  .project_name {
72
    position:relative;
D
Dmitriy Zaporozhets 已提交
73 74 75
    float:left;
    margin:0;
    margin-right:30px;
76 77
    font-size:30px;
    line-height:48px;
78
    font-weight:normal;
D
Dmitriy Zaporozhets 已提交
79
    color:$style_color;
D
Dmitriy Zaporozhets 已提交
80
    text-shadow: 0 1px 1px #FFF;
81
    font-family: 'Korolev', sans-serif;
D
Dmitriy Zaporozhets 已提交
82 83 84
  }

  /**
85
   *
D
Dmitriy Zaporozhets 已提交
86 87 88
   * Search box
   *
   */
89 90
  .search {
    margin-right: 45px;
91 92
    margin-left:10px;
    margin-top: 2px;
D
Dmitriy Zaporozhets 已提交
93

D
Dmitriy Zaporozhets 已提交
94 95
    .search-input {
      @extend .span2;
D
Dmitriy Zaporozhets 已提交
96 97 98 99
      background-image: url("icon-search.png");
      background-repeat: no-repeat;
      background-position: 10px;
      padding-left:25px;
100 101 102 103 104 105 106
      font-size: 13px;
      @include border-radius(2px);
      border:1px solid #c6c6c6;
      box-shadow:none;
      &:focus {
        @extend .span3;
      }
D
Dmitriy Zaporozhets 已提交
107 108 109 110
    }
  }

  /**
111
   *
D
Dmitriy Zaporozhets 已提交
112 113 114 115 116 117
   * Account box
   *
   */
  .account-box {
    position: absolute;
    right: 0;
118
    top: 6px;
D
Dmitriy Zaporozhets 已提交
119 120 121 122 123 124 125
    z-index: 10000;
    width: 128px;
    font-size: 11px;
    float: right;
    display: block;
    cursor: pointer;
    img {
126
      @include border-radius(2px);
127
      right: 5px;
D
Dmitriy Zaporozhets 已提交
128
      position: absolute;
129 130
      width: 28px;
      height: 28px;
D
Dmitriy Zaporozhets 已提交
131
      display: block;
132
      top:1px;
D
Dmitriy Zaporozhets 已提交
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
      &:after {
        content: " ";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        float: right;
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 0;
        background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255, 255, 255, 0.15)), to(rgba(0, 0, 0, 0.25))), -webkit-gradient(linear, left top, right bottom, color-stop(0, rgba(255, 255, 255, 0)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.501, rgba(255, 255, 255, 0)), color-stop(1, rgba(255, 255, 255, 0)));
        background: -moz-linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), -moz-linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
        background: linear-gradient(top, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.25)), linear-gradient(left top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0));
        -webkit-background-origin: border-box;
        -moz-background-origin: border;
  background-origin: border-box; } } }

  .account-box {
    &.hover {
    height: 138px; }
    &:hover > .account-links {
  display: block; } }

  .account-links {
    background: #79C3E0;
    display: none;
    border-radius: 5px;
    width: 100px;
    margin-top: 0;
    float: right;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    position: relative;
    &:before {
      content: ".";
      width: 0;
      height: 0;
      position: absolute;
      border: 5px solid transparent;
      border-color: rgba(255, 255, 255, 0);
      border-bottom-color: #333;
      text-indent: -9999px;
      top: -10px;
      line-height: 0;
      right: 10px;
    z-index: 10; }
    background: #333;
    display: none;
    z-index: 100000;
183
    @include border-radius(4px);
D
Dmitriy Zaporozhets 已提交
184 185 186
    width: 100px;
    position: absolute;
    right: 10px;
187
    top: 42px;
D
Dmitriy Zaporozhets 已提交
188 189 190 191 192 193 194 195 196
    margin-top: 0;
    float: right;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    a {
      color: #EEE;
      padding: 6px 10px;
      display: block;
      text-shadow: none;
      border-bottom: 1px solid #555;
197
      font-size: 12px;
D
Dmitriy Zaporozhets 已提交
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
      &:hover {
        color:#eee;
        background: #444;
      }
    }
  }

  .account-box.hover .arrow-up {
    top: 41px;
    right: 6px;
    position: absolute; }

  .account-links a {
    &:first-child {
      -webkit-border-top-left-radius: 5px;
      -webkit-border-top-right-radius: 5px;
      -moz-border-radius-topleft: 5px;
      -moz-border-radius-topright: 5px;
      border-top-left-radius: 5px;
    border-top-right-radius: 5px; }
    &:last-child {
      -webkit-border-bottom-right-radius: 5px;
      -webkit-border-bottom-left-radius: 5px;
      -moz-border-radius-bottomright: 5px;
      -moz-border-radius-bottomleft: 5px;
      border-bottom-right-radius: 5px;
      border-bottom-left-radius: 5px;
  border-bottom: 0; } }
}