// @Author: vxhly
// @Date:   2017-04-10 03:41:53 pm
// @Email:  pengchengou@gmail.com
// @Filename: _form.scss
// @Last modified by:   vxhly
// @Last modified time: 2017-12-16 03:01:26 pm
// @License: MIT
/**
 * [重置颜色]
 */

legend {
  color: #000;
}
/**
 * [让链接里的 img 无边框]
 */

fieldset,
img {
  border: 0;
}
/**
 * [重置字体]
 */

button,
input,
select,
textarea {
  text-rendering            : optimizeLegibility;
  -webkit-font-smoothing    : antialiased;
  -moz-osx-font-smoothing   : grayscale;
  -moz-font-feature-settings: "liga", "kern";
}
/**
 * [在所有浏览器中改变边框、边距]
 */

fieldset {
  border : 1px solid #c0c0c0;
  margin : 0 2px;
  padding: .35em .625em .75em;
}
/**
 * [使得表单元素在 ie 下能继承字体大小]
 */

button,
input,
optgroup,
select,
textarea {
  font-family    : sans-serif;
  font-size      : 100%;
  line-height    : 1.15;
  margin         : 0;
  vertical-align : baseline;
  *vertical-align: middle;
}
/**
 * [重置按钮隐藏方式]
 */

button,
input {
  line-height: normal;
  *overflow  : visible;
}
/**
 * [删除文本变换的继承]
 */

button,
select {
  text-transform: none;
}
/**
 * [设置按钮类型]
 */

[type="reset"],
[type="submit"],
button,
html [type="button"] {
  cursor            : pointer;
  -webkit-appearance: button;
}
/**
 * [清除边框]
 */

[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner,
button::-moz-focus-inner {
  border-style: none;
  padding     : 0;
}
/**
 * [重置样式]
 */

[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring,
button:-moz-focusring {
  outline: 1px dotted ButtonText;
}
/**
 * [重置搜索框]
 */

[type="search"] {
  &::-webkit-search-cancel-button,
  &::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  -webkit-appearance: textfield;
  outline-offset    : -2px;
}
/**
 * [重置数字框]
 */

[type="number"] {
  &::-webkit-inner-spin-button,
  &::-webkit-outer-spin-button {
    height: auto;
  }
}
/**
 * [重置多选框和单选框]
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding   : 0;
}
/**
 * [重置样式]
 */

legend {
  box-sizing : border-box;
  color      : inherit;
  display    : table;
  max-width  : 100%;
  padding    : 0;
  white-space: normal;
}
/**
 * [重置样式]
 */

progress {
  display       : inline-block;
  vertical-align: baseline;
}
/**
 * [隐藏方式]
 */

textarea {
  overflow: auto;
}
/**
 * [重置上传按钮]
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font              : inherit;
}
/**
 * [清除边框]
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border : 0;
  padding: 0;
}
/**
 * [设置鼠标样式]
 */

label {
  cursor: pointer;
}
/**
 * [清除行高]
 */

button,
input {
  line-height: normal;
}
/**
 * [清除 text-transform]
 */

button,
select {
  text-transform: none;
}