Skip to content

Instantly share code, notes, and snippets.

@jonathanvoelkle
Created January 31, 2021 09:23
Show Gist options
  • Save jonathanvoelkle/88aa3e45306fc87eeaa7766373555e52 to your computer and use it in GitHub Desktop.
Save jonathanvoelkle/88aa3e45306fc87eeaa7766373555e52 to your computer and use it in GitHub Desktop.
.roam-article
> div:first-child
> div:nth-child(2)
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
background: var(--bg-color);
will-change: transform;
z-index: 19;
top: 0 !important;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-1
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
will-change: transform;
background: var(--bg-color);
z-index: 18;
top: 2em !important;
}
.rm-focused {
z-index: 25;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-2
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
background: var(--bg-color);
will-change: transform;
z-index: 98;
top: 4em !important;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-3
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
background: var(--bg-color);
will-change: transform;
z-index: 97;
top: 6em !important;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-4
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
background: var(--bg-color);
will-change: transform;
z-index: 96;
top: 8em !important;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-5
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
background: var(--bg-color);
will-change: transform;
z-index: 95;
top: 10em !important;
}
.roam-article
> div:first-child
> div:nth-child(2)
.rm-level-6
> .roam-block-container
> .rm-block-main.rm-block__self:first-child {
position: sticky !important;
top: 0 !important;
background: var(--bg-color);
will-change: transform;
z-index: 94;
top: 12em !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment