-
Notifications
You must be signed in to change notification settings - Fork 213
Open
Labels
Description
When placing a select2 next to a bootstrap input-prepend addon, the select2 is not styled properly. It needs:
- no rounded corners on the left side (right side for input-append)
- same height and padding as the add-on
For this, with default bootstrap variables I am using this css:
.input-prepend .select2-container .select2-choice{
font-size:14px;
line-height:20px;
height:20px;
padding-top:4px;
padding-bottom:4px;
}
.input-prepend .select2-container .select2-choice{
border-radius: 0 4px 4px 0;
}
In terms of bootstrap variables, the 14px and 20px are clearly @baseFontSize and @baseLineHeight.. not sure what the 4px padding I found by trial and error should be defined as...