Skip to content

Instantly share code, notes, and snippets.

@JimmyLv
Last active October 7, 2022 06:41
Show Gist options
  • Save JimmyLv/c1a7725e22b3c0536e2a7c51c01f37e2 to your computer and use it in GitHub Desktop.
Save JimmyLv/c1a7725e22b3c0536e2a7c51c01f37e2 to your computer and use it in GitHub Desktop.
[[roam/css]] Vertical Sidebar Styling 侧边栏竖版样式横向滚动,demo: https://share.cleanshot.com/BxPj7F
html[lang="en"]:not(.landscape):not(.portrait) #roam-right-sidebar-content {
overflow: visible !important;
}
html[lang="en"]:not(.landscape):not(.portrait) .sidebar-content {
display: flex;
overflow: auto;
}
html[lang="en"]:not(.landscape):not(.portrait) .sidebar-content > div {
min-width: 30vw;
overflow: auto;
height: calc(100vh - 32px);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment