// Site header .site-header { border-bottom: 1px solid $grey-color-light; min-height: $spacing-unit * 1.865; } .site-title { @include relative-font-size(3); display: block; font-weight: 300; margin: 0.6em 0; @include media-query($tablet) { @include relative-font-size(2); } @include media-query($phone) { @include relative-font-size(1.3); } &, &:visited { color: $text-color; } } .site-search { display: block; float: right; margin-top: 7px; @include media-query($phone) { float: none; } fieldset { border: none; padding: 0; margin: 0; .search { @include relative-font-size(.8); line-height: 1.2em; border-radius: 8px; border: 1px solid $grey-color-light; padding: 0.5em 0.6em; width: 16em; -webkit-appearance: none; @include media-query($phone) { width: 95%; } } } } .site-nav { line-height: $base-line-height * $base-font-size * 2.25; .page-link { color: $text-color; line-height: $base-line-height; &:hover { color: $grey-color-dark; } // Gaps between nav items, but not on the last one &:not(:last-child) { margin-right: 30px; } } } // Pagination .pagination { display: table; width: 100%; > a, > span.empty { display: table-cell; width: 20%; @include relative-font-size(1); @include media-query($tablet) { @include relative-font-size(0.9); } @include media-query($phone) { @include relative-font-size(0.8); } &.archives-link { width: auto; text-align: center; color: $grey-color-link; &:before, &:after { content: '\2014'; padding: 0 .3em; } } &:last-child { text-align: right; } } } // Site footer .site-footer { padding: ($spacing-unit/2) 0 $spacing-unit; text-align: center; @include relative-font-size(.8); color: $grey-color-light; a { color: $grey-color-link; + a::before { content: 'ยท'; padding: 0.4em; } } } // Page content .page-content { padding: $spacing-unit 0 0; @include media-query($tablet) { padding-top: ($spacing-unit/2); } } .page-heading { @include relative-font-size(1.25); } .post-list { margin-left: 0; list-style: none; > li { margin-bottom: $spacing-unit; .post-meta { display: block; margin-bottom: ($spacing-unit/1.5); @include media-query($tablet) { margin-bottom: ($spacing-unit/2); } @include media-query($phone) { margin-bottom: ($spacing-unit/3); } } > p { @include relative-font-size(1); @include media-query($tablet) { @include relative-font-size(0.9); } @include media-query($phone) { @include relative-font-size(0.8); } } &:last-child, > h2 { margin-bottom: 0; } } } .post-meta { font-size: $small-font-size; color: $grey-color; padding-left: 0.15em; } .post-link { display: inline-block; @include relative-font-size(2.5); font-weight: 500; margin: 0.1em 0 0; line-height: 1em; border-bottom: 2px solid transparent; transition: border-bottom 0.3s ease; @include media-query($tablet) { @include relative-font-size(2); } @include media-query($phone) { @include relative-font-size(1.7); } &:hover { border-bottom: 2px solid $brand-color; } } .read-more { display: block; @include relative-font-size(0.8); color: $grey-color-link; font-style: italic; } // Posts .post-header { margin-bottom: $spacing-unit; @include media-query($tablet) { margin-bottom: ($spacing-unit/2); } @include media-query($phone) { margin-bottom: ($spacing-unit/3); } } .post-title { @include relative-font-size(3); margin-bottom: 0; line-height: 1.2em; @include media-query($tablet) { @include relative-font-size(2); } } .post-content { margin-bottom: $spacing-unit; @include relative-font-size(1); @include media-query($tablet) { margin-bottom: ($spacing-unit/2); @include relative-font-size(0.9); } @include media-query($phone) { margin-bottom: ($spacing-unit/3); } // Lone images img.photo, iframe.youtube { display: block; margin: 0 auto; } // Multiple images in a row img.photo + img.photo { margin-top: 1em; } // Youtube embed iframe.youtube { margin-bottom: 1.5em; max-width: 100% !important; } h2 { @include relative-font-size(2); @include media-query($tablet) { @include relative-font-size(1.75); } } h3 { @include relative-font-size(1.625); @include media-query($tablet) { @include relative-font-size(1.375); } } h4 { @include relative-font-size(1.25); @include media-query($tablet) { @include relative-font-size(1.125); } } } .post-categories, .post-tags { font-weight: bold; > a, > span { font-weight: normal; } } .post-navigation { display: table; width: 100%; margin: 3em 0; > a { display: table-cell; width: 50%; @include relative-font-size(1); @include media-query($tablet) { @include relative-font-size(0.9); } @include media-query($phone) { @include relative-font-size(0.8); } &:last-child { text-align: right; } } } .post-related { text-align: center; > div { display: inline-block; text-align: left; } h3 { margin-bottom: 0.3em; text-align: center; } ul { margin-left: 1.3em; a { @include relative-font-size(0.8); } } } .archive { h1 { margin-bottom: 1.2em; @include relative-font-size(3); @include media-query($tablet) { @include relative-font-size(2); } @include media-query($phone) { @include relative-font-size(1.3); } } .archive-list { display: table; width: 100%; margin-left: 0; > li { display: table-row; > span, > .archive-link { display: table-cell; padding: 0.6em; } > .archive-year { @include relative-font-size(2); padding-top: 0.75em; padding-left: 0; color: $grey-color-link; border-right: 2px solid $grey-color-light; @include media-query($tablet) { @include relative-font-size(1.3); padding-top: 0.85em; } @include media-query($phone) { @include relative-font-size(1); padding-top: 0.6em; } } > .archive-month { @include relative-font-size(1.2); color: $grey-color-link; white-space: nowrap; vertical-align: middle; text-transform: uppercase; text-align: center; border-right: 1px solid $grey-color-lightest; @include media-query($tablet) { @include relative-font-size(1); } } > .archive-link { width: 100%; @include relative-font-size(2.2); vertical-align: middle; @include media-query($tablet) { @include relative-font-size(1.5); } @include media-query($phone) { @include relative-font-size(1); } > a { border-bottom: 2px solid transparent; transition: border-bottom 0.3s ease; &:hover { border-bottom: 2px solid $brand-color; } } } } } }