Skip to content

Instantly share code, notes, and snippets.

@shazdeh
Last active December 28, 2015 00:29
Show Gist options
  • Save shazdeh/7413631 to your computer and use it in GitHub Desktop.
Save shazdeh/7413631 to your computer and use it in GitHub Desktop.
Moving up the sidebar beside the content area in Bold theme's single view
.single #body {
position: relative;
width: 978px;
margin: auto;
}
.single .post-inner {
margin-right: 240px;
}
.single #layout {
position: absolute;
top: 0;
z-index: 1;
}
.single .post {
width: 710px;
position: relative;
z-index: 10;
}
.single #pagewrap {
background: inherit;
}
.single .post-nav {
display: none;
}
@media(max-width: 980px) {
.single .post-inner {
margin-left: 5%;
max-width: 70%;
margin-right: 0;
}
}
@media(max-width: 800px) {
.single .post {
width: 95%;
}
.single .post-inner {
max-width: 95%;
}
.single #layout {
position: static;
}
.single #sidebar {
width: 100%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment