// @Author: songqi
// @Date:   2016-06-29 23:06:00
// @Email:  songqi@benmu-health.com
// @Last modified by:   songqi
// @Last modified time: 2016-07-16

//== 列表页在标题位置的总数提示
.sum_tip {
    display: inline-block;
    margin-left: 20px;
    line-height: 32px;

    & > .badge {
        vertical-align: text-bottom;
    }
}

.clearfix {
    &:before,
    &:after {
        content: ""; // 1
        display: table; // 2
    }
    &:after {
        clear: both;
    }
}

.close {
    float: right;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    color: $gray;
    text-shadow: 0 1px 0 #fff;
    -webkit-appearance: none;
    padding: 0;
    cursor: pointer;
    background: 0 0;
    border: 0;
    opacity: 1;

    &:hover,
    &:focus {
        color: darken($gray, 10%);
        text-decoration: none;
        cursor: pointer;
        opacity: 1;
    }
}

.img-responsive {
    @include img-responsive();
}


//== Position
.relative {
    position: relative;
}


//== Display
.block {
    display: block !important;
}

.hidden {
    display: none;
}

.inline-block {
    display: inline-block !important;
}


//== Margin
.mg-tp-0 {
    margin-top: 0px !important;
}

.mg-tp-5 {
    margin-top: 5px !important;
}

.mg-tp-15 {
    margin-top: 15px !important;
}

.mg-tp-20 {
    margin-top: 20px !important;
}

.mg-tp-50 {
    margin-top: 50px !important;
}

.mg-tp-40 {
    margin-top: 40px !important;
}

.mg-bt-0 {
    margin-bottom: 0px !important;
}

.mg-bt-5 {
    margin-bottom: 5px !important;
}

.mg-bt-10 {
    margin-bottom: 10px !important;
}

.mg-bt-0 {
    margin-bottom: 0px !important;
}

.mg-bt-15 {
    margin-bottom: 15px !important;
}

.mg-bt-20 {
    margin-bottom: 20px !important;
}

.mg-bt-30 {
    margin-bottom: 30px !important;
}

.mg-lf-10 {
    margin-left: 10px !important;
}

.mg-lf-25 {
    margin-left: 25px !important;
}



//== Padding
.pd-0 {
    padding: 0 !important;
}

.pd-tp-0 {
    padding-top: 0 !important;
}

.pd-lf-15 {
    padding-left: 15px !important;
}

.pd-lf-20 {
    padding-left: 20px !important;
}

.pd-rg-0 {
    padding-right: 0 !important;
}

.pd-bt-30 {
    padding-bottom: 30px !important;
}


//== Text
.text-inline {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right;
}

@include text-emphasis-variant('.text-info', $brand-info);
@include text-emphasis-variant('.text-warning', $brand-warning);
@include text-emphasis-variant('.text-danger', $brand-danger);
@include text-emphasis-variant('.text-dark', $gray-dark);


//== Float
.float-right {
    float: right;
}

//== Font
.font-bold {
    font-weight: 700 !important;
}

.font-normal {
    font-weight: 400 !important;
}

//== Vertical
.vertical-middle {
    vertical-align: middle;
}

//== Overflow
.overflow-auto {
    overflow: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.line-hg-32 {
    line-height: 32px;
}

.line-hg-31 {
    line-height: 31px;
}

.line-hg-16 {
    line-height: 16px;
}

.link-blue {
    color: $link-blue;
    cursor: pointer;
    &:hover {
        color: $link-blue-hover;
    }
    &:visited {
        color: $link-blue-hover;
    }
    &:active {
        color: $link-blue-hover;
    }
    &:focus {
        color: $link-blue-hover;
    }
}

.pull-right {
    float: right !important;
}

.float-left {
    float: left !important;
}

.font-color-black {
    color: #000 !important;
}