From 814fefb856efabb514e1c4c11ef0883dbf890508 Mon Sep 17 00:00:00 2001 From: Maurice Bagalwa <57249405+MauriceBagalwa@users.noreply.github.com> Date: Thu, 26 Feb 2026 08:40:37 +0300 Subject: [PATCH] fix: resolve Jump to Top button overlap with Meetup (#170) --- .../MeetupReminderButton/styles.module.css | 26 +++++++++++++------ website/src/css/custom.css | 16 ++++++++++++ 2 files changed, 34 insertions(+), 8 deletions(-) diff --git a/website/src/components/MeetupReminderButton/styles.module.css b/website/src/components/MeetupReminderButton/styles.module.css index 8a36b76..4a25311 100644 --- a/website/src/components/MeetupReminderButton/styles.module.css +++ b/website/src/components/MeetupReminderButton/styles.module.css @@ -1,8 +1,9 @@ /* Container for the entire component */ .container { position: fixed; - bottom: 2rem; - right: 2rem; + bottom: 1rem; + right: 1.5rem; + z-index: 9999; font-family: var(--ifm-font-family-base); } @@ -78,6 +79,7 @@ opacity: 0; transform: translateY(10px); } + to { opacity: 1; transform: translateY(0); @@ -573,12 +575,17 @@ color: var(--ifm-color-primary-light); } -/* Responsive Design */ -@media (max-width: 768px) { + +/* Desktop (≥768px): DevEx Sessions (Meetup) at bottom-right corner, to the right of Jump to Top, same baseline */ +@media (min-width: 768px) { .container { - bottom: 1rem; - right: 1rem; + right: 2rem; + bottom: 2rem; } +} + +@media (max-width: 768px) { + .panel { bottom: 4.5rem; @@ -625,7 +632,7 @@ @media (max-width: 480px) { .container { bottom: 0.75rem; - right: 0.75rem; + right: 1.5rem; } .floatingButton { @@ -666,6 +673,7 @@ /* Accessibility - High Contrast Mode */ @media (prefers-contrast: high) { + .floatingButton, .linkButton, .calendarButton { @@ -679,6 +687,7 @@ /* Reduced Motion Support */ @media (prefers-reduced-motion: reduce) { + .floatingButton, .linkButton, .calendarButton, @@ -688,6 +697,7 @@ } @keyframes slideUp { + from, to { opacity: 1; @@ -700,4 +710,4 @@ .calendarButton:hover { transform: none; } -} +} \ No newline at end of file diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 00ecc60..a529f98 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -985,4 +985,20 @@ html[data-theme='dark'] .searchBar .dropdownMenu svg { [data-theme='dark'] .DocSearch-Commands, [data-theme='dark'] .DocSearch-Commands * { color: rgba(255, 255, 255, 0.7) !important; +} + +/* Jump to Top above DevEx Sessions (Meetup), same right alignment */ +@media (max-width: 767px) { + .theme-back-to-top-button { + bottom: 4.9rem !important; + right: 1.7rem !important; + } +} + +/* Jump to Top to the left of DevEx Sessions (Meetup), same baseline */ +@media (min-width: 767px) { + .theme-back-to-top-button { + bottom: 2.2rem !important; + right: 11rem !important; + } } \ No newline at end of file