select2 / select2-bootstrap-theme

A Select2 v4 Theme for Bootstrap 3
https://select2.github.io/select2-bootstrap-theme/
MIT License
871 stars 498 forks source link

Add $s2bs-input-border-width variable #55

Open AlexanderPoellmann opened 8 years ago

AlexanderPoellmann commented 8 years ago

I use a custom border-width on my buttons and form-controls of 3px using a custom variable which I called $input-border-width.

At the moment I override the select2-bootstrap-theme like so:

.select2-container--bootstrap {
    .select2-selection {
        border-width:$input-border-width;
    }

    .select2-search--dropdown {
        .select2-search__field {
            border-width:$input-border-width;
        }
    }

    .select2-dropdown {
        border-width:$input-border-width;
    }
}

It would be nice to have variable like $s2bs-input-border-width available in the first place, that spares me those additional lines.

That doesn't change anything for existing installs, yet enables users to customize the styles in a more consistent way.