/*  
Theme Name: Rails for PHP
Theme URI: http://railsforphp.com/
Description: The theme for railsforphp.com
Version: 0.1
Author: Derek DeVries
Author URI: http://maintainable.com/

	Rails for PHP v1.0
	 http://maintainable.com

  This theme is copyright Maintainable Software
  All rights reserved
*/

/* =ORDER
 1. display
 2. float and position
 3. width and height
 4. Specific element properties
 5. margin
 6. border
 7. padding
 8. background
 9. color
10. font related properties
----------------------------------------------- */

/* =MAIN
----------------------------------------------- */
body, td, input, select, textarea, a {
  font: 14px/1.5em "Helvetica Neue", helvetica, arial, verdana, sans-serif;
  color: #333;
}
html, body, form, fieldset, h1, h2, h3, h4, h5, h6, 
p, pre, blockquote, ul, ol, dl, address {
  margin: 0;
  padding: 0;
}
li, dd, blockquote {
  margin-left: 1em;
}
form label {
  cursor: pointer;
}
fieldset {
  border: none;
}
img, table {
  border-width: 0;
}
hr {
  display: none;
}
form {
  display: inline;
}
h1 {
	font-size: 2em;
	line-height: 1em;
	margin-top: 0.25em;
	margin-bottom: 0.9em;
}
h2 {
	font-size: 1.875em;
	line-height: 1em;
	margin-bottom: .5em;
	padding-bottom: .5em;
}
h3 {
	font-size: 1.5em;
	line-height: 1.125em;
	margin-bottom: 1.125em;
}
h4 {
	font-size: 1.333em;
	line-height: 1.2857em;
	margin-bottom: 1.2857em;
}
p, ul, dl, ol, blockquote, pre, td, th {
	font-size: 1em;
	line-height: 1.5em;
	margin-bottom: 1.5em;
}
p.small {
	font-size: 0.8333em;
	line-height: 1.8em;
	margin-bottom: 1.8em;
}
table {
	border-collapse: collapse;
	margin-bottom: 1.5em;
}
a {
  font-size: 100%;
}

/* =COLORS
----------------------------------------------- */
body {
  color: #333;
}
a:link {
  color: #9a2002;
}
a:visited {
  color: #b12c0b;
}
a:hover {
  color: #333;
}
h1 span {
  color: #888;
}
h3 {
  margin-bottom: .25em;
}
h4 {
  margin-bottom: .25em;
}

/* =CLEAR FLOATS
----------------------------------------------- */
/* clear float */
.clr:after {
  content: "."; 
  display: block; 
  height: 0; 
  clear: both; 
  visibility: hidden;
}
.clr {display: inline-block;}
/* Hides from IE-mac \*/
* html .clr {height: 1%;}
.clr {display: block;}
/* End hide from IE-mac */


/* =COMMON
----------------------------------------------- */
.vtop {
  vertical-align: top;
}
.vmid {
  vertical-align: middle;
}
.vbot {
  vertical-align: bottom;
}
.left {
  float: left;
}
.right {
  float: right;
  text-align: right;
}

/* =LAYOUT
----------------------------------------------- */
#header, 
#nav, 
#main_body,
#footer, 
#splash {
  width: 802px;
  margin: 0 auto;
}
#content {
  float: left;
  width: 571px;
  margin: 0 0 32px 0;
  padding: 10px 20px 20px 5px;
}
#sidebar {
  float: left; 
  width: 189px;
  padding: 15px 7px 0 7px;
}

/* =HEADER
----------------------------------------------- */
#header_wrapper {
  background: #dad3bd url("images/header_fade.gif") top repeat-x;
  border-bottom: 2px solid #fff;
}
#logo {
  float: left;
  padding: 8px 0;
}
#logo span, #logo a {
  display: block;
  width: 322px;
  height: 34px;
  background: url("images/logo_hi.gif") 3px 3px no-repeat;
}
#logo img {
  display: block;
  width: 0;
}
#searchform {
  padding: 13px 0 0 0;
  float: right;
}
#searchform #s {
  border-width: 1px;
}

/* =NAV
----------------------------------------------- */
#nav_wrapper {
  background-color: #f3f1e9;
  border-bottom: 1px solid #efe8d9;
}
#nav ul {
  width: 470px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 95%;
}
#nav li {
  float: left;
  margin: 0;
  padding: 1px 2px 0 2px;
  font-weight: bold;
}
#nav li a {
  float: left;
  display: block;
  padding: 3px 9px 4px 9px;
  font-weight: bold;
}
#nav li.sel a,
#nav li a:hover {
  border-top: 1px solid #efe8d9;
  background-color: #fff;
  padding: 1px 9px 5px 9px;
  color: #333;
  position: relative;
  bottom: -1px;
}
#nav .right {
  width: 320px;
  padding: 4px 5px 0 0;
  font-size: 90%;
}

/* =FOOTER
----------------------------------------------- */
#footer_wrapper {
  background: #9a2d02 url("images/footer_fade.gif") repeat-x;
  border-top: 1px solid #fff;
}
#footer {
  padding: 14px 0;
  color: #fff;
}
#footer p a {
  color: #fff;
  padding: 0 4px;
}
#footer h3 {
  font-size: 180%;
}
#footer img {
  float: left;
  margin-right: 15px;
  border: 2px solid #fff;
}
#footer p {
  font-size: 90%;
}
#footer p.publisher {
  font-weight: bold;
  font-size: 100%;
  margin-bottom: 0;
}

#footer_copyright {
  padding: 10px 0 10px 0;
  text-align: center; 
  font-size: 85%;
  color: #333;	
}

/* =CONTENT
----------------------------------------------- */
#wrapper {
  border-bottom: 3px solid #efe8d9;
}
#main_body {
  background-color: #fff;
}

/* =SIDEBAR
----------------------------------------------- */
#sidebar {
}
#sidebar h3 {
  font-size: 130%;
  font-weight: bold;
}
#sidebar p {
  font-size: 90%;
}
#sidebar .feed a {
  font-size: 120%;
}
#sidebar .feed img {
  margin: 0 2px 4px 0;
}

#sidebar .book .figure {
  background-color: #E4E4E4;
  padding: 5px;
}
#sidebar .book img {
  border: 1px solid #999999;
}
#sidebar .book a {
  font-size: 110%;
}
#sidebar .recent_articles ul {
  list-style-type: none;
}
#sidebar .recent_articles li {
  margin: 0;
}
#sidebar .recent_articles a {
  font-size: 95%;
}


/* =POSTS
----------------------------------------------- */
#posts {
  list-style-type: none;
}
#posts li {
  margin: 0;
}
#posts li ul {
  list-style: disc;
}
#posts li ul li {
  margin-left: 15px;
}
#posts li ol li {
  margin-left: 20px;
}
#posts .meta {
  border-bottom: 2px solid #efe8d9; 
  font-size: 0.9em;
  line-height: 2em;
  color: #666;
}
#posts h2 a {
  line-height: 1em;
  text-decoration: none;
}
#posts h3 {
	margin-top: 1.5em;
}
#posts img {
  float: right;
  margin: 8px;
}

#posts h2 {
  margin: .3em 0 0 0;
  padding-bottom: .2em;
  font-size: 160%;
}
div.compare {
	margin-bottom: 1em;
  padding: 0;  
}
div.compare table {
  background-color: #fbf9f5;
  border: 1px solid #efe8d9;
  border-collapse: separate;
  margin: 0;
}
div.compare table td, 
div.compare table th {
  width: 200px;
  border: 1px solid #FFF;
  border-collapse: collapse;
  padding: 5px 8px;
  text-align: left;
}

/* =SINGLE
----------------------------------------------- */
#content h1 {
  font-size: 170%;
  margin: 0.286em 0 .75em 0;
}

p.post_metadata {
  border-top: 1px dotted #efe8d9;
  border-bottom: 1px dotted #efe8d9;
  padding: 8px;
  background-color: #FBF9F5;
  font-size: 90%;
  color: #666;
}
p.post_comment_policy {
  border-top: 1px solid #efe8d9;
  margin-bottom: 0;
  padding-top: 6px;
  font-size: 90%;
  color: #666;
}
#respond h2 {
  font-size: 140%;
}
#respond label span {
  color: #666;
  font-style: italic;
}

/* =COMMENTS
----------------------------------------------- */
h2#comments {
  margin-top: 40px;
}
h2#comments, 
h2#post_comment {
  margin-bottom: 0;
  padding-left: 5px;
  font-size: 120%;
  color: #333;
}
#comment_list, 
#comment_form {
  border-top: 1px dotted #e1d6be;
  border-bottom: 1px dotted #e1d6be;
  background-color: #fbf9f5;  
}
#comment_list {
  list-style: none;
  padding: 2px 5px;
}
#comment_list p {
  margin-bottom: .75em;
}
#comment_list li {
  margin: 0;
  padding: 5px 5px;
  border: 1px solid #fbf9f5;
}
#comment_list .admin {
  background-color: #fff;
  border: 1px dotted #cc644a;
}
#comment_list h4 {
  font-size: 110%;
  margin-bottom: 0;
}
#comment_list h4 a {
  font-weight: bold;
}
#comment_list h4 .author {
  color: #9a2002;
}
#comment_list h4 .date {
  color: #999;
  padding-left: 4px;
  font-size: 90%;
}
#comment_list .comment_text {
  font-size: 95%;
  color: #444;
}
#comment_list blockquote {
  font-style: italic;
  color: #666;
  padding-left: 5px;
}
#comment_list .edit {
  font-size: 90%;
}
#comment_list .edit a {
  margin-left: 3px;
  font-weight: normal;
}

#comment_form {
  display: block;
  padding: 10px 10px;
}
#comment_form .text {
  width: 300px;
}
#comment_form textarea {
  width: 500px;
}
#comment_form p label {
  float: left;
  width: 50px;
}
#comment_form p label.req {
  font-weight: bold;
}
#comment_form p.comment_box label {
  float: none;
  width: auto;
}


/* =ARCHIVES
----------------------------------------------- */
#archives_header {
  margin-top: 45px;
  padding-bottom: 5px;
  border-bottom: 2px solid #efe8d9; 
}
#archives .archives_left, 
#archives .archives_right  {
  width: 283px;
  float: left;
}
#archives ul {
  list-style-type: none;
}
#archives li {
  margin: 0;
  padding: 0 0 6px 0;
  line-height: 1.3em;
}
#archives li a {
  font-size: 110%;
  line-height: 1.3em;
}
#archives .num {
  font-size: 110%;
  color: #666;
}
#archives .archive_meta {
  font-size: 85%;
  padding-left: 25px;
  color: #333;
}

/* =SEARCH
----------------------------------------------- */
#content.search h1 {
  margin-bottom: .75em;
}
#content.search form {
  display: block;
  float: none;
}
#content.search input.text {
  width: 380px;
  vertical-align: middle;
  border:1px solid #B6B6B6;
  padding: 2px;
}

/* =ACCLAIM
----------------------------------------------- */
blockquote {
  margin-left: 0;
}
blockquote p {
  margin: 5px 0 0 0;
  padding: 0;
}
blockquote p cite strong {
  color: #333;
}
blockquote p cite {
  color: #666;
}

/* =REFERENCE
----------------------------------------------- */
#reference_contents {
  margin-bottom: 1.5em;
}
#reference_contents ul {
  list-style: none;
  margin-bottom: .5em;
  padding-bottom: .5em;
}
#reference_contents li {
  margin: 0;
  padding-left: 14px;
  line-height: 1em;
}
#reference_contents li a {
  margin: 0;
  padding: 0;
  line-height: 1.3em;
  text-decoration: none;
}
#reference_lev1 li.sel a, 
#reference_lev3 li.sel a {
  font-weight: bold;
  color: #333;
}
#reference_lev1,
#reference_lev2,
#reference_lev3 {
  border-bottom: 1px solid #f3ece0;  
}

#reference_lev1 li {
  background: url("images/caret_t.gif") 0 6px no-repeat;
}
#reference_lev2 li {
  background: url("images/caret_u.gif") 0 6px no-repeat;
}
#reference_lev3 li {
  background: url("images/dot_open.gif") 0 6px no-repeat;
}
#reference_lev3 li.sel {
  background: url("images/dot.gif") 0 6px no-repeat;
}
#reference_lev3 li.sel a {
  font-weight: bold;
  color: #333;
}
#reference_lev3 li a {
  font-size: 95%;
}
#reference_func_nav {
  padding: 3px 8px 5px 8px;
  border: 1px dotted #e1d6be;
  background-color: #fbf9f5;
  
}
#posts #rails_only {
  padding: 3px 8px 5px 26px;
  border: 1px dotted #e1d6be;
  background: #fbf9f5 url("images/info.gif") 6px 6px no-repeat;
  margin-bottom: 1.5em;
}
#posts #see_also {
  list-style: none;
  border-top: 1px dotted #e1d6be;
  border-bottom: 1px dotted #e1d6be;
  background-color: #fbf9f5;
}
#see_also li {
  background: url("images/dot_open.gif") 0 8px no-repeat;
  margin: 4px;
  padding-left: 14px;
}

/* =PROMOS
----------------------------------------------- */
#adwords .google {
  width: 468px;
  margin: 0 auto 30px auto;
  padding: 0;
}
#promos {
  margin: 30px 0;
}
#promos .maintainable {
  border-top: 1px solid #efe8d9;
  border-bottom: 1px solid #efe8d9;
  background-color: #fbf9f5;
  padding: 5px 10px;
}
#promos .maintainable img {
  margin-top: 5px;
}
#promos .maintainable p.top {
  margin-left: 240px;
  margin-bottom: 15px;
  padding: 10px 0;
  font-size: 115%;
}
#promos .maintainable a {
  font-weight: bold;
}

/* =SYNTAX
----------------------------------------------- */
code {
  background-color: #f1ece0;
}
.label {
  position: relative;
  width: 44px;
  height: 20px;
  margin: 0 0 -23px -50px;
  text-indent: -9999px;  
}
p.ruby {
  background: url("images/source_ruby.gif") no-repeat;
}
p.rails {
  background: url("images/source_rails.gif") no-repeat;
}
p.php {
  background: url("images/source_php.gif") no-repeat;
}

div.wp_syntax div, 
div.wp_syntax td {
  padding: 0;
}
div.wp_syntax {
  border: 0;
}
.wp_syntax pre {
  padding: 5px 10px;
  border-top: 1px solid #efe8d9;
  border-bottom: 1px solid #efe8d9;
  background-color: #fbf9f5;
  overflow: auto;
}
