123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789 |
- /* ==========================================================================
- Page layout
- ========================================================================== */
- body {
- background-color: $bodycolor;
- font-family: $base-font;
- color: $text-color;
- }
- /*
- Header
- ========================================================================== */
- .navigation-wrapper {
- @include container;
- padding: 2em 0 1em;
- font-family: $heading-font;
- font-weight: 500;
- background-color:#DDD;
- /* text-transform: uppercase; */
- @include clearfix;
- }
- .home .navigation-wrapper {
- background-color:inherit;
- }
- /* Site name */
- .site-name {
- @include grid(12,10);
- @include prefix(12,1);
- @include suffix(12,1);
- margin-bottom: 1em;
- float: none;
- display: block;
- text-transform: uppercase;
- @include font-rem(24);
- @media #{$small} {
- @include grid(12,2);
- @include prefix(12,0.5);
- @include suffix(12,0.5);
- @include font-rem(16);
- }
- @media #{$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;
- @media #{$small} {
- @include grid(12,9);
- @include prefix(12,0);
- @include suffix(12,0);
- }
- @media #{$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;
- }
- @media #{$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);
- @media #{$small} {
- display: inline;
- padding: 0;
- }
- }
- }
- }
- /* Animated lines for mobile nav button */
- $button-size: 1.5rem;
- @mixin navicon-line() {
- display: inline-block;
- width: $button-size;
- height: $button-size/7;
- // line color
- background: $white;
- border-radius: $button-size/14;
- transition: .3s;
- }
- .navicon-lines-button {
- padding: $button-size/4 $button-size/2;
- transition: .3s;
- cursor: pointer;
- user-select: none;
- border-radius: $button-size/7;
- }
- .navicon-lines-button:hover {
- opacity: 1;
- }
- .navicon-lines-button:active {
- transition: 0;
- }
- .navicon-lines {
- margin-right: 10px;
- margin-bottom: $button-size/5;
- // create middle line
- @include navicon-line;
- position: relative;
- // create the upper and lower lines as pseudo-elements of the middle line
- &:before,
- &:after {
- @include navicon-line;
- position: absolute;
- left: 0;
- content: '';
- -webkit-transform-origin: $button-size/14 center;
- transform-origin: $button-size/14 center;
- }
- &:before { top: $button-size/4; }
- &:after { top: -$button-size/4; }
- }
- .navicon-lines-button:hover {
- opacity: 1;
- .navicon-lines {
- &:before { top: $button-size/3.5; }
- &:after { top: -$button-size/3.5; }
- }
- }
- .navicon-lines-button.x.active .navicon-lines {
- // hide the middle line
- background: transparent;
- // overlap the lines by setting both their top values to 0
- &:before,
- &:after {
- -webkit-transform-origin: 50% 50%;
- transform-origin: 50% 50%;
- top: 0;
- width: $button-size;
- }
- // rotate the lines to form the x shape
- &:before {
- -webkit-transform: rotate3d(0,0,1,45deg);
- transform: rotate3d(0,0,1,45deg);
- }
- &:after {
- -webkit-transform: rotate3d(0,0,1,-45deg);
- transform: rotate3d(0,0,1,-45deg);
- }
- }
- // Style the toggle menu link and hide it
- .nav .navtoggle {
- @include font-rem(18);
- font-weight: normal;
- background-color: $black;
- color: $white;
- border: none;
- cursor: pointer;
- @media #{$small} {
- display: none;
- }
- }
- .nav button {
- border: none;
- background: none;
- }
- .navtoggle i {
- z-index:-1;
- }
- .icon-menu {
- position: relative;
- top: 3px;
- line-height: 0;
- }
- // When JavaScript is disabled, we hide the toggle button
- .no-js .nav .navtoggle {
- display: none;
- }
- // When JavaScript is disabled, we show the menu
- .no-js .nav ul {
- max-height: 30em;
- overflow: hidden;
- }
- // When JavaScript is enabled, we hide the menu
- .js .nav ul {
- max-height: 0;
- overflow: hidden;
- @media #{$small} {
- max-height: 30em;
- }
- }
- // Displaying the menu when the user has clicked on the button
- .js .nav .active + ul {
- max-height: 30em;
- overflow: hidden;
- -webkit-transition: max-height .4s;
- -moz-transition: max-height .4s;
- -o-transition: max-height .4s;
- -ms-transition: max-height .4s;
- transition: max-height .4s;
- }
- /* Main content */
- #main {
- counter-reset: captions;
- @include container;
- @include clearfix;
- clear: both;
- margin-top: 2em;
- h1 {
- margin-top: 0;
- }
- .post,
- .page {
- @include container;
- @include grid(12,10);
- @include prefix(12,1);
- @include suffix(12,1);
- margin-bottom: 2em;
- @media #{$small} {
- @include grid(12,6);
- @include prefix(12,0);
- @include suffix(12,0);
- }
- @media #{$x-large} {
- @include grid(12,4.5);
- }
- }
- }
- /* Index listing specific styling */
- #index {
- @include container;
- @include grid(12,10);
- @include prefix(12,1);
- @include suffix(12,1);
- margin-bottom: 2em;
- @media #{$small} {
- @include grid(12,6);
- @include prefix(12,0);
- @include suffix(12,0);
- }
- @media #{$x-large} {
- @include grid(12,4.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;
- background-color:#DDD;
- @include clearfix;
- @media #{$small} {
- padding:1em 0;
- }
- &:after {/*
- content: " ";
- display: block;
- position: absolute;
- bottom: 0;
- left: 8%;
- width: 0;
- height: 0;
- border: 10px solid transparent;
- border-bottom-color: $bodycolor;
- @media #{$small} {
- left: 25%;
- }
- @media #{$large} {
- border-width: 20px;
- }
- @media #{$x-large} {
- left: 33.333333333%;
- }
- */}
- img {
- max-width: 70%;
- height: auto;
- display:block;
- margin-left:auto;
- margin-right:auto;
- -ms-interpolation-mode: bicubic;
- }
- .headline-wrap {
- position: absolute;
- bottom: 25px;
- @include prefix(12,1);
- @media #{$small} {
- left: 25%;
- margin-left: 0;
- }
- @media #{$x-large} {
- @include prefix(12,1);
- }
- h1, h2 {
- color: $white;
- @include text-shadow(0 1px 2px rgba(0,0,0,.25));
- }
- }
- }
- /* Large feature image fix for the home page */
- .home .image-wrap img {
- max-width: 90%;
- @media #{$large} {
- max-width: 50%;
- margin-top: 1.5em;
- margin-bottom: 1.5em;
- }
- }
- /* Post byline */
- .byline {
- clear: both;
- font-size: 80%;
- }
- .article-author-side,
- .article-author-bottom {
- h3 {
- margin-bottom: 0;
- }
- p {
- font-size: 80%;
- font-style: italic;
- }
- a, a:hover {
- border-bottom: 0 solid transparent;
- }
- }
- /* Default social media links in author sidebar */
- .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;
- }
- }
- /* Author sidebar */
- .article-author-side {
- display: none;
- .bio-photo {
- max-width: 110px;
- @include rounded(150px);
- }
- @media #{$small} {
- display: block;
- @include grid(12,2);
- @include prefix(12,0.5);
- @include suffix(12,0.5);
- h3,
- p,
- .author-social {
- display: block;
- max-width: 125px;
- }
- h3 {
- margin-top: 10px;
- margin-bottom: 10px;
- text-align:center;
- }
- p {
- margin-bottom: 20px;
- /* text-align:justify; */
- /* Do not justify tiny text like this otherwise it creates
- too much blank space --- unless you turn hyphenation on */
- }
- .author-social {
- margin-bottom: 5px;
- }
- }
- @media #{$large} {
- h3,
- .bio-photo,
- p,
- .author-social {
- max-width: 150px;
- }
- }
- @media #{$x-large} {
- @include grid(12,1.5);
- @include prefix(12,2);
- }
- }
- /* Author module - mobile only */
- .article-author-bottom {
- margin-bottom: 1em;
- @media #{$small} {
- display: none;
- }
- .bio-photo {
- float: left;
- margin-right: 25px;
- max-width: 100px;
- @include rounded(150px);
- }
- .author-social {
- display: inline-block;
- margin-right: 10px;
- }
- @media #{$large} {
- h3,
- .bio-photo,
- p,
- .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: none;
- color: $link-color;
- &:visited {
- color: $linkcolorvisited;
- }
- &:hover {
- color: $linkcolorhover;
- }
- &:focus {
- outline: thin dotted;
- color: $linkcolorfocus;
- }
- }
- }
- /* Table of contents */
- .toc {
- font-size: 95%;
- @media #{$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: $heading-font;
- 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);
- @media #{$micro} {
- width: 33.333333%;
- }
- @media #{$small} {
- width: 25%;
- }
- @media #{$medium} {
- width: 20%;
- }
- @media #{$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: $heading-font;
- font-weight: 700;
- color: $white;
- opacity: 0.8;
- &:hover {
- opacity: 1;
- }
- }
- span {
- display: none;
- @media #{$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;
- a,
- a:active,
- a:visited,
- p,
- h4,
- h5,
- h6,
- span {
- @include font-rem(14);
- }
- footer {
- @include grid(12,10);
- @include prefix(12,1);
- @include suffix(12,1);
- @media #{$small} {
- @include grid(12,6);
- @include prefix(12,3);
- @include suffix(12,3);
- }
- @media #{$x-large} {
- @include grid(12,4.5);
- @include prefix(12,4);
- @include suffix(12,3.5);
- }
- font-style: italic;
- nav {
- display: inline;
- display: inline-block;
- font-style: normal;
- }
- }
- .home & {
- @media #{$small} {
- padding-bottom: 0;
- position: fixed;
- bottom: 0;
- footer {
- padding: 10px 0;
- background-color: $bodycolor;
- }
- }
- }
- }
- /* Related articles list */
- .related-articles {
- @include grid(12,10);
- @include prefix(12,1);
- @include suffix(12,1);
- margin-bottom: 2em;
- @media #{$small} {
- @include grid(12,6);
- @include prefix(12,3);
- @include suffix(12,3);
- }
- @media #{$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;
- }
|