/*--============================--*
 *  公共变量样式
 *  loke 2018-09-14 09:44:11
 *--============================--*/

//强制不换行
.nowrap() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

//强制换行
.wrap(){
  overflow:auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.noselect() { //禁止选中
  -moz-user-select:none;
  -webkit-user-select:none;
  -ms-user-select:none;
  -khtml-user-select:none;
  user-select:none;
}

.border-radius(@radius: 3px){
  border-radius: @radius;
  -moz-border-radius: @radius;
  -webkit-border-radius: @radius;
}

.box-shadow(@width:10px,@color: rgba(0,0,0,0.25)){
  -webkit-box-shadow:0 0 @width @color;
  -moz-box-shadow:0 0 @width @color;
  box-shadow:0 0 @width @color;
}

.disabled(@cursor: not-allowed){
    border-color: #e2e2e2 !important;
    background-color: #e8e8e8 !important;
    color: #bbb !important;
    cursor: @cursor;
}
