2011-06-27 16:59:21 -04:00
|
|
|
$max-width: 1200px !default;
|
|
|
|
|
|
|
|
// Padding used for layout margins
|
|
|
|
$pad-min: 18px !default;
|
|
|
|
$pad-narrow: 25px !default;
|
|
|
|
$pad-medium: 35px !default;
|
|
|
|
$pad-wide: 55px !default;
|
|
|
|
|
|
|
|
// Sidebar widths used in media queries
|
|
|
|
$sidebar-width-medium: 240px !default;
|
|
|
|
$sidebar-pad-medium: 15px !default;
|
|
|
|
$sidebar-pad-wide: 20px !default;
|
|
|
|
$sidebar-width-wide: 300px !default;
|
|
|
|
|
2011-07-18 15:33:11 -04:00
|
|
|
$indented-lists: false !default;
|
|
|
|
|
2011-06-27 16:59:21 -04:00
|
|
|
.group { @include pie-clearfix; }
|
|
|
|
|
2011-07-18 15:33:11 -04:00
|
|
|
@mixin collapse-sidebar {
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
clear: left;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0 $pad-medium 1px;
|
|
|
|
background-color: lighten($sidebar-bg, 2);
|
|
|
|
border-top: 1px solid lighten($sidebar-border, 4);
|
|
|
|
section {
|
|
|
|
&.odd, &.even { float: left; width: 48%; }
|
|
|
|
&.odd { margin-left: 0; }
|
|
|
|
&.even { margin-left: 4%; }
|
|
|
|
}
|
|
|
|
&.thirds section {
|
|
|
|
width: 30%;
|
|
|
|
margin-left: 5%;
|
2011-09-30 09:26:48 -04:00
|
|
|
&.first {
|
|
|
|
margin-left: 0;
|
|
|
|
clear: both;
|
|
|
|
}
|
2011-07-18 15:33:11 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-06-27 16:59:21 -04:00
|
|
|
body {
|
|
|
|
-webkit-text-size-adjust: none;
|
|
|
|
max-width: $max-width;
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto;
|
2011-10-17 12:50:28 -04:00
|
|
|
> header, > nav, > footer, #content > article, #content > div > article, #content > div > section {
|
2011-06-27 16:59:21 -04:00
|
|
|
@extend .group;
|
|
|
|
padding-left: $pad-min;
|
|
|
|
padding-right: $pad-min;
|
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
padding-left: $pad-narrow;
|
|
|
|
padding-right: $pad-narrow;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
padding-left: $pad-medium;
|
|
|
|
padding-right: $pad-medium;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 992px) {
|
|
|
|
padding-left: $pad-wide;
|
|
|
|
padding-right: $pad-wide;
|
|
|
|
}
|
|
|
|
}
|
2011-10-17 12:50:28 -04:00
|
|
|
div.pagination {
|
|
|
|
@extend .group;
|
|
|
|
margin-left: $pad-min;
|
|
|
|
margin-right: $pad-min;
|
|
|
|
@media only screen and (min-width: 480px) {
|
|
|
|
margin-left: $pad-narrow;
|
|
|
|
margin-right: $pad-narrow;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
margin-left: $pad-medium;
|
|
|
|
margin-right: $pad-medium;
|
|
|
|
}
|
|
|
|
@media only screen and (min-width: 992px) {
|
|
|
|
margin-left: $pad-wide;
|
|
|
|
margin-right: $pad-wide;
|
|
|
|
}
|
|
|
|
}
|
2011-06-27 16:59:21 -04:00
|
|
|
> header {
|
|
|
|
font-size: 1em;
|
|
|
|
padding-top: 1.5em;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-07-18 15:33:11 -04:00
|
|
|
#content { > div, > article { width: 100%; }}
|
|
|
|
|
2011-09-21 08:48:38 -04:00
|
|
|
aside.sidebar {
|
2011-07-18 15:33:11 -04:00
|
|
|
float: none;
|
|
|
|
padding: 0 $pad-min 1px;
|
|
|
|
background-color: lighten($sidebar-bg, 2);
|
|
|
|
border-top: 1px solid $sidebar-border;
|
|
|
|
@extend .group;
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
|
|
|
|
2011-08-22 16:28:50 -04:00
|
|
|
.flex-content { max-width: 100%; height: auto; }
|
|
|
|
|
|
|
|
.basic-alignment {
|
|
|
|
&.left { float: left; margin-right: 1.5em; }
|
|
|
|
&.right { float: right; margin-left: 1.5em; }
|
|
|
|
&.center { display:block; margin: 0 auto 1.5em; }
|
|
|
|
&.left, &.right { margin-bottom: .8em; }
|
|
|
|
}
|
|
|
|
|
2011-07-18 15:33:11 -04:00
|
|
|
.toggle-sidebar { &, .no-sidebar & { display: none; }}
|
|
|
|
|
|
|
|
body.sidebar-footer {
|
|
|
|
@media only screen and (min-width: 750px) {
|
2011-09-21 08:48:38 -04:00
|
|
|
aside.sidebar{ @include collapse-sidebar; }
|
2011-07-18 15:33:11 -04:00
|
|
|
}
|
|
|
|
#content { margin-right: 0px; }
|
|
|
|
.toggle-sidebar { display: none; }
|
|
|
|
}
|
2011-07-12 19:40:57 -04:00
|
|
|
|
2011-06-27 16:59:21 -04:00
|
|
|
@media only screen and (min-width: 550px) {
|
|
|
|
body > header { font-size: 1em; }
|
2011-07-18 15:33:11 -04:00
|
|
|
}
|
|
|
|
@media only screen and (min-width: 750px) {
|
2011-09-21 08:48:38 -04:00
|
|
|
aside.sidebar { @include collapse-sidebar; }
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
body { -webkit-text-size-adjust: auto; }
|
|
|
|
body > header { font-size: 1.2em; }
|
2011-07-12 19:40:57 -04:00
|
|
|
#main {
|
|
|
|
@extend .group;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0 auto;
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
2011-07-12 19:40:57 -04:00
|
|
|
#content {
|
|
|
|
@extend .group;
|
|
|
|
margin-right: $sidebar-width-medium;
|
|
|
|
position: relative;
|
2011-08-28 23:44:28 -04:00
|
|
|
.no-sidebar & { margin-right: 0; border-right: 0; }
|
2011-07-18 15:33:11 -04:00
|
|
|
.collapse-sidebar & { margin-right: 20px; }
|
2011-07-12 19:40:57 -04:00
|
|
|
> div, > article {
|
|
|
|
padding-top: $pad-medium/2;
|
|
|
|
padding-bottom: $pad-medium/2;
|
|
|
|
float: left;
|
|
|
|
}
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
2011-09-21 08:48:38 -04:00
|
|
|
aside.sidebar {
|
2011-07-18 15:33:11 -04:00
|
|
|
@extend .group;
|
|
|
|
width: $sidebar-width-medium - $sidebar-pad-medium*2;
|
|
|
|
padding: 0 $sidebar-pad-medium $sidebar-pad-medium;
|
|
|
|
background: none;
|
|
|
|
clear: none;
|
|
|
|
float: left;
|
|
|
|
margin: 0 -100% 0 0;
|
|
|
|
section {
|
|
|
|
width: auto; margin-left: 0;
|
|
|
|
&.odd, &.even { float: none; width: auto; margin-left: 0; }
|
2011-07-15 15:50:48 -04:00
|
|
|
}
|
2011-07-12 19:40:57 -04:00
|
|
|
.collapse-sidebar & {
|
2011-07-18 15:33:11 -04:00
|
|
|
@include collapse-sidebar;
|
2011-07-12 19:40:57 -04:00
|
|
|
}
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: 992px) {
|
|
|
|
body > header { font-size: 1.3em; }
|
2011-07-12 19:40:57 -04:00
|
|
|
#content { margin-right: $sidebar-width-wide; }
|
|
|
|
#content {
|
|
|
|
> div, > article {
|
|
|
|
padding-top: $pad-wide/2;
|
|
|
|
padding-bottom: $pad-wide/2;
|
|
|
|
}
|
2011-07-18 15:33:11 -04:00
|
|
|
}
|
2011-09-21 08:48:38 -04:00
|
|
|
aside.sidebar {
|
2011-07-18 15:33:11 -04:00
|
|
|
width: $sidebar-width-wide - $sidebar-pad-wide*2;
|
|
|
|
padding: 1.2em $sidebar-pad-wide $sidebar-pad-wide;
|
|
|
|
.collapse-sidebar & {
|
2011-07-12 19:40:57 -04:00
|
|
|
padding: { left: $pad-wide; right: $pad-wide; }
|
|
|
|
@extend .group;
|
|
|
|
}
|
2011-06-27 16:59:21 -04:00
|
|
|
}
|
|
|
|
}
|
2011-07-18 15:33:11 -04:00
|
|
|
|
|
|
|
@if $indented-lists == false {
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
ul, ol { margin-left: 0; }
|
|
|
|
}
|
|
|
|
}
|