@charset "utf-8"; /* Theme Name: BirdTIPS Theme URI: http://www.sysbird.jp/birdtips/ Description: BirdTIPS is a flexible three-column blog theme. The theme uses CSS3 media queries for its responsive layout and is therefore optimized for tablet pcs and smart phones. Features include the page navigation. You can also choose the text color, link color, article title color and navigation menu color by theme options. Author: Sysbird Author URI: http://www.sysbird.jp Version: 1.08 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: white, three-columns, right-sidebar, fluid-layout, responsive-layout, 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 Text Domain: birdtips This theme, like WordPress, is licensed under the GPL. */ @import "compass"; @import "compass/reset"; // variable $background_color: #F5F5F5; $text_color: #555; $link_color: #06A; $navigation_color: #DDD; $title_color: #D63; $border-color: #CCC; $meta-color: #999; /* Font Awesome --------------------------------------------- */ @font-face { font-family: 'FontAwesome'; src: url("font-awesome/fontawesome-webfont.eot?v=4.1.0"); src: url("font-awesome/fontawesome-webfont.eot?#iefix&v=4.1.0") format("embedded-opentype"), url("font-awesome/fontawesome-webfont.woff?v=4.1.0") format("woff"), url("font-awesome/fontawesome-webfont.ttf?v=4.1.0") format("truetype"), url("font-awesome/fontawesome-webfont.svg?v=4.1.0#fontawesomeregular") format("svg"); font-weight: normal; font-style: normal; } @mixin font-awesome( $param, $padding-left:0, $padding-right:0 ) { content: $param; display: inline-block; font-family: FontAwesome; font-style: normal; font-weight: normal; line-height: 1; padding-left: $padding-left; padding-right: $padding-right; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;} /* Link --------------------------------------------- */ a { color: $link_color; text-decoration: none; &:hover { decoration: underline; } } /* Structure --------------------------------------------- */ body { margin: 0; padding: 0; border: 0; width: 100%; background-color: $background_color; font-family: 'Lato', Verdana,Arial, Meiryo , "Hiragino Kaku Gothic Pro" ,sans-serif; font-size: 0.92em; color: $text_color; * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } } #container { max-width: 1075px; margin: 0 auto; padding: 0; background-color: #fff; z-index: 0; } #header { max-width: 100%; margin: 0 auto; position: relative; } #wrapper { margin:0 0 0; padding:25px 25px 25px 75px; overflow: hidden; } #main { width: 78.59%; float: left; } #content { width: 72.669%; float: left; } #leftcolumn { width: 24.275%; margin-left:2.454%; float: left; } #rightcolumn { width: 19.775%; float: right; overflow: hidden; } #footer { clear: both; padding:25px 25px 25px 75px; overflow: hidden; } /* Header --------------------------------------------- */ #header { img { width: 100%; height: auto; vertical-align:bottom; } #branding { position: absolute; left: 75px; top: 0; color: $navigation_color; #site-title { margin: 0; padding: 0.8em 0 0 0; font-size: 2rem; line-height: 1.2; a { color: $navigation_color; font-weight: bold; text-decoration: none; } } #site-description { margin: 3px 0; } } &.no-title { padding-top: 2em; #branding { position: absolute !important; clip: rect( 1px, 1px, 1px, 1px ); } } &.no-image { #branding { position: static; margin: 0 0 2em 75px; } #menu-wrapper { position: relative; } } } /* Menu -------------------------------------------------------------- */ #menu-wrapper { position: absolute; bottom: 5px; left: 0; z-index: 9; padding-left: 75px; *zoom: 1; &:after { clear: both; content: ""; display: block; } .menu { #small-menu { display: none; /* hide small menu initially */ } ul#menu-primary-items { &:after { @include clearfix; } li { position: relative; &:hover > ul { display: block; /* show dropdown on hover */ } ul { position: absolute; top: 1.8em; left: 0; margin: 0; border: solid 1px $border-color; display: none; /* hide dropdown */ width: 200px; li { float: none; margin: -1px 0 0 0; padding: 0; a { display: block; padding: 0.8em; background: $background_color; color: $text-color; border-top: dotted 1px $border-color; line-height: 1.2; text-decoration: none; white-space: normal; &:hover { background: #FFF; } } &:first-child a { border-top: solid 1px $border-color; } &.menu-item-has-children { >a:after { @include font-awesome( "\f0da", 5px ); } } ul { top: 0; left: 100%; } } } &.menu-item-has-children { >a:after { @include font-awesome( "\f0da", 5px ); } } } > li { float: left; > a { display: block; padding: 0.4em 0.8em; color: $navigation_color; border-left: solid 1px $navigation_color; line-height: 1.2; &:hover { text-decoration: underline; } } &:first-child a { border-left: none; padding-left: 0; } &.menu-item-has-children { >a:after { @include font-awesome( "\f0d7", 5px ); } } } li[class*="current-menu"] { > a { font-weight: bold; } } } } } /* Posts --------------------------------------------- */ #content{ .hentry { margin-bottom: 3.2em; .entry-content { @include clearfix; } .entry-meta { clear: both; margin-top: 1em; line-height: 1.4; display: block; background: $background_color; font-size: 0.96em; padding: 0.4em; color: $meta-color; span { padding-right: 0.8em; } .postdate { &:before { @include font-awesome( "\f133", 0, 0.2em ); } } .author { &:before { @include font-awesome( "\f007", 0, 0.2em ); } } .category { &:before { @include font-awesome( "\f07b", 0, 0.2em ); } } .tag { &:before { @include font-awesome( "\f02c", 0, 0.2em ); } } .comment { &:before { @include font-awesome( "\f075", 0, 0.2em ); } } } .entry-header { position: relative; margin: 0; display: block; .entry-title { color: $title_color; font-size: 1.6rem; font-weight: normal; margin: 0 0 1em 0; padding: 0 0 0.8em 0; line-height: 1.2; border-bottom: dotted 2px $border-color; a { color: $title_color; text-decoration:none; border: none; &:hover { text-decoration: underline; } } } .postdate { font-size: 1.1em; font-style: italic; position: absolute; left: -75px; top: 0; background: $title_color; color: #FFF; padding: 5px 7px 15px 0; text-align: right; width: 60px; line-height: 1.1; span { display: block; } } } &.sticky .entry-header .postdate { background: $link_color; } .page-link { clear: both; margin: 1.6em 0; color: $link-color; span { background: $link-color; color: #FFF; padding: 0.2em 0.4em; text-decoration:none; font-weight: normal; text-align: center; border: solid 1px $link-color; display: inline-block; line-height: 1; } a { span { color: $link-color; background: #FFF; &:hover { background: $background_color; } } } } } a { border-bottom: dotted 1px $link_color; &:hover { text-decoration: none; border-bottom: solid 1px $link_color; } &.more-link { &:before { @include font-awesome("\f061", 0, 0.4em ); } } } a.thumbnail { display: block; border-bottom: none; margin: 0 0 0.5em 1em; float: right; img.wp-post-image { max-width: 300px; } } h1, h2, h3, h4, h5, h6 { margin: 0.7em 0; line-height:1.2; font-weight: normal; } h1 {font-size:2.4rem;} h2 {font-size:2rem;} h3 {font-size:1.8rem;} h4 {font-size:1.6rem;} h5 {font-size:1.4rem;} h6 {font-size:1.2rem;} h2 { border-bottom: dashed 1px $border-color; padding-bottom: 0.4em; } h3 { border-left: solid 7px $border-color; padding-left: 10px; } p { line-height: 1.6; margin: 0 0 1.6em; } blockquote { margin-left: 1em; padding-left: 1em; border-left: 10px solid $border-color; small { display: block; line-height: 20px; color: $meta-color; } small:before { content: '\2014 \00A0'; } cite:before { content: "-"; } cite { color: $meta-color; display: block; } } table { max-width: 100%; border-collapse: collapse; border-spacing: 0; margin-bottom: 1.6em; th, td { border: 1px solid $border-color; line-height: 1.4; padding: 0.8em; text-align: left; vertical-align: top; } th { text-align: center; font-weight: bold; background: $background_color; } } pre { border: dashed 1px $border-color; padding: 0.8em; background: $background_color; margin-bottom: 1.6em; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; } code { background: $background_color; } code, kbd, pre, samp { font-family: monospace,serif; } hr { background-color: $border-color; border: 0 none; height: 1px; margin-bottom: 1.6m; } sup, sub { font-size: 0.8em; height: 0; line-height: 0; position: relative; vertical-align: baseline; } sub { top: 0.5ex; } sup { bottom: 1ex; } em { font-style: italic; } strong { font-weight: bold; } abbr, acronym { border-bottom: 1px dotted #666; cursor: help; } ul, ol { margin: 0 0 1.6em 1em; padding: 0 0 0 1em; line-height: 1.4; li { padding: 0.2em 0; } ul, ol { margin-bottom: 0; } } ul { list-style: disc; ul { list-style: circle; ul { list-style: square; } } } 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: 0 1.5em 1.6em; padding: 0; } } del { color: #C00; } ins { background: #ffc; text-decoration: none; } } .home #content .hentry.sticky .entry-header .entry-title .home #content .hentry.sticky .entry-header .entry-title a { color: $link_color; } .attachment.single { #main { width: 100%; } #content { width:98%; float: none; } #content .entry-content .attachment { text-align: center; } } /* 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; color: $link-color; @include clearfix; a { color: $link-color; border:solid 1px $link-color; text-decoration:none; } a.page-numbers, .current { display: inline-block; text-align: center; padding: 0.2em 0.4em; margin-right: 0.1em; &.prev, &.next { background: none; border: none; } } a.page-numbers:hover { background: $background_color; &.prev, &.next { background: none; text-decoration: underline; } } .current { color: #FFF; background: $link-color; border:solid 1px $link-color; } a.next { padding-right: 0; &:after { @include font-awesome( "\f061", 0.4em ); } } a.prev { padding-left: 0; &:before { @include font-awesome( "\f060", 0, 0.4em ); } } } /* Images -------------------------------------------------------------- */ #content .hentry img, .widget img { max-width: 100%; height: auto; border: 1px solid $border-color; padding: 1px; } img[class*="align"], img[class*="wp-image-"] { height: auto; } .aligncenter { margin-left: auto; margin-right: auto; display: block; } .alignleft { float: left; margin-right: 0.75em; } .alignright { float: right; margin-left: 0.75em; } img.alignleft, img.alignright, img.aligncenter { margin-bottom: 0.75em; } a:hover img { @include opacity(0.9); } #content .hentry { .wp-caption, .gallery-caption { font-size: 0.96em; line-height: 1; color: $meta-color; max-width: 100%; text-align: center; } .wp-caption { padding: 5px; margin-bottom: 1.6em; background: $background_color; max-width: 100%; img { padding: 0; border: none; } p { text-align: center; margin: 5px 0 0 0; line-height: 1; } a { border: none; } } .gallery-caption { margin: 5px 0 0 0; } .gallery { margin: 0 auto; clear: both; a { border: none; } .gallery-item { float: left; padding: 0 5px; margin-bottom: 10px; text-align: center; width: 33%; a { display: block; } img { vertical-align:bottom; } } &.gallery-columns-2 .gallery-item { max-width: 50%; } &.gallery-columns-3 .gallery-item { max-width: 33.33%; } &.gallery-columns-4 .gallery-item { max-width: 25%; } &.gallery-columns-5 .gallery-item { max-width: 20%; } &.gallery-columns-6 .gallery-item { max-width: 16.66%; } &.gallery-columns-7 .gallery-item { max-width: 14.28%; } &.gallery-columns-8 .gallery-item { max-width: 12.5%; } &.gallery-columns-9 .gallery-item { max-width: 11.11%; } } } /* 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; .navigation { position: relative; height: 1em; padding-bottom: 10px; margin-bottom: 1em; .nav-previous a { position: absolute; top: 0; right: 0; padding-left: 1em; } .nav-next a { position: absolute; top: 0; left: 0; padding-right: 1em; } } ol.commentlist { list-style: none; margin: 0; padding-left: 0; li.pingback, li.comment { border-left: 2px solid $border-color; clear: both; margin-bottom: 1.6em; padding: 0 0 0 10px; position: relative; list-style: none; &:after { @include clearfix; } .comment-author { .fn { font-weight: bold; color: #000; } img { border: none; margin: 0 10px 10px 0; float: left; } } .comment-meta { font-size: 0.96em; line-height: 1.6; margin-bottom: 1.6em; a { border-bottom: none; color: $meta-color; } } .comment-awaiting-moderation { font-size: 0.96em; color: $meta-color; } &.bypostauthor .comment-author .fn { color: $title_color; } .reply { margin-bottom: 1.6em; a.comment-reply-link { &:before { @include font-awesome( "\f112", 0, 0.2em ); } } } } } } /* Forms -------------------------------------------------------------- */ form { input { font-size: 100%; } } #commentform { border: 1px dotted $border-color; padding: 10px 15px 0; margin-bottom: 1.6em; p { margin-bottom: 0.8em; } label { padding: 0 0 5px 0; display: block; } input:not([id="submit"]) { width: 100%; max-width: 300px; padding: 5px; background: #FFF; border: solid 1px $border-color; } textarea { width: 100%; height: 100px; padding:5px; background: #FFF; border: solid 1px $border-color; } input#submit { padding: 5px 10px; } #email-notes { display: block; } .form-allowed-tags { line-height: 1.2; code { display: block; } } } .post-password-form { input:not([type="submit"]) { padding: 5px; background: #FFF; border: solid 1px $border-color; } } /* Searcform --------------------------------------------- */ #searchform { width: 100%; height: 30px; border-radius: 0; position: relative; label { display: block; font-size: 0; overflow: hidden; text-indent: -9999px; } #s { width: 80%; padding: 5px 10px 5px 5px; height: 30px; line-height: 1; border: solid 1px $border-color; border-radius: 0; } #searchsubmit { position: absolute; top: 0; right: 1px; border: 0 none; cursor: pointer; width: 20%; height: 30px; margin: 0; background: $border-color; color: #FFF; border-radius: 0; -webkit-appearance: button; @include font-awesome( "\f005", 0, 0.2em ); } } /* Archive -------------------------------------------------------------------- */ .archive #content ul, .error404 #content ul { margin: 0; padding: 0; list-style: none; li { border-bottom: dotted 1px $border-color; padding: 0; @include clearfix; a { display: block; text-decoration: none; color: $text_color; border: none; height: auto; padding: 0.5em 0; @include clearfix; &:hover { background: $background_color; } } span { padding: 0 0.5em 0 0; text-indent: -0.3em; margin-left: 0.6em; float: left; &:before { @include font-awesome( "\f0da", 0, 0.2em ); } } em { display: block; float: right; padding-left: 1.5em; font-style: normal; } } } .search #content { h2 { font-size: 1.6rem; a { border: none; &:hover { text-decoration: underline; } } } } /* Single -------------------------------------------------------------------- */ .single { #content #nav-below { @include clearfix; .nav-next, .nav-previous { display: block; width: 48%; padding: 5px 0; } .nav-previous { float: right; text-align: right; a:after { @include font-awesome( "\f061", 0.4em ); } } .nav-next { float: left; a:before { @include font-awesome( "\f060", 0, 0.4em ); } } } } /* Attachment -------------------------------------------------------------------- */ .attachment { #content { .hentry { .entry-attachment { text-align: center; margin-bottom: 1.6em; .wp-caption { background: none; } } .attachment a { border: none; } } } } /* Sidebars --------------------------------------------- */ .widget { margin-bottom: 40px; margin-bottom: 2em; line-height: 1.2; a { text-decoration: none; &:hover { text-decoration: underline; } } .widget_image img { height: auto; max-width: 100%; } h3 { font-size: 1.2em; font-weight: normal; margin: 0 0 10px 0; padding: 0 0 5px 0; border-bottom: solid 3px $border-color; } ul { list-style: none; padding: 0; margin-left: 0; overflow: hidden; li { margin-top: -1px; border-top: dotted 1px $border-color; padding: 0.3em 0 0.3em 0.6em; text-indent: -0.3em; a { color: $text-color; } &:before { @include font-awesome( "\f0da", 0, 0.2em ); } ul { padding: 0.5em 0 0 0.5em; } } } table { width: 100%; margin-bottom: 0; padding-bottom: 0; } .textwidget{ line-height: 1.4; a { text-decoration: underline; } } #wp-calendar { /* Calendar Widget */ border-collapse: collapse; border-spacing: 0; caption { font-size: 1.2em; font-weight: bold; } tbody { th, td { text-align: center; border-top: dotted 1px $border-color; padding: 2px; a { display: block; background: $link-color; color: #FFF; } } } thead { th { padding: 5px 2px; text-align: center; } } tfoot { border-top: 1px dotted $border-color; #next { text-align: right; } td { padding: 5px 2px; } } } } /* Footer --------------------------------------------- */ #footer { background: $title_color; color: #FFF; .site-title { padding: 1em 0; line-height: 1.4; .home { font-weight: bold; } a { color: #FFF; } .generator { font-family: Georgia, "Bitstream Charter", serif; font-style: italic; &:after { @include font-awesome( "\f19a", 0.2em, 0.2em ); } } } #back-top { position: fixed; bottom: 10px; right: 10px; z-index: 3; a { color: $border-color; display: block; height: 60px; width: 60px; text-decoration: none; @include opacity( 0.7 ); span { @include hide-text; display: block; } &:hover { text-decoration: none; @include opacity( 0.8 ); } &:before { @include font-awesome( "\f0aa" ); font-size: 60px; display: block; } } } } /* Media queries for responsive design --------------------------------------------- */ /* --- iPad Landscape --- */ @media screen and (max-width: 1000px) { /* --- General --- */ #container { margin: 0 auto; } #wrapper { overflow: hidden; } #main { width: 76.59%; } #content { width:98%; float: left; } #leftcolumn { margin:0; float: none; } #rightcolumn { width: 23.275%; float: right; } /* --- Sidebars --- */ #leftcolumn { width: 92.2%; margin-left:0; padding: 30px 0 0; float: left; .widget ul li { border: none; display: inline; a { text-decoration: underline; &:hover { color: $meta-color; } } ul li { border-top: none; } } aside:last-child { margin-bottom: 0; border-bottom: none; } aside, #rightcolumn aside { float: none; overflow: hidden; } } } /* --- iPad Portrait --- */ @media screen and (max-width: 800px) { #header { #branding { #site-title { padding: 5px 0 0; } #site-description { display: none; } } } #main { width: 100%; } #content { width: 100%; float: none; } #leftcolumn { width: 100%; } #rightcolumn { width: 100%; float: none; } /* --- Sidebars --- */ #leftcolumn aside:last-child { margin-bottom: 30px; border-bottom: 1px solid $border-color; } #rightcolumn aside:last-child { margin-bottom: 0; border-bottom: none; } } /* --- Smartphones and small Tablet PCs --- */ @media screen and (max-width: 650px) { body { font-size: 1.04rem; } #wrapper { padding:10px; } #header { #branding { left: 0; padding: 0 2em 0 10px; #site-title { font-size: 1.2rem; } } &.no-image { #branding { padding: 1em 10px; margin: 0; } #menu-wrapper { position: absolute; } } &.no-menu { padding-top: 0; #branding { top: 0; } } } /* small menu */ #menu-wrapper { bottom: 0; width: 100%; padding: 0; .menu { #small-menu { cursor: pointer; display: block; margin: 0 5px 5px 0; font-size: 24px; color: $navigation_color; text-align: center; float: right; &:after { @include font-awesome( "\f0c9" ); } } ul#menu-primary-items { clear: both; position: absolute; top: 36px; width: 100%; display: none; /* visibility will be toggled with jquery */ background: $background_color; li { &.menu-item-has-children { position: relative; > a { padding-right: 2.2em; } } ul { position: static; padding-left: 0.8em; display: block; border: none; width: auto; li { border-top: dotted 1px $border-color; a { border-top: none; padding: 0.4em; background: none; &:hover { background: none; } } &.menu-item-has-children { >a:after { @include font-awesome( "" ); } } &:first-child a { border-top: none; } } } } > li { float: none; border-top: dotted 1px $border-color; > a { color: $text-color !important; border-left: none; line-height: 1.2; padding: 0.4em; &:hover { text-decoration: none; } } &:first-child a { padding-left: 0.4em; } &.menu-item-has-children { >a:after { @include font-awesome( "" ); } } } li[class*="current-menu"] { > a { font-weight: normal; } } } } &.current { .menu { #small-menu { &:after { @include font-awesome( "\f00d" ); } } } } } #content .hentry { .entry-header { position: static; .entry-title { margin: 0; } .postdate { position: static; color: $title_color; background: none; padding: 0.5em 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; } } a.thumbnail { float: none; margin-left: 0; text-align: center; img.wp-post-image { max-width: 100%; } } } #footer { padding-left:10px; } } @media screen and (min-width: 650px) { ul#menu-primary-items { /* ensure .menu is visible on desktop version */ display: block !important; } }