dolibarr  13.0.2
dropdown.inc.php
1 <?php
2 if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
3 /* <style type="text/css" > dont remove this line it's an ide hack */
4 /*
5  * Dropdown of user popup
6  */
7 
8 button.dropdown-item.global-search-item {
9  outline: none;
10 }
11 
12 .open>.dropdown-search, .open>.dropdown-bookmark, .open>.dropdown-quickadd, .open>.dropdown-menu, .dropdown dd ul.open {
13  display: block;
14 }
15 
16 .dropdown-search {
17  border-color: #eee;
18 
19  position: absolute;
20  top: 100%;
21  left: 0;
22  z-index: 1000;
23  display: none;
24  float: left;
25  min-width: 160px;
26  margin: 2px 0 0;
27  font-size: 14px;
28  text-align: left;
29  list-style: none;
30  background-color: #fff;
31  -webkit-background-clip: padding-box;
32  background-clip: padding-box;
33  border: 1px solid #ccc;
34  border: 1px solid rgba(0,0,0,.15);
35  border-radius: 4px;
36  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
37  box-shadow: 0 6px 12px rgba(0,0,0,.175);
38 }
39 .dropdown-bookmark {
40  border-color: #eee;
41 
42  position: absolute;
43  top: 100%;
44  left: 0;
45  z-index: 1000;
46  display: none;
47  float: left;
48  min-width: 160px;
49  margin: 2px 0 0;
50  font-size: 14px;
51  text-align: left;
52  list-style: none;
53  background-color: #fff;
54  -webkit-background-clip: padding-box;
55  background-clip: padding-box;
56  border: 1px solid #ccc;
57  border: 1px solid rgba(0,0,0,.15);
58  border-radius: 4px;
59  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
60  box-shadow: 0 6px 12px rgba(0,0,0,.175);
61 }
62 .dropdown-quickadd {
63  border-color: #eee;
64 
65  position: absolute;
66  top: 100%;
67  left: 0;
68  z-index: 1000;
69  display: none;
70  float: left;
71  min-width: 240px;
72  margin: 2px 0 0;
73  font-size: 14px;
74  text-align: left;
75  list-style: none;
76  background-color: #fff;
77  -webkit-background-clip: padding-box;
78  background-clip: padding-box;
79  border: 1px solid #ccc;
80  border: 1px solid rgba(0,0,0,.15);
81  border-radius: 4px;
82  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
83  box-shadow: 0 6px 12px rgba(0,0,0,.175);
84 }
85 .dropdown-menu {
86  border-color: #eee;
87 
88  position: absolute;
89  top: 100%;
90  left: 0;
91  z-index: 1000;
92  display: none;
93  float: left;
94  min-width: 160px;
95  margin: 2px 0 0;
96  font-size: 14px;
97  text-align: left;
98  list-style: none;
99  background-color: #fff;
100  -webkit-background-clip: padding-box;
101  background-clip: padding-box;
102  border: 1px solid #ccc;
103  border: 1px solid rgba(0,0,0,.15);
104  border-radius: 4px;
105  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
106  box-shadow: 0 6px 12px rgba(0,0,0,.175);
107 }
108 
109 
110 .dropdown-toggle{
111  text-decoration: none !important;
112 }
113 
114 .dropdown-toggle::after {
115  /* font part */
116  font-family: "Font Awesome 5 Free";
117  font-size: 0.7em;
118  font-weight: 900;
119  font-style: normal;
120  font-variant: normal;
121  text-rendering: auto;
122  -webkit-font-smoothing: antialiased;
123  text-align:center;
124  text-decoration:none;
125  margin: auto 3px;
126  display: inline-block;
127  content: "\f078";
128 
129  -webkit-transition: -webkit-transform .2s ease-in-out;
130  -ms-transition: -ms-transform .2s ease-in-out;
131  transition: transform .2s ease-in-out;
132 }
133 
134 .open>.dropdown-toggle::after {
135  transform: rotate(180deg);
136 }
137 
138 /*
139 * MENU Dropdown
140 */
141 .login_block.usedropdown .logout-btn{
142  display: none;
143 }
144 
145 .tmenu .open.dropdown, .tmenu .open.dropdown {
146  background: rgba(0, 0, 0, 0.1);
147 }
148 .tmenu .dropdown-menu, .login_block .dropdown-menu, .topnav .dropdown-menu {
149  position: absolute;
150  right: 2px;
151  <?php echo $left; ?>: auto;
152  line-height:1.3em;
153 }
154 .tmenu .dropdown-menu, .login_block .dropdown-menu .user-body {
155  border-bottom-right-radius: 4px;
156  border-bottom-left-radius: 4px;
157 }
158 .user-body {
159  color: #333;
160 }
161 .side-nav-vert .user-menu .dropdown-menu, .topnav .user-menu .dropdown-menu {
162  border-top-right-radius: 0;
163  border-top-left-radius: 0;
164  padding: 1px 0 0 0;
165  border-top-width: 0;
166  width: 300px;
167 }
168 .topnav .user-menu .dropdown-menu {
169  top: 50px;
170 }
171 .side-nav-vert .user-menu .dropdown-menu, .topnav .user-menu .dropdown-menu {
172  margin-top: 0;
173  border-top-left-radius: 0;
174  border-top-right-radius: 0;
175 }
176 
177 .side-nav-vert .user-menu .dropdown-menu > .user-header, .topnav .user-menu .dropdown-menu > .user-header {
178  min-height: 100px;
179  padding: 10px;
180  text-align: center;
181  white-space: normal;
182 }
183 
184 #topmenu-global-search-dropdown .dropdown-menu{
185  width: 300px;
186  max-width: 100%;
187 }
188 
189 div#topmenu-global-search-dropdown, div#topmenu-bookmark-dropdown, div#topmenu-quickadd-dropdown {
190  <?php if (empty($conf->global->THEME_TOPMENU_DISABLE_IMAGE)) { ?>
191  line-height: 46px;
192  <?php } ?>
193 }
194 a.top-menu-dropdown-link {
195  padding: 8px;
196 }
197 
198 .dropdown-user-image {
199  border-radius: 50%;
200  vertical-align: middle;
201  z-index: 5;
202  height: 90px;
203  width: 90px;
204  border: 3px solid;
205  border-color: transparent;
206  border-color: rgba(255, 255, 255, 0.2);
207  max-width: 100%;
208  max-height :100%;
209 }
210 
211 .dropdown-menu > .user-header{
212  background: var(--colorbackhmenu1);
213 }
214 
215 .dropdown-menu .dropdown-header{
216  padding: 8px 8px 8px 8px;
217 }
218 
219 .dropdown-menu > .user-footer {
220  border-top: 1px solid #f0f0f0;
221  background-color: #f9f9f9;
222  padding: 10px;
223 }
224 
225 .user-footer:after {
226  clear: both;
227 }
228 
229 .dropdown-menu > .bookmark-footer{
230  border-top: 1px solid #f0f0f0;
231  background-color: #f9f9f9;
232  padding: 10px;
233 }
234 
235 
236 .dropdown-menu > .user-body, .dropdown-body{
237  padding: 15px;
238  border-bottom: 1px solid #f4f4f4;
239  border-top: 1px solid #dddddd;
240  white-space: normal;
241 }
242 
243 .dropdown-menu > .bookmark-body, .dropdown-body{
244  overflow-y: auto;
245  max-height: 60vh ; /* fallback for browsers without support for calc() */
246  max-height: calc(90vh - 110px) ;
247  white-space: normal;
248 }
249 #topmenu-bookmark-dropdown .dropdown-menu > .bookmark-body, #topmenu-bookmark-dropdown .dropdown-body{
250  max-height: 60vh ; /* fallback for browsers without support for calc() */
251  max-height: calc(90vh - 200px) ;
252 }
253 
254 
255 .dropdown-body::-webkit-scrollbar {
256  width: 8px;
257  }
258 .dropdown-body::-webkit-scrollbar-thumb {
259  -webkit-border-radius: 0;
260  border-radius: 0;
261  /* background: rgb(<?php echo $colorbackhmenu1 ?>); */
262  background: #aaa;
263 }
264 .dropdown-body::-webkit-scrollbar-track {
265  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
266  -webkit-border-radius: 0;
267  border-radius: 0;
268 }
269 
270 
271 #topmenu-login-dropdown, #topmenu-bookmark-dropdown, #topmenu-global-search-dropdown {
272  padding: 0 5px 0 5px;
273 }
274 #topmenu-login-dropdown a:hover{
275  text-decoration: none;
276 }
277 
278 #topmenuloginmoreinfo-btn{
279  display: block;
280  text-aling: right;
281  color:#666;
282  cursor: pointer;
283 }
284 
285 #topmenuloginmoreinfo{
286  display: none;
287  clear: both;
288  font-size: 0.95em;
289 }
290 
291 .button-top-menu-dropdown {
292  display: inline-block;
293  padding: 6px 12px;
294  margin-bottom: 0;
295  font-size: 14px;
296  font-weight: 400;
297  line-height: 1.42857143;
298  text-align: center;
299  white-space: nowrap;
300  vertical-align: middle;
301  -ms-touch-action: manipulation;
302  touch-action: manipulation;
303  cursor: pointer;
304  -webkit-user-select: none;
305  -moz-user-select: none;
306  -ms-user-select: none;
307  user-select: none;
308  background-image: none;
309  border: 1px solid transparent;
310  border-radius: 4px;
311 }
312 
313 .user-footer .button-top-menu-dropdown {
314  color: #666666;
315  border-radius: 0;
316  -webkit-box-shadow: none;
317  -moz-box-shadow: none;
318  box-shadow: none;
319  border-width: 1px;
320  background-color: #f4f4f4;
321  border-color: #ddd;
322 }
323 
324 .dropdown-menu a.top-menu-dropdown-link {
325  color: rgb(<?php print $colortextlink; ?>) !important;
326  -webkit-box-shadow: none;
327  -moz-box-shadow: none;
328  box-shadow: none;
329  display: block;
330  margin: 5px 0px;
331 }
332 
333 .dropdown-item {
334  display: block !important;
335  box-sizing: border-box;
336  width: 100%;
337  padding: .3em 1.5em .4em 1em;
338  clear: both;
339  font-weight: 400;
340  color: #212529 !important;
341  text-align: inherit;
342  background-color: transparent;
343  border: 0;
344 
345  -webkit-box-shadow: none;
346  -moz-box-shadow: none;
347  box-shadow: none;
348 }
349 
350 .dropdown-item::before {
351  /* font part */
352  font-family: "Font Awesome 5 Free";
353  font-weight: 900;
354  font-style: normal;
355  font-variant: normal;
356  text-rendering: auto;
357  -webkit-font-smoothing: antialiased;
358  text-align:center;
359  text-decoration:none;
360  margin-right: 5px;
361  display: inline-block;
362  content: "\f0da";
363  /* color: rgba(0,0,0,0.3); */
364 }
365 .dropdown-item.bookmark-item-external::before {
366  content: "\f35d";
367 }
368 
369 .dropdown-item.active, .dropdown-item:hover, .dropdown-item:focus {
370  color: #<?php echo $colortextbackhmenu; ?> !important;
371  text-decoration: none;
372  background: rgb(<?php echo $colorbackhmenu1 ?>);
373 }
374 
375 /*
376 * SEARCH
377 */
378 
379 .dropdown-search-input {
380  width: 100%;
381  padding: 10px 35px 10px 20px;
382 
383  background-color: transparent;
384  /*font-size: 14px;
385  line-height: 16px;*/
386  box-sizing: border-box;
387 
388  color: #575756;
389  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
390  background-repeat: no-repeat;
391  background-size: 16px 16px;
392  background-position: 95% center;
393  border-radius: 10px;
394  border: 1px solid #c4c4c2 !important;
395  transition: all 250ms ease-in-out;
396  backface-visibility: hidden;
397  transform-style: preserve-3d;
398 
399 }
400 
401 .dropdown-search-input::placeholder {
402  color: color(#575756 a(0.8));
403  letter-spacing: 1.5px;
404 }
405 
406 .hidden-search-result{
407  display: none !important;
408 }
409 
410 /*
411  * QUICK ADD
412  */
413 #topmenu-quickadd-dropdown .dropdown-menu {
414  width: 310px !important;
415  color: #444;
416 }
417 
418 .quickadd-body.dropdown-body {
419  padding: unset;
420  padding-top: 15px;
421 }
422 
423 .quickadd-header {
424  color: #444 !important;
425 }
426 
427 div.quickadd {
428  display: -ms-flexbox;
429  display: -webkit-flex;
430  display: flex;
431  -webkit-flex-direction: row;
432  -ms-flex-direction: row;
433  flex-direction: row;
434  -webkit-flex-wrap: wrap;
435  -ms-flex-wrap: wrap;
436  flex-wrap: wrap;
437  -webkit-justify-content: center;
438  -ms-flex-pack: center;
439  justify-content: center;
440  -webkit-align-content: center;
441  -ms-flex-line-pack: center;
442  align-content: center;
443  -webkit-align-items: flex-start;
444  -ms-flex-align: start;
445  align-items: flex-start;
446 }
447 
448 div.quickadd a {
449  color: #444;
450 }
451 
452 div.quickadd a:hover, div.quickadd a:active {
453  color: #000000;
454 }
455 
456 div.quickaddblock {
457  width: 95px;
458  height: 80px;
459 }
460 
461 div.quickaddblock:hover,
462 div.quickaddblock:active,
463 div.quickaddblock:focus {
464  background: <?php print $colorbacklinepair1; ?>;
465 }
466 
467 /* smartphone */
468 @media only screen and (max-width: 767px)
469 {
470  .dropdown-search-input {
471  width: 100%;
472  }
473 
474  .tmenu .dropdown-menu, .login_block .dropdown-menu, .topnav .dropdown-menu {
475  margin-left: 5px;
476  right: 0;
477  }
478 }
$conf db user
Definition: repair.php:109
print
Draft customers invoices.
Definition: index.php:89