/* ========================================================================== Page layout ========================================================================== */ body { background-color: $bodycolor; font-family: $serif; color: $text-color; } /* Header ========================================================================== */ .navigation-wrapper { @include container; padding: 2em 0 1em; font-family: $sans-serif-narrow; font-weight: 700; text-transform: uppercase; @include clearfix; } /* Site name */ .site-name { @include grid(12,10); @include prefix(12,1); @include suffix(12,1); margin-bottom: 1em; float: none; display: block; @include font-rem(24); @include breakpoint($small) { @include grid(12,2); @include prefix(12,0.5); @include suffix(12,0.5); @include font-rem(16); } @include breakpoint($x-large) { @include grid(12,1.5); @include prefix(12,2); } } /* Top navigation links */ .top-navigation { @include grid(12,10); @include prefix(12,1); @include suffix(12,1); margin-bottom: 1em; float: none; display: block; @include breakpoint($small) { @include grid(12,9); @include prefix(12,0); @include suffix(12,0); } @include breakpoint($x-large) { @include grid(12,8); } ul { margin: 0; padding: 0; clear: both; list-style-type: none; } li { display: block; list-style-type: none; border-bottom: 1px solid lighten($black,80); border-bottom: 1px solid fade($black,10); @include font-rem(16); &:last-child { border-bottom: 0 solid transparent; } @include breakpoint($small) { display: inline; margin-right: 25px; white-space: nowrap; border-bottom: 0 solid transparent; } a { display: block; padding: 10px 0; decoration: none; border-bottom: 0 solid transparent; @include transition(all .2s); @include breakpoint($small) { display: inline; padding: 0; } } } } /* Main content */ #main { counter-reset: captions; @include container; @include clearfix; clear: both; margin-top: 2em; h1 { margin-top: 0; } .post { @include container; @include grid(12,10); @include prefix(12,1); @include suffix(12,1); margin-bottom: 2em; @include breakpoint($small) { @include grid(12,8); @include prefix(12,0); @include suffix(12,0); } @include breakpoint($large) { @include grid(12,6); } @include breakpoint($x-large) { @include grid(12,5); } } figcaption { padding-top: 10px; @include font(14); line-height: 1.3; color: lighten($text-color, 10); } } /* Archive listing specific styling */ .archive { @include container; @include grid(12,10); @include prefix(12,1); @include suffix(12,1); margin-bottom: 2em; @include breakpoint($small) { @include grid(12,8); @include prefix(12,0); @include suffix(12,0); } @include breakpoint($large) { @include grid(12,6); } @include breakpoint($x-large) { @include grid(12,5); } h3 { margin: 0; padding-bottom: .5em; @include font-rem(28); border-bottom: 1px solid lighten($black,70); } article { h2 { margin-bottom: 4px; @include font-rem(20); &.link-post { margin-bottom: 0px + $doc-line-height; margin-bottom: 0rem + ($doc-line-height / $doc-font-size); } } p { @include font-rem(14); } p+p { text-indent: 0; } } } /* Large feature header image */ .image-wrap { position: relative; margin-bottom: 2em; @include clearfix; &:after { content: " "; display: block; position: absolute; bottom: 0; left: 8%; width: 0; height: 0; border: 10px solid transparent; border-bottom-color: $bodycolor; @include breakpoint($small) { left: 25%; } @include breakpoint($large) { border-width: 20px; } @include breakpoint($x-large) { left: 33.333333333%; } } img { width: 100%; height: auto; -ms-interpolation-mode: bicubic; } } /* Post byline */ .byline { clear: both; font-size: 80%; } /* Author profile */ .sidebar { display: none; a, a:hover { border-bottom: 0 solid transparent; } img { width: 100%; } @include breakpoint($small) { display: block; @include grid(12,2); @include prefix(12,0.5); @include suffix(12,0.5); } @include breakpoint($x-large) { @include grid(12,1.5); @include prefix(12,2); } } .author-name { margin-bottom: 0; @include breakpoint($small) { margin-top: 10px; margin-bottom: 10px; } } .author-bio { font-size: 80%; font-style: italic; @include breakpoint($small) { margin-bottom: 20px; } } .author-avatar { max-width: 110px; @include rounded(150px); } .author-social { display: block; margin-bottom: 5px; @include font-rem(14); color: $black; &:visited { color: $black; } &:hover { @include scale(1.1); } &:active { @include translate(0, 2px); } .fa { margin-right: 5px; } } @include breakpoint($small) { display: block; max-width: 125px; } @include breakpoint($large) { .author-name, .author-avatar, .author-bio, .author-social { max-width: 150px; } } /* Post content wrapper */ .article-wrap { // Dotted line underlines for links p > a, p > em > a, p > strong > a, li > a { text-decoration: underline; } } /* Table of contents */ .toc { font-size: 95%; @include breakpoint($large) { display: block; @include grid(12,2); @include prefix(12,0.5); @include suffix(12,0.5); position: absolute; top: 5.5em; right: 0; background-color: $white; } header { background: lighten($black, 10); } h3 { margin: 0; padding: 5px 10px; color: $white; @include font-rem(16); text-transform: uppercase; &:hover { cursor: pointer; } } ul { margin: 2px 0 0; padding: 0; line-height: 1; } li { display: block; margin: 0 0 1px 0; padding: 0; font-family: $sans-serif-narrow; list-style-type: none; &:last-child { border-bottom-width: 0; } a { padding: 10px; display: block; color: $white; text-decoration: none; background: lighten($black, 30); @include opacity(0.7); @include transition(opacity 0.2s ease-in-out); &:hover { @include opacity(1); } } ul { margin: 1px 0 0; li a { padding-left: 20px; } } } } /* TOC trigger for collapsing */ #drawer { max-height: 100%; overflow: hidden; &.js-hidden { max-height: 0; } } /* Image grid - not used */ .image-grid { @include clearfix; list-style: none; margin: 0 0 1em; padding: 0; li { @include grid(12,6); @include breakpoint($micro) { width: 33.333333%; } @include breakpoint($small) { width: 25%; } @include breakpoint($medium) { width: 20%; } @include breakpoint($large) { width: 16.666666666%; } } } /* Recent grid - not used */ .recent-grid { @include clearfix; list-style: none; margin: 1em 0; li { display: inline; a { border-bottom: 0 solid transparent; &:hover { border-bottom: 0 solid transparent; } } } img { width: 19%; margin-bottom: 1%; } } /* Social sharing links */ /* Social media brand buttons */ .social-share { margin-bottom: 0px + $doc-line-height; margin-bottom: 0rem + ($doc-line-height / $doc-font-size); ul, li { margin: 0; padding: 0; list-style: none; } li { display: inline-block; } $social: (facebook, $facebook-color), (flickr, $flickr-color), (foursquare, $foursquare-color), (google-plus, $google-plus-color), (instagram, $instagram-color), (linkedin, $linkedin-color), (pinterest, $pinterest-color), (rss, $rss-color), (tumblr, $tumblr-color), (twitter, $twitter-color), (vimeo, $vimeo-color), (youtube, $youtube-color); @each $socialnetwork, $color in $social { .#{$socialnetwork} { background: $color; } } a { display: block; padding: 8px 20px; text-decoration: none !important; text-transform: uppercase; @include font-rem(14); font-family: $sans-serif-narrow; font-weight: 700; color: $white; opacity: 0.8; &:hover { opacity: 1; } } span { display: none; @include breakpoint($medium) { display: inline; padding-left: 5px; } } h4 { @include font-rem(14); margin-bottom: 10px; text-transform: uppercase; } } /* Footer wrapper */ .footer-wrap { @include container; @include clearfix; clear: both; padding-bottom: 3em; .copyright { @include font-rem(14); } footer { @include grid(12,10); @include prefix(12,1); @include suffix(12,1); @include breakpoint($small) { @include grid(12,6); @include prefix(12,3); @include suffix(12,3); } @include breakpoint($x-large) { @include grid(12,4.5); @include prefix(12,4); @include suffix(12,3.5); } } } /* Follow links */ .follow { ul { margin: 0; padding: 0; list-style-type: none; } li { display: inline-block; } li + li:before { content: ""; padding-right: 5px; } } /* Related articles list */ .related-articles { @include grid(12,10); @include prefix(12,1); @include suffix(12,1); margin-bottom: 2em; @include breakpoint($small) { @include grid(12,6); @include prefix(12,3); @include suffix(12,3); } @include breakpoint($x-large) { @include grid(12,4.5); @include prefix(12,4); @include suffix(12,3.5); } h4 { text-transform: uppercase; margin-bottom: 0; } li { margin-bottom: 0; } } /* Browser upgrade alert ========================================================================== */ .browser-upgrade { background: #000; text-align: center; margin: 0 0 2em 0; padding: 10px; text-align: center; color: $white; a { color: $white; border-bottom: 1px dotted $white; text-decoration: none; &:hover { border-bottom: 1px solid $white; } } } /* Google search form ========================================================================== */ #goog-fixurl { ul { list-style: none; margin-left: 0; padding-left: 0; li { list-style-type: none; } } } #goog-wm-qt { width: auto; margin-right: 10px; margin-bottom: 20px; padding: 8px 20px; display: inline-block; @include font-rem(14); background-color: $white; color: $black; border-width: 2px !important; border-style: solid !important; border-color: lighten($black,50); @include rounded(3px); } #goog-wm-sb { @extend .btn; } /* Breadcrumbs ========================================================================== */ .breadcrumbs { ol { padding: 0; list-style: none; } li { display: inline; } .current { font-weight: bold; } } /* Post pagination links ========================================================================== */ .pagination { padding-top: 0.5em; border-top: 1px solid lighten($black,70); ul { margin: 0; padding: 0; list-style-type: none; } li { display: inline-block; } li + li:before { content: ""; padding-right: 10px; } .current { font-weight: bold; } }