m_table_view.css 4.11 KB
/***************************************************
* feature  :  表格视图, 提供类ios UITableView风格布局;
* update   :  2015/02/03;
* use      :  .m-table-view;
* extend   :  ;
* example  :  ;
* 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;
}
.m-table-view-old {
  background-color: #fff;
}
.m-table-view-old li {
  padding: 15px;
  border-bottom: 1px solid #ddd;
}
.m-table-view-old .pic {
  float: left;
  width: 60px;
  height: 60px;
  margin-right: 13px;
}
.m-table-view-old h3 {
  font-size: 14px;
  color: #FA4535;
  margin-bottom: 4px;
}
.m-table-view-old p {
  color: #999;
  font-size: 12px;
}
.m-table-view {
  width: 100%;
  background-color: #FFF;
  border-top: 1px solid #ddd;
  margin-top: 10px;
}
.m-table-view .cell {
  font-size: 14px;
  padding: 11px 15px;
  text-align: right;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  position: relative;
}
.m-table-view .acc-icon {
  position: relative;
}
.m-table-view .acc-icon .text {
  padding-right: 15px;
}
.m-table-view .acc-icon:after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 15px;
  background: url("../../images/icon/arrow_rt@2x.png") center center no-repeat;
  background-size: 10px;
  margin-top: -7.5px;
}
.m-table-view .title {
  font-size: 14px;
  color: #333;
  float: left;
  font-weight: 400;
}
.m-table-view .text {
  display: inline-block;
  font-size: 14px;
  color: #999;
}
.m-table-view .cell-extend {
  padding: 11px 45px 11px 110px;
  text-align: left;
}
.m-table-view .cell-extend .m-icon {
  margin-right: 10px;
}
.m-table-view .cell-extend .title {
  line-height: 36px;
  margin-left: -95px;
  display: inline-block;
  float: none;
  vertical-align: middle;
}
.m-table-view .cell-extend .text {
  display: inline-block;
  text-align: left;
  padding: 0 10px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  color: #999;
  vertical-align: middle;
}
.m-table-view .cell-extend .acc {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -10px;
  float: right;
  width: 20px;
  height: 20px;
}
.m-table-view .cell-extend-pic {
  padding: 11px 45px 11px 110px;
  padding: 15px 85px;
  text-align: left;
  font-size: 12px;
}
.m-table-view .cell-extend-pic .m-icon {
  margin-right: 10px;
}
.m-table-view .cell-extend-pic .title {
  line-height: 36px;
  margin-left: -95px;
  display: inline-block;
  float: none;
  vertical-align: middle;
}
.m-table-view .cell-extend-pic .text {
  display: inline-block;
  text-align: left;
  padding: 0 10px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  color: #999;
  vertical-align: middle;
}
.m-table-view .cell-extend-pic .acc {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -10px;
  float: right;
  width: 20px;
  height: 20px;
}
.m-table-view .cell-extend-pic .title {
  margin-left: 0;
  font-size: 12px;
  text-align: left;
  margin: 0 0 5px;
  line-height: 1.5;
}
.m-table-view .cell-extend-pic .detail {
  color: #999;
  font-size: 12px;
}
.m-table-view .cell-extend-pic .pic {
  width: 60px;
  height: 60px;
  float: left;
  margin-left: -70px;
}
.m-table-view .cell-extend-pic .text {
  position: absolute;
  right: 0;
  top: 15px;
  text-align: right;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  width: 70px;
  padding: 0 15px 0 0;
  box-sizing: content-box;
}
.m-table-view .cell-extend-pic .text em {
  display: block;
  font-style: normal;
}