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