Skip to content

Instantly share code, notes, and snippets.

@skurfuerst
Created April 30, 2015 08:18
Show Gist options
  • Save skurfuerst/27b6380a29d7cfa8c1c5 to your computer and use it in GitHub Desktop.
Save skurfuerst/27b6380a29d7cfa8c1c5 to your computer and use it in GitHub Desktop.
CSS adjustments to a site to play well in Neos Backend
/* General Adjustmens to the Neos Backend - we only do that if "neos-controls" is visible, that is we are NOT in full-screen mode. */
/* Bootstrap gives the "container" specific widths (inside media queries); which breaks the margins Neos adds to the body.
Thus, we need to reset these settings. */
.neos-controls .container {
width: inherit !important;
}
/* The topbar of neos needs some space, so we push the top navigation lower */
.neos-controls .page-topNavigation {
padding-top: 90px;
}
/* If the preview panel is open, we push down the page even more. */
.neos-controls.neos-edit-preview-panel-open .page-topNavigation {
padding-top: 200px;
}
/* As the top navigation is position:fixed, we need to adjust the padding accordingly if navigate is open. */
.neos-controls.neos-navigate-panel-open .page-topNavigation {
padding-left: 350px;
}
/* As the top navigation is position:fixed, we need to adjust the padding accordingly if inspector is open. */
.neos-controls.neos-inspector-panel-open .page-topNavigation {
padding-right: 350px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment