Use full width layout when there’s no sidebar
This commit is contained in:
parent
ff6cc41087
commit
100081feee
8 changed files with 40 additions and 0 deletions
|
@ -18,3 +18,5 @@
|
|||
clear: both;
|
||||
width: $size__site-main;
|
||||
}
|
||||
|
||||
@import "no-sidebar";
|
||||
|
|
11
sass/layout/_no-sidebar.scss
Normal file
11
sass/layout/_no-sidebar.scss
Normal file
|
@ -0,0 +1,11 @@
|
|||
.no-sidebar {
|
||||
.content-area {
|
||||
float: none;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.site-main {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
|
@ -18,3 +18,5 @@
|
|||
clear: both;
|
||||
width: $size__site-main;
|
||||
}
|
||||
|
||||
@import "no-sidebar";
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// @import "../layout/content-sidebar";
|
||||
// @import "../layout/sidebar-content";
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
## Posts and pages
|
||||
--------------------------------------------------------------*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue