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