main_menu_fa_icons.inc.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php if (!defined('ISLOADEDBYSTEELSHEET')) {
  2. die('Must be call by steelsheet');
  3. } ?>
  4. /* <style type="text/css" > */
  5. .mainmenu::before{
  6. /* font part */
  7. font-family: "Font Awesome 5 Free";
  8. font-weight: 900;
  9. font-style: normal;
  10. font-variant: normal;
  11. text-rendering: auto;
  12. line-height: 28px;
  13. -webkit-font-smoothing: antialiased;
  14. text-align:center;
  15. text-decoration:none;
  16. color: var(--colortextbackhmenu);
  17. /* font-size: <?php echo $topMenuFontSize; ?>; */
  18. }
  19. div.mainmenu.menu {
  20. background-image: none;
  21. }
  22. div.mainmenu.menu::before {
  23. content: "\f0c9";
  24. }
  25. div.mainmenu.home::before{
  26. content: "\f015";
  27. }
  28. div.mainmenu.billing::before {
  29. content: "\f51e";
  30. }
  31. div.mainmenu.accountancy::before {
  32. /* content: "\f53d"; */
  33. content: "\f688";
  34. font-size: 1.2em;
  35. }
  36. div.mainmenu.agenda::before {
  37. content: "\f073";
  38. }
  39. div.mainmenu.bank::before {
  40. content: "\f19c";
  41. }
  42. <?php if (getDolGlobalInt('MAIN_FEATURES_LEVEL') == 2) { ?>
  43. /* TESTING USAGE OF SVG WITHOUT FONT */
  44. div.mainmenu.cashdesk {
  45. line-height: 26px;
  46. }
  47. div.mainmenu.cashdesk .tmenuimage {
  48. line-height: 26px;
  49. display: inline-block;
  50. vertical-align: middle;
  51. height: <?php echo $topMenuFontSize; ?>;
  52. background-color: #<?php echo $colortextbackhmenu; ?>;
  53. width: 100%;
  54. -webkit-mask: url(<?php echo DOL_URL_ROOT.'/theme/common/fontawesome-5/svgs/solid/cash-register.svg' ?>) no-repeat 50% 50%; /* for old webkit browser */
  55. mask: url(<?php echo DOL_URL_ROOT.'/theme/common/fontawesome-5/svgs/solid/cash-register.svg' ?>) no-repeat 50% 50%;
  56. }
  57. <?php } else { ?>
  58. div.mainmenu.cashdesk::before {
  59. content: "\f788";
  60. }
  61. <?php } ?>
  62. div.mainmenu.takepos::before {
  63. content: "\f788";
  64. }
  65. div.mainmenu.companies::before {
  66. content: "\f1ad";
  67. }
  68. div.mainmenu.commercial::before {
  69. content: "\f0f2";
  70. }
  71. div.mainmenu.ecm::before {
  72. content: "\f07c";
  73. }
  74. div.mainmenu.externalsite::before {
  75. content: "\f360";
  76. }
  77. div.mainmenu.ftp::before {
  78. content: "\f362";
  79. }
  80. div.mainmenu.hrm::before {
  81. content: "\f508";
  82. }
  83. div.mainmenu.members::before {
  84. content: "\f007";
  85. }
  86. div.mainmenu.products::before {
  87. content: "\f1b2";
  88. }
  89. div.mainmenu.mrp::before {
  90. content: "\f1b3";
  91. }
  92. div.mainmenu.project::before {
  93. content: "\f542";
  94. }
  95. div.mainmenu.ticket::before {
  96. content: "\f3ff";
  97. }
  98. div.mainmenu.tools::before {
  99. content: "\f0ad";
  100. }
  101. div.mainmenu.website::before {
  102. content: "\f57d";
  103. }
  104. div.mainmenu.generic1::before {
  105. content: "\f249";
  106. }
  107. div.mainmenu.generic2::before {
  108. content: "\f249";
  109. }
  110. div.mainmenu.generic3::before {
  111. content: "\f249";
  112. }
  113. div.mainmenu.generic4::before {
  114. content: "\f249";
  115. }
  116. /* Define color of some picto */
  117. .fa-phone, .fa-mobile-alt, .fa-fax {
  118. opacity: 0.7;
  119. color: #440;
  120. }
  121. .fa-at, .fa-external-link-alt, .fa-share-alt {
  122. opacity: 0.7;
  123. color: #304;
  124. }
  125. .fa-trash {
  126. color: #666;
  127. }
  128. .fa-trash:hover:before {
  129. color: #800;
  130. }
  131. .fa-play {
  132. color: #444;
  133. }
  134. .fa-link, .fa-unlink {
  135. color: #555;
  136. }
  137. /* Define square Dolibarr logo in pure CSS */
  138. .fa-dolibarr-css{
  139. color: #235481;
  140. background: currentColor;
  141. height: 150px;
  142. width: 150px;
  143. position: relative;
  144. }
  145. .fa-dolibarr-css:before{
  146. content: '';
  147. position: absolute;
  148. left: 19%;
  149. top: 17%;
  150. width: 25%;
  151. height: 25%;
  152. border: solid 30px white;
  153. border-radius: 0% 200% 200% 0% / 0% 180% 180% 0%;
  154. }
  155. .fa-dolibarr-css:after{
  156. content: '';
  157. position: absolute;
  158. left: 19%;
  159. top: 17%;
  160. width: 5px;
  161. height: 25%;
  162. border-bottom: solid 60px currentColor;
  163. margin-left: 30px;
  164. }
  165. .em092 {
  166. font-size: 0.92em;
  167. }
  168. .em088 {
  169. font-size: 0.88em;
  170. }
  171. .em080 {
  172. font-size: 0.80em;
  173. }