Permalink
Browse files

Sidebar to the right on archive pages.

  • Loading branch information...
gonzomir committed May 31, 2017
1 parent 4d32e15 commit 792d9347c671ae3e9d86bf4bf8ac85027f7fe000
Showing with 38 additions and 1 deletion.
  1. +1 −1 sidebar.php
  2. +37 −0 style.css
@@ -12,6 +12,6 @@
}
?>
<aside id="secondary" class="widget-area" role="complementary">
<aside id="secondary" class="widget-area sidebar" role="complementary">
<?php dynamic_sidebar( 'sidebar-1' ); ?>
</aside><!-- #secondary -->
@@ -1370,6 +1370,43 @@ header[role="banner"] .site-title a {
}
.archive main {
float: left;
width: calc(66.6667% - .75em);
}
.archive .sidebar {
float: right;
width: calc(33.3333% - .75em);
padding-top: 3.634615385em;
}
@supports (display: grid) {
.archive .site-content {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(18em, 1fr) ) ;
grid-gap: 1.5em;
}
.archive .site-content:before,
.archive .site-content:after {
display: none;
}
.archive main,
.archive .sidebar {
float: none;
width: auto;
}
.archive main {
grid-column: span 2;
}
}
}
/*

0 comments on commit 792d934

Please sign in to comment.