0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00

Add $input-bg-focus and $input-color-focus variables

This commit is contained in:
Kevin P. Kucharczyk 2016-03-02 17:41:20 +01:00
parent 4480b684a3
commit 585e5e9adf
2 changed files with 4 additions and 0 deletions

View File

@ -325,8 +325,10 @@ $input-border-radius: $border-radius !default;
$input-border-radius-lg: $border-radius-lg !default;
$input-border-radius-sm: $border-radius-sm !default;
$input-bg-focus: $input-bg;
$input-border-focus: #66afe9 !default;
$input-box-shadow-focus: rgba(102,175,233,.6) !default;
$input-color-focus: $input-color;
$input-color-placeholder: #999 !default;

View File

@ -56,7 +56,9 @@
// contrast against a dark gray background.
@mixin form-control-focus() {
&:focus {
color: $input-color-focus;
border-color: $input-border-focus;
background-color: $input-bg-focus;
outline: none;
$shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px $input-box-shadow-focus;
@include box-shadow($shadow);