From 44087aa2819082bea1eaaa12e345f5b002ca5c75 Mon Sep 17 00:00:00 2001 From: Berges Yannick Date: Fri, 7 Jun 2024 11:10:17 +0200 Subject: [PATCH] Better j5 compatibility and darkmode switcher --- media/css/style.css | 15 +++++++-------- mod_flexiadmin.xml | 4 ++-- tmpl/default.php | 1 + update.xml | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/media/css/style.css b/media/css/style.css index 5627cc7..fe1a4e8 100644 --- a/media/css/style.css +++ b/media/css/style.css @@ -142,20 +142,19 @@ padding: 10px; justify-content: center; align-items: center; } -.sep{ -height: 2rem; -background:var(--template-bg-dark-5); -} + @media (max-width: 952px){ .contentbloc > .card { width: 100% !important; } } -@media (prefers-color-scheme: dark) { - .headerblock .breadcrumb { +[data-bs-theme="dark"] .headerblock .breadcrumb { background: none; } - .sep, .contentbloc { +[data-bs-theme="dark"] .sep, [data-bs-theme="dark"] .contentbloc { background-color: var(--template-bg-dark-90); } -} \ No newline at end of file +.sep{ + height: 2rem; + background:var(--template-bg-dark-5); + } diff --git a/mod_flexiadmin.xml b/mod_flexiadmin.xml index f73214c..e91eebf 100644 --- a/mod_flexiadmin.xml +++ b/mod_flexiadmin.xml @@ -1,11 +1,11 @@ - + FlexiContent Admin Dashboard Berges Yannick dec 2021 yannick@com3elles.com www.com3elles.com - 3.1 + 3.2 Copyright (C) 2005 - 2022 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt MOD_FLEXI_ADMIN_INTRO diff --git a/tmpl/default.php b/tmpl/default.php index 6a95d1f..5cf2538 100644 --- a/tmpl/default.php +++ b/tmpl/default.php @@ -24,6 +24,7 @@ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; +require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'classes'.DS.'flexicontent.helper.php'); $app = Factory::getApplication(); $document = $app->getDocument(); diff --git a/update.xml b/update.xml index a6e15a7..24af5f0 100644 --- a/update.xml +++ b/update.xml @@ -6,14 +6,14 @@ mod_flexiadmin module administrator - 3.1 + 3.2 https://github.com/micker/mod_flexiadmin/wiki - https://github.com/micker/mod_flexiadmin/archive/v3.1.zip + https://github.com/micker/mod_flexiadmin/archive/v3.2.zip