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

Commit

Permalink
Merge pull request #1020 from swilliamset/selectlist-caret-label-css-…
Browse files Browse the repository at this point in the history
…refactor

move label away from float and space caret in right side padding (fix #1021)
  • Loading branch information
futuremint committed Feb 2, 2015
2 parents 7447c05 + 9cf0e86 commit 3ff444a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 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,13 @@
min-width: inherit;
}
.btn.dropdown-toggle {
white-space: normal;
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;

}
}
}
}

0 comments on commit 3ff444a

Please sign in to comment.