Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change the border/outline color for input and textarea elements in Twitter Bootstrap?

I want to change the color of bootstrap textbox from the default blue. tried:

.input-small,
.input-medium {
    border-color: #E56717;
}

Not of much help. Also tried ":focus"

like image 487
change Avatar asked Jun 13 '13 21:06

change


2 Answers

I presume you're speaking about the blue glow on focus? Try this:

textarea:focus, input:focus, input[type]:focus, .uneditable-input:focus {   
    border-color: rgba(229, 103, 23, 0.8);
    box-shadow: 0 1px 1px rgba(229, 103, 23, 0.075) inset, 0 0 8px rgba(229, 103, 23, 0.6);
    outline: 0 none;
}
like image 164
Ryan Avatar answered Oct 18 '22 01:10

Ryan


If you are using bootstrap 3 with LESS, you can set the variable @input-border-focus. This variable can be found in variables.less.

like image 42
Beel Avatar answered Oct 18 '22 00:10

Beel