dolibarr  20.0.0-beta
dropdown.inc.php
1 <?php
2 if (!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 
15 button.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 */
126 div#topmenu-global-search-dropdown, div#topmenu-quickadd-dropdown, div#topmenu-bookmark-dropdown {
127  padding-right: 5px;
128 }
129 div#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 
211 div#topmenu-global-search-dropdown, div#topmenu-bookmark-dropdown, div#topmenu-quickadd-dropdown {
212  <?php if (!$disableimages) { ?>
213  line-height: 46px;
214  <?php } ?>
215 }
216 a.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 
315 a.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 
378 .dropdown-item::before {
379  /* font part */
380  font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
381  font-weight: 900;
382  font-style: normal;
383  font-variant: normal;
384  text-rendering: auto;
385  -webkit-font-smoothing: antialiased;
386  text-align:center;
387  text-decoration:none;
388  margin-<?php echo $right; ?>: 5px;
389  display: inline-block;
390  content: "\f0da";
391  /* color: rgba(0,0,0,0.3); */
392 }
393 .multicompany-item::before {
394  content: none !important;
395 }
396 
397 .dropdown-item.bookmark-item-external::before {
398  content: "\f35d";
399 }
400 
401 .dropdown-item.active, .dropdown-item:hover, .dropdown-item:hover span::before, .dropdown-item:focus, .dropdown-item:focus span::before {
402  color: #<?php echo $colortextbackhmenu; ?> !important;
403  text-decoration: none;
404  background: rgb(<?php echo $colorbackhmenu1 ?>);
405 }
406 
407 /*
408  * SEARCH
409  */
410 
411 .dropdown-search-input {
412  width: 100%;
413  padding: 10px 35px 10px 20px;
414 
415  background-color: transparent;
416  /*font-size: 14px;
417  line-height: 16px;*/
418  box-sizing: border-box;
419 
420  color: #575756;
421  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");
422  background-repeat: no-repeat;
423  background-size: 16px 16px;
424  background-position: 95% center;
425  border-radius: 20px;
426  border: 1px solid #c4c4c2 !important;
427  transition: all 250ms ease-in-out;
428  backface-visibility: hidden;
429  transform-style: preserve-3d;
430 }
431 
432 .dropdown-search-input::placeholder {
433  color: color(#575756);
434  letter-spacing: 1.5px;
435 }
436 
437 .hidden-search-result{
438  display: none !important;
439 }
440 
441 .search-dropdown-body {
442  padding: unset;
443 }
444 
445 .global-search-item {
446  font-size: 1em;
447  padding-top: 6px;
448  padding-bottom: 6px;
449 }
450 
451 .global-search-item:before {
452  content: none;
453 }
454 
455 .global-search-header {
456  color: #444 !important;
457 }
458 
459 
460 
461 /*
462  * QUICK ADD
463  */
464 
465 #topmenu-quickadd-dropdown .dropdown-menu {
466  width: 310px !important;
467  color: #444;
468 }
469 
470 .quickadd-body.dropdown-body {
471  padding: unset;
472 }
473 
474 .quickadd-item {
475  font-size: 1em;
476  padding-top: 6px;
477  padding-bottom: 6px;
478 }
479 
480 .quickadd-item:before {
481  content: none;
482 }
483 
484 .quickadd-header {
485  color: #444 !important;
486 }
487 
488 div.quickadd {
489  display: -ms-flexbox;
490  display: -webkit-flex;
491  display: flex;
492  -webkit-flex-direction: row;
493  -ms-flex-direction: row;
494  flex-direction: row;
495  -webkit-flex-wrap: wrap;
496  -ms-flex-wrap: wrap;
497  flex-wrap: wrap;
498  -webkit-justify-content: center;
499  -ms-flex-pack: center;
500  justify-content: center;
501  -webkit-align-content: center;
502  -ms-flex-line-pack: center;
503  align-content: center;
504  -webkit-align-items: flex-start;
505  -ms-flex-align: start;
506  align-items: flex-start;
507 }
508 
509 div.quickadd a {
510  color: #444;
511 }
512 
513 div.quickadd a:hover, div.quickadd a:active {
514  color: #000000;
515 }
516 
517 div.quickaddblock {
518  width: 95px;
519  height: 80px;
520 }
521 
522 div.quickaddblock:hover,
523 div.quickaddblock:active,
524 div.quickaddblock:focus {
525  background: <?php print $colorbacklinepair1; ?>;
526 }
527 
528 
529 /* for the dropdown on action buttons */
530 dropdown-holder {
531  position: relative;
532  display: inline-block;
533 }
534 
535 .dropdown-content {
536  display: none;
537  position: absolute;
538  z-index: 1;
539  width: 300px;
540  right:10px; /* will be set with js */
541  background: #fff;
542  border: 1px solid #bbb;
543  text-align: <?php echo $left; ?>
544 }
545 
546 .dropdown-content a {
547  margin-right: auto !important;
548  margin-left: auto !important;
549 }
550 .dropdown-content .butAction {
551  background: none;
552  color: #000 !important;
553 }
554 .dropdown-content a.butAction {
555  display: flex;
556 }
557 .dropdown-content .butAction:hover {
558  box-shadow: none;
559  text-decoration: underline;
560 }
561 .dropdown-content .butActionRefused {
562  margin-left: 0;
563  margin-right: 0;
564  border: none;
565 }
566 
567 .dropdown-holder.open .dropdown-content {
568  display: block;
569 }
570 
571 
572 
573 /* smartphone */
574 @media only screen and (max-width: 767px)
575 {
576  .dropdown-search-input {
577  width: 100%;
578  }
579 
580  .tmenu .dropdown-menu, .login_block .dropdown-menu, .topnav .dropdown-menu {
581  margin-left: 5px;
582  right: 0;
583  }
584 
585  #topmenu-quickadd-dropdown .dropdown-menu {
586  min-width: 220px;
587  max-width: 235px;
588  }
589  #topmenu-bookmark-dropdown .dropdown-menu {
590  min-width: 220px;
591  max-width: 360px;
592  }
593 
594  .side-nav-vert .user-menu .dropdown-menu, .topnav .user-menu .dropdown-menu {
595  width: 300px;
596  }
597  .dropdown-menu {
598  border: none;
599  -webkit-box-shadow: none;
600  box-shadow: none;
601  }
602 
603 }
print $object position
Definition: edit.php:195
table tableforfield button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
Definition: style.css.php:887
div float
Buy price without taxes.
Definition: style.css.php:960
padding inline start
Definition: style.css.php:864
$conf db user
Active Directory does not allow anonymous connections.
Definition: repair.php:127