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