form.less 4.19 KB
@import "sprite";
.m-input{
	line-height: 22px;
	padding: 13px 8px;
	border: 1px solid #e6e6e6;
	background-color: #FFF;
	font-size: 13px;
	color: #333;
	text-align: left;
	outline: none;
	border-radius: 0;
	box-shadow: none;
	min-width:188px;
  &.code {
	min-width: 150px;
	width: 150px;
  }
  &.centre {
	width: 200px;
	margin-right: 10px;
  }
}

.ng-invalid {
  .btn-submit {
	background-color: #f0f0f0;
	color: #ccc;
  }
}

/*input.m-radio, input.m-checkbox{
    .icon-input-checkbox;
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    border: none;
    color: transparent;
    cursor: pointer;
    margin: 0px 5px 0 0;
    position: relative;
    outline: none;
    &:-moz-focusring {
    	border:0;
    	outline:none;
    	color: transparent;
    }
    &:focus{
	    outline:0;
	    outline: none;
    }
    &:checked {
    	.icon-input-checked
    }
}

input.m-radio{
	.icon-input-radio;
	&:checked {
		.icon-input-radio-checked;
	}
}
*/

.checkbox, .radio {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  font-size: 0;
  overflow: hidden;
  border: none;
  cursor: pointer;
  margin: 0px 5px 0 0;
  .icon-input-checkbox;
  input[type=radio], input[type=checkbox] {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  &.checked{
  	.icon-input-checked;
  }
}

.radio{
	.icon-input-radio;
	&.checked {
		background-image: url(../images/dest/icon_radio_checked.png);
		background-position: 0 0;
	}
}

.m-textarea{
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
	font-size: 14px;
	// color: #BBB;
	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-select{
// 	position: relative;
// 	display: inline-block;
// 	vertical-align: middle;
// 	min-width: 200px;
// 	.select-text{
// 		color:#333;
// 		text-align: left;
// 		font-size: 14px;
// 		display: block;
// 		line-height: 36px;
// 		height: 36px;
// 		padding: 0 10px;
// 		border: 1px solid #e6e6e6;
// 		background-color: #FFF;
// 		&:after{
// 			position: absolute;
// 			content: '';
// 			right: 8px;
// 			top: 50%;
// 			margin-top: -3px;
// 			border: 6px solid #ccc;
// 			height: 0;
// 			width: 0;
// 			overflow: hidden;
// 			border-color: #ccc transparent transparent;
// 			pointer-events: none;
// 		}
// 	}
// 	select{
// 		border: 0;
// 		font-size: 14px;
// 		background: none;
// 		outline: none;
// 		-webkit-appearance: none;
// 		position: absolute;
// 		top: 0;
// 		left: 0;
// 		width:100%;
// 		height: 100%;
// 		opacity: 0;
// 	}
// }

.form-view {
  width: 700px;
  margin: 50px auto 0;
}

.m-select{
	display: inline-block;
	border: 1px solid #ddd;
	min-width: 170px;
	height: 36px;
	background-color: #FFF;
	position: relative;
  	line-height: 36px;
	font-size: 14px;
	color: #333;

	font-weight: normal;
	padding-left: 10px;
	float: left;
	overflow: hidden;
	position: relative;
	//height: 22px !ie;
	border: 1px solid #fff !ie;
	padding-left: 0px !ie;
	font-size: 0;
	&:after{
		content: '';
		position: absolute;
		right: 0;
		top: 0;
		height: 100%;
		width: 24px;
		// margin-top: -2px;
		// border: 5px solid #ccc;
		// border-color: #ccc transparent transparent;
		// width: 0;
		// height: 0;
		// font-size: 0;
		// overflow: hidden;
		pointer-events: none;
		background:#fff url(../images/dest/arrow-down.png) 0 center no-repeat;

	}
	select{
			width: 110%;
		    max-width: 110%;
		    min-width: 110%;
		    appearance: none;
		    -webkit-appearance: none;
		    -moz-appearance: window;
		    white-space: nowrap;
		    text-overflow: ellipsis;
		    overflow: hidden;
		    font-size: 14px;
		    font-weight: 400;
		    background: none;
		    border: 1px solid #fff;
		    vertical-align: middle;
		    color: #333;
		    outline: none;
		    padding: 0;
		    line-height: 1.5;
		    height: 36px;
		    //height: 20px\0;
		    line-height: 36px;
		    width: 100% !ie;
		&:-moz-focusring {
			color: transparent;
			text-shadow: 0 0 0 #000;
		}
	}
}