diff --git a/core/templates/core/index.html b/core/templates/core/index.html index 97cca49..2780766 100644 --- a/core/templates/core/index.html +++ b/core/templates/core/index.html @@ -3,11 +3,10 @@ {% block content %} {% get_current_language as CURRENT_LANG %} - {% if banners %} + + {% endif %} diff --git a/static/css/custom.css b/static/css/custom.css index f2bf94d..5889869 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -82,18 +82,22 @@ body { /* Carousel Adjustments - Minimalist */ .carousel-item { - transition: transform 1.2s ease-in-out; /* Slightly slower for elegance */ + transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out !important; } -/* Fix for captions in RTL if needed, but B5 RTL usually handles it */ -[dir="rtl"] .carousel-caption { +/* Ensure active slide is visible */ +.carousel-item.active { + display: block !important; + opacity: 1 !important; +} + +/* RTL Support for Carousel */ +[dir="rtl"] .carousel-item { text-align: right; - right: 5%; - left: auto; } -.carousel-caption { - z-index: 10; +[dir="rtl"] .carousel-caption { + right: auto; } footer { diff --git a/staticfiles/css/custom.css b/staticfiles/css/custom.css index f2bf94d..5889869 100644 --- a/staticfiles/css/custom.css +++ b/staticfiles/css/custom.css @@ -82,18 +82,22 @@ body { /* Carousel Adjustments - Minimalist */ .carousel-item { - transition: transform 1.2s ease-in-out; /* Slightly slower for elegance */ + transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out !important; } -/* Fix for captions in RTL if needed, but B5 RTL usually handles it */ -[dir="rtl"] .carousel-caption { +/* Ensure active slide is visible */ +.carousel-item.active { + display: block !important; + opacity: 1 !important; +} + +/* RTL Support for Carousel */ +[dir="rtl"] .carousel-item { text-align: right; - right: 5%; - left: auto; } -.carousel-caption { - z-index: 10; +[dir="rtl"] .carousel-caption { + right: auto; } footer {