dolibarr  13.0.2
dropdown.inc.php
1 <?php
2 if (!defined('ISLOADEDBYSTEELSHEET')) die('Must be call by steelsheet'); ?>
3 
4 /* <style type="text/css" > dont remove this line it's an ide hack */
5 /*
6  * Dropdown of user popup
7  */
8 
9 .bookmark-footer a.top-menu-dropdown-link {
10  white-space: normal;
11 }
12 
13 button.dropdown-item.global-search-item {
14  outline: none;
15 }
16 
17 .open>.dropdown-search, .open>.dropdown-bookmark, .open>.dropdown-menu, .dropdown dd ul.open {
18  display: block;
19 }
20 
21 
22 #topmenu-bookmark-dropdown a.login-dropdown-a {
23  color: #fff;
24 }
25 div#topmenu-bookmark-dropdown {
26  position: fixed;
27  right: 20px;
28  top: 0px;
29 }
30 
31 #topmenu-login-dropdown .dropdown-toggle:after {
32  display: none;
33 }
34 
35 #topmenu-bookmark-dropdown .dropdown-menu {
36  width: 300px;
37 }
38 
39 button.dropdown-item.global-search-item {
40  outline: none;
41 }
42 
43 .open>.dropdown-search, .open>.dropdown-bookmark, .open>.dropdown-menu{
44  display: block;
45 }
46 
47 .dropdown-search {
48  border-color: #eee;
49 
50  position: absolute;
51  top: 100%;
52  left: 0;
53  z-index: 1000;
54  display: none;
55  float: left;
56  min-width: 160px;
57  margin: 2px 0 0;
58  font-size: 14px;
59  text-align: left;
60  list-style: none;
61  background-color: #fff;
62  -webkit-background-clip: padding-box;
63  background-clip: padding-box;
64  border: 1px solid #ccc;
65  border: 1px solid rgba(0,0,0,.15);
66  border-radius: 4px;
67  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
68  box-shadow: 0 6px 12px rgba(0,0,0,.175);
69 }
70 .dropdown-bookmark {
71  border-color: #eee;
72 
73  position: absolute;
74  top: 100%;
75  left: 0;
76  z-index: 1000;
77  display: none;
78  float: left;
79  min-width: 160px;
80  margin: 2px 0 0;
81  font-size: 14px;
82  text-align: left;
83  list-style: none;
84  background-color: #fff;
85  -webkit-background-clip: padding-box;
86  background-clip: padding-box;
87  border: 1px solid #ccc;
88  border: 1px solid rgba(0,0,0,.15);
89  border-radius: 4px;
90  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
91  box-shadow: 0 6px 12px rgba(0,0,0,.175);
92 }
93 .dropdown-menu {
94  border-color: #eee;
95 
96  position: absolute;
97  top: 100%;
98  left: 0;
99  z-index: 1000;
100  display: none;
101  float: left;
102  min-width: 160px;
103  margin: 2px 0 0;
104  font-size: 14px;
105  text-align: left;
106  list-style: none;
107  background-color: #fff;
108  -webkit-background-clip: padding-box;
109  background-clip: padding-box;
110  border: 1px solid #ccc;
111  border: 1px solid rgba(0,0,0,.15);
112  border-radius: 4px;
113  -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175);
114  box-shadow: 0 6px 12px rgba(0,0,0,.175);
115 }
116 
117 
118 .dropdown-toggle{
119  text-decoration: none !important;
120 }
121 
122 .dropdown-toggle::after {
123  /* font part */
124  font-family: "Font Awesome 5 Free";
125  font-size: 0.7em;
126  font-weight: 900;
127  font-style: normal;
128  font-variant: normal;
129  text-rendering: auto;
130  -webkit-font-smoothing: antialiased;
131  text-align:center;
132  text-decoration:none;
133  margin: auto 3px;
134  display: inline-block;
135  content: "\f078";
136 
137  -webkit-transition: -webkit-transform .2s ease-in-out;
138  -ms-transition: -ms-transform .2s ease-in-out;
139  transition: transform .2s ease-in-out;
140 }
141 
142 .open>.dropdown-toggle::after {
143  transform: rotate(180deg);
144 }
145 
146 /*
147 * MENU Dropdown
148 */
149 .login_block.usedropdown .logout-btn{
150  /* display: none; */
151 }
152 
153 .tmenu .open.dropdown, .tmenu .open.dropdown {
154  background: rgba(0, 0, 0, 0.1);
155 }
156 .tmenu .dropdown-menu, .login_block .dropdown-menu {
157  position: absolute;
158  right: 0;
159  <?php echo $left; ?>: auto;
160  line-height:1.3em;
161 }
162 .tmenu .dropdown-menu, .login_block .dropdown-menu .user-body {
163  border-bottom-right-radius: 4px;
164  border-bottom-left-radius: 4px;
165 }
166 .user-body {
167  color: #333;
168 }
169 .side-nav-vert .user-menu .dropdown-menu {
170  border-top-right-radius: 0;
171  border-top-left-radius: 0;
172  padding: 1px 0 0 0;
173  border-top-width: 0;
174  width: 300px;
175 }
176 .side-nav-vert .user-menu .dropdown-menu {
177  margin-top: 0;
178  border-top-left-radius: 0;
179  border-top-right-radius: 0;
180 }
181 
182 .side-nav-vert .user-menu .dropdown-menu > .user-header {
183  min-height: 100px;
184  padding: 10px;
185  text-align: center;
186  white-space: normal;
187 }
188 
189 #topmenu-global-search-dropdown .dropdown-menu{
190  width: 300px;
191  max-width: 100%;
192 }
193 
194 div#topmenu-global-search-dropdown, div#topmenu-bookmark-dropdown {
195  line-height: 46px;
196 }
197 a.top-menu-dropdown-link {
198  padding: 8px;
199 }
200 
201 .dropdown-user-image {
202  border-radius: 50%;
203  vertical-align: middle;
204  z-index: 5;
205  height: 90px;
206  width: 90px;
207  border: 3px solid;
208  border-color: transparent;
209  border-color: rgba(255, 255, 255, 0.2);
210  max-width: 100%;
211  max-height :100%;
212 }
213 
214 .dropdown-menu > .user-header{
215  background: rgb(<?php echo $colorbackhmenu1 ?>);
216 }
217 
218 
219 
220 .dropdown-menu .dropdown-header{
221  padding: 8px 10px 10px 10px;
222 }
223 
224 .dropdown-menu > .user-footer {
225  background-color: #f9f9f9;
226  padding: 10px;
227 }
228 
229 .user-footer:after {
230  clear: both;
231 }
232 
233 
234 .dropdown-menu > .bookmark-footer{
235  border-top: 1px solid #f0f0f0;
236  background-color: #f9f9f9;
237  padding: 10px;
238 }
239 
240 
241 .dropdown-menu > .user-body, .dropdown-body{
242  padding: 15px;
243  border-bottom: 1px solid #f4f4f4;
244  border-top: 1px solid #dddddd;
245  white-space: normal;
246 }
247 
248 .dropdown-menu > .bookmark-body, .dropdown-body{
249  padding: 10px 0;
250  overflow-y: auto;
251  max-height: 60vh ; /* fallback for browsers without support for calc() */
252  max-height: calc(90vh - 110px) ;
253  white-space: normal;
254 }
255 #topmenu-bookmark-dropdown .dropdown-menu > .bookmark-body, #topmenu-bookmark-dropdown .dropdown-body{
256  max-height: 60vh ; /* fallback for browsers without support for calc() */
257  max-height: calc(90vh - 200px) ;
258 }
259 
260 
261 .dropdown-body::-webkit-scrollbar {
262  width: 8px;
263  }
264 .dropdown-body::-webkit-scrollbar-thumb {
265  -webkit-border-radius: 0;
266  border-radius: 0;
267  /* background: rgb(<?php echo $colorbackhmenu1 ?>); */
268  background: #aaa;
269 }
270 .dropdown-body::-webkit-scrollbar-track {
271  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
272  -webkit-border-radius: 0;
273  border-radius: 0;
274 }
275 
276 
277 #topmenu-login-dropdown, #topmenu-bookmark-dropdown, #topmenu-global-search-dropdown {
278  padding: 0 5px 0 5px;
279 }
280 #topmenu-login-dropdown a:hover{
281  text-decoration: none;
282 }
283 
284 #topmenuloginmoreinfo-btn{
285  display: block;
286  text-aling: right;
287  color:#666;
288  cursor: pointer;
289 }
290 
291 #topmenuloginmoreinfo{
292  display: none;
293  clear: both;
294  font-size: 0.95em;
295 }
296 
297 .button-top-menu-dropdown {
298  display: inline-block;
299  padding: 6px 12px;
300  margin-bottom: 0;
301  font-size: 14px;
302  font-weight: 400;
303  line-height: 1.42857143;
304  text-align: center;
305  white-space: nowrap;
306  vertical-align: middle;
307  -ms-touch-action: manipulation;
308  touch-action: manipulation;
309  cursor: pointer;
310  -webkit-user-select: none;
311  -moz-user-select: none;
312  -ms-user-select: none;
313  user-select: none;
314  background-image: none;
315  border: 1px solid transparent;
316  border-radius: 4px;
317 }
318 
319 .user-footer .button-top-menu-dropdown {
320  color: #666666;
321  border-radius: 0;
322  -webkit-box-shadow: none;
323  -moz-box-shadow: none;
324  box-shadow: none;
325  border-width: 1px;
326  background-color: #f4f4f4;
327  border-color: #ddd;
328 }
329 
330 .dropdown-menu a.top-menu-dropdown-link {
331  color: rgb(<?php print $colortextlink; ?>) !important;
332  -webkit-box-shadow: none;
333  -moz-box-shadow: none;
334  box-shadow: none;
335  display: block;
336  margin: 5px 0px;
337 }
338 
339 .dropdown-item {
340  display: block !important;
341  box-sizing: border-box;
342  width: 100%;
343  padding: .25rem 1.5rem .25rem 1rem;
344  clear: both;
345  font-weight: 400;
346  color: #212529 !important;
347  text-align: inherit;
348  background-color: transparent;
349  border: 0;
350 
351  -webkit-box-shadow: none;
352  -moz-box-shadow: none;
353  box-shadow: none;
354 }
355 
356 .dropdown-item::before {
357  /* font part */
358  font-family: "Font Awesome 5 Free";
359  font-weight: 900;
360  font-style: normal;
361  font-variant: normal;
362  text-rendering: auto;
363  -webkit-font-smoothing: antialiased;
364  text-align:center;
365  text-decoration:none;
366  margin-right: 5px;
367  display: inline-block;
368  content: "\f0da";
369  color: rgba(0,0,0,0.3);
370 }
371 
372 
373 .dropdown-item.active, .dropdown-item:hover, .dropdown-item:focus {
374  color: #<?php echo $colortextbackhmenu; ?> !important;
375  text-decoration: none;
376  background: rgb(<?php echo $colorbackhmenu1 ?>);
377 }
378 
379 /*
380 * SEARCH
381 */
382 
383 .dropdown-search-input {
384  width: 100%;
385  padding: 10px 35px 10px 20px;
386 
387  background-color: transparent;
388  font-size: 14px;
389  line-height: 16px;
390  box-sizing: border-box;
391 
392 
393  color: #575756;
394  background-color: transparent;
395  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");
396  background-repeat: no-repeat;
397  background-size: 16px 16px;
398  background-position: 95% center;
399  border-radius: 50px;
400  border: 1px solid #c4c4c2 !important;
401  transition: all 250ms ease-in-out;
402  backface-visibility: hidden;
403  transform-style: preserve-3d;
404 
405 }
406 
407 
408 /* smartphone */
409 @media only screen and (max-width: 767px)
410 {
411  #topmenu-bookmark-dropdown a.login-dropdown-a {
412  color: #000;
413  }
414 
415  #topmenu-bookmark-dropdown .dropdown-menu {
416  width: 230px;
417  }
418 
419  div#topmenu-bookmark-dropdown {
420  position: unset;
421  }
422 
423  div#topmenu-global-search-dropdown, div#topmenu-bookmark-dropdown {
424  line-height: unset;
425  }
426 
427  ul.tmenu {
428  margin-right: 2px;
429  }
430 }
431 
432 @media only screen and (max-width: 320px)
433 {
434  .dropdown dd ul {
435  max-width: 270px; /* must always be 50 slower than width */
436  }
437 }
438 @media only screen and (max-width: 300px)
439 {
440  .dropdown dd ul {
441  max-width: 250px;
442  }
443 }
444 @media only screen and (max-width: 280px)
445 {
446  .dropdown dd ul {
447  max-width: 230px;
448  }
449 }
450 
451 
452 .dropdown-search-input::placeholder {
453  color: color(#575756 a(0.8));
454  letter-spacing: 1.5px;
455 }
456 
457 .hidden-search-result{
458  display: none !important;
459 }
$conf db user
Definition: repair.php:109
print
Draft customers invoices.
Definition: index.php:89