2017-12-04 05:29:34 +08:00
|
|
|
input {
|
|
|
|
margin-top: 5px;
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
.form-control::-moz-placeholder{
|
|
|
|
@include placeholder($medium-gray,1);
|
|
|
|
}
|
|
|
|
.form-control:-moz-placeholder{
|
|
|
|
@include placeholder($medium-gray,1);
|
2017-12-04 05:29:34 +08:00
|
|
|
}
|
2017-08-18 03:54:14 +08:00
|
|
|
.form-control::-webkit-input-placeholder{
|
2017-12-04 05:29:34 +08:00
|
|
|
@include placeholder($medium-gray,1);
|
|
|
|
}
|
2017-08-18 03:54:14 +08:00
|
|
|
.form-control:-ms-input-placeholder{
|
|
|
|
@include placeholder($medium-gray,1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-control {
|
2017-12-04 05:29:34 +08:00
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
font-size: $font-size-base;
|
2018-01-09 05:48:36 +08:00
|
|
|
line-height: 1.846;
|
2017-12-04 05:29:34 +08:00
|
|
|
color: #666666;
|
|
|
|
border: medium none;
|
|
|
|
border-radius: $border-radius-base;
|
2018-01-09 00:21:23 +08:00
|
|
|
border-bottom: 2px solid #0f5b8c;
|
2017-12-04 05:29:34 +08:00
|
|
|
/*-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
|
|
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);*/
|
|
|
|
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
|
|
|
|
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
|
|
|
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
|
|
|
|
@include input-size($padding-base-vertical, $padding-base-horizontal, $height-base);
|
|
|
|
|
|
|
|
/*background-color: $gray-input-bg;
|
2017-08-18 07:26:48 +08:00
|
|
|
border: medium none;
|
2017-08-18 03:54:14 +08:00
|
|
|
border-radius: $border-radius-base;
|
2017-08-18 07:26:48 +08:00
|
|
|
color: $font-color;
|
|
|
|
font-size: $font-size-base;
|
|
|
|
transition: background-color 0.3s ease 0s;
|
|
|
|
@include input-size($padding-base-vertical, $padding-base-horizontal, $height-base);
|
2017-12-04 05:29:34 +08:00
|
|
|
@include box-shadow(none);*/
|
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
&:focus{
|
|
|
|
background-color: $white-bg;
|
2017-12-04 05:29:34 +08:00
|
|
|
//@include box-shadow(none);
|
|
|
|
outline: 0 !important;
|
|
|
|
border-bottom: 2px solid #2196f3;
|
|
|
|
/*-webkit-box-shadow: inset 0 -2px 0 #2196f3;
|
|
|
|
box-shadow: inset 0 -2px 0 #2196f3;*/
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
.has-success &,
|
|
|
|
.has-error &,
|
|
|
|
.has-success &:focus,
|
|
|
|
.has-error &:focus{
|
|
|
|
@include box-shadow(none);
|
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
.has-success &{
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $success-input-bg;
|
2017-08-18 03:54:14 +08:00
|
|
|
color: $success-color;
|
2017-08-18 07:26:48 +08:00
|
|
|
&.border-input{
|
|
|
|
border: 1px solid $success-color;
|
|
|
|
}
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
.has-success &:focus{
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $white-bg;
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
.has-error &{
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $danger-input-bg;
|
2017-08-18 03:54:14 +08:00
|
|
|
color: $danger-color;
|
2017-08-18 07:26:48 +08:00
|
|
|
&.border-input{
|
|
|
|
border: 1px solid $danger-color;
|
|
|
|
}
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
.has-error &:focus{
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $white-bg;
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
& + .form-control-feedback{
|
|
|
|
border-radius: $border-radius-large;
|
|
|
|
font-size: $font-size-base;
|
|
|
|
margin-top: -7px;
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 50%;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2017-08-18 07:26:48 +08:00
|
|
|
&.border-input{
|
|
|
|
border: 1px solid $table-line-color;
|
|
|
|
}
|
2017-08-18 03:54:14 +08:00
|
|
|
.open &{
|
|
|
|
border-bottom-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-lg{
|
|
|
|
height: 55px;
|
|
|
|
padding: $padding-large-vertical $padding-large-horizontal;
|
2017-12-04 05:29:34 +08:00
|
|
|
font-size: 17px;
|
|
|
|
line-height: 1.3333333;
|
|
|
|
border-radius: 3px;
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.has-error{
|
2017-08-18 07:26:48 +08:00
|
|
|
.form-control-feedback, .control-label{
|
2017-08-18 03:54:14 +08:00
|
|
|
color: $danger-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.has-success{
|
2017-08-18 07:26:48 +08:00
|
|
|
.form-control-feedback, .control-label{
|
|
|
|
color: $success-color;
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.input-group-addon {
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $gray-input-bg;
|
|
|
|
border: medium none;
|
2017-08-18 03:54:14 +08:00
|
|
|
border-radius: $border-radius-base;
|
2017-12-04 05:29:34 +08:00
|
|
|
|
2017-08-18 03:54:14 +08:00
|
|
|
.has-success &,
|
|
|
|
.has-error &{
|
|
|
|
background-color: $white-color;
|
|
|
|
}
|
|
|
|
.has-error .form-control:focus + &{
|
|
|
|
color: $danger-color;
|
|
|
|
}
|
|
|
|
.has-success .form-control:focus + &{
|
|
|
|
color: $success-color;
|
|
|
|
}
|
|
|
|
.form-control:focus + &,
|
|
|
|
.form-control:focus ~ &{
|
|
|
|
background-color: $white-color;
|
|
|
|
}
|
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
.border-input{
|
2017-08-18 07:26:48 +08:00
|
|
|
.input-group-addon{
|
|
|
|
border: solid 1px $table-line-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.input-group{
|
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
.input-group[disabled]{
|
|
|
|
.input-group-addon{
|
|
|
|
background-color: $light-gray;
|
|
|
|
}
|
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
.input-group .form-control:first-child,
|
|
|
|
.input-group-addon:first-child,
|
|
|
|
.input-group-btn:first-child > .dropdown-toggle,
|
2017-08-18 03:54:14 +08:00
|
|
|
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle) {
|
|
|
|
border-right: 0 none;
|
|
|
|
}
|
2017-12-04 05:29:34 +08:00
|
|
|
.input-group .form-control:last-child,
|
|
|
|
.input-group-addon:last-child,
|
|
|
|
.input-group-btn:last-child > .dropdown-toggle,
|
2017-08-18 03:54:14 +08:00
|
|
|
.input-group-btn:first-child > .btn:not(:first-child) {
|
|
|
|
border-left: 0 none;
|
|
|
|
}
|
|
|
|
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
|
2017-08-18 07:26:48 +08:00
|
|
|
background-color: $light-gray;
|
2017-08-18 03:54:14 +08:00
|
|
|
cursor: not-allowed;
|
2017-08-18 07:26:48 +08:00
|
|
|
@include placeholder($dark-gray,1);
|
|
|
|
}
|
|
|
|
.form-control[disabled]::-moz-placeholder{
|
|
|
|
@include placeholder($dark-gray,1);
|
|
|
|
}
|
|
|
|
.form-control[disabled]:-moz-placeholder{
|
|
|
|
@include placeholder($medium-gray,1);
|
2017-12-04 05:29:34 +08:00
|
|
|
}
|
2017-08-18 07:26:48 +08:00
|
|
|
.form-control[disabled]::-webkit-input-placeholder{
|
2017-12-04 05:29:34 +08:00
|
|
|
@include placeholder($medium-gray,1);
|
|
|
|
}
|
2017-08-18 07:26:48 +08:00
|
|
|
.form-control[disabled]:-ms-input-placeholder{
|
|
|
|
@include placeholder($medium-gray,1);
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
|
|
|
.input-group-btn .btn{
|
|
|
|
border-width: $border-thin;
|
|
|
|
padding: $padding-round-vertical $padding-base-horizontal;
|
|
|
|
}
|
|
|
|
.input-group-btn .btn-default:not(.btn-fill){
|
|
|
|
border-color: $medium-gray;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-group-btn:last-child > .btn{
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
2017-08-18 07:26:48 +08:00
|
|
|
textarea.form-control{
|
|
|
|
max-width: 100%;
|
|
|
|
padding: 10px 18px;
|
|
|
|
resize: none;
|
2017-08-18 03:54:14 +08:00
|
|
|
}
|
2017-08-18 07:26:48 +08:00
|
|
|
|