summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/app/shared/_headers.scss
blob: 6f8f0fe7e66c488bab529213bdf4e4bf3a125561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Headers
// ----------------------------------------

// -- File Variables ----------------------

$border-light:#74B8EA;
$background: #F0F0F3;
$user-context-width:227px;


// ----------------------------------------

.ext-texture {
  background:transparent image-url('gradients/white-texture-x63.png') left top repeat-x;
}

.ext-header {
  max-width:$site-total-width - 2px; // Minus the borders
  height:63px;
  @extend .ext-bradius;
}


//  Header Object
// ----------------------------------------

header#main {
  @extend .ext-header;
  background:$background image-url('gradients/light-to-dark-blue-x63.png') left top repeat-x;
  margin:$vertical-margin 0;
  border:1px solid $border-light;
  border-bottom:1px solid #518CBC;
  border-top:1px solid lighten(saturate($border-light, 5%), 9%);
  @include box-shadow(0px 1px 2px darken(#F0F0F3, 20%));
  position:relative;
  overflow:hidden;
  .light {
    @extend .ext-header;
    @extend .ext-texture;
    height:62px;
    border-bottom:1px solid $border-light;
    
    // Used as a spacer for the width
    padding:0 $user-context-width 0 0;
  }

  // Resizable Navigation Items.
  span {
    @include debug;
    float:left;
    margin-left:15px;
    font-size:size(17px);
    line-height:62px;
    display:inline;
    float:left;
    margin-right:7px;
  }
  
  .message {
    margin-left:206px;
  }
  
  a {
    @include text-shadow(1px 1px 0px darken(#518CBC, 12%));
    color:#fff;
    &:active, &:hover {
      color:#FFFF70;
      text-decoration:none;
    }
  }
}

// User Context Object
// ----------------------------------------

.user-context {
  @include pos(0 10px);
  @include size(200px);
  padding-left:12px;
  text-align:center;
  font-size:size(17px);
  line-height:62px;
  color:#DDDDDD;
  border-left:1px solid $border-light;
  @include box-shadow(-1px -1px 0px #3A91DE);
  // Logged out version of this little guy.
  .display {
    @extend .ext-bradius-inner;
    @include box-shadow(0 -1px 0px #518CBC, 0 1px 0 #74B8EA);
    vertical-align: middle;
    margin: -2px 7px 0 0;
  } 
  .logged-out {
    @include box-shadow(none);
  }
  .user {
    width: 170px;
    display: block;
    text-align:left;
  }
  .logout {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
  }
}


// Logo Object
// ----------------------------------------

.gemeinschaft-logo {
  @include logo('logo.png');
  @include pos(2px 0 0 10px);
  @include debug;
}


// Search Box Object
// ----------------------------------------

.search-box {
  @extend .ext-bradius-inner;
  float: left;
  margin-left: 200px;
  margin-top: 18px;
  border-bottom: 1px solid #74B7EB;
  position: relative;
  input.text {
    z-index: 0;
    @extend .ext-bradius-inner;
    background: #fff image-url('gradients/white-gray-x29-reverse.png') left top repeat-x;
    line-height: 25px;
    height: 25px;
    border: 1px solid #3472B2;
    @include size(160px, 25px, 0 23px 0 12px);
  }
  input[type="submit"] {
    @include pos(5px 6px 0 0);
    @include image-replace('icons/search-13x16.png');
    border:0;
  }
}