Files
Iris/src/scss/components/_context-menu.scss

73 lines
1.1 KiB
SCSS
Raw Normal View History

2016-10-27 10:02:12 +13:00
.context-menu {
position: fixed;
left: 0;
top: 0;
2016-11-11 23:21:51 +13:00
z-index: 98;
2016-10-27 10:02:12 +13:00
background: $dark_grey;
color: #FFFFFF;
2016-11-11 23:21:51 +13:00
.menu-item {
2016-10-27 10:02:12 +13:00
display: block;
padding: 8px 12px;
width: 120px;
2016-11-11 23:21:51 +13:00
box-sizing: border-box;
2016-11-14 11:20:02 +13:00
position: relative;
2016-10-27 10:02:12 +13:00
&:not(:first-child){
border-top: 1px solid lighten($dark_grey, 8%);
}
&:hover {
cursor: pointer;
background: lighten($dark_grey, 5%);
2016-11-11 23:21:51 +13:00
.submenu {
display: block;
}
}
2016-11-12 16:36:36 +13:00
.fa {
font-size: 10px;
float: right;
padding-top: 4px;
}
2016-11-11 23:21:51 +13:00
.submenu {
display: none;
position: absolute;
left: 120px;
top: 0;
2016-11-14 11:20:02 +13:00
max-height: 200px;
2016-11-11 23:21:51 +13:00
overflow-y: scroll;
background: lighten($dark_grey, 5%);
2016-11-12 16:36:36 +13:00
.menu-item {
width: 150px;
&:hover {
background: lighten($dark_grey, 10%);
}
2016-11-11 23:21:51 +13:00
}
2016-10-27 10:02:12 +13:00
}
}
@include responsive( $bp_medium ){
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
top: auto !important;
background: $blue;
.menu-item {
display: inline-block;
width: auto;
height: auto;
border: 0 !important;
.fa,
.submenu {
display: none !important;
}
}
}
2016-10-27 10:02:12 +13:00
}