445 lines
14 KiB
PHP
445 lines
14 KiB
PHP
<?php
|
|
if (!defined('ISLOADEDBYSTEELSHEET')) {
|
|
die('Must be call by steelsheet');
|
|
} ?>
|
|
/* <style type="text/css" > */
|
|
|
|
:root {
|
|
--btncolortext:rgb(<?php print $colortextlink; ?>);
|
|
--btncolorbg: #fbfbfb;
|
|
--btncolorborderhover: none;
|
|
--btncolorborder: #FFF;
|
|
--butactiondeletebg: rgb(234,228,225);
|
|
--butactionbg: rgb(<?php print $butactionbg; ?>);
|
|
--textbutaction: rgb(<?php print $textbutaction; ?>);
|
|
}
|
|
|
|
<?php
|
|
if (getDolGlobalString('THEME_DARKMODEENABLED')) {
|
|
print "/* For dark mode */\n";
|
|
if (getDolGlobalInt('THEME_DARKMODEENABLED') != 2) {
|
|
print "@media (prefers-color-scheme: dark) {"; // To test, click on the 3 dots menu, then Other options then Display then emulate prefer-color-schemes
|
|
} else {
|
|
print "@media not print {";
|
|
}
|
|
print "
|
|
:root {
|
|
|
|
--btncolortext: ;
|
|
--btncolorbg: rgb(26,27,27);
|
|
--btncolorborderhover: #ffffff;
|
|
--btncolorborder: #2b2c2e;
|
|
--butactiondeletebg: rgb(252,84,91);
|
|
--butactionbg: rgb(173,140,79);
|
|
--textbutaction: rgb(255,255,255);
|
|
|
|
}\n";
|
|
print "}";
|
|
}
|
|
?>
|
|
|
|
/* ============================================================================== */
|
|
/* Buttons for actions */
|
|
/* ============================================================================== */
|
|
|
|
|
|
div.tabsAction > a.butAction, div.tabsAction > a.butActionRefused, div.tabsAction > a.butActionDelete,
|
|
div.tabsAction > span.butAction, div.tabsAction > span.butActionRefused, div.tabsAction > span.butActionDelete,
|
|
div.tabsAction > div.divButAction > span.butAction,
|
|
div.tabsAction > div.divButAction > span.butActionDelete,
|
|
div.tabsAction > div.divButAction > span.butActionRefused,
|
|
div.tabsAction > div.divButAction > a.butAction,
|
|
div.tabsAction > div.divButAction > a.butActionDelete,
|
|
div.tabsAction > div.divButAction > a.butActionRefused {
|
|
margin-bottom: 1.4em !important;
|
|
margin-right: 0px !important;
|
|
}
|
|
div.tabsActionNoBottom > a.butAction, div.tabsActionNoBottom > a.butActionRefused {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
span.butAction, span.butActionDelete {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.butAction {
|
|
background: var(--butactionbg);
|
|
color: var(--textbutaction) !important;
|
|
/* background: rgb(230, 232, 239); */
|
|
}
|
|
.butActionRefused, .butAction, .butActionDelete {
|
|
border-radius: 3px;
|
|
}
|
|
:not(.center) > .butActionRefused:last-child, :not(.center) > .butAction:last-child, :not(.center) > .butActionDelete:last-child {
|
|
margin-<?php echo $right; ?>: 0px !important;
|
|
}
|
|
.butActionRefused, .butAction, .butAction:link, .butAction:visited, .butAction:hover, .butAction:active, .butActionDelete, .butActionDelete:link, .butActionDelete:visited, .butActionDelete:hover, .butActionDelete:active {
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
line-height: 1.8em;
|
|
|
|
margin: 0em <?php echo($dol_optimize_smallscreen ? '0.6' : '0.9'); ?>em;
|
|
padding: 0.6em <?php echo($dol_optimize_smallscreen ? '0.6' : '0.7'); ?>em;
|
|
font-family: <?php print $fontlist ?>;
|
|
display: inline-block;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
color: #444;
|
|
|
|
/* border: 1px solid #aaa; */
|
|
/* border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); */
|
|
|
|
/*border-top-right-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
border-top-left-radius: 0 !important;
|
|
border-bottom-left-radius: 0 !important;*/
|
|
}
|
|
.butActionNew, .butActionNewRefused, .butActionNew:link, .butActionNew:visited, .butActionNew:hover, .butActionNew:active {
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
font-weight: normal;
|
|
|
|
margin: 0em 0.3em 0 0.3em !important;
|
|
padding: 0.2em <?php echo($dol_optimize_smallscreen ? '0.4' : '0.7'); ?>em 0.3em;
|
|
font-family: <?php print $fontlist ?>;
|
|
display: inline-block;
|
|
/* text-align: center; New button are on right of screen */
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button {
|
|
border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);
|
|
display: inline-block;
|
|
padding: 0.4em <?php echo($dol_optimize_smallscreen ? '0.4' : '0.7'); ?>em;
|
|
margin: 0em <?php echo($dol_optimize_smallscreen ? '0.7' : '0.9'); ?>em;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
color: #333333 !important;
|
|
text-decoration: none !important;
|
|
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
|
|
background-color: #f5f5f5;
|
|
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
|
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
|
background-repeat: repeat-x;
|
|
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
|
|
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
border: 1px solid #bbbbbb;
|
|
border-bottom-color: #a2a2a2;
|
|
-webkit-border-radius: 2px;
|
|
border-radius: 2px;
|
|
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
}
|
|
.butActionNew, .butActionNewRefused, .butActionNew:link, .butActionNew:visited, .butActionNew:hover, .butActionNew:active {
|
|
text-decoration: none;
|
|
/* border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); */
|
|
display: inline-block;
|
|
padding: 0.2em <?php echo($dol_optimize_smallscreen ? '0.4' : '0.7'); ?>em;
|
|
margin: 0em <?php echo($dol_optimize_smallscreen ? '0.7' : '0.9'); ?>em;
|
|
line-height: 20px;
|
|
/* text-align: center; New button are on right of screen */
|
|
vertical-align: middle;
|
|
cursor: pointer;
|
|
/* color: #ffffff !important; */
|
|
/* text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); */
|
|
-webkit-border-radius: 2px;
|
|
border-radius: 2px;
|
|
/* -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05); */
|
|
/* background-color: #006dcc;
|
|
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
|
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
|
background-repeat: repeat-x; */
|
|
}
|
|
a.butActionNew>span.fa-plus-circle { padding-left: 6px; font-size: 1.5em; }
|
|
a.butActionNewRefused>span.fa-plus-circle { padding-left: 6px; font-size: 1.5em; }
|
|
|
|
.tableforfieldcreate a.butActionNew>span.fa-plus-circle, .tableforfieldcreate a.butActionNew>span.fa-plus-circle:hover,
|
|
.tableforfieldedit a.butActionNew>span.fa-plus-circle, .tableforfieldedit a.butActionNew>span.fa-plus-circle:hover,
|
|
span.butActionNew>span.fa-plus-circle, span.butActionNew>span.fa-plus-circle:hover,
|
|
a.butActionNewRefused>span.fa-plus-circle, a.butActionNewRefused>span.fa-plus-circle:hover,
|
|
span.butActionNewRefused>span.fa-plus-circle, span.butActionNewRefused>span.fa-plus-circle:hover,
|
|
a.butActionNew>span.fa-list-alt, a.butActionNew>span.fa-list-alt:hover,
|
|
span.butActionNew>span.fa-list-alt, span.butActionNew>span.fa-list-alt:hover,
|
|
a.butActionNewRefused>span.fa-list-alt, a.butActionNewRefused>span.fa-list-alt:hover,
|
|
span.butActionNewRefused>span.fa-list-alt, span.butActionNewRefused>span.fa-list-alt:hover
|
|
{
|
|
font-size: 1em;
|
|
padding-left: 0px;
|
|
}
|
|
|
|
.button {
|
|
color: #ffffff !important;
|
|
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
|
|
background-color: #006dcc;
|
|
background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
|
|
background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: -o-linear-gradient(top, #0088cc, #0044cc);
|
|
background-image: linear-gradient(to bottom, #0088cc, #0044cc);
|
|
background-repeat: repeat-x;
|
|
border-color: #0044cc #0044cc #002a80;
|
|
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
|
}
|
|
.button:disabled {
|
|
color: #666 !important;
|
|
text-shadow: none;
|
|
border-color: #555;
|
|
cursor: not-allowed;
|
|
|
|
background-color: #f5f5f5;
|
|
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
|
|
background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
|
|
background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
|
background-repeat: repeat-x
|
|
}
|
|
|
|
button.ui-button {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
a.butActionNew>span.fa, a.butActionNew>span.fa:hover,
|
|
span.butActionNew>span.fa, span.butActionNew>span.fa:hover,
|
|
a.butActionNewRefused>span.fa, a.butActionNewRefused>span.fa:hover,
|
|
span.butActionNewRefused>span.fa, span.butActionNewRefused>span.fa:hover
|
|
{
|
|
padding-<?php echo $left; ?>: 6px;
|
|
font-size: 1.5em;
|
|
border: none;
|
|
box-shadow: none;
|
|
-webkit-box-shadow: none;
|
|
}
|
|
|
|
.butAction:hover {
|
|
-webkit-box-shadow: 0px 0px 6px 1px rgba(50, 50, 50, 0.4), inset 0px 0px 200px rgba(60,60,60,0.1);
|
|
box-shadow: 0px 0px 6px 1px rgba(50, 50, 50, 0.4), inset 0px 0px 200px rgba(60,60,60,0.1);
|
|
}
|
|
.butActionNew:hover {
|
|
text-decoration: underline;
|
|
box-shadow: unset !important;
|
|
}
|
|
|
|
.butActionDelete, .butActionDelete:link, .butActionDelete:visited, .butActionDelete:hover, .butActionDelete:active, .buttonDelete {
|
|
background: var(--butactiondeletebg);
|
|
/* border: 1px solid #633; */
|
|
color: #633;
|
|
/* vertical-align: middle; */
|
|
}
|
|
|
|
.butActionDelete:hover {
|
|
-webkit-box-shadow: 0px 0px 6px 1px rgba(50, 50, 50, 0.4), 0px 0px 0px rgba(60,60,60,0.1);
|
|
box-shadow: 0px 0px 6px 1px rgba(50, 50, 50, 0.4), 0px 0px 0px rgba(60,60,60,0.1);
|
|
}
|
|
|
|
.butActionRefused {
|
|
text-decoration: none !important;
|
|
text-transform: uppercase;
|
|
font-weight: bold !important;
|
|
|
|
white-space: nowrap !important;
|
|
cursor: not-allowed !important;
|
|
margin: 0em <?php echo($dol_optimize_smallscreen ? '0.6' : '0.9'); ?>em;
|
|
padding: 0.6em <?php echo($dol_optimize_smallscreen ? '0.6' : '0.7'); ?>em;
|
|
font-family: <?php print $fontlist ?> !important;
|
|
display: inline-block;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
color: #999 !important;
|
|
|
|
border: 1px solid #ccc;
|
|
box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
}
|
|
.butActionNewRefused, .butActionNewRefused:link, .butActionNewRefused:visited, .butActionNewRefused:hover, .butActionNewRefused:active {
|
|
text-decoration: none !important;
|
|
text-transform: uppercase;
|
|
font-weight: normal !important;
|
|
|
|
white-space: nowrap !important;
|
|
cursor: not-allowed !important;
|
|
margin: 0em <?php echo($dol_optimize_smallscreen ? '0.7' : '0.9'); ?>em;
|
|
padding: 0.2em <?php echo($dol_optimize_smallscreen ? '0.4' : '0.7'); ?>em;
|
|
font-family: <?php print $fontlist ?> !important;
|
|
display: inline-block;
|
|
/* text-align: center; New button are on right of screen */
|
|
cursor: pointer;
|
|
color: #999 !important;
|
|
padding-top: 0.2em;
|
|
box-shadow: none !important;
|
|
-webkit-box-shadow: none !important;
|
|
}
|
|
|
|
.butActionTransparent {
|
|
color: #222 ! important;
|
|
background-color: transparent ! important;
|
|
}
|
|
|
|
|
|
/*
|
|
TITLE BUTTON
|
|
*/
|
|
|
|
div.pagination li:first-child a.btnTitle {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.btnTitle, a.btnTitle {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
font-size: 14px;
|
|
font-weight: 400;
|
|
line-height: 1.4;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: middle;
|
|
-ms-touch-action: manipulation;
|
|
touch-action: manipulation;
|
|
cursor: pointer;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
box-shadow: none;
|
|
text-decoration: none;
|
|
position: relative;
|
|
margin: 0 0 0 10px;
|
|
min-width: 80px;
|
|
text-align: center;
|
|
color: var(--btncolortext);
|
|
border: none;
|
|
font-size: 12px;
|
|
font-weight: 300;
|
|
/* background-color: #fbfbfb; */
|
|
}
|
|
|
|
a.btnTitle.btnTitleSelected {
|
|
border: 1px solid #ccc;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.btnTitle > .btnTitle-icon{
|
|
|
|
}
|
|
|
|
.btnTitle > .btnTitle-label{
|
|
color: #666666;
|
|
}
|
|
|
|
.btnTitle:hover, a.btnTitle:hover {
|
|
border-radius: 3px;
|
|
position: relative;
|
|
margin: 0 0 0 10px;
|
|
text-align: center;
|
|
color: #000;
|
|
background-color: #eee;
|
|
font-size: 12px;
|
|
text-decoration: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btnTitle.refused, a.btnTitle.refused, .btnTitle.refused:hover, a.btnTitle.refused:hover {
|
|
color: #8a8a8a;
|
|
cursor: not-allowed;
|
|
background-color: #fbfbfb;
|
|
background: repeating-linear-gradient( 45deg, #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
|
|
}
|
|
|
|
.btnTitle:hover .btnTitle-label{
|
|
color:var(--btncolorborderhover);
|
|
}
|
|
div.pagination .btnTitle:hover .btnTitle-label{
|
|
color: rgb(<?php print $colortextlink; ?>);
|
|
}
|
|
|
|
.btnTitle.refused .btnTitle-label, .btnTitle.refused:hover .btnTitle-label{
|
|
color: #8a8a8a;
|
|
}
|
|
|
|
.btnTitle>.fa {
|
|
font-size: 2em;
|
|
display: block;
|
|
}
|
|
|
|
.paginationafterarrows a.btnTitlePlus, .titre_right a.btnTitlePlus {
|
|
/* border: 1px solid var(--btncolorborder); */
|
|
border: unset;
|
|
background-color: unset;
|
|
}
|
|
.paginationafterarrows a.btnTitlePlus:hover, .titre_right a.btnTitlePlus:hover {
|
|
border-color: #ddd;
|
|
}
|
|
|
|
/* The buttonplus isgrowing on hover (don't know why). This is to avoid to have the cellegrowing too */
|
|
.btnTitlePlus:hover {
|
|
max-width: 24px;
|
|
max-height: 40px;
|
|
}
|
|
|
|
|
|
/* rule to reduce top menu - 2nd reduction: Reduce width of top menu icons again */
|
|
@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) /* reduction 2 */
|
|
{
|
|
.butAction, .butActionRefused, .butActionDelete {
|
|
font-size: 0.95em;
|
|
}
|
|
.btnTitle, a.btnTitle {
|
|
display: inline-block;
|
|
padding: 4px 4px 4px 4px;
|
|
min-width: unset;
|
|
}
|
|
}
|
|
|
|
/* rule to reduce top menu - 3rd reduction: The menu for user is on left */
|
|
@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) /* reduction 3 */
|
|
{
|
|
.butAction, .butActionRefused, .butActionDelete {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
|
|
/* smartphone */
|
|
@media only screen and (max-width: 767px)
|
|
{
|
|
.butAction, .butActionRefused, .butActionDelete {
|
|
font-size: 0.85em;
|
|
}
|
|
}
|
|
|
|
|
|
<?php if (getDolGlobalString('MAIN_BUTTON_HIDE_UNAUTHORIZED') && (!$user->admin)) { ?>
|
|
.butActionRefused, .butActionNewRefused, .btnTitle.refused {
|
|
display: none !important;
|
|
}
|
|
<?php } ?>
|
|
|
|
|
|
/*
|
|
* BTN LINK
|
|
*/
|
|
|
|
.btn-link{
|
|
margin-right: 5px;
|
|
border: 1px solid #ddd;
|
|
color: #333;
|
|
padding: 5px 10px;
|
|
border-radius:1em;
|
|
text-decoration: none !important;
|
|
}
|
|
|
|
.btn-link:hover{
|
|
background-color: #ddd;
|
|
border: 1px solid #ddd;
|
|
}
|