mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-26 22:29:24 +00:00
toool on hover tweak
This commit is contained in:
parent
be3f82a2e4
commit
d895ff5746
@ -269,9 +269,9 @@ span.icon-text::after {
|
|||||||
|
|
||||||
/* Mega Menu */
|
/* Mega Menu */
|
||||||
.dropdown-mega .dropdown-menu {
|
.dropdown-mega .dropdown-menu {
|
||||||
width: 98%;
|
width: 100%;
|
||||||
transform: scale(0.85);
|
left: 0 !important;
|
||||||
transform-origin: top center;
|
right: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-mega .title {
|
.dropdown-mega .title {
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
// Counter-scale to maintain same visual size
|
// Counter-scale to maintain same visual size
|
||||||
const isMobile = window.innerWidth <= 768 || /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
const isMobile = window.innerWidth <= 768 || /Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||||
const isHighDPI = currentDPR > 2.0;
|
const isHighDPI = currentDPR > 1.4;
|
||||||
let baseScale = isMobile ? 3 : 1.1;
|
let baseScale = isMobile ? 3 : 1.1;
|
||||||
if (isHighDPI) baseScale *= 2; // Double base size on high DPI screens
|
if (isHighDPI) baseScale *= 2; // Double base size on high DPI screens
|
||||||
const navScale = baseScale / currentDPR;
|
const navScale = baseScale / currentDPR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user