Readme update; Context menu positioning in extremities

This commit is contained in:
James Barnsley
2016-12-20 13:41:58 +13:00
parent cbace480be
commit e3c224e1df
4 changed files with 29 additions and 17 deletions

View File

@ -7,6 +7,15 @@
background: $dark_grey;
color: #FFFFFF;
&.right-align {
margin-left: -140px;
}
&.right-align-submenu .submenu {
left: auto !important;
right: 140px !important;
}
.menu-item-wrapper {
display: block;
position: relative;
@ -15,7 +24,7 @@
cursor: pointer;
display: block;
padding: 8px 12px;
width: 120px;
width: 140px;
box-sizing: border-box;
}
@ -32,14 +41,14 @@
.submenu {
display: none;
position: absolute;
left: 120px;
left: 140px;
top: 0;
max-height: 200px;
overflow-y: scroll;
background: lighten($dark_grey, 5%);
.menu-item {
width: 150px;
width: 140px;
&:hover {
background: lighten($dark_grey, 10%);
}