
/* Divider Line */
hr {
    @include if-dark {
        @include background-image(linear-gradient($left, transparent, rgba(255, 255, 255, 0.15), transparent));
    }
    @include if-light {
        @include background-image(linear-gradient($left, transparent, rgba(0, 0, 0, 0.15), transparent));
    }
    border: 0;
    height: 1px;
    margin: 22px 0;
    &.hide {
        display: none !important;
    }
    &.short {
        margin: 11px 0;
    }
    &.tall {
        margin: 44px 0;
    }
    &.taller {
        margin: 66px 0;
    }
    &.solid {
        background: if-light(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15));
    }
    &.light {
        @include if-light {
            @include background-image(linear-gradient($left, transparent, rgba(255, 255, 255, 0.15), transparent));
        }
        @include if-dark {
            @include background-image(linear-gradient($left, transparent, rgba(0, 0, 0, 0.15), transparent));
        }
    }
    &.invisible {
        background: none;
    }
}

.divider {
    border: 0;
    height: 1px;
    margin: 44px auto;
    @include if-dark {
        @include background-image(linear-gradient($left, transparent, rgba(255, 255, 255, 0.15), transparent));
    }
    @include if-light {
        @include background-image(linear-gradient($left, transparent, rgba(0, 0, 0, 0.15), transparent));
    }
    text-align: center;
    position: relative;
    clear: both;

    &.taller {
        margin: 66px auto;
    }

    i {
        text-align: center;
        -moz-border-radius: 50px;
        -webkit-border-radius: 50px;
        background: if-light(#fff, $color-dark);
        border-radius: 50px;
        color: #a9a9a9;
        display: inline-block;
        height: 50px;
        line-height: 50px;
        position: absolute;
        text-align: center;
        width: 50px;
        font-size: 20px;
        margin: 0 auto 0 -25px;
        top: -25px;
        left: 50%;
        z-index: 1;
    }

    &.divider-solid {
        background: if-light(rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15));
    }

    &.divider-icon-sm {
        i {
            width: 30px;
            height: 30px;
            line-height: 30px;
            top: -15px;
            font-size: 15px;
            margin-left: -16px;
        }
    }

    &.divider-icon-lg {
        margin: 86px 0;
        i {
            width: 60px;
            height: 60px;
            line-height: 60px;
            top: -30px;
            font-size: 30px;
            margin-left: -30px;
        }

        &.taller {
            margin: 100px auto;
        }
    }

    &.divider-xs {
        width: 35%;
    }

    &.divider-sm {
        width: 67%;
    }

    &.divider-left {
        i {
            left: 0;
            margin-left: 0;
            margin-right: 0;
            right: auto;
        }
    }

    &.divider-right {
        i {
            left: auto;
            margin-left: 0;
            margin-right: 0;
            right: 0;
        }
    }

    &.divider-style-2 {
        i {
            background: if-light(#f4f4f4, $color-dark-2);
            color: #a9a9a9;
        }
    }

    &.divider-style-3 {
        i {
            border: if-light(1px solid #cecece, 1px solid #3f4247);
        }
    }

    &.divider-style-4 {
        i {
            border: if-light(1px solid #cecece, 1px solid #3f4247);
            &:after {
                border: if-light(3px solid #f4f4f4, 3px solid $color-dark-2);
                border-radius: 50%;
                box-sizing: content-box;
                content: "";
                display: block;
                height: 100%;
                left: -4px;
                padding: 1px;
                position: absolute;
                top: -4px;
                width: 100%;
            }
        }
    }

    &.divider-small {
        margin: 22px auto;
        background: transparent;
        hr {
            width: 50px;
            height: 1px;
            background: if-light(#555, #3f4247);
        }

        &.divider-small-center {
            text-align: center;
            hr {
                margin-left: auto;
                margin-right: auto;
            }
        }

        &.divider-small-right {
            text-align: right;
            hr {
                margin-left: auto;
            }
        }

        &.divider-light {
            hr {
                background: if-light(#ddd, #3f4247);
            }
        }

        &.divider-small-sm {
            hr {
                height: 1px;
            }
        }

        &.divider-small-lg {
            hr {
                height: 6px;
            }
        }

        &.tall {
            margin: 34px 0;
        }
        &.taller {
            margin: 46px 0;
        }
    }
}

hr, .divider {
    &.dashed {
        background: none;
        position: relative;
        &:after {
            border: if-light(1px dashed rgba(0, 0, 0, 0.15), 1px dashed rgba(255, 255, 255, 0.15));
            content: "";
            display: block;
            height: 0;
            position: absolute;
            top: 50%;
            margin-top: -1px;
            width: 100%;
        }
    }
    &.pattern {
        background: none;
        position: relative;
        &:after {
            background: transparent url(../images/patterns/worn_dots.png) repeat 0 0;
            content: "";
            display: block;
            height: 15px;
            position: absolute;
            top: 50%;
            margin-top: -7px;
            width: 100%;
        }
        &.pattern-2 {
            &:after {
                background-image: url(../images/patterns/az_subtle.png);
            }
        }
    }
}

.porto-separator {
    margin: 0 0 22px;
    &.short {
        margin: -11px 0 11px;
    }
    &.tall {
        margin: 22px 0 44px;
    }
    &.taller {
        margin: 44px 0 66px;
    }

    .separator-line {
        margin: 0 auto;

        &.align_left {
            margin: side-values(0 auto 0 0);
        }
        &.align_center {
            margin: 0 auto;
        }
        &.align_right {
            margin: side-values(0 0 0 auto);
        }
    }

    .separator-line-50 {
        width: 50%;
    }
    .separator-line-60 {
        width: 60%;
    }
    .separator-line-70 {
        width: 70%;
    }
    .separator-line-80 {
        width: 80%;
    }
    .separator-line-90 {
        width: 90%;
    }
}

