dolibarr  20.0.0-beta
main_menu_fa_icons.inc.php
1 <?php
2 /*
3 /* Copyright (C) 2004-2017 Laurent Destailleur <eldy@users.sourceforge.net>
4  * Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <https://www.gnu.org/licenses/>.
18  */
19 
24 if (!defined('ISLOADEDBYSTEELSHEET')) {
25  die('Must be call by stylesheet');
26 }
27 ?>
28 /* <style type="text/css" > */
29 
30 .mainmenu::before{
31  /* font part */
32  font-family: "<?php echo getDolGlobalString('MAIN_FONTAWESOME_FAMILY', 'Font Awesome 5 Free'); ?>";
33  font-weight: 900;
34  font-style: normal;
35  font-variant: normal;
36  text-rendering: auto;
37  line-height: 28px;
38  -webkit-font-smoothing: antialiased;
39  text-align:center;
40  text-decoration:none;
41  color: var(--colortextbackhmenu);
42  /* font-size: <?php echo $topMenuFontSize; ?>; */
43 }
44 
45 div.mainmenu.menu {
46  background-image: none;
47 }
48 
49 
50 div.mainmenu.generic1::before {
51  content: "\f249";
52 }
53 
54 div.mainmenu.generic2::before {
55  content: "\f249";
56 }
57 
58 div.mainmenu.generic3::before {
59  content: "\f249";
60 }
61 
62 div.mainmenu.generic4::before {
63  content: "\f249";
64 }
65 
66 /* Define color of some picto */
67 
68 .fa-phone, .fa-mobile-alt, .fa-fax {
69  opacity: 0.7;
70  color: #440;
71 }
72 .fa-at, .fa-external-link-alt, .fa-share-alt {
73  opacity: 0.7;
74  color: #304;
75 }
76 .fa-trash {
77  color: #666;
78 }
79 .fa-trash:hover:before {
80  color: #800;
81 }
82 .fa-play {
83  color: #444;
84 }
85 .fa-link, .fa-unlink {
86  color: #555;
87 }
88 
89 /* Define square Dolibarr logo in pure CSS */
90 
91 .fa-dolibarr-css{
92  color: #235481;
93  background: currentColor;
94  height: 150px;
95  width: 150px;
96  position: relative;
97 }
98 .fa-dolibarr-css:before{
99  content: '';
100  position: absolute;
101  left: 19%;
102  top: 17%;
103  width: 25%;
104  height: 25%;
105  border: solid 30px white;
106  border-radius: 0% 200% 200% 0% / 0% 180% 180% 0%;
107 }
108 .fa-dolibarr-css:after{
109  content: '';
110  position: absolute;
111  left: 19%;
112  top: 17%;
113  width: 5px;
114  height: 25%;
115  border-bottom: solid 60px currentColor;
116  margin-left: 30px;
117 }
118 .tmenu span.fas, .tmenu span.far {
119  <?php
120  if (!getDolGlobalString('THEME_MENU_COLORLOGO')) {
121  echo "color: unset !important;";
122  }
123  ?>;
124  line-height: 28px;
125  text-align: center;
126 }
127 
128 .em092 {
129  font-size: 0.92em;
130 }
131 
132 .em088 {
133  font-size: 0.88em;
134 }
135 
136 .em080 {
137  font-size: 0.80em;
138 }
print $object position
Definition: edit.php:195
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.