18if (!defined(
'ISLOADEDBYSTEELSHEET')) {
19 die(
'Must be call by steelsheet');
36@phan-var-force string $butactionbg
37@phan-var-force string $colortextlink
38@phan-var-force int<0,1> $dol_optimize_smallscreen
39@phan-var-force string $fontlist
40@phan-var-force string $left
41@phan-var-force int<0,max> $nbtopmenuentries
42@phan-var-force string $right
43@phan-var-force string $textbutaction
50 --btncolortext: rgb(<?php print $colortextlink; ?>);
51 --btncolorbg: #fbfbfb;
52 --btncolorborderhover: none;
53 --btncolorborder: #FFF;
54 --butactiondeletebg: rgb(234,228,225);
55 --butactioncancelbg: #e3e3e3;
56 --butactionbg: rgb(<?php print $butactionbg; ?>);
57 --textbutaction: rgb(<?php print $textbutaction; ?>);
62 print
"/* For dark mode */\n";
64 print
"@media (prefers-color-scheme: dark) {";
66 print
"@media not print {";
72 --btncolorbg: rgb(26,27,27);
73 --btncolorborderhover: #ffffff;
74 --btncolorborder: #2b2c2e;
75 --butactiondeletebg: rgb(252,84,91);
76 --butactionbg: rgb(173,140,79);
77 --textbutaction: rgb(255,255,255);
90div.tabsAction > a.butAction, div.tabsAction > a.butActionRefused, div.tabsAction > a.butActionDelete,
91div.tabsAction > span.butAction, div.tabsAction > span.butActionRefused, div.tabsAction > span.butActionDelete,
92div.tabsAction > div.divButAction > span.butAction,
93div.tabsAction > div.divButAction > span.butActionDelete,
94div.tabsAction > div.divButAction > span.butActionRefused,
95div.tabsAction > div.divButAction > a.butAction,
96div.tabsAction > div.divButAction > a.butActionDelete,
97div.tabsAction > div.divButAction > a.butActionRefused,
98div.tabsAction > .dropdown > .dropdown-toggle {
99 margin-bottom: 1.4em !important;
100 margin-right: 0px !important;
105 padding: 0 !important;
106 margin: 0 !important;
108div.tabsActionNoBottom > a.butAction, div.tabsActionNoBottom > a.butActionRefused {
109 margin-bottom: 0 !important;
112span.butAction, span.butActionDelete {
115.paginationafterarrows .butAction {
119 background: var(--butactionbg);
120 color: var(--textbutaction) !important;
123.butAction, .butActionRefused, .butActionDelete {
126:not(.center) > .butActionRefused:last-child, :not(.center) > .butAction:last-child, :not(.center) > .butActionDelete:last-child {
127 margin-<?php echo $right; ?>: 0px !important;
129.butAction, .butAction:link, .butAction:visited, .butAction:hover, .butAction:
active,
131.butActionDelete, .butActionDelete:link, .butActionDelete:visited, .butActionDelete:hover, .butActionDelete:
active,
134 text-decoration: none;
135 text-transform: uppercase;
138 margin: 0em <?php echo($dol_optimize_smallscreen ?
'0.6' :
'1'); ?>em;
139 padding: 0.6em <?php echo($dol_optimize_smallscreen ?
'0.6' :
'0.7'); ?>em;
140 display:
inline-block;
144 border: 1px solid transparent;
155.butActionNew, .butActionNewRefused, .butActionNew:link, .butActionNew:visited, .butActionNew:hover, .butActionNew:
active {
156 text-decoration: none;
157 text-transform: uppercase;
160 margin: 0em 0.3em 0 0.3em !important;
161 padding: 0.2em <?php echo($dol_optimize_smallscreen ?
'0.4' :
'0.7'); ?>em 0.3em;
163 display:
inline-block;
168.tableforfieldcreate a.butActionNew>span.fa-plus-circle, .tableforfieldcreate a.butActionNew>span.fa-plus-circle:hover,
169.tableforfieldedit a.butActionNew>span.fa-plus-circle, .tableforfieldedit a.butActionNew>span.fa-plus-circle:hover,
170span.butActionNew>span.fa-plus-circle, span.butActionNew>span.fa-plus-circle:hover,
171a.butActionNewRefused>span.fa-plus-circle, a.butActionNewRefused>span.fa-plus-circle:hover,
172span.butActionNewRefused>span.fa-plus-circle, span.butActionNewRefused>span.fa-plus-circle:hover,
173a.butActionNew>span.fa-list-alt, a.butActionNew>span.fa-list-alt:hover,
174span.butActionNew>span.fa-list-alt, span.butActionNew>span.fa-list-alt:hover,
175a.butActionNewRefused>span.fa-list-alt, a.butActionNewRefused>span.fa-list-alt:hover,
176span.butActionNewRefused>span.fa-list-alt, span.butActionNewRefused>span.fa-list-alt:hover
182a.butActionNew>span.fa, a.butActionNew>span.fa:hover,
183span.butActionNew>span.fa, span.butActionNew>span.fa:hover,
184a.butActionNewRefused>span.fa, a.butActionNewRefused>span.fa:hover,
185span.butActionNewRefused>span.fa, span.butActionNewRefused>span.fa:hover
187 padding-<?php echo $left; ?>: 6px;
191 webkit-box-shadow: none;
194.butAction:hover, .dropdown-holder.open > .butAction {
196 box-shadow: 0px 0px 6px rgba(50,50,50,0.4), inset 0px 0px 200px rgba(0,0,0,0.3);
199 text-decoration: underline;
200 box-shadow: unset !important;
203.butActionDanger, .butActionDanger:link, .butActionDanger:visited, .butActionDanger:hover, .butActionDanger:
active, .buttonDanger {
204 background: var(--butactiondeletebg) !important;
206 color: #633 !important;
209.butActionDelete, .butActionDelete:link, .butActionDelete:visited, .butActionDelete:hover, .butActionDelete:
active, .buttonDelete {
210 background: var(--butactiondeletebg) !important;
212 color: #633 !important;
214.button.button-cancel:not(.buttongen), .button.button-cancel:link:not(.buttongen), .button.button-cancel:visited:not(.buttongen), .button.button-cancel:hover:not(.buttongen), .button.button-cancel:
active:not(.buttongen), .button.button-cancel:not(.buttongen) {
215 background: var(--butactioncancelbg) !important;
217 color: #333 !important;
220.butActionDelete:hover {
221 box-shadow: 0px 0px 4px 1px rgba(50, 50, 50, 0.4), 0px 0px 0px rgba(60,60,60,0.1);
223.button.button-cancel:hover:not(.buttongen) {
224 box-shadow: 0px 0px 4px 1px rgba(50, 50, 50, 0.2), 0px 0px 0px rgba(60,60,60,0.1);
228#action-clone .textbutton, .butAction.butActionClone .textbutton {
230 display:
inline-block;
232#action-clone .textbutton::before, .butAction.butActionClone .textbutton::before {
234 font-family:
"Font Awesome 5 Free";
238 display:
inline-block;
239 transform: rotate(90deg);
244#action-email .textbutton, .butAction.butActionEmail .textbutton {
246 display:
inline-block;
248#action-email .textbutton::before, .butAction.butActionEmail .textbutton::before {
250 font-family:
"Font Awesome 5 Free";
256#action-delete .textbutton, .butAction.butActionDelete .textbutton {
258 display:
inline-block;
260#action-delete .textbutton::before, .butAction.butActionDelete .textbutton::before {
262 font-family:
"Font Awesome 5 Free";
273 text-decoration: none !important;
274 text-transform: uppercase;
275 font-weight: bold !important;
277 cursor: not-allowed !important;
278 font-family: <?php print
$fontlist ?> !important;
279 display:
inline-block;
282 box-sizing: border-box;
283 -moz-box-sizing: border-box;
284 -webkit-box-sizing: border-box;
285 color: #999 !important;
287 border: 1px solid #ccc;
289.butActionNewRefused, .butActionNewRefused:link, .butActionNewRefused:visited, .butActionNewRefused:hover, .butActionNewRefused:
active {
290 text-decoration: none !important;
291 text-transform: uppercase;
292 font-weight: normal !important;
294 white-space: nowrap !important;
295 cursor: not-allowed !important;
296 margin: 0em <?php echo($dol_optimize_smallscreen ?
'0.7' :
'0.9'); ?>em;
297 padding: 0.2em <?php echo($dol_optimize_smallscreen ?
'0.4' :
'0.7'); ?>em;
298 font-family: <?php print
$fontlist ?> !important;
299 display:
inline-block;
302 color: #999 !important;
304 box-shadow: none !important;
307.butActionTransparent {
308 color: #222 ! important;
309 background-color: transparent ! important;
312.butActionLogin, .butActionLogin:link, .butActionLogin:visited, .butActionLogin:hover, .butActionLogin:
active {
313 background-color: var(--butactionbg);
322.btnTitle, a.btnTitle {
323 display:
inline-block;
329 vertical-align: middle;
330 -ms-touch-action: manipulation;
331 touch-action: manipulation;
333 -webkit-
user-select: none;
334 -moz-
user-select: none;
335 -ms-
user-select: none;
337 box-shadow: var(--btncolorbg);
338 text-decoration: none;
343 color: var(--btncolortext);
347 border: 1px solid transparent;
350a.btnTitle.btnTitleSelected {
351 border: 1px solid #ccc;
355.btnTitle > .btnTitle-icon{
359.btnTitle > .btnTitle-label{
363.btnTitle:hover, a.btnTitle:hover {
364 border: 1px solid #bbb;
369 text-decoration: none;
378.btnTitle.refused, a.btnTitle.refused, .btnTitle.refused:hover, a.btnTitle.refused:hover {
381 background-color: #fbfbfb;
382 background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
385.btnTitle:hover .btnTitle-label {
386 color: var(--btncolorborderhover);
388.btnTitle.reposition:not(.btnTitleSelected) {
389 background-color: unset;
390 border: 1px solid transparent;
393.btnTitle.refused .btnTitle-label, .btnTitle.refused:hover .btnTitle-label {
402div.pagination li:first-child a.btnTitle, div.pagination li.paginationafterarrows a.btnTitle,
403table.table-fiche-title tr.toptitle td.col-center div.nowraponall a.btnTitle,
404table.table-fiche-title tr.titre td.col-center div.nowraponall a.btnTitle,
405table.table-fiche-title tr.toptitle td.col-right a.btnTitle,
406table.table-fiche-title tr.titre td.col-right a.btnTitle {
407 margin-<?php echo $left; ?>: 10px;
410.button-title-separator{
411 display:
inline-block;
422@media only screen and (max-width: <?php echo !
getDolGlobalString(
'THEME_ELDY_WITDHOFFSET_FOR_REDUC2') ? round($nbtopmenuentries * 69, 0) + 130 :
$conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC2; ?>px)
424 .butAction, .butActionRefused, .butActionDelete {
430@media only screen and (max-width: <?php echo !
getDolGlobalString(
'THEME_ELDY_WITDHOFFSET_FOR_REDUC3') ? round($nbtopmenuentries * 47, 0) + 130 :
$conf->global->THEME_ELDY_WITDHOFFSET_FOR_REDUC3; ?>px)
432 .butAction, .butActionRefused, .butActionDelete {
439@media only screen and (max-width: 767px)
441 .butAction, .butActionRefused, .butActionDelete {
446 .btnTitle, a.btnTitle {
447 display:
inline-block;
448 padding: 4px 4px 4px 4px;
451 .paginationafterarrows a.btnTitlePlus:hover span:before, .titre_right a.btnTitlePlus:hover span:before {
452 font-size: unset !important;
458.butActionRefused, .butActionNewRefused, .btnTitle.refused {
459 display: none !important;
470 border: 1px solid #ddd;
474 text-decoration: none !important;
478 background-color: #ddd;
479 border: 1px solid #ddd;
489 display:
inline-block;
501 background: transparent;
504 color: var(--colortextlink, inherit);
509 -webkit-font-smoothing: inherit;
510 -moz-osx-font-smoothing: inherit;
513 -webkit-appearance: none;
516 transition: background 0.8s;
517 background: transparent radial-gradient(circle, transparent 1%, hsla(var(--colortextlink-h),var(--colortextlink-s) ,var(--colortextlink-l) , 0.1) 1%, transparent 10%) center/15000%;
520button.btn-low-emphasis.--btn-icon{
524button.btn-low-emphasis :is(.fa, .fas){
525 color: var(--colortextlink, inherit);
529button.btn-low-emphasis:is(:focus,:hover) :is(.fa, .fas){
534 background-color: hsla(var(--colortextlink-h),var(--colortextlink-s) ,var(--colortextlink-l) , 0.1);
535 background-size: 100%;
536 transition: background 0s;
540input.button-save, input.button-cancel {
542 margin-left: 8px !important;
543 margin-right: 8px !important;
548@media only screen and (max-width: 767px)
550 input.button-save, input.button-cancel {
552 margin-left: 4px !important;
553 margin-right: 4px !important;
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $conf
The main.inc.php has been included so the following variable are now defined:
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
$conf db user
Active Directory does not allow anonymous connections.
multi select button
0 = Do not include form tag and submit button -1 = Do not include form tag but include submit button
treeview li table
No Email.