Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

move label away from float and space caret in right side padding (fix #1021) #1020

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions less/selectlist.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* TODO use bs base variables if possible */
@selectlist-horizontal-padding: 12px;
@selectlist-caret-width: 4px;

.selectlist {

&.disabled {
Expand All @@ -13,15 +17,14 @@
min-width: inherit;
}
.btn.dropdown-toggle {
white-space: normal;
white-space: nowrap;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is already set on .btn. Might as well just remove this line completely if you're setting it back to nowrap.

text-align: left;
padding-right: 2 * @selectlist-horizontal-padding + @selectlist-caret-width;

.selected-label {
padding-right: 18px;
float: left;
}
.caret {
.vertical-align();
right: @btnPaddingHorizontal;
right: @selectlist-horizontal-padding;

}
}
}
}