Skip to content

Instantly share code, notes, and snippets.

@az1979
Last active September 17, 2017 05:30
Show Gist options
  • Save az1979/95119067ce1f0f62cc3bbf03778f7a5a to your computer and use it in GitHub Desktop.
Save az1979/95119067ce1f0f62cc3bbf03778f7a5a to your computer and use it in GitHub Desktop.
Reactで作るドロワーメニューCSS
.drawer-menu {
width: 250px;
height: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 9999;
background: #fff;
box-shadow: 8px 0 8px -8px #666 inset;
padding: 24px 16px;
}
.drawer-menu .title {
margin: 0;
overflow: hidden;
}
.drawer-menu .box {
display: flex;
flex-direction: row;
border-bottom: dotted 1px #333;
padding: 16px 0 0;
}
.drawer-menu .box .left {
color: #000;
padding: 0 10px 0 0;
}
.drawer-menu .box .right {
color: #337ab7;
padding: 2px 0 0;
}
.drawer-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 9998;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment