From 5b8744ac55ff1a6e9ec633f97138300e2663c016 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 10 Aug 2023 23:52:29 +0800 Subject: [PATCH] Replace bull with round icon --- src/app.css | 15 ++++++++++----- src/components/icon.jsx | 1 + src/components/media-modal.jsx | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/app.css b/src/app.css index 4fdf6848..e29f031a 100644 --- a/src/app.css +++ b/src/app.css @@ -1111,22 +1111,27 @@ button.carousel-dot { backdrop-filter: blur(12px) invert(0.25); } button.carousel-dot { - font-weight: bold; backdrop-filter: none !important; - transition: all 0.2s; } button.carousel-dot[disabled] { pointer-events: none; } -button.carousel-dot:not(.active) { +button.carousel-dot .icon { + transition: all 0.2s; + transform: scale(0.5); +} +button.carousel-dot:not(.active) .icon { opacity: 0.5; } -button.carousel-dot:not(.active):is(:hover, :focus) { +button.carousel-dot:not(.active):is(:hover, :focus) .icon { opacity: 1; } button.carousel-dot:is(.active, [disabled].active) { opacity: 1; - transform: scale(2.2) translateY(-0.5px); +} +button.carousel-dot:is(.active, [disabled].active) .icon { + opacity: 1; + transform: scale(1); } @media (hover: hover) { .carousel-top-controls { diff --git a/src/components/icon.jsx b/src/components/icon.jsx index a1305620..567e7688 100644 --- a/src/components/icon.jsx +++ b/src/components/icon.jsx @@ -88,6 +88,7 @@ const ICONS = { layout5: () => import('@iconify-icons/mingcute/layout-5-line'), announce: () => import('@iconify-icons/mingcute/announcement-line'), alert: () => import('@iconify-icons/mingcute/alert-line'), + round: () => import('@iconify-icons/mingcute/round-fill'), }; function Icon({ diff --git a/src/components/media-modal.jsx b/src/components/media-modal.jsx index 023dcab9..8188b133 100644 --- a/src/components/media-modal.jsx +++ b/src/components/media-modal.jsx @@ -180,7 +180,7 @@ function MediaModal({ carouselRef.current.focus(); }} > - • + ))}