From df0db5beb2b413b7b25bf6cecc32ae1802bdde4a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Dec 2025 19:13:16 +0100 Subject: [PATCH] CSS --- htdocs/theme/eldy/global.inc.php | 16 +++++++--------- htdocs/theme/md/style.css.php | 16 +++++++--------- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 3303f8d3a04..8b5971f3a7f 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -5211,6 +5211,7 @@ ul.noborder li:nth-child(even):not(.liste_titre) { .boxstatsborder { /* border: 1px solid #CCC !important; */ } +/* .boxstats, .boxstats130, .boxstatsempty { */ .boxstats, .boxstats130 { display: inline-block; margin-left: 8px; @@ -5236,10 +5237,12 @@ ul.noborder li:nth-child(even):not(.liste_titre) { /* padding: 3px; */ } .boxstats { - padding-left: 6px; - padding-right: 6px; padding-top: 2px; padding-bottom: 2px; +} +.boxstats, .boxstatsempty { + padding-left: 6px; + padding-right: 6px; width: 118px; } @@ -5254,13 +5257,6 @@ ul.noborder li:nth-child(even):not(.liste_titre) { .boxstatscontent { padding: 3px; } -.boxstatsempty { - width: 121px; - padding-left: 3px; - padding-right: 3px; - margin-left: 8px; - margin-right: 8px; -} .boxstats150empty { width: 158px; padding-left: 3px; @@ -5351,8 +5347,10 @@ span.boxstatstext span:not(.fas) { opacity: 0.5; } span.boxstatstext { + opacity: 0.5; /* a bug if browser make z-index was discovered when opacity is set, if still present, we must disable it */ line-height: 18px; color: var(--colortext); + font-size: 0.8em; } span.boxstatstext img, a.dashboardlineindicatorlate img { border: 0; diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 485bb3a3b22..6240fe8099a 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -5248,16 +5248,12 @@ ul.noborder li:nth-child(even):not(.liste_titre) { padding-left: 0px; padding-bottom: 12px; } -.boxstatsborder { - /* border: 1px solid #CCC !important; */ -} .boxstats, .boxstats130 { display: inline-block; margin: 8px; - /* border: 1px solid #CCC; */ text-align: center; - border-radius: 2px; - background: #eee; + border-radius: 6px; + background: var(--colorbackbody); } .boxstats, .boxstats130, .boxstatscontent { white-space: nowrap; @@ -5265,15 +5261,16 @@ ul.noborder li:nth-child(even):not(.liste_titre) { text-overflow: ellipsis; } .boxstats { - padding: 3px; + padding: 8px; width: 100px; min-height: 40px; } .boxstats130 { width: 135px; height: 54px; - padding: 3px; + padding: 8px; } + @media only screen and (max-width: 768px) { .tabBar .arearef .pagination.paginationref { @@ -5330,9 +5327,10 @@ ul.noborder li:nth-child(even):not(.liste_titre) { box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.20); } span.boxstatstext { - /* opacity: 0.7; */ /* a bug if browser make z-index infintie when opacity is set so we disable it */ + opacity: 0.5; /* a bug if browser make z-index was discovered when opacity is set, if still present, we must disable it */ line-height: 18px; color: #000; + font-size: 0.8em; } .boxstatsindicator.thumbstat150 { /* If we remove this, box position is ko on ipad */ display: inline-flex;