Skip to content
This repository was archived by the owner on Oct 27, 2018. It is now read-only.

Commit

Permalink
allow customizations to the focus border
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Oct 15, 2014
1 parent 85234cf commit 20405fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bootstrap-chosen-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
@chosen-drop-border: @input-border;
@chosen-drop-box-shadow: ~"0 8px 8px rgba(0, 0, 0, .25)";
@chosen-drop-zindex: 1060;
@chosen-focus-border: @input-border-focus;
@chosen-focus-border: 1px solid @input-border-focus;
@chosen-focus-box-shadow: ~"0 1px 1px rgba(0, 0, 0, .075) inset, 0 0 8px rgba(82, 168, 236, .6)";
@chosen-focus-transition: ~"border linear .2s, box-shadow linear .2s";
@chosen-height: @input-height-base;
Expand Down
2 changes: 1 addition & 1 deletion bootstrap-chosen-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $chosen-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) !default;
$chosen-drop-border: $input-border !default;
$chosen-drop-box-shadow: 0 8px 8px rgba(0, 0, 0, .25) !default;
$chosen-drop-zindex: 1060 !default;
$chosen-focus-border: $input-border-focus !default;
$chosen-focus-border: 1px solid $input-border-focus !default;
$chosen-focus-box-shadow: 0 1px 1px rgba(0, 0, 0, .075) inset, 0 0 8px $chosen-border-color !default;
$chosen-focus-transition: border linear .2s, box-shadow linear .2s !default;
$chosen-height: $input-height-base !default;
Expand Down
6 changes: 3 additions & 3 deletions bootstrap-chosen.less
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@

.chosen-container-active {
.chosen-single {
border: 1px solid @chosen-focus-border;
border: @chosen-focus-border;
.box-shadow(@chosen-focus-box-shadow);
.transition(@chosen-focus-transition);
}

&.chosen-with-drop .chosen-single {
background-color: @input-bg;
border: 1px solid @chosen-focus-border;
border: @chosen-focus-border;
.border-bottom-radius(0);
.box-shadow(@chosen-focus-box-shadow);
.transition(@chosen-focus-transition);
Expand All @@ -350,7 +350,7 @@
}

.chosen-choices {
border: 1px solid @chosen-focus-border;
border: @chosen-focus-border;
.border-bottom-radius(0);
.box-shadow(@chosen-focus-box-shadow);
.transition(@chosen-focus-transition);
Expand Down
6 changes: 3 additions & 3 deletions bootstrap-chosen.scss
Original file line number Diff line number Diff line change
Expand Up @@ -327,14 +327,14 @@

.chosen-container-active {
.chosen-single {
border: 1px solid $chosen-focus-border;
border: $chosen-focus-border;
@include box-shadow($chosen-focus-box-shadow);
@include transition($chosen-focus-transition);
}

&.chosen-with-drop .chosen-single {
background-color: $input-bg;
border: 1px solid $chosen-focus-border;
border: $chosen-focus-border;
@include border-bottom-radius(0);
@include box-shadow($chosen-focus-box-shadow);
@include transition($chosen-focus-transition);
Expand All @@ -350,7 +350,7 @@
}

.chosen-choices {
border: 1px solid $chosen-focus-border;
border: $chosen-focus-border;
@include border-bottom-radius(0);
@include box-shadow($chosen-focus-box-shadow);
@include transition($chosen-focus-transition);
Expand Down

0 comments on commit 20405fa

Please sign in to comment.