dolibarr  17.0.4
dropdown.inc.php
1 <?php
2 if (!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 
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-quickadd-dropdown, div#topmenu-bookmark-dropdown {
127  padding-right: 5px;
128 }
129 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: "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 
209 div#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 }
214 a.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-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 
313 a.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: "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 {
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 /*
440  * QUICK ADD
441  */
442 #topmenu-quickadd-dropdown .dropdown-menu {
443  width: 310px !important;
444  color: #444;
445 }
446 
447 .quickadd-body.dropdown-body {
448  padding: unset;
449 }
450 
451 .quickadd-item {
452  padding-top: 6px;
453  padding-bottom: 6px;
454 }
455 
456 .quickadd-item:before {
457  content: none;
458 }
459 
460 .quickadd-header {
461  color: #444 !important;
462 }
463 
464 div.quickadd {
465  display: -ms-flexbox;
466  display: -webkit-flex;
467  display: flex;
468  -webkit-flex-direction: row;
469  -ms-flex-direction: row;
470  flex-direction: row;
471  -webkit-flex-wrap: wrap;
472  -ms-flex-wrap: wrap;
473  flex-wrap: wrap;
474  -webkit-justify-content: center;
475  -ms-flex-pack: center;
476  justify-content: center;
477  -webkit-align-content: center;
478  -ms-flex-line-pack: center;
479  align-content: center;
480  -webkit-align-items: flex-start;
481  -ms-flex-align: start;
482  align-items: flex-start;
483 }
484 
485 div.quickadd a {
486  color: #444;
487 }
488 
489 div.quickadd a:hover, div.quickadd a:active {
490  color: #000000;
491 }
492 
493 div.quickaddblock {
494  width: 95px;
495  height: 80px;
496 }
497 
498 div.quickaddblock:hover,
499 div.quickaddblock:active,
500 div.quickaddblock:focus {
501  background: <?php print $colorbacklinepair1; ?>;
502 }
503 
504 /* smartphone */
505 @media only screen and (max-width: 767px)
506 {
507  .dropdown-search-input {
508  width: 100%;
509  }
510 
511  .tmenu .dropdown-menu, .login_block .dropdown-menu, .topnav .dropdown-menu {
512  margin-left: 5px;
513  right: 0;
514  }
515 
516  #topmenu-quickadd-dropdown .dropdown-menu {
517  min-width: 220px;
518  max-width: 235px;
519  }
520  #topmenu-bookmark-dropdown .dropdown-menu {
521  min-width: 220px;
522  max-width: 360px;
523  }
524 
525  .side-nav-vert .user-menu .dropdown-menu, .topnav .user-menu .dropdown-menu {
526  width: 300px;
527  }
528  .dropdown-menu {
529  border: none;
530  -webkit-box-shadow: none;
531  box-shadow: none;
532  }
533 
534 }
getDolGlobalInt($key, $default=0)
Return dolibarr global constant int value.
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:843
div float
Buy price without taxes.
Definition: style.css.php:913
padding inline start
Definition: style.css.php:820
$conf db user
Definition: repair.php:123