dropdown.inc.php 11 KB

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