Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing border colors for form-group styles #1003

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* Functions in option `render` can now return a DOM node in addition to
text. (#617)
* Added missing border colors for .has-warning and .has-success form-group styles
28 changes: 28 additions & 0 deletions src/less/selectize.bootstrap3.less
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
@selectize-color-input-full: @input-bg;
@selectize-color-input-error: @state-danger-text;
@selectize-color-input-error-focus: darken(@selectize-color-input-error, 10%);
@selectize-color-input-warning: @state-warning-text;
@selectize-color-input-warning-focus: darken(@selectize-color-input-warning, 10%);
@selectize-color-input-success: @state-success-text;
@selectize-color-input-success-focus: darken(@selectize-color-input-success, 10%);
@selectize-color-disabled: @input-bg;
@selectize-color-item: #efefef;
@selectize-color-item-border: rgba(0,0,0,0);
Expand All @@ -45,6 +49,10 @@
@selectize-shadow-input-focus: inset 0 1px 2px rgba(0,0,0,0.15);
@selectize-shadow-input-error: inset 0 1px 1px rgba(0, 0, 0, .075);
@selectize-shadow-input-error-focus: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten(@selectize-color-input-error, 20%);
@selectize-shadow-input-warning: inset 0 1px 1px rgba(0, 0, 0, .075);
@selectize-shadow-input-warning-focus: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten(@selectize-color-input-warning, 20%);
@selectize-shadow-input-success: inset 0 1px 1px rgba(0, 0, 0, .075);
@selectize-shadow-input-success-focus: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px lighten(@selectize-color-input-success, 20%);
@selectize-border: 1px solid @input-border;
@selectize-border-radius: @input-border-radius;

Expand Down Expand Up @@ -128,6 +136,26 @@
}
}

.has-warning .selectize-input {
border-color: @selectize-color-input-warning;
.selectize-box-shadow(@selectize-shadow-input-warning);

&:focus {
border-color: @selectize-color-input-warning-focus;
.selectize-box-shadow(@selectize-shadow-input-warning-focus);
}
}

.has-success .selectize-input {
border-color: @selectize-color-input-success;
.selectize-box-shadow(@selectize-shadow-input-success);

&:focus {
border-color: @selectize-color-input-success-focus;
.selectize-box-shadow(@selectize-shadow-input-success-focus);
}
}

.selectize-control {
&.multi {
.selectize-input.has-items {
Expand Down