m_like.css 1.69 KB
/***************************************************
* feature  :  评论星级样式;
* update   :  2015/02/03;
* use      :  .m-star;
* extend   :  ;
* example  :  ;
* desc     :  m-star用于展示,m-like用户交互;
* 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;
}
.m-star {
  width: 75px;
  height: 14px;
  display: inline-block;
  background: url("../../images/icon/star@2x.png") left center repeat-x;
  background-size: 15px;
}
.m-star span {
  display: block;
  width: 0;
  height: 100%;
  background: url("../../images/icon/star_ht@2x.png") left center repeat-x;
  background-size: 15px;
}
.m-like {
  float: left;
  height: 25px;
}
.m-like span {
  float: left;
  width: 25px;
  height: 25px;
  padding: 0 1px;
  background: url("../../images/icon/star@2x.png") left center no-repeat;
  background-size: 25px;
  cursor: pointer;
}
.m-like .on {
  background-image: url("../../images/icon/star_ht@2x.png");
  background-size: 25px;
}