html { height: 100%; overflow-y: scroll; } body { background: #1b1e1e url("http://milesj.me/scss/img/bg.jpg") repeat fixed; color: #1b1e1e; font: normal 120%/2rem Lato, Verdana, Arial, sans-serif; height: 100%; } ul, ol, li, dl { margin: 0; padding: 0; list-style: none; } h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; line-height: 100%; font-weight: normal; } h1 { font-size: 2rem; } h2 { font-size: 2.40rem; } h3 { font-size: 2.05rem; } h4 { font-size: 1.75rem; } h5 { font-size: 1.45rem; } h6 { font-size: 1.15rem; } a, a:hover { color: $color-gray; text-decoration: none; } a:hover { color: shade($color-gray, 20%); } p { margin: $spacing 0; &:last-child { margin-bottom: 0; } } //------------------ Skeleton ------------------// .skeleton { min-height: 100%; position: relative; padding-bottom: 85px; @include pie-clearfix; // Increase padding @include if-mobile-landscape { padding-bottom: 100px; } } .head { padding: $spacing 0 0 $spacing; width: span(1.65); position: fixed; top: 0; left: 0; .logo { text-shadow: 1px 1px 2px #000; text-align: center; margin-bottom: $spacing-double; a { .symbol { position: relative; width: 100%; padding-top: 100%; display: block; text-align: center; span { width: 100%; height: 100%; max-width: 280px; max-height: 280px; position: absolute; top: 0; left: 0; display: block; background: url("http://milesj.me/scss/img/logo.png") 50% 50% no-repeat; background-size: 100% 100%; opacity: .75; } } .me { padding-top: $spacing-half; display: block; } &:hover .symbol span { opacity: .95; } } } .menu { box-shadow: 0 0 1px #000; li { a { display: block; padding: $spacing-half; background: black(.2); color: $color-gray; .text { margin-left: 10px; } &:hover .text { color: #fff; } } &.menu-blog a span { color: $color-blue; } &.menu-code a span { color: $color-green; } &.menu-contact a span { color: $color-yellow; } &.menu-about a span { color: $color-orange; } &.menu-blog a:hover { background: rgba(shade($color-blue, 60%), .9); } &.menu-code a:hover { background: rgba(shade($color-green, 60%), .9); } &.menu-contact a:hover { background: rgba(shade($color-yellow, 60%), .9); } &.menu-about a:hover { background: rgba(shade($color-orange, 60%), .9); } &.active a, &.active a:hover { font-weight: bold; background: #000; .text { color: #fff; } } &:first-child a { border-top-left-radius: 2px; border-top-right-radius: 2px; } &:last-child a { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; } } } @include pie-clearfix; // Remove fixed sidebar @include if-laptop { float: left; position: relative; } // Increase column width in double column layout @include if-tablet-landscape { width: span(2.25); } // Turn into single column @include if-tablet-portrait { float: none; width: 100%; padding: $spacing; padding-bottom: 0; .logo { margin: 0; padding: 0; float: left; a { .symbol, .symbol span { float: left; width: 50px; height: 50px; padding: 0; } .symbol span { background-image: url("http://milesj.me/scss/img/logo-small.png"); } .me { float: left; padding: 12px 0 0 15px; font-size: 1.8rem; } } .position { display: none; } } .menu { float: right; li { float: left; } li a { font-size: .9em; } li a .text { margin-left: 5px; } } } // Remove name @media all and (max-width: 730px) { .logo a .me { display: none; } } // Reduce logo size @include if-mobile-landscape { .logo a { .symbol, .symbol span { width: 40px; height: 40px; } } .menu li a { padding: .5rem; } } // Remove menu titles @media all and (max-width: 420px) { .menu .text { display: none; } .menu li a span { margin: 0; } } } .body { padding: $spacing; float: right; width: span(8.5); margin-left: span(1.65); @include pie-clearfix; // Remove left margin for header @include if-laptop { margin: 0; } // Increase column width in double column layout @include if-tablet-landscape { width: span(7.9); } // Turn into single column @include if-tablet-portrait { float: none; width: 100%; } } .foot { clear: both; background: #000; border-top: 1px solid #393b3a; color: $color-gray; width: 100%; position: absolute; padding: $spacing; bottom: 0; .version { color: shade($color-gray, 50%); } .mt { display: inline-block; vertical-align: middle; width: 50px; height: 20px; background: url("http://milesj.me/scss/img/mt.png"); background-size: 100% 100%; opacity: .60; &:hover { opacity: .85; } // Make smaller @include if-mobile-landscape { width: 43px; height: 17px; } } p { margin: 0; padding: 0; float: left; a { font-size: 1.5rem; margin-left: 10px; line-height: 100%; } &:last-child { float: right; } // Stack vertically @include if-mobile-landscape { float: none; text-align: center; &:last-child { float: none; margin-top: $spacing-half; } } } } // Reduce padding @include if-mobile-landscape { .head, .body, .foot { padding: $spacing-half; } .head { padding-bottom: 0; } } //------------------ Responsive ------------------// .responsive-wrapper { @include pie-clearfix; } .responsive-sidebar { float: right; width: span(3); } .responsive-content { float: left; width: span(7); } // Display 2 columns @include if-tablet-landscape { body { font-size: 100%; } h2 { font-size: 2.20rem; } h3 { font-size: 1.80rem; } h4 { font-size: 1.60rem; } h5 { font-size: 1.60rem; } h6 { font-size: 1.50rem; } p { margin: 1em 0; } .responsive-sidebar, .responsive-content { float: none; width: 100%; } } // Reduce font size @include if-mobile-landscape { body { font-size: 90%; } h2 { font-size: 1.70rem; } h3 { font-size: 1.60rem; } h4 { font-size: 1.40rem; } h5 { font-size: 1.40rem; } h6 { font-size: 1.30rem; } }