Display a dropdown menu inside another one

This commit is contained in:
yflory
2017-11-15 15:35:28 +01:00
parent 014e12b5b5
commit 1f53304ad3
4 changed files with 40 additions and 6 deletions

View File

@@ -43,7 +43,7 @@
display: block;
}
a {
& > a, & > span {
color: @colortheme_dropdown-color;
padding: 5px 16px;
text-decoration: none;
@@ -75,6 +75,31 @@
color: @colortheme_dropdown-color;
}
}
&> span {
box-sizing: border-box;
height: 26px;
border-radius: 0;
border: 0;
padding: 0 16px;
.cp-dropdown-content {
margin-top: 26px;
left: 0;
}
button {
padding: 0;
text-align: left;
margin: 0;
border-radius: 0;
border: 0;
width: 100%;
line-height: 1em;
.cp-toolbar-drawer-element {
margin-left: 10px;
display: inline;
vertical-align: top;
}
}
}
hr {
margin: 5px 0px;

View File

@@ -667,8 +667,9 @@
}
.cp-dropdown-content {
margin: 0;
overflow: visible;
}
button {
& > button {
display: flex;
justify-content: center;
align-items: center;