ember-side-menu
Version:
Mobile friendly side menu component for Ember.js applications
82 lines (78 loc) • 1.49 kB
CSS
.side-menu {
position: fixed;
background: #fff;
top: 0;
bottom: 0;
right: 0;
left: -70%;
width: 70%;
overflow: auto;
z-index: 10000;
box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
will-change: transform;
}
.side-menu ul li {
line-height: 32px;
}
.side-menu ul li.divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.side-menu ul li.header {
padding-left: 15px;
font-weight: bold;
text-transform: uppercase;
}
.side-menu-toggle {
width: 50px;
height: 50px;
cursor: pointer;
display: flex;
align-items: center;
}
.side-menu-toggle span.toggle-bars {
content: '';
display: block;
height: 5px;
width: 100%;
background-color: rgba(255, 255, 255, 0.9);
position: relative;
transition: all 0.3s ease-in-out;
}
.side-menu-toggle span.toggle-bars:before {
content: '';
display: block;
height: 5px;
width: 100%;
background-color: rgba(255, 255, 255, 0.9);
position: relative;
transition: all 0.3s ease-in-out;
top: -15px;
}
.side-menu-toggle span.toggle-bars:after {
content: '';
display: block;
height: 5px;
width: 100%;
background-color: rgba(255, 255, 255, 0.9);
position: relative;
transition: all 0.3s ease-in-out;
top: 10px;
}
.disable-scroll {
overflow: hidden;
}
.content-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.4);
opacity: 0;
visibility: hidden;
will-change: opacity;
}