Skip to content

Commit

Permalink
Fixed #765.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidstutz committed Jul 25, 2016
1 parent dc25786 commit 05a3e8e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dist/css/bootstrap-multiselect.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/js/bootstrap-multiselect.js
Expand Up @@ -220,7 +220,7 @@
this.disable();
}

this.$select.wrap('<span class="hide-native-select" />').after(this.$container);
this.$select.wrap('<span class="multiselect-native-select" />').after(this.$container);
this.options.onInitialized(this.$select, this.$container);
}

Expand Down
43 changes: 30 additions & 13 deletions dist/less/bootstrap-multiselect.less
@@ -1,23 +1,23 @@
/**
* Bootstrap Multiselect (https://github.com/davidstutz/bootstrap-multiselect)
*
*
* Apache License, Version 2.0:
* Copyright (c) 2012 - 2015 David Stutz
*
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a
* copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*
* BSD 3-Clause License:
* Copyright (c) 2012 - 2015 David Stutz
* All rights reserved.
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
Expand All @@ -28,7 +28,7 @@
* - Neither the name of David Stutz nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
Expand All @@ -41,12 +41,29 @@
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
span.multiselect-native-select{
position:relative
}

span.multiselect-native-select select{
border :0 !important;
clip: rect(0 0 0 0) !important;
height: 1px !important;
margin: -1px -1px -1px -3px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
left: 50%;
top: 30px;
}

.multiselect-container {
position: absolute;
list-style-type: none;
margin: 0;
padding: 0;

.input-group {
margin: 5px;
}
Expand All @@ -68,7 +85,7 @@
&.multiselect-group-clickable label {
cursor: pointer;
}

> a {
padding: 0;

Expand Down Expand Up @@ -97,16 +114,16 @@
}

.form-inline .multiselect-container{

label.checkbox, label.radio{
padding: 3px 20px 3px 40px;
}
li a label{

li a label{

&.checkbox input[type="checkbox"], &.radio input[type="radio"]{
margin-left: -20px;
margin-right: 0;
}
}
}
}

0 comments on commit 05a3e8e

Please sign in to comment.