Files
Grav-Admin-Plugin/themes/grav/scss/template/_buttons.scss

108 lines
2.2 KiB
SCSS

.button {
@extend %button;
}
.button-group {
position: relative;
display: inline-block;
vertical-align: middle;
// real button
> .button:first-child:not(:last-child):not(.dropdown-toggle) {
border-top-right-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
> .button:first-child {
margin-left: 0 !important;
}
> .button {
position: relative;
float: left;
}
// toggle caret
> .button + .dropdown-toggle {
text-align: center;
padding-right: 8px;
padding-left: 8px;
i {
margin: 0;
}
}
> .button:last-child:not(:first-child), > .dropdown-toggle:not(:first-child) {
border-top-left-radius: 0 !important;
border-bottom-left-radius: 0 !important;
}
.button + .button, .button + .button-group, .button-group + .button, .button-group + .button-group {
margin-left: -1px;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
right: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
font-size: 14px;
text-align: left;
list-style: none;
-webkit-background-clip: padding-box;
background-clip: padding-box;
border-radius: 4px;
&.language-switcher {
min-width: auto;
}
&.lang-switcher {
min-width: 150px;
left: inherit;
button {
width: 100%;
}
}
.divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
}
li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: 400;
line-height: 1.42857143;
white-space: nowrap;
&:focus, &:hover {
text-decoration: none;
}
}
}
}
.open > .dropdown-menu {
display: block;
}
.dropdown-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 990;
}