diff --git a/components.js b/components.js index 922e451..161d03d 100644 --- a/components.js +++ b/components.js @@ -1930,17 +1930,6 @@ smPopup.innerHTML = ` --backdrop: rgba(0, 0, 0, 0.6); --border-radius: 0.8rem 0.8rem 0 0; } -::-webkit-scrollbar{ - width: 0.5rem; -} - -::-webkit-scrollbar-thumb{ - background: rgba(var(--text-color), 0.3); - border-radius: 1rem; - &:hover{ - background: rgba(var(--text-color), 0.5); - } -} .popup-container{ display: -ms-grid; display: grid; @@ -2057,6 +2046,19 @@ smPopup.innerHTML = ` margin: 0.5rem 0; } } +@media (any-hover: hover){ + ::-webkit-scrollbar{ + width: 0.5rem; + } + + ::-webkit-scrollbar-thumb{ + background: rgba(var(--text-color), 0.3); + border-radius: 1rem; + &:hover{ + background: rgba(var(--text-color), 0.5); + } + } +}