/*
Theme Name: Yunblog Theme Based on Toolbox
Theme URI: http://wordpress.org/extend/themes/toolbox
Author: Automattic
Author URI: http://automattic.com/
Description: A semantic, HTML5, canvas for CSS artists and an ultra-minimal set of super-clean templates for your own WordPress theme development.
Version: 1.4
License: GNU General Public License
License URI: license.txt
Tags: custom-menu, sticky-post, microformats, rtl-language-support, translation-ready, full-width-template, post-formats

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =Structure
-------------------------------------------------------------- */
@import "reset.css";

html {
    background: #F6F5F4 url(images/bg.png) repeat;
}

body {
    margin: 0 auto;
    width: 620px;
}

header {
    margin: 47px 0 44px;
}

hgroup h1 {
    display: block;
    float: left;
}

navigation {
    display: block;
    margin-left: 295px;
}

navigation a {
	display: inline;
}

#content article {
    background: white;
	margin: 0;
	padding: 30px;
}

/* Alignment */
.alignleft {
	display: inline;
	float: left;
}
.alignright {
	display: inline;
	float: right;
}
.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#credit {
    margin: 0 auto;
    padding: 30px;
    font-size: 80%;
    text-align: center;
}

/* =Content
-------------------------------------------------------------- */

navigation #diary {
    display: inline-block;
    width: 66px;
    height: 37px;
    background: url(images/diary.png) no-repeat;
}

navigation #photo {
    display: inline-block;
    width: 72px;
    height: 37px;
    background: url(images/photo.png) no-repeat;
}

navigation #diary:hover {
    background-position: left bottom;
}

navigation #photo:hover {
    background-position: left bottom;
}

.hide-text, .hide-text a {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.entry-meta {
    color: #666;
    background: url(images/clock.png) no-repeat;
}

.entry-meta .datetime {
    color: #666;
    margin-left: 23px;
    line-height: 100%;
}

#content header {
	margin: 0;
}

#content h2 {
    margin: 30px 0 24px;
    color: #333;
}

#content h2 a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

#content nav {
	display: block;
	overflow: hidden;
	height: 37px;
}
#content nav .nav-previous {
	float: left;
	width: 50%;
}
#content nav .nav-previous a {
    display: block;
    width: 39px;
    height: 37px;
    background: url(images/back.png) no-repeat;
}
#content nav .nav-previous a:hover {
    background-position: left bottom;
}
#content nav .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}
#content nav .nav-next a {
    display: block;
	float: right;
    width: 39px;
    height: 37px;
    background: url(images/next.png) no-repeat;
}
#content nav .nav-next a:hover {
    background-position: left bottom;
}
#nav-below {
	margin: 30px 0 0;
	padding: 0 30px;
}
.page-link {
	clear: both;
	margin: 0 0 1em;
}
.page .edit-link {
	clear: both;
	display: block;
}

/* 404 page */
.error404 .widget {
	float: left;
	width: 33%;
}
.error404 .widget .widgettitle,
.error404 .widget ul {
	margin-right: 1em;
}
.error404 .widget_tag_cloud {
	clear: both;
	float: none;
	width: 100%;
}

/* Notices */
.post .notice,
.error404 #searchform {
	background: #eee;
	display: block;
	padding: 1em;
}

/* Image Attachments */
.image-attachment div.entry-meta {
	float: left;
}
.image-attachment nav {
	float: right;
	margin: 0 0 1em 0;
}
.image-attachment .entry-content {
	clear: both;
}
.image-attachment .entry-content .entry-attachment {
	background: #eee;
	margin: 0 0 1em;
	padding: 1em;
	text-align: center;
}
.image-attachment .entry-content .attachment {
	display: block;
	margin: 0 auto;
	text-align: center;
}

/* Aside Posts */
.format-aside .entry-header {
	display: none;
}
.single .format-aside .entry-header {
	display: block;
}
.format-aside .entry-content,
.format-aside .entry-summary {
	padding-top: 1em;
}
.single .format-aside .entry-content,
.single .format-aside .entry-summary {
	padding-top: 0;
}

/* Gallery Posts */
.format-gallery .gallery-thumb {
	float: left;
	margin: 0 1em 0 0;
}

/* Image Posts */
.format-image .entry-header {
	display: none;
}
.single .format-image .entry-header {
	display: block;
}
.format-image .entry-content,
.format-image .entry-summary {
	padding-top: 1em;
}
.single .format-image .entry-content,
.single .format-image .entry-summary {
	padding-top: 0;
}


/* =Images
-------------------------------------------------------------- */

a img {
	border: none;
}
p img {
	margin-bottom: 0.5em; /* a small bottom margin prevents content floating under images */
}

img.wp-post-image {
    margin-top: 15px;
}


/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img,
.widget-area img,
.wp-caption {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
img.alignleft {
	margin-right: 1em;
}
img.alignright {
	margin-left: 1em;
}
.wp-caption {
	padding: .5em;
	text-align: center;
}
.wp-caption img {
	margin: .25em;
}
.wp-caption .wp-caption-text {
	margin: .5em;
}
.gallery-caption {
}
.wp-smiley {
	margin: 0;
}


/* =Forms
-------------------------------------------------------------- */

input[type=text],
input#s {
	margin: 0 1em 0 0;
	width: 60%;
}
textarea {
	width: 80%;
}

/* Class for labelling required form items */
.required {
	color: #cc0033;
}


/* =Comments
-------------------------------------------------------------- */

article.comment {
	display: block;
}
#respond input[type=text] {
	display: block;
	width: 60%;
}
#respond textarea {
	display: block;
	margin: 0 0 1em;
	width: 80%;
}
#respond .form-allowed-tags {
	clear: both;
	width: 80%;
}
#respond .form-allowed-tags code {
	display: block;
}
