123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239 |
- .form-control {
- border-color: $input-border-color;
- color: $font-color;
- padding: .5rem .7rem;
- font-size: .9rem;
- max-height: 36px;
- min-height: 36px;
- }
- .form-control-sm {
- padding: 0.5rem 1.5rem;
- }
- select.form-control:not([multiple=multiple]) {
- background-image: none;
- }
- .input-group-sm > .form-control:not(textarea), .input-group-sm > .custom-select, .form-control-sm {
- max-height: 30px;
- min-height: 30px;
- line-height: 13px;
- }
- .input-group .form-control {
- height: 100%;
- }
- .input-group-text {
- padding: 0.7rem 0.9rem;
- }
- .help-block {
- display: block;
- margin-top: 7px;
- margin-bottom: 10px;
- color: #737373;
- }
- .control-label {
- padding-top: 7px;
- padding-right: 5px;
- margin-bottom: 0;
- font-size: 1rem;
- text-transform: capitalize;
- }
- .fields-group .row.form-group {
- margin-right: 0;
- margin-left: 0;
- }
- @media (min-width: 768px) {
- .form-group .control-label {
- text-align: right;
- }
- }
- .with-errors.help-block {
- margin-bottom: 4px;
- }
- .has-error .checkbox,
- .has-error .checkbox-inline,
- .has-error .control-label, .has-error .help-block,
- .has-error .radio,
- .has-error .radio-inline,
- .has-error.checkbox label,
- .has-error.radio label,
- .has-error .form-control-position i,
- .has-error .form-control:focus ~ .form-control-position i {
- color: $red-darker;
- }
- .control-label.asterisk:before {
- content: "*";
- font-weight: bold;
- color: $red-darker;
- }
- .form-group.has-error .form-control {
- border-color: $red-darker;
- }
- .input-group-prepend .input-group-text {
- margin-right: -1px;
- }
- // --------------------- input-group-addon ---------------------
- .input-group-addon {
- width: 1%;
- white-space: nowrap;
- vertical-align: middle;
- padding: 6px 12px;
- font-size: 14px;
- font-weight: 400;
- line-height: 1;
- text-align: center;
- background-color: $white;
- border: 1px solid $input-border-color;
- min-width: 30px;
- }
- .input-group-sm>.input-group-addon {
- height: 30px;
- padding: 5px 10px;
- font-size: .7rem;
- line-height: 1.5;
- }
- // --------------------- input-group-addon ---------------------
- // --------------------- select2 ---------------------
- .select2-container--default .select2-selection--single,
- .select2-container--default .select2-selection--multiple {
- border-color: $input-border-color!important;
- }
- .select2-container--classic .select2-selection--multiple .select2-selection__rendered li .select2-search__field, .select2-container--default .select2-selection--multiple .select2-selection__rendered li .select2-search__field {
- margin-top: 8px;
- }
- .input-group {
- .select2-container {
- width: 50%!important;
- flex: 1 1 auto;
- }
- }
- .select2-container--classic .select2-selection--single, .select2-container--default .select2-selection--single {
- min-height: 36px;
- padding: 5px;
- border: 1px solid rgba(0,0,0,.2);
- }
- .select2-container--default .select2-selection--single .select2-selection__arrow {
- height: 32px!important;
- }
- .select2-dropdown {
- border: 1px solid rgba(0, 0, 0, 0.03)!important;
- box-shadow: $shadow;
- }
- .select2-container--default .select2-results__option[aria-selected=true] {
- background-color: $gray-bg!important;
- }
- .select2-container--default .select2-results__option--highlighted[aria-selected] {
- background-color: $dark40!important;
- color: $font-color!important;
- }
- .select2-results__option {
- padding: 6px 10px!important;
- }
- .select2-container--default .select2-selection--multiple .select2-selection__choice {
- padding: 2px 5px!important;
- border: 0!important;
- font-size: 90%;
- background-color: $primary!important;
- }
- .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
- color: #fff!important;
- }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered {
- padding: 2px .7rem!important;
- }
- .select2-selection .default-text {
- display: inline-block;
- padding: .5rem .7rem 0;
- }
- .input-group-sm {
- .select2-container--classic .select2-selection--single, .select2-container--default .select2-selection--single {
- min-height: 31px;
- padding: 1px 2px;
- font-size: 0.7rem;
- }
- .select2-selection .default-text {
- padding: .3rem .5rem 0;
- }
- .select2-container--default .select2-selection--multiple .select2-selection__rendered {
- padding: 0 0.4rem !important;
- }
- .select2-container--default .select2-selection--multiple {
- min-height: 30px !important;
- padding: 0 2px;
- font-size: 0.7rem;
- line-height: 14px;
- }
- .select2-container--default .select2-selection--single .select2-selection__arrow {
- top: -3px;
- }
- .select2-container--classic .select2-selection--multiple .select2-selection__rendered li .select2-search__field, .select2-container--default .select2-selection--multiple .select2-selection__rendered li .select2-search__field {
- margin-top: 6px;
- }
- }
- // --------------------- select2 ---------------------
- // listbox图标
- .glyphicon-arrow-right:before {
- font-family: feather;
- content: "\e829";
- }
- .glyphicon-arrow-left:before {
- font-family: feather;
- content: "\e828";
- }
- .bootstrap-duallistbox-container .info {
- color: $font-color!important;
- }
- //
- .has-icon-left .form-control-position {
- right: auto;
- left: inherit;
- }
- .form-control-position {
- position: absolute;
- top: 2px;
- right: 0;
- z-index: 2;
- display: block;
- width: 2.5rem;
- height: 2.5rem;
- line-height: 2.5rem;
- text-align: center;
- }
- .has-icon-left .form-control {
- padding-right: 2rem;
- padding-left: 3rem;
- }
|