e912ab659e5c05223c3cd66b302e242e257ef8b5
[srvgit] / koha-tmpl / intranet-tmpl / prog / css / src / _header.scss
1 a.navbar-toggle {
2     color: #fff;
3 }
4
5 #header {
6     .navbar-nav > li > a {
7         overflow: hidden;
8         color: #FFFFFF;
9
10         &:hover, &:active {
11             border-bottom: 1px #FFFFFF;
12         }
13     }
14
15     .dropdown-menu {
16         background-color: rgb(53, 44, 46);
17         font-size: 13px;
18
19         li a {
20             color: #FFFFFF;
21             &:hover,
22             &:focus {
23                 background: $background-color-primary none;
24                 text-decoration: none;
25             }
26         }
27     }
28
29 }
30
31 #logo {
32     display: flex;
33     align-items: center;
34     padding: .2em .5em;
35
36     img {
37         height: 80%;
38     }
39 }
40
41 #toplevelmenu {
42     background-color: transparent;
43     box-shadow: none;
44     position: relative;
45     left: 0;
46     top: 0;
47 }
48
49 #header_search {
50     background-color: $background-color-primary;
51     border-radius: 0;
52     border: 1px solid $background-color-primary;
53     display: flex;
54     padding: 0 .8em;
55
56     .residentsearch {
57         padding: 0;
58         border: 0;
59         background-color: transparent;
60         display: none;
61         flex-basis: 50%;
62
63         &:first-of-type {
64             display: block;
65         }
66     }
67
68     > ul {
69         padding: 0;
70         margin: 0;
71         border-radius: 0 16px 16px 0;
72         display: flex;
73         align-items: center;
74         color: white;
75         background-color: $background-color-primary;
76         z-index: 2;
77         flex-grow: 1;
78
79         li {
80             background: transparent;
81             border: 0;
82             border-radius: 0;
83
84             border: 0;
85             border-bottom-width: 0;
86             padding-bottom: 0;
87             margin: 0;
88
89             a {
90                 color: #FFF;
91                 padding: 0 .25em;
92                 margin: 0 .25em;
93                 border: 2px solid transparent;
94             }
95         }
96     }
97     .ui-state-hover, .ui-state-active {
98         a {
99             border-bottom: 2px solid #FFFFFF;
100         }
101     }
102
103     form {
104         display: flex;
105         position: relative;
106     }
107
108     .form-title {
109         padding: 0 16px 0 0;
110         background-color: $background-color-primary;
111         border-radius: 0 16px 16px 0;
112         display: flex;
113         align-items: center;
114         justify-content: flex-end;
115         z-index: 2;
116         white-space: nowrap;
117         flex-basis: 15%;
118
119         label {
120             color: white;
121             font-weight: bold;
122             margin: 0;
123             white-space: nowrap;
124         }
125     }
126
127     .form-content {
128         background-color: white;
129         margin-left: -16px;
130         padding-left: 16px;
131         border-radius: 0 16px 16px 0;
132         white-space: nowrap;
133         z-index: 1;
134         display: flex;
135         flex-grow: 1;
136
137         input[type="text"],
138         select {
139             background-color: transparent;
140             border: 0;
141             border-radius: 0;
142             box-shadow: unset;
143             margin: 0;
144
145             &:not(:first-child) {
146                 border-left: 1px solid #e0e0e0;
147             }
148         }
149     }
150
151     .form-extra-content {
152         right: 60px;
153         position: absolute;
154         top: 31px;
155         background-color: #f3f4f4;
156         background-color: white;
157         padding: 1em;
158         border-radius: 0 0 8px 8px;
159         border: 1px solid $background-color-primary;
160         border-top: 0 none;
161         box-shadow: 0 2px 2px 1px #00000030;
162         z-index: 1;
163         display: none;
164
165         a {
166             color: $green-text-color;
167         }
168
169         div {
170             margin-bottom: .5em;
171         }
172
173         .form-control {
174             display: block;
175             width: 100%;
176         }
177
178         label {
179             display: block;
180             margin-bottom: 0;
181         }
182     }
183
184     .form-extra-content-toggle {
185         opacity: .5;
186         background-color: transparent;
187
188         &:hover {
189             opacity: 1;
190         }
191     }
192
193     input[type="submit"], button[type="submit"] {
194         height: 31px;
195         background-color: $background-color-secondary;
196         color: white;
197         border: 0;
198         text-shadow: unset;
199         border-radius: 0 16px 16px 0;
200         margin-left: -16px;
201         padding-left: calc(16px + .5em);
202     }
203
204     input[type="button"], button {
205         height: 31px;
206         border: 0;
207         text-shadow: unset;
208
209         &:active {
210             box-shadow: unset;
211         }
212     }
213 }
214
215 #logged-in-menu {
216     &:hover, &:active, &:focus {
217         text-decoration: none;
218     }
219 }
220
221 #lastborrower-window {
222     display: none;
223     background-color: $background-color-primary;
224     box-shadow: 1px 1px 1px 0 #999;
225     color: #FFFFFF;
226     padding: .2em;
227     border-radius: 5px 5px 5px 5px;
228
229     > * {
230         padding: 0 .4em;
231     }
232 }
233
234 #lastborrower-remove {
235     cursor: pointer;
236     border-left: 1px solid #fff;
237 }
238
239 #lastborrowerlink {
240     color: #FFFFFF;
241 }
242
243 @media (max-width: 768px) {
244     #header_search {
245         .form-title {
246             display: none;
247         }
248     }
249 }
250
251 @media (max-width: 992px) {
252     #header_search {
253         .residentsearch {
254             flex-grow: 1;
255         }
256
257         .tab-title {
258             display: none;
259         }
260
261         > ul {
262             flex-grow: 0;
263         }
264     }
265 }