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

后端 未结 3 1681
梦毁少年i
梦毁少年i 2020-12-05 14:27

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

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

No

3条回答
  •  -上瘾入骨i
    2020-12-05 15:18

    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;
    }
    

提交回复
热议问题