2014-11-13 11:27:45 +00:00
|
|
|
// ------------------------------------------------------------
|
|
|
|
// Splitbuttons
|
2014-08-04 19:28:07 +03:00
|
|
|
//
|
2014-11-13 11:27:45 +00:00
|
|
|
// Styles for splitbuttons (button + toggle for a popover)
|
|
|
|
//
|
|
|
|
// * Default
|
|
|
|
// * Base Placeholder Styles
|
|
|
|
// * Variation Classes
|
|
|
|
// ------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Default
|
2014-08-04 19:28:07 +03:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
.splitbtn {
|
|
|
|
position: relative;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
.btn {
|
|
|
|
position: relative;
|
|
|
|
float: left;
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
// Prevent double border between buttons
|
2014-11-13 11:27:45 +00:00
|
|
|
+ .btn {
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
// Make sure the hovered element is always on
|
|
|
|
// top so overlap from .btn + btn. invisible
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active,
|
|
|
|
&.active {
|
2014-11-13 11:27:45 +00:00
|
|
|
z-index: 2;
|
2014-08-06 00:39:19 +03:00
|
|
|
}
|
|
|
|
}
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
// Flatten out the right side
|
|
|
|
.btn:first-child {
|
2014-11-13 11:27:45 +00:00
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
&:not(:last-child):not(.dropdown-toggle) {
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
}
|
2014-08-06 00:39:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Flatten out the left side
|
|
|
|
.dropdown-toggle {
|
|
|
|
padding-left: 12px;
|
|
|
|
padding-right: 12px;
|
2014-08-26 11:56:02 +01:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
2014-08-06 02:06:36 +03:00
|
|
|
|
|
|
|
&.btn-sm {
|
|
|
|
padding-left: 10px;
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
2014-11-13 11:27:45 +00:00
|
|
|
|
2014-08-06 02:06:36 +03:00
|
|
|
&.btn-lg {
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-right: 16px;
|
|
|
|
}
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-08-06 00:39:19 +03:00
|
|
|
// This is the additional dropdown arrow, to the right of the button.
|
|
|
|
.options {
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2014-08-26 11:56:02 +01:00
|
|
|
|
2014-11-13 11:27:45 +00:00
|
|
|
}//.splitbtn
|