﻿@charset "UTF-8";
@import "./mixins.scss";

// 清除浮动的影响
// --------------------------------------------------
%clear-fix {
    &:after {
        display: table;
        content: '';
        clear: both;
    }
}

// background-size cover
// --------------------------------------------------
%bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

// 取消下划线
// --------------------------------------------------
%text-decoration-none {
    text-decoration: none;

    &:hover, &:link, &:active, &:visited {
        text-decoration: none;
    }
}

// 单行文字溢出虚点显示
// --------------------------------------------------
%text-overflow-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

%box-sizing-border-box {
    @include box-sizing(border-box);
}

%tap-highlight-color-transparent {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

%user-select-none{
     @include user-select(none);
}

// 文本框控件在输入文字时候会被自动加上一个X
// --------------------------------------------------
%remove-ie-input-x{
    &::-ms-clear
    {
        display: none;
    }
}