Skip to content

Instantly share code, notes, and snippets.

@penx
Created December 6, 2023 11:45
Show Gist options
  • Save penx/076dacff235ff720d9a331959992af75 to your computer and use it in GitHub Desktop.
Save penx/076dacff235ff720d9a331959992af75 to your computer and use it in GitHub Desktop.
Radix themes/chromium issue
<!DOCTYPE html>
<html lang="en">
<head>
<style>
:where(.rt-Inset) > * {
--margin-top-override: initial;
}
.rt-Inset:where(.rt-r-side-all) {
--margin-top-override: 0px;
}
.rt-r-m-8 {
margin: var(--margin-top-override, 48px);
}
</style>
</head>
<body>
<div class="rt-Inset rt-r-side-all">
<div>
<div class="rt-r-m-8">Item 1</div>
<div class="rt-r-m-8">Item 2</div>
</div>
</div>
<script>setTimeout(() => {
document.body.style.pointerEvents = "none";
}, 1000);</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment