@charset "utf-8"; /* Theme Name: BirdMAGAZINE Theme URI: http://www.sysbird.jp/birdmagazine/ Description: BirdMAGAZINE is a flexible two-column blog theme. Features the grid layout by a jQuery Masonry. and uses CSS3 media queries for its responsive layout and is therefore optimized for tablet pcs and smart phones. Features include the Theme Customize. You can choose the text color, link color, header line and footer background color and navigation color. Author: Sysbird Author URI: http://www.sysbird.jp/wptips/ Version: 1.01 License: GNU General Public License v2.0 License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: yellow, two-columns, right-sidebar, flexible-width, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready */ @import "normalize"; @import "mixin"; // variable $text-color: #544021; $link-color: #06A; $menu-color: #999; $border-color: #DDD; $line-color: #5EC1D6; /* Index --------------------------------------------- */ h1, h2, h3, h4, h5, h6 { margin:0; line-height:1em; } h1 {font-size:2em;margin-bottom:.5em;} h2 {font-size:1.75em;margin-bottom:.5142em;padding-top:.2em;} h3 {font-size:1.5em;margin-bottom:.7em;padding-top:.3em;} h4 {font-size:1.25em;margin-bottom:.6em;} h5 {font-size:1.1em;margin-bottom:.5em;font-weight:bold;} h6 {font-size:1em;margin-bottom:.5em;font-weight:bold;} /* Link --------------------------------------------- */ a { color: $link-color; text-decoration: none; &:hover { text-decoration: underline; } } /* Structure --------------------------------------------- */ body { margin:0; padding:0; border:0; width:100%; background-color:#F9F9EF; } .container { width: 960px; margin: 0 auto; } #header { width: 100%; *z-index: 9999; /* IE7 and below */ } #main { clear: both; width: 100%; } #content { float: left; margin: 0 -310px 2em 0; width: 650px; } #sidebar { float: right; width: 300px; } #footer { overflow: hidden; clear: both; width: 100%; margin: 0 auto; } /* Wrapper -------------------------------------------------------------- */ #wrapper { font-family: Verdana,Arial,"ƒƒCƒŠƒI",Meiryo,"ƒqƒ‰ƒMƒmŠpƒSPro W3","Hiragino Kaku Gothic Pro","‚l‚r ‚oƒSƒVƒbƒN",sans-serif; font-size:0.92em; color: $text-color; border-top: solid 7px $line-color; overflow: hidden; } /* Header -------------------------------------------------------------- */ #header { position: relative; _height: 200px; /* IE6 and below */ margin-bottom: 20px; #branding { padding: 0.5em 0; } a.header-image { display: block; margin: 10px 0; } img { max-width: 100%; vertical-align:bottom; } #site-title { margin: 0; padding: 0; color: $text-color; font-size: 3em; line-height: 1; a { color: $text-color; font-weight: bold; } } p#site-description { margin: 0.5em 0 0 0; } } /* Menu -------------------------------------------------------------- */ #menu-wrapper { z-index: 9999; .menu { border-top: dashed 1px $menu-color; border-bottom: dashed 1px $menu-color; margin-top: 0.5em; #small-menu { display: none; /* hide small menu initially */ } ul { margin: 0; padding-left: 0; @include clear-fix(); li { margin: 0; padding: 0; list-style: none; float: left; position: relative; &:hover > ul { display: block; /* show dropdown on hover */ } a { padding: 0.8em 1.6em 0.8em 0; display: block; color: $menu-color; text-decoration: none; line-height: 1.2; *white-space: nowrap; /* IE7 and below */ &:hover { text-decoration: underline; } } ul { background: #fff; margin: 0; border: solid 1px $menu-color; display: none; /* hide dropdown */ width: 200px; position: absolute; top: 2.8em; left: 0; z-index: 9999; li { float: none; margin: 0; padding: 0; a { background: #F8F8F8; padding: 0.8em; border-right: none; border-top: dotted 1px $menu-color; white-space: normal; &:hover { background: #EEE; text-decoration: none; } } &:first-child a { border-top: none; } ul { top: 0; left: 100%; } } } } } .current_page_item > a, .current_page_ancestor > a { font-weight: bold; } } } /* Posts --------------------------------------------- */ #content{ p { line-height: 1.6; margin: 0 0 1.6em; } blockquote { margin-left: 1em; padding-left: 1em; border-left: 5px solid $border-color; small { display: block; line-height: 20px; color: #999999; } small:before { content: '\2014 \00A0'; } cite:before { content: "-"; } cite { color: #999999; display: block; } } table { max-width: 100%; width: 100%; border-collapse: collapse; border-spacing: 0; th, td { border-bottom: 1px solid $border-color; line-height: 20px; padding: 8px; text-align: left; vertical-align: top; } } pre { border: dashed 1px $border-color; padding: 10px; } ul, ol { margin: 0 0 0 1em; padding: 0 0 0 1em; line-height: 1.6; } ol { list-style: decimal; ol { list-style:upper-alpha; ol { list-style:lower-roman; ol { list-style:lower-alpha; } } } } dl { margin:0 0 1em 0; line-height: 1.6; dt { font-weight: bold; } dd { margin-bottom: 1em; padding: 0; } } del { color: #C00; } ins { background: #ffc; text-decoration: none; } .hentry { width: 638px; margin: 0 10px 10px 0; padding: 15px 0 0 0; background: #FFF; border: solid 1px $border-color; border-radius: 4px; word-wrap: break-word; .entry-inner { padding: 0 15px; } a.more-link { font-size: 0.8em; } p { line-height: 1.6; margin: 0 0 1.6em; } .entry-header { margin-bottom: 0.8em; .postdate { color: #999; font-size: 0.9em; } .author { font-size: 0.9em; } .entry-title { font-size: 2em; font-weight: normal; margin: 0 0 15px 0; line-height: 1; color: $text-color; padding: 0; a { color: $text-color; } } } .entry-content { @include clear-fix(); } .entry-meta { clear: both; font-size: 0.9em; line-height: 1.4; display: block; padding: 5px 0; border-top: dashed 1px $border-color; padding: 5px 10px; .icon { &:before { font-family: 'Genericons'; padding-right: 2px; color: #CCC; font-size: 16px; } } .postdate { &:before { content: '\f303'; } } .author { &:before { content: '\f304'; } } .category { &:before { content: '\f301'; } } .tag { &:before { content: '\f302'; } } .comment { &:before { font-family: 'Genericons'; content: '\f300'; padding-left: 2px; } } } .page-link { clear: both; margin: 1em 0; font-weight: bold; color: $link-color; a { color: $link-color; padding: 4px 7px; text-decoration:none; border: solid 1px $link-color; font-weight: normal; &:hover { background: #F5F5F5; } } } } } .home #content{ ul#masonry-wrapper { list-style: none; margin: 0; padding: 0; } .hentry { width: 312px; .entry-eyecatch { text-align: center; img.wp-post-image { margin: 0 0 0.5em 0; max-width: 100%; float: none; } } } .hentry.sticky { width: 638px; .entry-eyecatch { img.wp-post-image { margin: 0 0 0.5em 0.5em; float: right; } } } } .single { #content .hentry .entry-meta { border-top: none; background: #F5F5F5; margin: 1em 0; } #content #nav-below { margin: 2em 0 1em; line-height: 1.2; @include clear-fix(); .nav-next { a:before { font-family: 'Genericons'; content: '\f430'; } } .nav-previous { display: block; float: right; a:after { font-family: 'Genericons'; content: '\f429'; } } } } .attachment.single { #content { width:100%; float: none; .hentry { width: 100%; } .entry-content .attachment { text-align: center; padding-bottom: 2em; } } } /* Link Style */ #content .hentry .entry-meta a, .single #content #nav-below a, #content #comments a.comment-reply-link, #content #comments .navigation a { border: none; &:hover { text-decoration: underline; } } /* Pagenation -------------------------------------------------------------------- */ #content .tablenav { clear: both; padding: 2em 0 1em; color: $link-color; a.page-numbers, .current { color: $link-color; padding: 4px 7px; border:solid 1px $link-color; text-decoration:none; font-weight: bold; background: #FFF; } a.page-numbers:hover { background: #F5F5F5; } .current { color: #FFF; background: $link-color; } a.next, a.prev { border: none; background: none; font-weight: normal; } a.next:hover, a.prev:hover { text-decoration: underline; background: none; } span.total { color: #AAA; display: block; margin-top: 0.5em; font-size: 0.9em; } } /* Images -------------------------------------------------------------- */ #content .hentry img.wp-post-image { margin: 0 0 0.5em 1em; float: right; max-width: 300px; } #content .hentry img, .widget img { max-width: 100%; /* Fluid images for posts, comments, and widgets */ height: auto; } img[class*="align"], img[class*="wp-image-"] { height: auto; /* Make sure images with WordPress-added height and width attributes are scaled correctly */ } .aligncenter { margin-left: auto; margin-right: auto; display: block; } .alignleft { float: left; margin-right: 0.5em; } .alignright { float: right; margin-left: 0.5em; } img.alignleft, img.alignright, img.aligncenter { margin-bottom: 0.75em; } a:focus img[class*="attachment"], a:hover img[class*="attachment"], a:focus img[class*="align"], a:hover img[class*="align"], a:active img[class*="align"], a:focus img[class*="wp-image-"], a:hover img[class*="wp-image-"], a:active img[class*="wp-image-"], #content .gallery .gallery-icon a:focus img, #content .gallery .gallery-icon a:hover img, #content .gallery .gallery-icon a:active img, #content .hentry a:hover img { border-color: #bbb; } #content .hentry .wp-caption { background: #F5F5F5; text-align: center; padding-top: 5px; font-size: 0.8em; color: #999; max-width: 100%; } #content .hentry .gallery-item a, #content .hentry .entry-attachment a, #content .hentry .entry-attachment a:hover, #content .hentry .wp-caption a, #content .hentry .wp-caption a:hover, #content .hentry .gallery a:hover { border: none ; } #content .hentry .gallery-thumb { float: right; display: block; margin: 0 0 10px 10px; } #content .hentry .gallery { margin: 0 auto; clear: both; .gallery-item { float: left; text-align: center; margin: 0 0 10px 0; width: 33%; } .wp-caption, .gallery-caption { font-size: 12px; line-height: 1.2; color: #AAA; max-width: 97.5%; text-align: center; } } /* Make sure videos and embeds fit their containers -------------------------------------------------------------- */ embed, iframe, object, video { max-width: 100%; } .entry-content .twitter-tweet-rendered { max-width: 100% !important; /* Override the Twitter embed fixed width */ } /* Comments -------------------------------------------------------------- */ #content #comments { margin-top: 20px; display: block; #comments-title { font-size: 130%; font-weight: bold; margin: 1em 0; } #reply-title { font-size: 110%; font-weight: bold; margin: 1em 0; } .navigation { position: relative; height: 1em; padding-bottom: 10px; margin-bottom: 1em; .nav-previous a { position: absolute; top: 0; right: 0; padding-left: 1em; &:after { font-family: 'Genericons'; content: '\f429'; padding-left: 2px; } } .nav-next a { position: absolute; top: 0; left: 0; padding-right: 1em; &:before { font-family: 'Genericons'; content: '\f430'; padding-right: 2px; } } } ol.commentlist { list-style: none; margin: 0; padding-left: 0; li.pingback, li.comment { border-left: 2px solid $border-color; clear: both; margin-bottom: 1em; padding: 0 0 0 10px; position: relative; list-style: none; @include clear-fix(); } } li { .comment_meta { .author { font-weight: bold; margin: 0 0 5px 5px; color: #000; } .time { font-size: 85%; margin: 0 0 5px 5px; &:before { font-family: 'Genericons'; content: '\f303'; padding-right: 2px; } } .comment-reply-link { &:before { font-family: 'Genericons'; content: '\f412'; } } img { border: none; margin: 0 5px 5px 0; float: left; } } .comment_text { clear: both; margin: 0 0 0.7em 50px; p { line-height: 1.4; } .web a { &:before { font-family: 'Genericons'; content: '\f501'; font-size: 10px; } } } em { font-size: 80%; color: #999; } &.bypostauthor .comment_meta .author { color: #dd6633; } } } /* Forms -------------------------------------------------------------- */ #content #comments #commentform { border: dashed 1px $border-color; padding: 10px 15px 0 15px; margin: 15px 0; max-width: 650px; label { padding: 3px 0 5px 0; } em { font-size: 85%; display: block; padding: 5px 0; } label input { width: 300px; padding: 5px; background: #FFF; border: solid 1px $border-color; } textarea { width: 95%; padding:5px; background: #FFF; border: solid 1px $border-color; } input#submit { padding: 5px 10px; } .form-allowed-tags { font-size: 90%; } .form-allowed-tags code { display: block; } } form { input, select, textarea { max-width: 95%; } } /* Archive -------------------------------------------------------------------- */ .archive #content ul, .search #content ul, .error404 #content ul { margin: 0 0 2em 0; padding: 0; list-style: none; li { padding: 2px 0; border-bottom: dotted 1px $border-color; @include clear-fix(); a { text-decoration: none; color: $text-color; border: none; &:hover { text-decoration: underline; } } span { padding: 0 0.5em 0 0; float: left; } em { display: block; float: right; padding-left: 1.5em; } } } /* Sidebars --------------------------------------------- */ .widget { margin-bottom: 40px; margin-bottom: 2em; a { text-decoration: none; &:hover { text-decoration: underline; } } .widget_image img { height: auto; max-width: 100%; } h3 { font-size: 1.4em; font-weight: normal; margin: 0 0 10px 0; padding: 0 0 5px 0; border-bottom: solid 3px $line-color; } ul { list-style: none; padding: 0; margin-left: 0; overflow: hidden; li { margin-top: -1px; border-top: dashed 1px $border-color; padding: 0.3em 0; &:before { font-family: 'Genericons'; content: '\f104'; font-size: 10px; padding-right: 2px; } a { color: $text-color; } ul { padding: 0.5em 0 0 1em; } } } table { width: 100%; margin-bottom: 0; padding-bottom: 0; } .textwidget { line-height: 1.4; a { text-decoration: underline; } } #wp-calendar { /* Calendar Widget */ border: 1px solid $border-color; border-collapse: collapse; border-spacing: 0; th, td { text-align: center; border: 1px solid $border-color; background: #FFF; padding: 8px; } } #searchform { @include clear-fix(); label { @include text-hide(); } #s { float: left; width: 238px; padding: 5px; font-size: 15px; border: solid 1px #CCC; border-radius: 5px 0 0 5px; } #searchsubmit { background: url("images/icon_search.png") #CCC no-repeat center center; border: 0 none; cursor: pointer; width: 50px; height: 30px; border-radius: 0 5px 5px 0; margin: 0; @include text-hide(); } } } /* Footer --------------------------------------------- */ #footer { background: $line-color; color: #FFF; padding: 1em 0 4em; .widget-wrapper { margin-left: -30px; overflow: hidden; .widget { width: 300px; margin: 0 0 30px 30px; float: left; h3 { color: #FFF; border-color: #FFF; } ul { li { border-color: #FFF; } } } } .site-title { clear: both; border-top: solid 3px #FFF; padding-top: 1em; } a { color: #FFF; } .generator { &:before { font-family: 'Genericons'; content: '\f205'; padding: 0 2px; } } .home { font-weight: bold; } } /* Media queries for responsive design --------------------------------------------- */ /* --- iPad Landscape --- */ @media screen and (max-width: 960px) { /* --- General --- */ .container { width: 650px; margin: 0 auto; } #content { float: none; margin: 0 0 25px 0; width: 100%; } #sidebar { clear: both; float: none; width: 100%; margin: 0 auto; } .widget { ul { li { border-top: none; display: inline; a { text-decoration: underline; padding: 0.5em 0.5em 0.5em 0; display: inline-block; &:hover { text-decoration: none; } } ul { margin-left: 2em; padding-top: 0; li{ a { padding: 0.2em 0.2em 0.2em 0; } } } } @include clear-fix(); } } } /* --- Smartphones and small Tablet PCs --- */ @media screen and (max-width: 650px) { .container { width: 90%; } #header { .container { width: 100%; } #branding { padding-bottom: 0.5em; } #site-title { font-size: 2em; text-align: center; } p#site-description { display: none; } } #footer { .site-title { text-align: center; } .widget-wrapper { margin: 0; .widget { width: 100%; margin: 0 0 15px 0; } } .site-title { text-align: center; } } /* small menu */ #menu-wrapper { position: absolute; bottom: 0; left: 0; width: 100%; @include clear-fix(); &.no-image { position: relative; } .menu { border: none; margin: 0; #small-menu { cursor: pointer; display: block; width: 2em; margin: 0 10px 5px 0; float: right; &:after { font-family: 'Genericons'; content: '\f419'; font-size: 30px; } } ul#menu-primary-items { clear: both; position: absolute; top: 38px; background: #f8f8f8; border: solid 1px $menu-color; width: 100%; display: none; /* visibility will be toggled with jquery */ border-bottom: 1px solid $menu-color; box-shadow: 0 5px 5px 0 $menu-color; z-index: 9999; margin: 0; padding-left: 0; li { clear: both; float: none; a { padding: 0.8em 0 0.8em 1em; border-top: dotted 1px $menu-color; background: #f8f8f8; white-space: normal; &:hover { background: #EEE; text-decoration: none; } } &:first-child a { border-top: none; } ul { width: auto; margin-left: 0; padding-left: 1em; position: static; display: block; border: none; background: #f8f8f8; li { a { border-top: none; &:hover { background: none; text-decoration: underline; } } } } } } } } .no-image #menu-wrapper { margin-top: 0; } .home #content{ .hentry, .hentry.sticky { width: 100%; } } #content .hentry { width: 100%; .entry-header { position: static; .postdate { position: static; color: #000 !important; background: none; padding: 0 0 1em 0; width: 100%; text-align: left; background: none !important; display: block; span { display: inline; padding-right: 5px; } } a:hover .postdate { text-decoration: underline; } } .gallery { margin: 0 10%; .gallery-item { width: 31%; padding-right: 2%; margin: 0; img { width: 100%; height: auto; } } .wp-caption .wp-caption-text, .gallery-caption { font-size: 10px; line-height: 1; } } } } @media screen and (min-width: 650px) { ul#menu-primary-items { /* ensure .menu is visible on desktop version */ display: block !important; } }