Ghost/core/client/app/styles/components/splitbuttons.css

62 lines
1.3 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Splitbuttons
/* ---------------------------------------------------------- */
.splitbtn {
position: relative;
display: inline-block;
vertical-align: middle;
/* Flatten out the right side */
/* Flatten out the left side */
}
.splitbtn .btn {
position: relative;
float: left;
/* Prevent double border between buttons */
/* Make sure the hovered element is always on
2015-05-18 19:30:59 +03:00
// top so overlap from .btn + btn. invisible */
2015-05-14 16:45:37 +03:00
}
.splitbtn .btn + .btn {
margin-left: -1px;
}
.splitbtn .btn:hover,
.splitbtn .btn:focus,
.splitbtn .btn:active,
.splitbtn .btn.active {
z-index: 2;
}
.splitbtn .btn:first-child {
margin-left: 0;
}
.splitbtn .btn:first-child:not(:last-child):not(.dropdown-toggle) {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.splitbtn .dropdown-toggle {
padding-right: 12px;
2015-05-16 14:43:12 +03:00
padding-left: 12px;
2015-05-14 16:45:37 +03:00
border-top-left-radius: 0;
border-bottom-left-radius: 0;
/* This is the additional dropdown arrow, to the right of the button. */
}
.splitbtn .dropdown-toggle.btn-sm {
padding-right: 10px;
2015-05-16 14:43:12 +03:00
padding-left: 10px;
2015-05-14 16:45:37 +03:00
}
.splitbtn .dropdown-toggle.btn-lg {
padding-right: 16px;
2015-05-16 14:43:12 +03:00
padding-left: 16px;
2015-05-14 16:45:37 +03:00
}
.splitbtn .dropdown-toggle .options {
color: #fff;
2015-05-16 14:43:12 +03:00
text-align: center;
2015-05-14 16:45:37 +03:00
}