From b5db5f7474fc8f7fff3e044236cf05beb28f747f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 17 Dec 2020 21:11:44 +0100 Subject: [PATCH] Better responsive --- htdocs/theme/eldy/global.inc.php | 18 ++++++++++++++++++ htdocs/theme/md/dropdown.inc.php | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php index 3bd0e560ce5..e5db84f9719 100644 --- a/htdocs/theme/eldy/global.inc.php +++ b/htdocs/theme/eldy/global.inc.php @@ -6471,6 +6471,24 @@ div.tabsElem a.tab { } } +@media only screen and (max-width: 320px) +{ + .dropdown dd ul { + max-width: 270px; /* must always be 50 slower than width */ + } +} +@media only screen and (max-width: 300px) +{ + .dropdown dd ul { + max-width: 250px; + } +} +@media only screen and (max-width: 280px) +{ + .dropdown dd ul { + max-width: 230px; + } +}