m_form.css 3.75 KB
/***************************************************
* feature  :  表单组件类集合,提供input、textarea等样式;
* update   :  2015/02/03;
* 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下未能垂直居中];
****************************************************/
/***************************************************
* 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-input {
  line-height: 22px;
  line-height: normal;
  min-height: 22px;
  padding: 10px 8px;
  background: none;
  font-size: 14px;
  color: #000;
  text-align: left;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}
.m-textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  font-size: 14px;
  min-height: 90px;
  border: 1px solid #ddd;
  border-width: 1px 0;
  margin-top: 10px;
  outline: none;
  border-radius: 0;
  box-shadow: none;
  resize: none;
  -webkit-appearance: none;
}
.m-input-number {
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #FFF;
  font-size: 0;
}
.m-input-number input {
  line-height: normal;
  float: left;
  height: 22px;
  padding: 5px 5px 6px;
  font-size: 12px;
  color: #666;
  width: 40px;
  text-align: center;
}
.m-input-number span {
  float: left;
  position: relative;
  width: 33px;
  height: 33px;
  cursor: pointer;
}
.m-input-number span:before,
.m-input-number span:after {
  content: '';
  position: absolute;
  width: 15px;
  height: 1px;
  top: 50%;
  left: 50%;
  margin-left: -7px;
  background-color: #999;
  font-size: 0;
  overflow: hidden;
  cursor: pointer;
}
.m-input-number .reduce {
  border-right: 1px solid #ccc;
}
.m-input-number .reduce:after {
  display: none;
}
.m-input-number .add {
  border-left: 1px solid #ccc;
}
.m-input-number .add:after {
  content: '';
  position: absolute;
  height: 15px;
  width: 1px;
  margin: -7px 0 0;
}
input.m-radio {
  background: url("../../images/icon.png") -90px -236px repeat;
  width: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  height: 20px;
  display: inline-block;
  background-size: 150px;
  border: none;
  cursor: pointer;
  margin: 0px;
  position: relative;
  outline: none;
}
input.m-radio:focus {
  outline: 0;
  outline: none;
}
input.m-radio:checked {
  background: url("../../images/icon.png") -60px -236px repeat;
  background-size: 150px;
}
.m-select {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 50px;
}
.m-select .select-text {
  color: #999;
  text-align: right;
  display: block;
  line-height: 21px;
}
.m-select select {
  border: 0;
  font-size: 14px;
  background: none;
  outline: none;
  -webkit-appearance: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}
.m-input-date {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 50px;
}
.m-input-date .current {
  color: #999;
  text-align: right;
  display: block;
  line-height: 21px;
}
.m-input-date input {
  border: 0;
  font-size: 14px;
  background: none;
  outline: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}