1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/styles/components/splitbuttons.css

74 lines
1.5 KiB
CSS
Raw Normal View History

2015-05-14 15:45:37 +02:00
/* Splitbuttons
/* ---------------------------------------------------------- */
.splitbtn {
position: relative;
display: inline-block;
vertical-align: middle;
/* Flatten out the right side */
/* Flatten out the left side */
}
.splitbtn .gh-btn {
2015-05-14 15:45:37 +02:00
position: relative;
float: left;
/* Prevent double border between buttons */
/* Make sure the hovered element is always on
// top so overlap from .gh-btn + btn. invisible */
2015-05-14 15:45:37 +02:00
}
.splitbtn .gh-btn + .gh-btn {
2015-05-14 15:45:37 +02:00
margin-left: -1px;
}
.splitbtn .gh-btn:hover,
.splitbtn .gh-btn:focus,
.splitbtn .gh-btn:active,
.splitbtn .gh-btn.active {
2015-05-14 15:45:37 +02:00
z-index: 2;
}
.splitbtn .gh-btn:first-child {
2015-05-14 15:45:37 +02:00
margin-left: 0;
}
.splitbtn .gh-btn:first-child:not(:last-child):not(.dropdown-toggle) {
height: 31px;
2015-05-14 15:45:37 +02:00
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.splitbtn .dropdown-toggle {
padding-right: 12px;
2015-05-16 13:43:12 +02:00
padding-left: 12px;
2015-05-14 15:45:37 +02: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.gh-btn-sm {
2015-05-14 15:45:37 +02:00
padding-right: 10px;
2015-05-16 13:43:12 +02:00
padding-left: 10px;
height: 31px;
2015-05-14 15:45:37 +02:00
}
.splitbtn .dropdown-toggle.gh-btn-lg {
2015-05-14 15:45:37 +02:00
padding-right: 16px;
2015-05-16 13:43:12 +02:00
padding-left: 16px;
2015-05-14 15:45:37 +02:00
}
.splitbtn .dropdown-toggle .options {
color: #fff;
2015-05-16 13:43:12 +02:00
text-align: center;
2015-05-14 15:45:37 +02:00
}
.splitbtn .dropdown-toggle svg {
height: 10px;
fill: #fff;
}
.splitbtn .dropdown-toggle svg path {
stroke: #fff;
stroke-width: 2px;
}