From 9fd0f43d3b961b0fc40727c4e3468826e6cc7471 Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Fri, 6 Dec 2024 13:04:28 +0100 Subject: [PATCH] news widget prev/next button hover styles; mobile responsive menu & gutter layout fix; --- public/css/components/dashboard/news.css | 12 ++++++++++++ public/js/components/DashboardWidget/News.js | 13 ++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/public/css/components/dashboard/news.css b/public/css/components/dashboard/news.css index 742884371..9cb5f1c32 100644 --- a/public/css/components/dashboard/news.css +++ b/public/css/components/dashboard/news.css @@ -70,3 +70,15 @@ .fhc-carousel .carousel-item-end { transition: transform 0.44s ease-in-out, opacity 0.8s ease-in-out; } + +.carousel-control-prev, +.carousel-control-next { + opacity: 0; + transition: opacity 0.3s ease; +} + +/* Show the buttons when the carousel is hovered */ +.carousel:hover .carousel-control-prev, +.carousel:hover .carousel-control-next { + opacity: 1; +} diff --git a/public/js/components/DashboardWidget/News.js b/public/js/components/DashboardWidget/News.js index dcc721cd5..1c84f33ed 100644 --- a/public/js/components/DashboardWidget/News.js +++ b/public/js/components/DashboardWidget/News.js @@ -145,13 +145,13 @@ export default { {{ formatDateTime(news.insertamum) }} -
- +