dolibarr 18.0.6
dropdown.inc.php
1<?php
2if (!defined('ISLOADEDBYSTEELSHEET')) {
3 die('Must be call by steelsheet');
4} ?>
5/* <style type="text/css" > dont remove this line it's an ide hack */
6/*
7 * Dropdown of user popup
8 */
9
10.bookmark-footer a.top-menu-dropdown-link {
11 white-space: normal;
12 word-break: break-word;
13}
14
15button.dropdown-item.global-search-item {
16 outline: none;
17}
18
19.open>.dropdown-search, .open>.dropdown-bookmark, .open>.dropdown-menu, .dropdown dd ul.open {
20 display: block;
21}
22
23
24#topmenu-global-search-dropdown a.login-dropdown-a, #topmenu-quickadd-dropdown a.login-dropdown-a, #topmenu-bookmark-dropdown a.login-dropdown-a {
25 color: #fff;
26}
27
28div#topmenu-global-search-dropdown {
29 position: fixed;
30 <?php echo $right; ?>: 90px;
31 top: 0px;
32}
33div#topmenu-quickadd-dropdown {
34 position: fixed;
35 <?php echo $right; ?>: 55px;
36 top: 0px;
37}
38div#topmenu-bookmark-dropdown {
39 position: fixed;
40 <?php echo $right; ?>: 20px;
41 top: 0px;
42}
43
44
45#topmenu-login-dropdown .dropdown-toggle:after {
46 display: none;
47}
48
49#topmenu-global-search-dropdown .dropdown-menu, #topmenu-quickadd-dropdown .dropdown-menu, #topmenu-bookmark-dropdown .dropdown-menu {
50 min-width: 300px;
51 max-width: 360px;
52}
53
54button.dropdown-item.global-search-item {
55 outline: none;
56}
57
58.open>.dropdown-search, .open>.dropdown-quickadd, .open>.dropdown-bookmark, .open>.dropdown-menu{
59 display: block !important;
60}
61
62.dropdown-search {
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: 160px;
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-bookmark {
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.dropdown-menu {
109 border-color: #eee;
110
111 position: absolute;
112 top: 100%;
113 left: 0;
114 z-index: 1000;
115 display: none;
116 float: left;
117 min-width: 160px;
118 margin: 2px 0 0;
119 font-size: 14px;
120 text-align: left;
121 list-style: none;
122 background-color: #fff;
123 -webkit-background-clip: padding-box;
124 background-clip: padding-box;
125 border: 1px solid #ccc;
126 border: 1px solid rgba(0,0,0,.15);
127 border-radius: 4px;
128 -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
129 box-shadow: 0 6px 12px rgba(0,0,0,.175);
130}
131
132
133/* CSS to hide the arrow to show open/close */
134div#topmenu-global-search-dropdown, , div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown {
135 padding-right: 2px;
136}
137div#topmenu-global-search-dropdown a::after, div#topmenu-quickadd-dropdown a::after, div#topmenu-bookmark-dropdown a::after {
138 display: none;
139}
140
141
142.dropdown-toggle{
143 text-decoration: none !important;
144}
145
146.dropdown-toggle::after {
147 /* font part */
148 font-family: "Font Awesome 5 Free";
149 font-size: 0.7em;
150 font-weight: 900;
151 font-style: normal;
152 font-variant: normal;
153 text-rendering: auto;
154 -webkit-font-smoothing: antialiased;
155 text-align:center;
156 text-decoration:none;
157 margin: auto 3px;
158 display: inline-block;
159 content: "\f078";
160
161 -webkit-transition: -webkit-transform .2s ease-in-out;
162 -ms-transition: -ms-transform .2s ease-in-out;
163 transition: transform .2s ease-in-out;
164}
165
166.open>.dropdown-toggle::after {
167 transform: rotate(180deg);
168}
169
170/*
171 * MENU Dropdown
172 */
173
174.login_block.usedropdown .logout-btn{
175 /* display: none; */
176}
177
178.tmenu .open.dropdown, .tmenu .open.dropdown {
179 background: rgba(0, 0, 0, 0.1);
180}
181.tmenu .dropdown-menu, .login_block .dropdown-menu {
182 position: absolute;
183 right: 0;
184 <?php echo $left; ?>: auto;
185 line-height:1.3em;
186}
187.tmenu .dropdown-menu, .login_block .dropdown-menu .user-body {
188 border-bottom-right-radius: 4px;
189 border-bottom-left-radius: 4px;
190}
191.user-body {
192 color: #333;
193}
194.side-nav-vert .user-menu .dropdown-menu {
195 border-top-right-radius: 0;
196 border-top-left-radius: 0;
197 padding: 1px 0 0 0;
198 border-top-width: 0;
199 width: 300px;
200}
201.side-nav-vert .user-menu .dropdown-menu {
202 margin-top: 0;
203 border-top-left-radius: 0;
204 border-top-right-radius: 0;
205}
206
207.side-nav-vert .user-menu .dropdown-menu > .user-header {
208 min-height: 100px;
209 padding: 10px;
210 text-align: center;
211 white-space: normal;
212}
213
214#topmenu-global-search-dropdown .dropdown-menu{
215 width: 300px;
216 max-width: 100%;
217}
218
219div#topmenu-global-search-dropdown, div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown {
220 line-height: <?php echo (getDolGlobalInt('THEME_TOPMENU_DISABLE_IMAGE') == 1 ? '35' : '46' ); ?>px;
221}
222a.top-menu-dropdown-link {
223 padding: 8px;
224}
225
226.dropdown-user-image {
227 border-radius: 50%;
228 vertical-align: middle;
229 z-index: 5;
230 height: 90px;
231 width: 90px;
232 border: 3px solid;
233 border-color: transparent;
234 border-color: rgba(255, 255, 255, 0.2);
235 max-width: 100%;
236 max-height :100%;
237}
238
239.dropdown-menu > .user-header{
240 background: rgb(--colorbackhmenu1);
241}
242
243
244
245.dropdown-menu .dropdown-header{
246 padding: 8px 10px 10px 10px;
247}
248
249.dropdown-menu > .user-footer {
250 background-color: #f9f9f9;
251 padding: 10px;
252}
253
254.user-footer:after {
255 clear: both;
256}
257
258
259.dropdown-menu > .bookmark-footer{
260 border-top: 1px solid #f0f0f0;
261 background-color: #f9f9f9;
262 padding: 10px;
263 text-align: start;
264}
265
266
267.dropdown-menu > .user-body, .dropdown-body{
268 padding: 15px;
269 border-bottom: 1px solid #f4f4f4;
270 border-top: 1px solid #f0f0f0;
271 white-space: normal;
272}
273
274.dropdown-menu > .bookmark-body, .dropdown-body{
275 padding: 10px 0;
276 overflow-y: auto;
277 max-height: 60vh ; /* fallback for browsers without support for calc() */
278 max-height: calc(90vh - 110px) ;
279 white-space: normal;
280}
281#topmenu-quickadd-dropdown .dropdown-menu > .bookmark-body, #topmenu-quickadd-dropdown .dropdown-body,
282#topmenu-bookmark-dropdown .dropdown-menu > .bookmark-body, #topmenu-bookmark-dropdown .dropdown-body {
283 max-height: 60vh ; /* fallback for browsers without support for calc() */
284 max-height: calc(90vh - 200px) ;
285}
286
287
288.dropdown-body::-webkit-scrollbar {
289 width: 8px;
290 }
291.dropdown-body::-webkit-scrollbar-thumb {
292 -webkit-border-radius: 0;
293 border-radius: 0;
294 /* background: rgb(<?php echo $colorbackhmenu1 ?>); */
295 background: #aaa;
296}
297.dropdown-body::-webkit-scrollbar-track {
298 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
299 -webkit-border-radius: 0;
300 border-radius: 0;
301}
302
303
304#topmenu-login-dropdown, #topmenu-quickadd-dropdown, #topmenu-bookmark-dropdown, #topmenu-global-search-dropdown {
305 padding: 0 5px 0 5px;
306}
307#topmenu-login-dropdown a:hover{
308 text-decoration: none;
309}
310
311#topmenuloginmoreinfo-btn, #topmenulogincompanyinfo-btn {
312 display: block;
313 text-align: start;
314 color:#666;
315 cursor: pointer;
316}
317
318#topmenuloginmoreinfo, #topmenulogincompanyinfo {
319 display: none;
320 clear: both;
321 font-size: 0.95em;
322}
323
324a.dropdown-item {
325 text-align: start;
326}
327
328.button-top-menu-dropdown {
329 display: inline-block;
330 padding: 6px 12px;
331 margin-bottom: 0;
332 font-size: 14px;
333 font-weight: 400;
334 line-height: 1.42857143;
335 text-align: center;
336 white-space: nowrap;
337 vertical-align: middle;
338 -ms-touch-action: manipulation;
339 touch-action: manipulation;
340 cursor: pointer;
341 -webkit-user-select: none;
342 -moz-user-select: none;
343 -ms-user-select: none;
344 user-select: none;
345 background-image: none;
346 border: 1px solid transparent;
347 border-radius: 4px;
348}
349
350.user-footer .button-top-menu-dropdown {
351 color: #666666;
352 border-radius: 0;
353 -webkit-box-shadow: none;
354 -moz-box-shadow: none;
355 box-shadow: none;
356 border-width: 1px;
357 background-color: #f4f4f4;
358 border-color: #ddd;
359}
360
361.dropdown-menu a.top-menu-dropdown-link {
362 color: rgb(<?php print $colortextlink; ?>) !important;
363 -webkit-box-shadow: none;
364 -moz-box-shadow: none;
365 box-shadow: none;
366 display: block;
367 margin: 5px 0px;
368}
369
370.dropdown-item {
371 display: block !important;
372 box-sizing: border-box;
373 width: 100%;
374 padding: .3em 1.5em .4em 1em;
375 clear: both;
376 font-weight: 400;
377 color: #212529 !important;
378 text-align: inherit;
379 background-color: transparent;
380 border: 0;
381
382 -webkit-box-shadow: none;
383 -moz-box-shadow: none;
384 box-shadow: none;
385}
386
387.dropdown-item::before {
388 /* font part */
389 font-family: "Font Awesome 5 Free";
390 font-weight: 900;
391 font-style: normal;
392 font-variant: normal;
393 text-rendering: auto;
394 -webkit-font-smoothing: antialiased;
395 text-align:center;
396 text-decoration:none;
397 margin-<?php echo $right; ?>: 5px;
398 display: inline-block;
399 content: "\f0da";
400 color: rgba(0,0,0,0.3);
401}
402.multicompany-item::before {
403 content: none !important;
404}
405
406.dropdown-item.bookmark-item-external::before {
407 content: "\f35d";
408}
409
410.dropdown-item.active, .dropdown-item:hover, .dropdown-item:hover::before, .dropdown-item:hover span::before, .dropdown-item:focus, .dropdown-item:focus span::before {
411 color: #<?php echo $colortextbackhmenu; ?> !important;
412 text-decoration: none;
413 background: rgb(<?php echo $colorbackhmenu1 ?>);
414}
415
416/*
417 * SEARCH
418 */
419
420.dropdown-search-input {
421 width: 100%;
422 padding: 10px 35px 10px 20px;
423
424 background-color: transparent;
425 font-size: 14px;
426 line-height: 16px;
427 box-sizing: border-box;
428
429
430 color: #575756;
431 background-color: transparent;
432 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");
433 background-repeat: no-repeat;
434 background-size: 16px 16px;
435 background-position: 95% center;
436 border-radius: 50px;
437 border: 1px solid #c4c4c2 !important;
438 transition: all 250ms ease-in-out;
439 backface-visibility: hidden;
440 transform-style: preserve-3d;
441
442}
443
444.search-dropdown-body {
445 padding: unset;
446}
447
448.global-search-item {
449 font-size: 1em;
450 padding-top: 6px;
451 padding-bottom: 6px;
452}
453
454.global-search-item:before {
455 content: none;
456}
457
458.global-search-header {
459 color: #444 !important;
460}
461
462
463/*
464 * QUICK ADD
465 */
466
467#topmenu-quickadd-dropdown .dropdown-menu {
468 width: 310px !important;
469 color: #444;
470}
471
472.quickadd-body.dropdown-body {
473 padding: unset;
474}
475
476.quickadd-item {
477 font-size: 1em;
478 padding-top: 6px;
479 padding-bottom: 6px;
480}
481
482.quickadd-item:before {
483 content: none;
484}
485
486.quickadd-header {
487 color: #444 !important;
488}
489
490div.quickadd {
491 display: -ms-flexbox;
492 display: -webkit-flex;
493 display: flex;
494 -webkit-flex-direction: row;
495 -ms-flex-direction: row;
496 flex-direction: row;
497 -webkit-flex-wrap: wrap;
498 -ms-flex-wrap: wrap;
499 flex-wrap: wrap;
500 -webkit-justify-content: center;
501 -ms-flex-pack: center;
502 justify-content: center;
503 -webkit-align-content: center;
504 -ms-flex-line-pack: center;
505 align-content: center;
506 -webkit-align-items: flex-start;
507 -ms-flex-align: start;
508 align-items: flex-start;
509}
510
511div.quickadd a {
512 color: #444;
513}
514
515div.quickadd a:hover, div.quickadd a:active {
516 color: #000000;
517}
518
519div.quickaddblock {
520 width: 95px;
521 height: 80px;
522}
523
524div.quickaddblock:hover,
525div.quickaddblock:active,
526div.quickaddblock:focus {
527 background: <?php print $colorbacklinepair1; ?>;
528}
529
530
531/* for the dropdown on action buttons */
532dropdown-holder {
533 position: relative;
534 display: inline-block;
535}
536
537.dropdown-content {
538 display: none;
539 position: absolute;
540 z-index: 1;
541 width: 300px;
542 right:10px; /* will be set with js */
543 background: #fff;
544 border: 1px solid #bbb;
545 text-align: <?php echo $left; ?>
546}
547
548.dropdown-content a {
549 margin-right: auto !important;
550 margin-left: auto !important;
551}
552.dropdown-content .butAction {
553 background: none;
554 color: #000 !important;
555}
556.dropdown-content a.butAction {
557 display: flex;
558}
559.dropdown-content .butAction:hover {
560 box-shadow: none;
561 text-decoration: underline;
562}
563
564.dropdown-holder.open .dropdown-content {
565 display: block;
566}
567
568
569/* smartphone */
570@media only screen and (max-width: 767px)
571{
572 #topmenu-quickadd-dropdown .dropdown-menu {
573 min-width: 220px;
574 max-width: 235px;
575 }
576 #topmenu-bookmark-dropdown .dropdown-menu {
577 min-width: 220px;
578 max-width: 360px;
579 }
580
581 #topmenu-quickadd-dropdown a.login-dropdown-a,
582 #topmenu-bookmark-dropdown a.login-dropdown-a {
583 color: #000;
584 }
585 #topmenu-quickadd-dropdown .dropdown-menu,
586 #topmenu-bookmark-dropdown .dropdown-menu {
587 width: 230px;
588 }
589
590 div#topmenu-global-search-dropdown,
591 div#topmenu-quickadd-dropdown,
592 div#topmenu-bookmark-dropdown {
593 position: unset;
594 }
595
596 div#topmenu-global-search-dropdown,
597 div#topmenu-quickadd-dropdown,
598 div#topmenu-bookmark-dropdown {
599 line-height: unset;
600 }
601
602 ul.tmenu {
603 margin-right: 2px;
604 }
605}
606
607@media only screen and (max-width: 320px)
608{
609 .dropdown dd ul {
610 max-width: 270px; /* must always be 50 slower than width */
611 }
612}
613@media only screen and (max-width: 300px)
614{
615 .dropdown dd ul {
616 max-width: 250px;
617 }
618}
619@media only screen and (max-width: 280px)
620{
621 .dropdown dd ul {
622 max-width: 230px;
623 }
624}
625
626
627.dropdown-search-input::placeholder {
628 color: color(#575756);
629 letter-spacing: 1.5px;
630}
631
632.hidden-search-result{
633 display: none !important;
634}
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
rtl background position
ui dialog ui datepicker calendar ui widget content ui state ui datepicker calendar ui widget header ui state ui datepicker calendar ui button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
$conf db user
Definition repair.php:124