html,
body {
margin: 0;
padding: 0;
}
body {
width: 380px;
min-height: 280px;
padding: 10px;
font-family: “Arial”, sans-serif;
font-size: 14px;
line-height: 1.4;
background: #ecf0f1;
}
.main-menu {
width:200px;
padding:0;
margin:0;
background:#2980b9;
}
.main-menu a {
color:#fff;
text-decoration:none;
}
.main-menu > li {
position:relative;
border-bottom: 2px solid #2c3e50;
padding:10px 15px;
}
.main-menu li .sub-menu {
position: absolute;
list-style:none;
background:#1abc9c;
left:180px;
padding:0;
z-index:1;
top:0px;
width:200px;
}
.main-menu li .sub-menu li {
padding:10px 15px;
border-bottom:2px solid #2ecc71;
}
.main-menu .opened {
background:#1abc9c;