Skip to content

Instantly share code, notes, and snippets.

@aubricus
Last active Jun 23, 2017
Embed
What would you like to do?
Hook a fixed position element into the DjangoCMS toolbar expanded / collapsed states
// Hook a fixed position element into the DjangoCMS toolbar expanded / collapsed states
.fixed-element {
position: fixed;
top: 0;
left: 0;
width: 100%
.cms-toolbar-expanding &,
.cms-toolbar-expanded & {
top: 46px;
}
.cms-toolbar-collapsing & {
top: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment