2019-08-06 08:58:18 +00:00
< ? php
2025-02-26 17:35:21 +00:00
/* Copyright ( C ) 2024 - 2025 Frédéric France < frederic . france @ free . fr >
2025-02-19 11:25:06 +00:00
* Copyright ( C ) 2025 MDW < mdeweerd @ users . noreply . github . com >
2025-12-28 23:43:50 +00:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program . If not , see < https :// www . gnu . org / licenses />.
2024-11-04 22:53:20 +00:00
*/
2021-02-26 12:31:09 +00:00
if ( ! defined ( 'ISLOADEDBYSTEELSHEET' )) {
die ( 'Must be call by steelsheet' );
2024-11-04 22:53:20 +00:00
}
/**
* @ var Conf $conf
2025-02-26 17:37:51 +00:00
* @ var User $user
2024-11-04 22:53:20 +00:00
*
* @ var string $butactionbg
2025-12-28 23:43:50 +00:00
* @ var string $colorbackhmenu1
* @ var string $colortextlink
* @ var int $dol_optimize_smallscreen
2025-02-26 17:35:21 +00:00
* @ var string $fontlist
2025-05-12 18:25:02 +00:00
* @ var string $fontsize
2025-02-26 17:35:21 +00:00
* @ var string $left
2025-05-12 18:25:02 +00:00
* @ var int < 0 , max > $nbtopmenuentries
2025-12-28 23:43:50 +00:00
* @ var string $right
* @ var string $textbutaction
2024-11-04 22:53:20 +00:00
*/
2025-02-19 11:25:06 +00:00
'
@ phan - var - force string $butactionbg
2025-12-28 23:43:50 +00:00
@ phan - var - force string $colorbackhmenu1
2025-02-19 11:25:06 +00:00
@ phan - var - force string $colortextlink
2025-12-28 23:43:50 +00:00
@ phan - var - force int < 0 , 1 > $dol_optimize_smallscreen
2025-02-19 11:25:06 +00:00
@ phan - var - force string $fontlist
2025-05-12 18:25:02 +00:00
@ phan - var - force string $fontsize
2025-02-19 11:25:06 +00:00
@ phan - var - force string $left
2025-12-28 23:43:50 +00:00
@ phan - var - force int < 0 , max > $nbtopmenuentries
2025-02-19 11:25:06 +00:00
@ phan - var - force string $right
@ phan - var - force string $textbutaction
' ;
2024-11-04 22:53:20 +00:00
?>
2025-01-13 11:31:08 +00:00
/* IDE Hack <style type="text/css"> */
2019-08-06 08:58:18 +00:00
2020-08-30 15:42:49 +00:00
: root {
2021-02-26 12:31:09 +00:00
-- btncolortext : rgb ( < ? php print $colortextlink ; ?> );
-- btncolorbg : #fbfbfb;
-- btncolorborderhover : none ;
-- btncolorborder : #FFF;
-- butactiondeletebg : rgb ( 234 , 228 , 225 );
2026-06-28 15:24:02 +00:00
-- butactioncancelbg : #bbb;
2021-12-29 19:34:08 +00:00
-- butactionbg : rgb ( < ? php print $butactionbg ; ?> );
2022-01-26 14:06:51 +00:00
-- textbutaction : rgb ( < ? php print $textbutaction ; ?> );
2020-08-30 15:42:49 +00:00
}
< ? php
2023-11-27 11:08:48 +00:00
if ( getDolGlobalString ( 'THEME_DARKMODEENABLED' )) {
2020-08-30 15:42:49 +00:00
print " /* For dark mode */ \n " ;
2023-12-13 14:20:53 +00:00
if ( getDolGlobalInt ( 'THEME_DARKMODEENABLED' ) != 2 ) {
2022-12-27 10:10:53 +00:00
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 { " ;
2020-08-30 15:42:49 +00:00
}
print "
: root {
2019-08-06 08:58:18 +00:00
2020-08-30 15:42:49 +00:00
-- btncolortext : ;
-- btncolorbg : rgb ( 26 , 27 , 27 );
-- btncolorborderhover : #ffffff;
-- btncolorborder : #2b2c2e;
-- butactiondeletebg : rgb ( 252 , 84 , 91 );
2026-06-28 15:24:02 +00:00
-- butactioncancelbg : #888;
2021-12-29 19:34:08 +00:00
-- butactionbg : rgb ( 173 , 140 , 79 );
2022-01-26 14:06:51 +00:00
-- textbutaction : rgb ( 255 , 255 , 255 );
2020-08-30 15:42:49 +00:00
} \n " ;
2022-12-27 10:10:53 +00:00
print " } " ;
2020-08-30 15:42:49 +00:00
}
?>
2019-08-06 08:58:18 +00:00
/* ============================================================================== */
/* Buttons for actions */
/* ============================================================================== */
2019-10-16 11:55:29 +00:00
div . tabsAction > a . butAction , div . tabsAction > a . butActionRefused , div . tabsAction > a . butActionDelete ,
2021-11-19 21:28:20 +00:00
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 ,
2026-08-05 08:27:59 +00:00
div . tabsAction > div . divButAction > a . butActionRefused ,
div . tabsAction > . dropdown > . dropdown - toggle {
2019-08-06 08:58:18 +00:00
margin - bottom : 1.4 em ! important ;
2021-11-19 21:28:20 +00:00
margin - right : 0 px ! important ;
2019-08-06 08:58:18 +00:00
}
2020-08-30 15:42:49 +00:00
div . tabsActionNoBottom > a . butAction , div . tabsActionNoBottom > a . butActionRefused {
2021-02-26 12:31:09 +00:00
margin - bottom : 0 ! important ;
2020-08-30 15:42:49 +00:00
}
2019-08-06 08:58:18 +00:00
span . butAction , span . butActionDelete {
cursor : pointer ;
}
2026-04-27 13:20:30 +00:00
. paginationafterarrows . butAction {
font - size : 0.9 em ;
}
2019-08-06 08:58:18 +00:00
2020-08-30 15:42:49 +00:00
. butAction {
2021-02-26 12:31:09 +00:00
background : var ( -- butactionbg );
2022-01-26 14:06:51 +00:00
color : var ( -- textbutaction ) ! important ;
2021-02-26 12:31:09 +00:00
/* background: rgb(230, 232, 239); */
2020-08-30 15:42:49 +00:00
}
2021-02-27 01:02:35 +00:00
. butActionRefused , . butAction , . butActionDelete {
border - radius : 3 px ;
}
2021-10-18 19:20:58 +00:00
: not ( . center ) > . butActionRefused : last - child , : not ( . center ) > . butAction : last - child , : not ( . center ) > . butActionDelete : last - child {
margin -< ? php echo $right ; ?> : 0px !important;
2021-02-27 01:02:35 +00:00
}
2020-08-30 15:42:49 +00:00
. butActionRefused , . butAction , . butAction : link , . butAction : visited , . butAction : hover , . butAction : active , . butActionDelete , . butActionDelete : link , . butActionDelete : visited , . butActionDelete : hover , . butActionDelete : active {
2021-02-26 12:31:09 +00:00
text - decoration : none ;
text - transform : uppercase ;
font - weight : bold ;
2021-11-25 09:28:37 +00:00
line - height : 1.8 em ;
2021-02-26 12:31:09 +00:00
2023-12-04 12:53:48 +00:00
margin : 0 em < ? php echo ( $dol_optimize_smallscreen ? '0.6' : '0.9' ); ?> em;
padding : 0.6 em < ? php echo ( $dol_optimize_smallscreen ? '0.6' : '0.7' ); ?> em;
2021-02-26 12:31:09 +00:00
display : inline - block ;
text - align : center ;
cursor : pointer ;
color : #444;
2020-08-30 15:42:49 +00:00
}
. butActionNew , . butActionNewRefused , . butActionNew : link , . butActionNew : visited , . butActionNew : hover , . butActionNew : active {
2021-02-26 12:31:09 +00:00
text - decoration : none ;
text - transform : uppercase ;
font - weight : normal ;
2020-08-30 15:42:49 +00:00
2021-02-26 12:31:09 +00:00
margin : 0 em 0.3 em 0 0.3 em ! important ;
2023-12-04 12:53:48 +00:00
padding : 0.2 em < ? php echo ( $dol_optimize_smallscreen ? '0.4' : '0.7' ); ?> em 0.3em;
2021-02-26 12:31:09 +00:00
font - family : < ? php print $fontlist ?> ;
display : inline - block ;
/* text-align: center; New button are on right of screen */
cursor : pointer ;
2020-08-30 15:42:49 +00:00
}
2019-08-06 08:58:18 +00:00
2020-08-30 15:42:49 +00:00
. button {
2019-08-06 08:58:18 +00:00
border - color : rgba ( 0 , 0 , 0 , 0.15 ) rgba ( 0 , 0 , 0 , 0.15 ) rgba ( 0 , 0 , 0 , 0.25 );
display : inline - block ;
2023-12-04 12:53:48 +00:00
padding : 0.4 em < ? php echo ( $dol_optimize_smallscreen ? '0.4' : '0.7' ); ?> em;
margin : 0 em < ? php echo ( $dol_optimize_smallscreen ? '0.7' : '0.9' ); ?> em;
2019-08-06 08:58:18 +00:00
line - height : 20 px ;
text - align : center ;
vertical - align : middle ;
cursor : pointer ;
color : #333333 !important;
text - decoration : none ! important ;
text - shadow : 0 1 px 1 px 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 : 1 px solid #bbbbbb;
border - bottom - color : #a2a2a2;
border - radius : 2 px ;
box - shadow : inset 0 1 px 0 rgba ( 255 , 255 , 255 , 0.2 ), 0 1 px 2 px 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 ;
2023-12-04 12:53:48 +00:00
padding : 0.2 em < ? php echo ( $dol_optimize_smallscreen ? '0.4' : '0.7' ); ?> em;
margin : 0 em < ? php echo ( $dol_optimize_smallscreen ? '0.7' : '0.9' ); ?> em;
2019-08-06 08:58:18 +00:00
line - height : 20 px ;
/* text-align: center; New button are on right of screen */
vertical - align : middle ;
cursor : pointer ;
border - radius : 2 px ;
}
a . butActionNew > span . fa - plus - circle { padding - left : 6 px ; font - size : 1.5 em ; }
a . butActionNewRefused > span . fa - plus - circle { padding - left : 6 px ; font - size : 1.5 em ; }
2019-10-12 09:25:44 +00:00
. tableforfieldcreate a . butActionNew > span . fa - plus - circle , . tableforfieldcreate a . butActionNew > span . fa - plus - circle : hover ,
2019-10-21 12:44:39 +00:00
. tableforfieldedit a . butActionNew > span . fa - plus - circle , . tableforfieldedit a . butActionNew > span . fa - plus - circle : hover ,
2019-10-12 09:25:44 +00:00
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 : 1 em ;
padding - left : 0 px ;
}
2020-08-30 15:42:49 +00:00
. button {
2019-08-06 08:58:18 +00:00
color : #ffffff !important;
text - shadow : 0 - 1 px 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 );
}
2020-08-30 15:42:49 +00:00
. button : disabled {
2019-08-06 08:58:18 +00:00
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 : 5 px ;
}
2020-08-30 15:42:49 +00:00
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.5 em ;
border : none ;
2022-03-18 13:30:50 +00:00
box - shadow : none ;
2020-08-30 15:42:49 +00:00
}
. butAction : hover {
2024-08-30 15:03:59 +00:00
box - shadow : 0 px 0 px 6 px 1 px rgba ( 50 , 50 , 50 , 0.4 ), inset 0 px 0 px 200 px rgba ( 60 , 60 , 60 , 0.1 );
2019-08-06 08:58:18 +00:00
}
2020-08-30 15:42:49 +00:00
. butActionNew : hover {
2021-02-26 12:31:09 +00:00
text - decoration : underline ;
box - shadow : unset ! important ;
2019-08-06 08:58:18 +00:00
}
2020-08-30 15:42:49 +00:00
. butActionDelete , . butActionDelete : link , . butActionDelete : visited , . butActionDelete : hover , . butActionDelete : active , . buttonDelete {
2021-02-26 12:31:09 +00:00
background : var ( -- butactiondeletebg );
2025-11-26 13:16:06 +00:00
color : #633 !important;
2019-08-06 08:58:18 +00:00
}
2026-07-01 12:24:54 +00:00
. 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 ) {
2026-06-28 15:24:02 +00:00
background : var ( -- butactioncancelbg ) ! important ;
color : #888 !important;
}
2019-08-06 08:58:18 +00:00
2020-08-30 15:42:49 +00:00
. butActionDelete : hover {
2021-02-26 12:31:09 +00:00
box - shadow : 0 px 0 px 6 px 1 px rgba ( 50 , 50 , 50 , 0.4 ), 0 px 0 px 0 px rgba ( 60 , 60 , 60 , 0.1 );
2019-08-06 08:58:18 +00:00
}
2026-07-01 12:24:54 +00:00
. button . button - cancel : hover : not ( . buttongen ) {
2026-06-28 15:24:02 +00:00
box - shadow : 0 px 0 px 4 px 1 px rgba ( 50 , 50 , 50 , 0.2 ), 0 px 0 px 0 px rgba ( 60 , 60 , 60 , 0.1 );
}
2020-08-30 15:42:49 +00:00
. butActionRefused {
2021-02-26 12:31:09 +00:00
text - decoration : none ! important ;
text - transform : uppercase ;
font - weight : bold ! important ;
white - space : nowrap ! important ;
cursor : not - allowed ! important ;
2023-12-04 12:53:48 +00:00
margin : 0 em < ? php echo ( $dol_optimize_smallscreen ? '0.6' : '0.9' ); ?> em;
padding : 0.6 em < ? php echo ( $dol_optimize_smallscreen ? '0.6' : '0.7' ); ?> em;
2021-02-26 12:31:09 +00:00
font - family : < ? php print $fontlist ?> !important;
display : inline - block ;
text - align : center ;
cursor : pointer ;
color : #999 !important;
2021-11-19 21:28:20 +00:00
2021-02-26 12:31:09 +00:00
border : 1 px solid #ccc;
box - sizing : border - box ;
- moz - box - sizing : border - box ;
- webkit - box - sizing : border - box ;
2019-08-06 08:58:18 +00:00
}
2020-08-30 15:42:49 +00:00
. butActionNewRefused , . butActionNewRefused : link , . butActionNewRefused : visited , . butActionNewRefused : hover , . butActionNewRefused : active {
2021-02-26 12:31:09 +00:00
text - decoration : none ! important ;
text - transform : uppercase ;
font - weight : normal ! important ;
white - space : nowrap ! important ;
cursor : not - allowed ! important ;
2023-12-04 12:53:48 +00:00
margin : 0 em < ? php echo ( $dol_optimize_smallscreen ? '0.7' : '0.9' ); ?> em;
padding : 0.2 em < ? php echo ( $dol_optimize_smallscreen ? '0.4' : '0.7' ); ?> em;
2021-02-26 12:31:09 +00:00
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.2 em ;
box - shadow : none ! important ;
2019-08-06 08:58:18 +00:00
}
. butActionTransparent {
color : #222 ! important;
background - color : transparent ! important ;
}
2025-12-28 23:43:50 +00:00
. butActionLogin {
background - color : rgb ( < ? php echo $colorbackhmenu1 ; ?> );
}
2019-08-06 08:58:18 +00:00
/*
TITLE BUTTON
*/
2024-09-26 19:06:24 +00:00
div . pagination li : first - child a . btnTitle , div . pagination li . paginationafterarrows a . btnTitle ,
table . table - fiche - title tr . titre td . col - center div . nowraponall a . btnTitle ,
table . table - fiche - title tr . titre td . col - right a . btnTitle {
margin -< ? php echo $left ; ?> : 10px;
2020-08-23 13:16:52 +00:00
}
2019-08-06 08:58:18 +00:00
. btnTitle , a . btnTitle {
2021-02-26 12:31:09 +00:00
display : inline - block ;
2023-05-11 09:03:26 +00:00
padding : 4 px 12 px ;
font - size : 14 px ;
2021-02-26 12:31:09 +00:00
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 10 px ;
text - align : center ;
2024-08-30 15:03:59 +00:00
color : var ( -- btncolortext );
2021-02-26 12:31:09 +00:00
font - size : 12 px ;
font - weight : 300 ;
2022-01-01 17:15:22 +00:00
/* background-color: #fbfbfb; */
2026-04-27 13:20:30 +00:00
border : 1 px solid transparent ;
2019-08-06 08:58:18 +00:00
}
2024-10-16 15:26:00 +00:00
/* *:not(.paginationafterarrows) > .btnTitle, *:not(.paginationafterarrows) > a.btnTitle { */
. btnTitle , a . btnTitle {
min - width : 60 px ;
}
2019-08-06 08:58:18 +00:00
2020-08-23 13:16:52 +00:00
a . btnTitle . btnTitleSelected {
2021-02-26 12:31:09 +00:00
border : 1 px solid #ccc;
border - radius : 3 px ;
2020-08-23 13:16:52 +00:00
}
2019-08-06 08:58:18 +00:00
. btnTitle > . btnTitle - icon {
}
. btnTitle > . btnTitle - label {
2021-02-26 12:31:09 +00:00
color : #666666;
2019-08-06 08:58:18 +00:00
}
. btnTitle : hover , a . btnTitle : hover {
2021-02-26 12:31:09 +00:00
border - radius : 3 px ;
position : relative ;
margin : 0 0 0 10 px ;
text - align : center ;
2023-02-10 13:16:30 +00:00
color : #000;
background - color : #eee;
2021-02-26 12:31:09 +00:00
font - size : 12 px ;
text - decoration : none ;
box - shadow : none ;
2019-08-06 08:58:18 +00:00
}
. btnTitle . refused , a . btnTitle . refused , . btnTitle . refused : hover , a . btnTitle . refused : hover {
2021-02-26 12:31:09 +00:00
color : #8a8a8a;
cursor : not - allowed ;
background - color : #fbfbfb;
background : repeating - linear - gradient ( 45 deg , #ffffff, #f1f1f1 4px, #f1f1f1 4px, #f1f1f1 4px );
2019-08-06 08:58:18 +00:00
}
. btnTitle : hover . btnTitle - label {
2021-11-19 21:28:20 +00:00
color : var ( -- btncolorborderhover );
2019-08-06 08:58:18 +00:00
}
div . pagination . btnTitle : hover . btnTitle - label {
color : rgb ( < ? php print $colortextlink ; ?> );
}
. btnTitle . refused . btnTitle - label , . btnTitle . refused : hover . btnTitle - label {
2021-02-26 12:31:09 +00:00
color : #8a8a8a;
2019-08-06 08:58:18 +00:00
}
. btnTitle >. fa {
2024-08-30 15:03:59 +00:00
font - size : 2 em ;
2021-02-26 12:31:09 +00:00
display : block ;
2019-08-06 08:58:18 +00:00
}
2022-01-01 17:15:22 +00:00
. paginationafterarrows a . btnTitlePlus , . titre_right a . btnTitlePlus {
2024-07-23 23:57:35 +00:00
/* border: 1px solid var(--btncolorborder); */
border : unset ;
background - color : unset ;
2023-02-10 13:16:30 +00:00
}
. paginationafterarrows a . btnTitlePlus : hover , . titre_right a . btnTitlePlus : hover {
border - color : #ddd;
2022-01-01 17:15:22 +00:00
}
2025-04-17 15:49:18 +00:00
/* The buttonplus is growing on hover (don't know why). This is to avoid to have the cell growing too */
2023-11-07 00:05:54 +00:00
. btnTitlePlus : hover {
2025-04-17 15:49:18 +00:00
/* max-width: 24px; */ /* max width is a problem when the button has a text under */
max - height : 42 px ;
2023-11-07 00:05:54 +00:00
}
2025-05-13 11:33:40 +00:00
/* nboftopmenuentries = <?php echo $nbtopmenuentries ?> ?> */
2025-05-12 07:18:35 +00:00
/* rule to reduce top menu - 1st reduction: Reduce width of top menu icons */
@ media only screen and ( max - width : < ? php echo getDolGlobalString ( 'THEME_ELDY_WITDHOFFSET_FOR_REDUC1' , round ( $nbtopmenuentries * 90 , 0 ) + 340 ); ?> px) /* reduction 1 */
{
. btnTitle , a . btnTitle {
min - width : 40 px ;
}
}
2022-01-01 17:15:22 +00:00
2020-12-15 02:55:46 +00:00
/* rule to reduce top menu - 2nd reduction: Reduce width of top menu icons again */
2025-05-12 07:18:35 +00:00
@ media only screen and ( max - width : < ? php echo ! getDolGlobalString ( 'THEME_ELDY_WITDHOFFSET_FOR_REDUC2' ) ? round ( $nbtopmenuentries * 69 , 0 ) + 130 : getDolGlobalInt ( 'THEME_ELDY_WITDHOFFSET_FOR_REDUC2' ); ?> px) /* reduction 2 */
2020-12-15 02:55:46 +00:00
{
. butAction , . butActionRefused , . butActionDelete {
font - size : 0.95 em ;
}
}
2019-08-06 08:58:18 +00:00
2021-05-19 10:08:17 +00:00
/* rule to reduce top menu - 3rd reduction: The menu for user is on left */
2025-05-12 07:18:35 +00:00
@ media only screen and ( max - width : < ? php echo ! getDolGlobalString ( 'THEME_ELDY_WITDHOFFSET_FOR_REDUC3' ) ? round ( $nbtopmenuentries * 47 , 0 ) + 130 : getDolGlobalInt ( 'THEME_ELDY_WITDHOFFSET_FOR_REDUC3' ); ?> px) /* reduction 3 */
2021-05-19 10:08:17 +00:00
{
. butAction , . butActionRefused , . butActionDelete {
font - size : 0.9 em ;
}
}
/* smartphone */
@ media only screen and ( max - width : 767 px )
{
. butAction , . butActionRefused , . butActionDelete {
font - size : 0.85 em ;
}
2025-04-25 13:45:40 +00:00
/* for small screen, we reduce the min with of button */
. btnTitle , a . btnTitle {
display : inline - block ;
padding : 4 px 4 px 4 px 4 px ;
min - width : unset ; /* if we unset the min-width here, we must also unset the font-size on .paginationafterarrows a.btnTitlePlus:hover span:before to avoid page content move */
}
. paginationafterarrows a . btnTitlePlus : hover span : before , . titre_right a . btnTitlePlus : hover span : before {
font - size : unset ! important ;
}
2021-05-19 10:08:17 +00:00
}
2023-11-27 11:08:48 +00:00
< ? php if ( getDolGlobalString ( 'MAIN_BUTTON_HIDE_UNAUTHORIZED' ) && ( ! $user -> admin )) { ?>
2019-08-06 08:58:18 +00:00
. butActionRefused , . butActionNewRefused , . btnTitle . refused {
2021-02-26 12:31:09 +00:00
display : none ! important ;
2019-08-06 08:58:18 +00:00
}
2020-12-15 02:55:46 +00:00
< ? php } ?>
/*
* BTN LINK
*/
. btn - link {
margin - right : 5 px ;
border : 1 px solid #ddd;
color : #333;
padding : 5 px 10 px ;
border - radius : 1 em ;
text - decoration : none ! important ;
}
. btn - link : hover {
background - color : #ddd;
border : 1 px solid #ddd;
}
2024-09-13 15:30:41 +00:00
/*
* BUTTON With Low emphasis
*/
button . btn - low - emphasis {
text - align : center ;
display : inline - block ;
border : none ;
outline : none ;
cursor : pointer ;
margin : 0 ;
padding : 0 ;
width : auto ;
min - width : 1.5 em ;
min - height : 1.5 em ;
line - height : 1.5 em ;
overflow : visible ;
background : transparent ;
background - position : center ; /* used for hover ripple effect */
background - size : 0 % ;
color : var ( -- colortextlink , inherit );
font : inherit ;
line - height : normal ;
/* Corrects font smoothing for webkit */
- webkit - font - smoothing : inherit ;
- moz - osx - font - smoothing : inherit ;
/* Corrects inability to style clickable input types in iOS */
- webkit - appearance : none ;
transition : background 0.8 s ; /* used for hover ripple effect */
background : transparent radial - gradient ( circle , transparent 1 % , hsla ( var ( -- colortextlink - h ), var ( -- colortextlink - s ) , var ( -- colortextlink - l ) , 0.1 ) 1 % , transparent 10 % ) center / 15000 % ;
}
button . btn - low - emphasis .-- btn - icon {
border - radius : 100 % ;
}
button . btn - low - emphasis : is ( . fa , . fas ){
color : var ( -- colortextlink , inherit );
opacity : 0.4 ;
}
button . btn - low - emphasis : is ( : focus , : hover ) : is ( . fa , . fas ){
opacity : 0.8 ;
}
button . btn - low - emphasis .-- btn - icon : active {
background - color : hsla ( var ( -- colortextlink - h ), var ( -- colortextlink - s ) , var ( -- colortextlink - l ) , 0.1 );
background - size : 100 % ;
transition : background 0 s ; /* used for hover ripple effect */
}
2026-06-16 12:56:13 +00:00
input . button - save , input . button - cancel {
min - width : 110 px ;
2026-06-28 15:24:02 +00:00
margin - left : 8 px ! important ;
margin - right : 8 px ! important ;
}
/* smartphone */
@ media only screen and ( max - width : 767 px )
{
input . button - save , input . button - cancel {
min - width : 90 px ;
margin - left : 4 px ! important ;
margin - right : 4 px ! important ;
}
2026-06-16 12:56:13 +00:00
}