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