/*
File:			custom.css
Description:		Custom styles for Thesis
Author:			J. Francisco Martin

BASIC USAGE:

If you have enabled the custom stylesheet in the Thesis options panel, the <body> tag 
will be appended with the "custom" class, like so: <body class="custom">. You can use 
the "custom" class to override *any* CSS declarations contained in the style.css file.

For example, if you wish to change the default link color to green, you would add the 
following declarations to this file:

	.custom a, .custom a:visited { color: #090; }	<--- This makes links green
	.custom a:hover { color: #00f; }				<--- This makes links blue when you mouse over them

WHY THIS WORKS:

By using the "custom" class, you are creating more specific CSS declarations for HTML
elements. CSS styling is applied through rules of specificity, and because declarations
prepended with .custom are more specific, they get applied when the page is rendered!

More information about styling your Thesis installation using this file can be found
in the User's Guide:
	http://diythemes.com/thesis/rtfm/customizing-thesis-with-customcss/
*/

body.custom {
    background: #4b2109 url('images/bg-wood.jpg') 50% 0 repeat;
    background-attachment: fixed;
    /*background: #62259A;*/
}

.custom #container {
    margin-top: 2em;
    margin-bottom: 2em;
    padding: 0.3em;
    background: #33332f;
    border: 0.4em solid #3e3e3a;
}

.custom #page {
    background: #fff;
} 

.custom #header img { margin-left: -11px; }

/* 9. CHANGE DROP CAP COLOR */
.custom .format_text .drop_cap {
	color: #62259A;
	float: left;
}


/* Cambiar el color por defecto de los enlaces */
/* Morado:   #62259A	*/
/* Rojo:     #FA3636 | #EE1818	*/
/* Azul:     #56B1D7	*/
/* Naranja:  #FABC36 | #E59816	*/
/* Amarillo: #FEF61E | #EAE200	*/
/* Verde:    #40D02D	*/

.custom #header #logo a {
	text-decoration: none;
	color: #000000 !important; }
.custom #header #logo a:hover {
	color: #62259A !important; }

.custom #content h2 a { color: #000000 !important; }
.custom #content h2 a:hover { color: #EE1818 !important; }

.custom #content ul a { color: #62259A !important; }
.custom #content p a { color: #62259A !important; }
.custom #content .rec_morado a { color: #62259A !important; }
.custom #content .rec_rojo a { color: #EE1818 !important; }
.custom #content .rec_azul a { color: #56B1D7 !important; }
.custom #content .rec_naranja a { color: #E59816 !important; }
.custom #content .rec_amarillo a { color: #EAE200 !important; }
.custom #content .rec_verde a { color: #40D02D !important; }

.custom #content .entry-content a { color: #62259A !important; } 
.custom #content .entry-content .to_comments a { color:#888888 !important; }

.custom #content .prev_next  a { color:#E59816 !important; }

.custom .sidebar a { color: #62259A; }
.custom .sidebar .widget_recent_entries a { color: #62259A !important; }
.custom .sidebar .widget_categories a { color: #E59816 !important; }
.custom .sidebar .widget_archive a { color: #56B1D7 !important; }
.custom .sidebar .widget_links a { color: #EE1818 !important; }

.custom #comments a { color: #EE1818 !important; }
.custom #comments p a { color: #E59816 !important; }
.custom #comments .comment_time a { color: #888888 !important; }


//==============================================================================
//
// CUSTIMIZATION
//
//==============================================================================

/* 1. CREATE A NEW UPDATE BLOCK
.custom .update {
	border: 3px solid #F2EC49;
	background: #FFFDCB;
	padding: 1.0em 15px;
	margin: 0 0 1.46667em 0;
	clear: both;
}
usage is -> <p class="update"> */



/* 2. TO ADD A LINE ABOVE AND BELOW THE SIDEBAR CATEGORY TEXT
.custom .sidebar h3 {
	font-size: 0.846em;
	font-weight: bold;
	line-height: 1.455em;
	margin-bottom: 1em;
	padding: 0.636em 0.455em 0.545em 0.455em;
	text-transform: uppercase;
	font-variant: normal;
	letter-spacing: 2px;
	color: #111111;
	border-top: 1px solid #DDDDDD;
	border-bottom: 1px dotted #DDDDDD;
}
*/


/* 3. TO CHANGE THE BLOCKQUOTE AS PULLQUOTE
.custom blockquote.left {
	width: 200px;
	margin: 5px 15px 5px 0;
	font-size: 1.4em;
	text-align: center;
	border: 3px double #aaa;
	border-width: 3px 0 !important;
	padding: 0 !important;
	float: left; }
.custom blockquote.right {
	width: 200px;
	margin: 5px 0 5px 15px;
	font-size: 1.4em;
	text-align: center;
	border: 3px double #aaa;
	border-width: 3px 0 !important;
	padding: 0 !important;
	float: right;
}
*/



/* 4. STYLE ALL WIDGETS COLLECTIVELY, giving them a solid border
.custom .widget {
	border: 1px solid #DDDDDD;
}
*/



/* 5. STYLE ONE WIDGET GIVING IT A SOLID BORDER AND BACKGROUND COLOR
.custom .widget_Popular {
	border: 1px solid #dddddd;
	background-color: #E3F0F2;
}
*/



/* 6. CHANGING ABBR AND ACRONYM
.custom abbr, acronym {
	line-height: 1em;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-bottom: 1px dotted rgb(61,92,122);
	cursor: help;
}
*/



/* 7. CHANGING BACKGROUND COLOR OF FIRST POST
.custom .top {
	background: #FFFFF8;
	border: none !important;
}
*/



/* 8. FOR THE FOOTNOTES PLUGIN
	(http://flagrantdisregard.com/footnotes-plugin/)
.custom .footnotes {
	font-size: 85%;
	line-height: 1.5em;
	padding: 10px 0 10px 0; }
.custom .footnotes .footnotedivider {
	width: 120px;
	border-bottom: 1px solid #ccc; }
.custom .footnotes li 
	margin: 0 0 5px 0;
	color: #777777; }
.custom sup.footnote a {
	text-decoration: none;
	font-size: 80%; }
.custom sup.footnote {
	line-height: 0em; }
.custom .footnotereverse a {
	padding: 0 0 0 5px;
	text-decoration: none; }
*/




/* 10. CHANGING HEADER AND TAGLINE COLOR
.custom #header #logo a {
	text-decoration: none;
	color: #CC3333 !important; }
.custom #header #logo a:hover {
	color: #2361a1 !important; }
.custom #header #tagline {
	font-weight: normal;
	font-size: 1.4em;
	line-height: 1.429em;
	color: #CC3333;
}
*/



/* 13. TO ADD 3 CUSTOM, STATIC AD BLOCKS OF 125X125
.custom div.adblock img {
	padding: 4px;
	background-color: #FFFFFF; }
.custom .cenx {
	text-align: center; }


Next, in Design / Thesis Options / Multimedia Box - choose default setting as
Custom Code and add the following into the Custom multimedia box code ->

<div style="text-align:center;margin:0 auto 0 auto;padding-
top:0.25em;border-bottom:1px dotted #bebebe; border-top:1px
dotted #bebebe; "><img
src="http://rubylearning.com/images/sponsors.png"
alt="Sponsors" /></div><br />
<div class="adblock cenx">
<a
href='http://diythemes.com/thesis/?a_aid=21f1396d&amp;a_bid
=47c5a620'><img
src='http://diythemes.com/aff/scripts/sb.php?a_aid=21f1396d
&amp;a_bid=47c5a620' style="border: 0px none ;" alt="Thesis
WordPress Theme" title="Thesis WordPress Theme" /></a>
<a title="Free Online Ruby Programming Course"
href="http://rubylearning.org/"><img
src="http://rubylearning.com/images/rlbanner.jpg"
style="border: 0px none ;" alt="RubyLearning" title="Free
Online Ruby Programming Course" /></a>
<img src="http://rubylearning.com/images/advertise.png"
style="border: 0px none ;" alt="Advertise your Banner -
Contact mail@satishtalim.com" title="Advertise your Banner
- Contact mail@satishtalim.com" />
</div>
*/



//==============================================================================
//
// MODIFICACIONES EN CUSTOM_FUNCTIONS.PHP
//
//==============================================================================

/* 14. TO ADD A FAVICON
Add the following to your /themes/thesis/custom/custom_functions.php file –>

// To add RubyLearnings favicon
function thesis_favicon() {
echo "\n<link rel=\"icon\" type=\"image/ico\"
href=\"http://rubylearning.com/images/favicon.ico\" />\n";
}
add_action('wp_head', 'thesis_favicon', 99);
*/



/* 15. ADDING AN IMAGE BELOW THE HEADER OF THE BLOG
I changed my sponsor’s (PeepCode) image (header.jpg) to a maximum of 960
pixels wide. The image can be as tall as we want it to be -- just don't go
overboard. I am using 139 pixels.
Now, upload header.jpg (Peepcode banner) to rubylearning.com/images
folder and edit /themes/thesis/custom/custom_functions.php file to include ->

function sponsor_header() {
echo "<a title=\"Support our sponsors, Support our site!\"
href=\"http://peepcode.com/\"><img
src=\"http://rubylearning.com/images/header.jpg\"
width=\"960\" height=\"139\" style=\"border: 0px none ;\"
alt=\"PeepCode\" /></a>";
}
add_action('thesis_hook_after_title', 'sponsor_header');
*/



/* 16. TO MODIFY THE FOOTER OF THE BLOG
// To add my own footer
function rl_footer() {
echo "<p><small>Copyright &copy; 2006-2008 RubyLearning
Blog | Built with <a href=\"http://diythemes.com/thesis/\"
title=\"Thesis Theme from DIYThemes\">Thesis Theme</a> |
Valid: <a
href=\"http://validator.w3.org/check/referer\">XHTML</a> |
<a href=\"http://rubylearning.com/blog/sitemap.xml\"
title=\"sitemap\">Sitemap</a></small></p>";
}
remove_action('thesis_hook_footer', 'thesis_attribution');
add_action('thesis_hook_footer', 'rl_footer');
*/



/* 17. TO GET POPULAR POSTS BLOCK IN RIGHT SIDEBAR
// To add Recent Posts widget in sidebar 1
function rl_recent_posts() {
  if (!dynamic_sidebar(1)) {
    thesis_widget_recent_posts('Popular', 'Popular Posts',
8);
  }
}
add_action('thesis_hook_before_sidebar_1',
'rl_recent_posts');
*/

