1
0
Fork 0

Add menu styles

This commit is contained in:
Gregory Eremin 2015-03-10 19:19:59 +07:00
parent a794366109
commit 2cbd78dc8f
1 changed files with 29 additions and 5 deletions

View File

@ -1,3 +1,7 @@
* {
box-sizing: border-box;
}
section { section {
float: left; float: left;
} }
@ -7,8 +11,8 @@ section {
} }
.menu { .menu {
width: 13em; width: 200px;
margin-top: 20px; margin: 20px;
} }
.menu ul { .menu ul {
margin: 0; margin: 0;
@ -16,9 +20,8 @@ section {
} }
li.nav { li.nav {
display: block; display: block;
line-height: 2.5em;
padding: 0 1em;
cursor: pointer; cursor: pointer;
margin-bottom: 5px;
} }
.nav.empact { .nav.empact {
font-weight: 600; font-weight: 600;
@ -27,9 +30,30 @@ li.nav {
color: #aaa; color: #aaa;
cursor: default; cursor: default;
} }
.menu a:before {
display: block;
float: left;
width: 3px;
height: 32px;
border-radius: 3px;
background-color: #218c8d;
content: '';
margin-right: 10px;
}
.menu a {
display: inline-block;
line-height: 32px;
width: 100%;
color: #222;
text-decoration: underline;
border-radius: 3px;
}
.menu a.active {
background-color: #bcdcdc;
}
.content { .content {
width: calc(100% - 13em); width: calc(100% - 240px);
margin-top: 20px; margin-top: 20px;
} }
.content .left, .content .right { .content .left, .content .right {