Skip to content

Instantly share code, notes, and snippets.

@cre8tivediva
Created May 23, 2015 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cre8tivediva/26e426d7ef450d237649 to your computer and use it in GitHub Desktop.
Save cre8tivediva/26e426d7ef450d237649 to your computer and use it in GitHub Desktop.
Add Sidebar CSS to Remobile
/* Wrapping div for .content and .sidebar-primary */
.content-sidebar-sidebar .content-sidebar-wrap,
.sidebar-content-sidebar .content-sidebar-wrap,
.sidebar-sidebar-content .content-sidebar-wrap {
width: 920px;
}
.content-sidebar-sidebar .content-sidebar-wrap {
float: left;
}
.sidebar-content-sidebar .content-sidebar-wrap,
.sidebar-sidebar-content .content-sidebar-wrap {
float: right;
}
/* Content */
.content {
float: right;
width: 740px;
}
.content-sidebar .content,
.content-sidebar-sidebar .content,
.sidebar-content-sidebar .content {
float: left;
}
.content-sidebar-sidebar .content,
.sidebar-content-sidebar .content,
.sidebar-sidebar-content .content {
width: 520px;
}
.sidebar-content-sidebar .content {
padding-left: 40px;
}
.full-width-content .content {
width: 100%;
}
.full-width-content .entry-content,
.full-width-content .entry-header {
margin: 0 auto;
max-width: 740px;
}
/* Primary Sidebar */
.sidebar-primary {
float: right;
margin-right: -10px;
width: 360px;
}
.sidebar-content .sidebar-primary,
.sidebar-sidebar-content .sidebar-primary {
float: left;
}
/* Secondary Sidebar */
.sidebar-secondary {
float: left;
margin-left: -20px;
width: 180px;
}
.content-sidebar-sidebar .sidebar-secondary {
float: right;
}
@media only screen and (max-width: 568px) {
.sidebar .widget {
margin-top: 20px;
margin: 0 auto;
padding: 10px;
width: 420px;
}
}
@media only screen and (max-width: 320px) {
.sidebar .widget {
margin-top: 20px;
padding: 10px;
width: 280px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment