Skip to content

Commit d8fb265

Browse files
authored
Merge pull request #173 from mbagalwa/fix/170-jump-to-top-overlap
fix: resolve Jump to Top button overlap with DevEx Sessions (#170)
2 parents 66d6eab + 814fefb commit d8fb265

2 files changed

Lines changed: 34 additions & 8 deletions

File tree

website/src/components/MeetupReminderButton/styles.module.css

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/* Container for the entire component */
22
.container {
33
position: fixed;
4-
bottom: 2rem;
5-
right: 2rem;
4+
bottom: 1rem;
5+
right: 1.5rem;
6+
67
z-index: 9999;
78
font-family: var(--ifm-font-family-base);
89
}
@@ -78,6 +79,7 @@
7879
opacity: 0;
7980
transform: translateY(10px);
8081
}
82+
8183
to {
8284
opacity: 1;
8385
transform: translateY(0);
@@ -573,12 +575,17 @@
573575
color: var(--ifm-color-primary-light);
574576
}
575577

576-
/* Responsive Design */
577-
@media (max-width: 768px) {
578+
579+
/* Desktop (≥768px): DevEx Sessions (Meetup) at bottom-right corner, to the right of Jump to Top, same baseline */
580+
@media (min-width: 768px) {
578581
.container {
579-
bottom: 1rem;
580-
right: 1rem;
582+
right: 2rem;
583+
bottom: 2rem;
581584
}
585+
}
586+
587+
@media (max-width: 768px) {
588+
582589

583590
.panel {
584591
bottom: 4.5rem;
@@ -625,7 +632,7 @@
625632
@media (max-width: 480px) {
626633
.container {
627634
bottom: 0.75rem;
628-
right: 0.75rem;
635+
right: 1.5rem;
629636
}
630637

631638
.floatingButton {
@@ -666,6 +673,7 @@
666673

667674
/* Accessibility - High Contrast Mode */
668675
@media (prefers-contrast: high) {
676+
669677
.floatingButton,
670678
.linkButton,
671679
.calendarButton {
@@ -679,6 +687,7 @@
679687

680688
/* Reduced Motion Support */
681689
@media (prefers-reduced-motion: reduce) {
690+
682691
.floatingButton,
683692
.linkButton,
684693
.calendarButton,
@@ -688,6 +697,7 @@
688697
}
689698

690699
@keyframes slideUp {
700+
691701
from,
692702
to {
693703
opacity: 1;
@@ -700,4 +710,4 @@
700710
.calendarButton:hover {
701711
transform: none;
702712
}
703-
}
713+
}

website/src/css/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,4 +985,20 @@ html[data-theme='dark'] .searchBar .dropdownMenu svg {
985985
[data-theme='dark'] .DocSearch-Commands,
986986
[data-theme='dark'] .DocSearch-Commands * {
987987
color: rgba(255, 255, 255, 0.7) !important;
988+
}
989+
990+
/* Jump to Top above DevEx Sessions (Meetup), same right alignment */
991+
@media (max-width: 767px) {
992+
.theme-back-to-top-button {
993+
bottom: 4.9rem !important;
994+
right: 1.7rem !important;
995+
}
996+
}
997+
998+
/* Jump to Top to the left of DevEx Sessions (Meetup), same baseline */
999+
@media (min-width: 767px) {
1000+
.theme-back-to-top-button {
1001+
bottom: 2.2rem !important;
1002+
right: 11rem !important;
1003+
}
9881004
}

0 commit comments

Comments
 (0)