
#bbpress-forums {
    div,
    ul {
        &.even {
            @include if-dark {
                background-color: $color-dark;
            }
        }
        &.odd {
            @include if-dark {
                background-color: $color-dark-2;
            }
        }
    }

    div.bbp-forum-header,
    div.bbp-topic-header,
    div.bbp-reply-header {
        @include if-dark {
            background-color: $color-dark-5;
        }
    }

    .status-trash,
    .status-spam {
        &.even {
            @include if-dark {
                background-color: $color-dark;
            }
        }
        &.odd {
            @include if-dark {
                background-color: $color-dark-2;
            }
        }
    }

    ul {
        &.bbp-lead-topic,
        &.bbp-topics,
        &.bbp-forums,
        &.bbp-replies,
        &.bbp-search-results {
            @include if-dark {
                border: 1px solid $color-dark-3;
            }
        }
    }

    li {
        &.bbp-header,
        &.bbp-footer {
            @include if-dark {
                background: $color-dark-3;
                border-top: $color-dark-3;
            }
        }

        &.bbp-header {
            @include if-dark {
                background: $color-dark-4;
            }
        }

    }

    .bbp-forums-list {
        @include if-dark {
            border-#{$left}: 1px solid $color-dark-4;
        }
    }
}

#bbpress-forums {
    li.bbp-body {
        ul {
            &.forum,
            &.topic {
                @include if-dark {
                    border-top: 1px solid $color-dark-3;
                }
            }
        }
    }
}

#bbpress-forums {
    div.bbp-forum-author,
    div.bbp-topic-author,
    div.bbp-reply-author {
        img.avatar {
            border-radius: $border-base;
        }
    }
}

div.bbp-forum-header,
div.bbp-topic-header,
div.bbp-reply-header {
    @include if-dark {
        border-top: 1px solid $color-dark-4;
    }
}

#bbpress-forums {
    div.bbp-topic-content,
    div.bbp-reply-content {
        code,
        pre {
            @include if-dark {
                background-color: $color-dark-4;
                border: 1px solid $color-dark-4;
            }
        }
    }
}

div.bbp-breadcrumb {
    display: none;
}

#bbpress-forums {
    #bbp-search-form {
        #bbp_search {
            font-size: 14px;
            padding: 6px 8px;
        }
    }

    div.bbp-search-form {
        margin-bottom: 15px;
    }
}

.bbp-pagination-links {
    a,
    span.current {
        @include if-dark {
            background: $color-dark-3;

            &.dots {
                background: transparent;
            }
        }
        border: 1px solid $input-border-color;
        border-radius: $border-thin;
        padding: 0 .5em;
        line-height: 2.1em;
        min-width: 2.2em;
        height: 2.2em;
        text-align: center;
        vertical-align: top;
        display: block;
        float: $left;
        margin: side-values(2px 0 2px 4px);
        text-decoration: none;

        &:hover {
            background: if-dark($color-dark-3, #eee);
            border: if-dark(1px solid $color-dark-4, 1px solid #ddd);
            opacity: 1;
        }
    }

    span.dots {
        display: block;
        float: $left;
        padding: 1px 4px;
        margin-#{$left}: 5px;
        border-width: 0;
        min-width: 0;
        padding: 0;
    }

    a:hover,
    a:focus,
    span.current {
        color: $color-arrow-hover;
        opacity: 1;
    }

    .prev,
    .next {
        text-indent: -9999px;
        width: 2.2em;
        overflow: hidden;
        position: relative;

        &:before {
            font-family: "FontAwesome";
            position: absolute;
            top: 1px;
            left: 0;
            right: 0;
            text-indent: 0;
        }
    }

    .prev:before {
        content: if-ltr($fa-var-caret-left, $fa-var-caret-right);
    }

    .next:before {
        content: if-ltr($fa-var-caret-right, $fa-var-caret-left);
    }
}

.bbp-topic-pagination {
    a {
        @include if-dark {
            background: $color-dark-3;

            &.dots {
                background: transparent;
            }
        }
        border: 1px solid $input-border-color;
        border-radius: $border-thin;
        text-align: center;
        text-decoration: none;

        &:hover,
        &:focus {
            color: $color-arrow-hover;
        }
    }
}

#bbpress-forums {
    fieldset.bbp-form {
        @include if-dark {
            border: 1px solid $color-dark-3;
        }

        legend {
            width: auto;
        }
    }
}

body.topic-edit .bbp-topic-form,
body.reply-edit .bbp-reply-form,
body.single-forum .bbp-topic-form,
body.single-reply .bbp-reply-form {
    div.avatar img {
        @include if-dark {
            border: 1px solid $color-dark-4;
            background-color: $color-dark-4;
        }
    }
}

div.bbp-submit-wrapper {
    margin-bottom: 15px;
}

#bbpress-forums {
    div.bbp-the-content-wrapper {
        div.quicktags-toolbar {
            @include if-dark {
                background: $color-dark-4;
                border-bottom-color: $color-dark-3;
            }
        }
    }

    div.wp-editor-container {
        border: if-dark(1px solid $color-dark-3, 1px solid #dedede);
    }
}

#bbpress-forums #bbp-your-profile fieldset {
    input,
    textarea {
        @include if-dark {
            background: $color-dark-3;
            border: 1px solid $input-border-color;
        }
        border-radius: $border-thin;
        outline: none;
        text-align: $left;

        &:focus {
            @include if-dark {
                border: 1px solid $input-border-color;
            }
            box-shadow: none;
        }
    }

    span.description {
        @include if-dark {
            border: transparent 1px solid;
            background-color: transparent;
        }
    }
}

div.bbp-template-notice,
div.indicator-hint {
    border-radius: $border-base;
}

.bbp-topics-front ul.super-sticky,
.bbp-topics ul.super-sticky,
.bbp-topics ul.sticky,
.bbp-forum-content ul.sticky {
    @include if-dark {
        background-color: $color-dark-3 !important;
    }
}

#bbpress-forums {
    .bbp-topic-content ul.bbp-topic-revision-log,
    .bbp-reply-content ul.bbp-topic-revision-log,
    .bbp-reply-content ul.bbp-reply-revision-log {
        @include if-dark {
            border-top: 1px dotted $color-dark-4;
        }
    }
}

.bbp-logged-in {
    h4 {
        font-weight: $font-weight-semibold;
    }
}

#bbpress-forums {
    p.bbp-topic-meta,
    ul.bbp-reply-revision-log,
    ul.bbp-topic-revision-log,
    div.bbp-template-notice {
        img.avatar {
            margin-bottom: 2px;
            border-width: 0;
            border-radius: $border-thin;
        }
    }
}

.widget_display_topics,
.widget_display_replies {
    .bbp-forum-title {
        display: block;
    }

    img.avatar {
        float: none;
        margin-bottom: 2px;
        border-width: 0;
        border-radius: $border-thin;
    }
}

.widget_display_stats {
    dl {
        dt {
            float: $left;
            margin-bottom: 10px;
            text-align: $left;
            width: 90%;
        }

        dd {
            float: $right;
            margin-bottom: 10px;
            text-align: $right;
            width: 10%;

        }
    }
}

.activity-list {
    li.bbp_topic_create,
    li.bbp_reply_create {
        .activity-content .activity-inner {
            @include if-dark {
                border-#{$left}: 2px solid $color-dark-4;
            }
        }
    }
}

#bbpress-forums {
    #bbp-single-user-details {
        #bbp-user-avatar {
            img.avatar {
                border-radius: $border-large;
            }
        }

        #bbp-user-navigation {
            li.current a {
                background: if-dark($color-dark-3, #eee);
                opacity: 1;
            }
        }
    }
}