1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 01:21:49 +02:00

Switch up some split button stuff

- New vars
- New function for stripping units so we can combine rems and ems in math functions
- Add new classes for sizing and spacing around the split dropdown toggle so that the caret isn't misaligned
This commit is contained in:
Mark Otto
2016-01-08 13:23:24 -08:00
parent 3740d8f2ac
commit f6ad665c26
6 changed files with 75 additions and 22 deletions

View File

@@ -103,13 +103,19 @@
//
// Give the line between buttons some depth
.btn-group > .btn + .dropdown-toggle {
padding-right: $split-btn-dropdown-toggle-padding-x;
padding-left: $split-btn-dropdown-toggle-padding-x;
}
.btn-group > .btn-lg + .dropdown-toggle {
padding-right: $split-btn-lg-dropdown-toggle-padding-x;
padding-left: $split-btn-lg-dropdown-toggle-padding-x;
.dropdown-toggle-split {
padding-left: $btn-dropdown-toggle-split-l;
padding-right: $btn-dropdown-toggle-split-r;
&.btn-sm {
padding-left: $btn-dropdown-toggle-split-l-sm;
padding-right: $btn-dropdown-toggle-split-r-sm;
}
&.btn-lg {
padding-left: $btn-dropdown-toggle-split-l-lg;
padding-right: $btn-dropdown-toggle-split-r-lg;
}
}
// The clickable button for toggling the menu