brouilleursdeblanc/_sass/_layout.scss

456 lines
7.5 KiB
SCSS
Raw Normal View History

2013-06-25 20:19:49 +00:00
body {
margin: 0;
padding: 0;
width: 100%;
background-color: $body-color;
border-top: 5px solid $black;
2013-06-25 20:19:49 +00:00
}
2013-06-25 20:19:49 +00:00
// Top Navigation
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
.navigation-wrapper {
text-align: center;
@include clearfix;
2013-06-25 20:19:49 +00:00
ul {
display: inline-block;
vertical-align: top;
margin: 0 0 50px;
padding: 4px 20px;
background-color: $black;
@include rounded(0 0 10px 10px);
@include clearfix;
2013-06-25 20:19:49 +00:00
}
li {
display: block;
float: left;
list-style: none;
text-align: center;
@include font-size(14,no);
2013-06-25 20:19:49 +00:00
text-transform: uppercase;
color: $white;
2013-07-26 15:03:17 +00:00
a:hover {
@include box-shadow($shadow: inset 0 0 1px $white);
2013-07-26 15:03:17 +00:00
}
}
a {
display: block;
padding: 6px 10px;
color: $white;
@include rounded(4px);
2013-06-25 20:19:49 +00:00
&:hover {
background-color: lighten($black, 10);
2013-06-25 20:19:49 +00:00
}
}
}
// Responsive nav toggle stuff
#site-nav {
2013-07-30 13:53:12 +00:00
z-index: 9000;
display: none;
@include media($medium) {
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
-o-animation-duration: 1s;
animation-duration: 1s;
}
2013-06-25 20:19:49 +00:00
&.closed {
@include media($medium) {
2013-06-25 20:19:49 +00:00
display: block;
}
}
&.opened {
display: block;
2013-06-25 20:19:49 +00:00
max-height: 100%;
li {
float: none;
@include media($medium) {
2013-08-19 14:38:30 +00:00
float: left;
}
2013-06-25 20:19:49 +00:00
}
}
}
.no-js #site-nav {
display: block;
2013-06-25 20:19:49 +00:00
}
#nav-toggle {
2013-07-30 13:53:12 +00:00
z-index: 9999;
2013-06-25 20:19:49 +00:00
display: block;
vertical-align: top;
margin: 0;
padding: 6px 20px;
background-color: $black;
height: 44px;
@include rounded(0);
@include media($medium) {
2013-06-25 20:19:49 +00:00
display: none;
}
}
2013-06-25 20:19:49 +00:00
// Masthead
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
.masthead {
margin-top: 40px;
@include clearfix;
@include media($medium) {
2013-06-25 20:19:49 +00:00
margin-top: 0;
}
.wrap {
text-align: center;
max-width: em(440);
2013-06-25 20:19:49 +00:00
padding-right: 20px;
padding-left: 20px;
@include media($medium) {
max-width: em(728);
2013-06-25 20:19:49 +00:00
padding-right: 60px;
padding-left: 60px;
}
@include media($large) {
max-width: em(960);
2013-06-25 20:19:49 +00:00
}
}
}
.site-logo {
img {
width: 100px;
height: 100px;
@include animation-duration(1s);
@include animation-delay(.05s);
border: 4px solid $white;
@include rounded(100px);
@include media($medium) {
2013-06-25 20:19:49 +00:00
width: 150px;
height: 150px;
@include rounded(150px);
2013-06-25 20:19:49 +00:00
}
@include media($large) {
2013-06-25 20:19:49 +00:00
width: 200px;
height: 200px;
@include rounded(200px);
2013-06-25 20:19:49 +00:00
}
}
}
.site-title {
margin-bottom: 0;
@include animation-duration(1s);
@include animation-delay(.75s);
a {
color: $black;
}
2013-06-25 20:19:49 +00:00
}
.site-description {
margin-top: 0;
font-family: $alt-font;
@include font-size(16);
2013-06-25 20:19:49 +00:00
font-weight: 400;
font-style: italic;
@include animation-duration(1s);
@include animation-delay(1s);
@include media($medium) {
@include font-size(20);
2013-06-25 20:19:49 +00:00
}
}
2013-06-25 20:19:49 +00:00
// Main
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
#main {
@include clearfix;
2013-06-25 20:19:49 +00:00
}
2013-07-29 19:32:58 +00:00
.entry,
2013-06-25 20:19:49 +00:00
.hentry {
@include clearfix;
border-bottom: 1px solid lighten($black,80);
border-bottom: 1px solid rgba($black,.10);
2013-06-25 20:19:49 +00:00
}
.entry-feature-image {
2013-08-05 15:59:05 +00:00
margin: 20px 0 0;
width: 100%;
@include media($medium) {
2013-07-30 13:53:12 +00:00
margin-top: -75px;
}
@include media($large) {
2013-07-30 13:53:12 +00:00
margin-top: -145px;
}
2013-06-25 20:19:49 +00:00
}
2013-06-26 02:34:15 +00:00
.entry-header {
@include fill-parent;
2013-06-26 02:34:15 +00:00
}
2013-06-25 20:19:49 +00:00
.entry-tags {
display: block;
margin-top: 2em;
text-transform: uppercase;
@include font-size(16);
2013-06-25 20:19:49 +00:00
font-weight: 600;
a {
color: $text-color;
}
2013-06-25 20:19:49 +00:00
}
span + .entry-title {
margin-top: 0;
}
.entry-title {
font-family: $alt-font;
2013-06-25 20:19:49 +00:00
font-style: italic;
@include font-size(36,yes,36);
2014-01-02 20:09:30 +00:00
font-weight: 400;
2013-06-25 20:19:49 +00:00
line-height: 1;
letter-spacing: -3px;
2013-08-12 17:27:54 +00:00
a {
color: $black;
2013-08-12 17:27:54 +00:00
text-decoration: underline;
}
@include media($medium) {
@include font-size(52,yes,54);
2013-06-25 20:19:49 +00:00
}
@include media($large) {
@include font-size(68,yes,72);
2013-06-25 20:19:49 +00:00
}
}
.entry-wrapper {
@include outer-container;
margin-top: 0;
margin-bottom: 3em;
padding-right: $gutter;
padding-left: $gutter;
2013-06-25 20:19:49 +00:00
}
.entry-meta {
@include span-columns(12);
2013-06-25 20:19:49 +00:00
text-transform: uppercase;
@include font-size(14);
a {
color: $text-color;
}
@include media($large) {
@include span-columns(2.5);
2013-06-25 20:19:49 +00:00
}
& > span {
padding: 0 20px 10px 0;
2013-06-25 20:19:49 +00:00
display: inline-block;
@include media($large) {
2013-06-25 20:19:49 +00:00
display: block;
padding: 8px 0;
border-bottom: 1px solid lighten($black,80);
border-bottom: 1px solid rgba($black,.10);
2013-06-25 20:19:49 +00:00
}
}
}
.bio-photo {
2013-06-26 02:34:15 +00:00
display: none;
@include media($large) {
2013-06-26 02:34:15 +00:00
display: block;
width: 150px;
height: 150px;
margin-bottom: 10px;
@include rounded(150px);
@include clearfix;
2013-06-26 02:34:15 +00:00
}
}
2013-06-25 20:19:49 +00:00
.entry-content {
@include span-columns(12);
2013-06-25 20:19:49 +00:00
p:first-child {
margin-top: 0;
}
@include media($large) {
@include span-columns(9.5);
2013-06-25 20:19:49 +00:00
}
2013-08-12 18:17:05 +00:00
p > a,
2013-06-25 20:19:49 +00:00
li > a {
border-bottom: 1px dotted lighten($link-color, 50);
2013-06-25 20:19:49 +00:00
&:hover {
border-bottom-style: solid;
}
}
}
2013-06-26 12:46:49 +00:00
.post-list {
li > a {
border-bottom-width: 0;
}
}
// Disqus Comments
#disqus_thread {
margin-top: 2em;
}
// Pagination
.pagination {
margin-top: 2em;
text-align: center;
}
2013-06-25 20:19:49 +00:00
// Page layout
#home,
#page {
.entry-wrapper {
max-width: em(760);
}
2013-06-25 20:19:49 +00:00
.entry-title {
text-align: center;
max-width: 100%;
}
.entry-content {
@include span-columns(12);
2013-06-25 20:19:49 +00:00
}
}
// Post index layout
.post-list {
margin: 0;
padding: 0;
list-style-type: none;
li {
padding: 8px 0;
border-bottom: 1px solid lighten($black,80);
border-bottom: 1px solid rgba($black,.10);
@include font-size(18,no);
@include clearfix;
2013-06-25 20:19:49 +00:00
}
a > span {
float: right;
}
.entry-date {
@include font-size(14,no);
2013-06-25 20:19:49 +00:00
text-transform: uppercase;
2013-07-03 17:57:15 +00:00
display: none;
@include media($medium) {
2013-07-03 17:57:15 +00:00
display: inline;
}
2013-06-25 20:19:49 +00:00
}
}
2013-06-27 15:56:09 +00:00
// Tag index
.tag-box {
list-style: none;
margin: 0;
padding: 4px 0;
overflow: hidden;
@include clearfix;
2013-06-27 15:56:09 +00:00
&.inline li {
float: left;
@include font-size(14);
2013-06-27 15:56:09 +00:00
line-height: 2.5;
}
a {
padding: 4px 6px;
margin: 2px;
background-color: lighten($black, 90);
@include rounded(4px);
2013-06-27 15:56:09 +00:00
text-decoration: none;
span {
vertical-align: super;
@include font-size(10);
2013-06-27 15:56:09 +00:00
}
}
}
// Table of Contents
// table of contents
#markdown-toc {
font-family: $alt-font;
margin-top: $gutter;
margin-bottom: $gutter;
padding-left: 0;
border: 1px solid $border-color;
border-radius: $border-radius;
ul {
list-style-type: none;
padding-left: 0;
}
li {
@include font-size(16,no,18);
border-bottom: 1px solid $border-color;
list-style-type: none;
}
h6 {
margin: 0;
padding: (.25 * $gutter) (.5 * $gutter);
background: $table-stripe-color;
}
a {
display: block;
padding: (.25 * $gutter) (.5 * $gutter);
border-left: 2px solid transparent;
border-bottom: 0 solid transparent;
&:hover,
&:focus {
background: lighten($border-color,5);
}
}
2013-09-11 16:12:08 +00:00
}
2013-06-25 20:19:49 +00:00
// Footer
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
.footer-wrapper {
@include clearfix;
2013-06-25 20:19:49 +00:00
margin: 2em auto;
text-align: center;
font-family: $alt-font;
@include font-size(14);
2013-06-25 20:19:49 +00:00
font-style: italic;
color: lighten($text-color,20);
2013-06-25 20:19:49 +00:00
a {
color: lighten($text-color,20);
2013-06-25 20:19:49 +00:00
}
}
// Search Overlay
// --------------------------------------------------
.search-wrapper {
@include outer-container;
margin-top: 0;
padding-right: $gutter;
padding-left: $gutter;
height: 1px;
}
2013-06-25 20:19:49 +00:00
// Social Icons
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
.social-icons {
margin: 1em 0 2em;
a {
padding: 4px 8px;
&:hover {
color: $black;
}
2013-06-25 20:19:49 +00:00
}
}
// Browser Upgrade
2013-06-25 20:19:49 +00:00
// --------------------------------------------------
2013-06-25 20:19:49 +00:00
.upgrade {
padding: 10px;
text-align: center;
2013-07-10 15:31:00 +00:00
}
// Google Search Form
2013-07-10 15:31:00 +00:00
// --------------------------------------------------
2013-07-10 15:31:00 +00:00
#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;
padding: 8px 10px;
@include font-size(14);
border-width: 2px;
border-radius: $border-radius;
2013-07-10 15:31:00 +00:00
}
#goog-wm-sb {
@extend .btn;
2013-08-12 17:27:54 +00:00
}