/* 
Description: Reusable components stylesheet for FARMCode.org site
Author: James Diacono (jd@thefarmdigital.com.au)
Date created: 15th of April, 2010
*/

/* Boxes */
.box {
    background-color: white;
    background-color: rgba(255,255,255,0.9);
    border-radius: 12px;
    -moz-border-radius: 12px;
    padding: 16px 20px;
}

.box.slim {
    padding: 6px 10px;
}

a.box:hover {
    background-color: rgba(255,255,255,1);
}

/* Post */
.post {
    margin-bottom:3em;
    border-bottom: 1px dashed #838B91;
    }
    
.post:last-child {
    margin-bottom:0;
    }

.post .meta {
    display: block;
    border: 1px dashed #aaa;
    border-left: none;
    border-right: none;
    font-size: 0.7em;
    padding: 0.2em 0.5em;
    margin-bottom: 1em;
    font-weight: bold;
    background-color: #eee;
}

.post .meta .author {
}

.post .meta .pubDate {
    float: right;
}

.post .text a {
    text-decoration:underline;
}

.post .text a[href^="http:"] {
    background: url(../Images/Components/remote.gif) right center no-repeat;
    padding-right: 12px;
    white-space: nowrap;
}

div.post .bottom {
    margin-bottom: 1em;
}
    
/* Post footer */

.post .footer {
    text-align:left;
    border-top: 1px dashed #838B91;
    padding-bottom: 2px;
    }

.post .footer .adminLinks {
    display:block;
    }

/* Related posts */
#relatedPosts {
    margin-bottom:1em;
    }

/* Archive */
#archive ul[id*="Menu"] {
    display:none;
    }

/* Star Ratings */

.rating {
    margin-bottom: 10px;
}

.rating p {
    display: inline;
    position: relative;
    top: 14px;
    left: 55px;
}

.star-rating {
    position: relative;
    width: 125px;
    height: 25px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
    background-position: left top;
}

.star-rating li {
    display: inline;
}

.star-rating a, .star-rating .current-rating {
    position: absolute;
    top: 0;
    left: 0;
    text-indent: -1000em;
    height: 25px;
    line-height: 25px;
    outline: none;
    overflow: hidden;
    border: none;
}

.star-rating a:hover, .star-rating a:active, .star-rating a:focus {
    background-position: left bottom;
}

.star-rating a.one-star {
    width: 20%;
    z-index: 6;
}

.star-rating a.two-stars {
    width: 40%;
    z-index: 5;
}

.star-rating a.three-stars {
    width: 60%;
    z-index: 4;
}
.star-rating a.four-stars {
    width: 80%;
    z-index: 3;
}
.star-rating a.five-stars {
    width: 100%;
    z-index: 2;
}
.star-rating .current-rating {
    z-index: 1;
    background-position: left center;
}

/* smaller star */
.small-star {
    width: 50px;
    height: 10px;
}
.small-star, .small-star a:hover, .small-star a:active, .small-star a:focus, .small-star .current-rating {
    background-image: url(../Images/Components/star_small.gif);
    line-height: 10px;
    height: 10px;
}

/* Widgets */
.widget {
    margin-bottom: 1.3em;
    position: relative;
    z-index: 10;
    border-bottom: 1px dashed #aaa;
}

.widget h4 {
    font-size: 1.6em;
    margin-bottom: 0.4em;
}

.widget .delete, .widget .edit {
    float: right;
    text-decoration: none;
    color: #fff;
    background: #424242;
    padding: 0.2em 0.5em;
    margin-left: 0.2em;
    border: 1px solid #ccc;
    font-size: 0.8em;
    position: relative;
}

/* Pagelist widget */
ul.pagelist {
    list-style:none none outside;
    padding:0 0 0 1.3em;
    }
    
ul.pagelist>li:before {
    content: "\00BB \0020";
    margin-left:-1em;
    display:inline-block;
    margin-right:0.4em;
    }
    

/* Tags widget */
.tagcloud ul {
    padding: 0;
}
.tagcloud li {
    display: inline;
    padding-right: 0.5em;
}

.tagcloud .smallest {
    font-size: 0.8em;
}

.tagcloud .small {
    font-size: 1em;
}

.tagcloud .big {
    font-size: 1.5em;
}

.tagcloud .biggest {
    font-size: 1.9em;
}

/* Monthlist widget */
ul#monthList {
    padding: 0;
    font-weight: bold;
}

ul#monthList > li {
    list-style: none none outside;
    vertical-align: top;
}

ul#monthList > li > ul {
    font-weight: normal;
    list-style: none none outside;
}

/* Searchbox widget */
#searchbox {
    margin-bottom: 1em;
    margin-top: -1.2em;
}

#searchbox input[type="text"] {
    width: 130px;
    margin-right: 0.2em;
}

#searchbox input[type="button"] {
}

/* Recent posts widget */
ul.recentPosts {
    list-style: none none outside;
    padding: 0;
}

ul.recentPosts > li {
    border-left: 4px solid #1A5823;
    padding: 0.1em 0 0.3em 0.6em;
    margin-bottom: 0.2em;
    cursor: pointer;
    background-color: rgba(255,255,255,0);
}

ul.recentPosts > li:hover {
    border-color: #537b59;
    background-color: White;
    background-color: rgba(255,255,255,1);
    -webkit-transition: background-color 0.15s ease-in;
    -moz-transition: background-color 0.15s ease-in;
    transition: background-color 0.15s ease-in;
}

ul.recentPosts > li > a {
    display: block;
    font-weight: bold;
}

ul.recentPosts > li:hover > a {
    color: #1A5823;
    text-decoration:none;
}

ul.recentPosts > li > span {
    font-size: 0.8em;
    display: block;
    margin-right: 0.3em;
    margin-left: 2em;
}

/* Blogroll widget */
#blogroll > ul {
    list-style: none none outside;
    padding: 0;
}

#blogroll > ul > li > a {
    font-weight: bold;
}

#blogroll ul li a img {
    margin-right: 0.5em;
}

/* Related posts */
#relatedPosts {
    margin-bottom:3em;
    }

/* Comments */
#commentlist {
    margin-bottom:3em;
    }

#captcha {
    margin-top:2em;
    
    }
    
#captcha label {
    width:70%;
    float:none;
    font-weight:bold;
    display:block;
    margin:0 auto 1em;
    text-align:center;
    }
    
#captcha label input {
    margin-left:0.5em;
    }
    
#captcha img {
    vertical-align:middle;
    }

/* Hack the .Net login control */
.loginbox td[align="center"][colspan="2"] {
    display:none;
    }
    
.loginbox label {
    width:7em;
    display:inline-block;
    font-weight:bold;
    margin-right:0.5em;
    }

    
.loginbox td[colspan="2"] label {
    width:auto;
    font-weight:normal;
    }

