utilities.css 2.81 KB
/***************************************************
* feature  :  工具类class,提供浮动清除、文本对齐、显示隐藏等;
* update   :  2015/02/03;
* use      :  按需使用对应class即可;
* desc     :  ;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
/***************************************************
* feature  :  变量配置;
* update   :  2015/02/05;
* use      :  ;
* extend   :  ;
* example  :  ;
* desc     :  ;
* feedback :  此处填入 issue, 并请附带以下信息[os_version, browser_version, page_path, issue_description]
*          -  demo => [windows 7, IE 8, http://diligrp.com/icon.html, 在不定height下未能垂直居中];
****************************************************/
.bg-img {
  background: url('../../images/icon/icon.png') no-repeat;
  background-size: 150px;
}
.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}
.text-nowrap {
  white-space: nowrap !important;
}
.text-lowercase {
  text-transform: lowercase;
}
.text-uppercase {
  text-transform: uppercase;
}
.text-capitalize {
  text-transform: capitalize;
}
.text-indent {
  text-indent: -999em;
}
.float-left {
  float: left !important;
}
.float-right {
  float: right !important;
}
.float-none {
  float: none !important;
}
.display-block {
  display: block;
}
.clearfix:after {
  content: '';
  display: block;
  height: 0;
  overflow: hidden;
  font-size: 0;
  clear: both;
}
.m-hide {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}
.m-hidden {
  visibility: hidden;
  opacity: 0;
  z-index: -1;
}
.m-show {
  display: block !important;
  visibility: visible;
}
.m-separate {
  position: relative;
  width: 100%;
  line-height: 50px;
  text-align: center;
  font-size: 12px;
  color: #666;
  overflow: visible;
}
.m-more,
a.m-more {
  display: block;
  font-size: 12px;
  text-align: center;
  color: #999;
  line-height: 45px;
  background-color: #FFF;
}
.m-animate-hide {
  -webkit-transform: translate(0, 100%) translateZ(0) !important;
  -ms-transform: translate(0, 100%) translateZ(0) !important;
  -o-transform: translate(0, 100%) translateZ(0) !important;
  transform: translate(0, 100%) translateZ(0) !important;
}
.m-animate-show {
  -webkit-transform: translate(0, 0) translateZ(0) !important;
  -ms-transform: translate(0, 0) translateZ(0) !important;
  -o-transform: translate(0, 0) translateZ(0) !important;
  transform: translate(0, 0) translateZ(0) !important;
}
.hidden {
  opacity: 0;
  z-index: -1;
}
.font-red {
  color: #fa4535 !important;
}
.font-green {
  color: #6c2 !important;
}