2014-03-10 02:18:48 -04:00
|
|
|
// Form control focus state
|
|
|
|
//
|
|
|
|
// Generate a customized focus state and for any input with the specified color,
|
2017-04-16 18:45:10 -04:00
|
|
|
// which defaults to the `@input-border-color-focus` variable.
|
2014-03-10 02:18:48 -04:00
|
|
|
//
|
|
|
|
// We highly encourage you to not customize the default value, but instead use
|
|
|
|
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
|
|
|
// WebKit's default styles, but applicable to a wider range of browsers. Its
|
|
|
|
// usability and accessibility should be taken into account with any change.
|
|
|
|
//
|
|
|
|
// Example usage: change the default blue border and shadow to white for better
|
|
|
|
// contrast against a dark gray background.
|
2014-12-02 17:02:35 -05:00
|
|
|
@mixin form-control-focus() {
|
2014-03-10 02:18:48 -04:00
|
|
|
&:focus {
|
2016-03-02 11:41:20 -05:00
|
|
|
color: $input-color-focus;
|
|
|
|
background-color: $input-bg-focus;
|
2017-04-16 18:45:10 -04:00
|
|
|
border-color: $input-border-color-focus;
|
2015-04-23 04:10:14 -04:00
|
|
|
outline: none;
|
2016-09-12 01:32:33 -04:00
|
|
|
@include box-shadow($input-box-shadow-focus);
|
2014-03-10 02:18:48 -04:00
|
|
|
}
|
|
|
|
}
|