@import "compass/css3";

@import "settings";
@import "styles/original/settings";


/* =bbPress Style
-------------------------------------------------------------- */
#bbpress-forums {
    clear: both;
    margin-bottom: 1.5rem;

    &:after {
        display: table;
        clear: both;
        content: "";
    }

    .status-trash,
    .status-spam {
        background-color: #fdd;
    }

    .status-closed {
        .bbp-topic-title {
            &:before {
                display: inline-block;
                width: 20px;
                height: 20px;
                margin-#{$right}: 0.25em;
                font-size: 14px;
                line-height: 20px;
                font-family: FontAwesome;
                text-align: center;
                content: "\f023";

                border-width: 1px;
                border-style: solid;
                @include border-radius( 50% );

                border-color: #e6e6e6;
                color: #999;
            }
        }
    }
}

ul.bbp-threaded-replies {
    list-style: none;
    margin: 0;
    padding-#{$left}: 50px;
}

/* table */
ul.bbp-lead-topic,
ul.bbp-topics,
ul.bbp-forums,
ul.bbp-replies,
ul.bbp-search-results {
    clear: both;
    margin: 0.75em 0;
    list-style: none;

    &:after {
        display: table;
        clear: both;
        content: "";
    }
}

/* thead */
li.bbp-header {
    clear: both;
    border-width: 0 0 1px;

    font-weight: bold;
    text-align: center;

    border-color: $skin_border_color;
}

/* tbody */
li.bbp-body {
    clear: both;

    border-color: $skin_border_color;
}

/* tfoot */
li.bbp-footer {
    clear: both;
    padding: 8px 0;
    border-width: 2px 0 0;

    font-weight: bold;
    text-align: center;

    border-color: $skin_border_color;
}

/* thead tr */
ul.forum-titles {
    margin: 0;
    overflow: hidden;
    list-style: none;

    font-size: 13px;
    font-family: $meta_font_family;
    font-weight: 700;
    text-transform: uppercase;
}

//??
li.bbp-footer p {
    margin: 0;
    line-height: 1em;
}


/* th, td */
li.bbp-forum-info,
li.bbp-topic-title {
    float: $left;
    width: 55%;
    text-align: $left;
}

/* th, td */
li.bbp-forum-topic-count,
li.bbp-topic-voice-count,
li.bbp-forum-reply-count,
li.bbp-topic-reply-count {
    float: $left;
    width: 10%;
    text-align: center;
}

/* th, td */
li.bbp-forum-freshness,
li.bbp-topic-freshness {
    float: $left;
    width: 25%;
    text-align: $right;
}

/* tr */
ul.forum,
ul.topic {
    overflow: hidden;
    margin: 0;
    padding: 1em 15px;
    border-width: 1px 0 0;
    list-style: none;

    border-color: inherit;
}



/* Subforums */
.bbp-forums-list {
    margin: 0;
}

/* Nice avatar next to the topic permalink */
.topic .bbp-topic-title {
    @include box-sizing( border-box );
    position: relative;
    padding-#{$left}: 55px;

    .bbp-author-avatar {
        position: absolute;
        #{$left}: 0;
        #{$right}: auto;
        top: 0;

        > .avatar {
            @include border-radius( $avatar_border_radius );
        }
    }
}

/* Topic byline */
.bbp-topic-meta {
    margin-top: 0.25em;
    margin-bottom: 0;
    padding: 0;
    word-wrap: break-word;
}

/* Left column */
div.bbp-search-author,
div.bbp-forum-author,
div.bbp-topic-author,
div.bbp-reply-author {
    @include box-sizing( border-box );

    float: $left;
    width: 130px;
    padding-#{$right}: 20px;
    margin-bottom: 1.5em;
    text-align: center;

    .bbp-header &,
    .bbp-footer & {
        margin: 0;
    }
}

/* Right column */
div.bbp-search-content,
div.bbp-forum-content,
div.bbp-topic-content,
div.bbp-reply-content {
    margin-#{$left}: 130px;
    text-align: $left;
}



/* Titles on search results page */
div.bbp-forum-title h3,
div.bbp-topic-title h3,
div.bbp-reply-title h3 {
    margin-bottom: 0.75rem;
}

/* Center everything inside the left column */
div.bbp-search-author,
div.bbp-forum-author,
div.bbp-topic-author,
div.bbp-reply-author {
    .bbp-author-avatar {
        display: block;
        width: 80px;
        margin:0 auto 0.375em;
    }

    .bbp-author-name {
        word-wrap: break-word;
    }
}

.bbp-author-role {
    font-size: 0.83em;
}

.bbp-reply-author {
    > br {
        display: none;
    }
}




.bbp-forum-header,
.bbp-topic-header,
.bbp-reply-header {
    clear: both;
    overflow: hidden;
    padding: 8px 10px 8px 130px;
    margin-bottom: 0;
    border-width: 1px 0 0;

    border-color: $skin_border_color;
}


.bbp-forum-header a.bbp-forum-permalink,
.bbp-topic-header a.bbp-topic-permalink,
.bbp-reply-header a.bbp-reply-permalink {
    float: $right;
    margin-#{$left}: 2em;
}


.bbp-forum-info {
    div.bbp-forum-content {
        margin-#{$left}: 0;
    }
}





/* =Topic and reply content
-------------------------------------------------------------- */


/* =Reply to
-------------------------------------------------------------- */
#bbp_topic_submit,
#bbp_reply_submit {
    //padding: 15px 37px;
    //border-width: 3px;
}


/* =Breadcrumb and Tags
-------------------------------------------------------------- */
@import "bbpress/breadcrumb";
@import "bbpress/tags";


/* =Search
-------------------------------------------------------------- */
@import "bbpress/search_form";


/* =Admin Links
-------------------------------------------------------------- */
@import "bbpress/admin_links";


/* =Toggles
-------------------------------------------------------------- */
@import "bbpress/toggles";


/* =Pagination
-------------------------------------------------------------- */
@import "bbpress/pagination";


/* =Forms
-------------------------------------------------------------- */
@import "bbpress/forms";


/* =TinyMCE in themes
-------------------------------------------------------------- */
@import "bbpress/tinymce";


/* =Edit User
-------------------------------------------------------------- */
@import "bbpress/edit_user";


/* =Notices
-------------------------------------------------------------- */
@import "bbpress/notices";


/* =Stickies
-------------------------------------------------------------- */
@import "bbpress/stickies";


/* =Revisions
-------------------------------------------------------------- */
@import "bbpress/revisions";


/* =Widgets
-------------------------------------------------------------- */
@import "bbpress/widgets";


/* =Avatars
-------------------------------------------------------------- */
@import "bbpress/avatars";


/* =User Pages
-------------------------------------------------------------- */
@import "bbpress/user_pages";




/*--------------------------------------------------------------
 Media Queries
--------------------------------------------------------------*/
@import "bbpress/media_queries";


/* =Statistics
-------------------------------------------------------------- */
@import "bbpress/statistics";



.bbp-reply-header {
    padding-bottom: 15px;
}



@import "bbpress/color_schemes";