Commit 4ae01fd0 authored by Laura Schlimmer's avatar Laura Schlimmer
Browse files

added menu

parent 32a2881e
Loading
Loading
Loading
Loading
+52 −0
Original line number Diff line number Diff line
a {
  text-decoration: none;
  color: rgba(0,0,0,.8);
}

ul.navigation {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 0.5em;
  list-style-type: none;
  line-height: 1;
  margin: 0;

}

ul.navigation li {
  display: inline;
  padding: 0 5px;
}

.menu {
  float:left;
  height: calc(100vh - 31px);
  width: 15rem;
  background: #fff;
  font-weight: 400;
  border: 1px solid rgba(39,41,43,.15);
  border-width: 0 1px 1px 0;
  border-bottom-right-radius: .2857rem;
}

.menu a.item {
  padding: .78571em .95em;
  background: 0 0;
  display: block;
  height: auto!important;
  border-top: none;
  border-left: 0 solid transparent;
  border-right: none;
  vertical-align: middle;
  line-height: 1;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: opacity .2s ease,background .2s ease,box-shadow .2s ease;
  border-bottom: 1px solid rgba(0,0,0,.05)
}

.menu a.item:last-child {
  border-bottom: none;
}

.menu a.item:hover{
  background-color: rgba(0,0,0,.03);
}

+5 −0
Original line number Diff line number Diff line
@@ -3,3 +3,8 @@
    <li><a href=<?= $link; ?>><?= $text; ?></a></li>
  <? endforeach; ?>
</ul>
<div class="menu">
  <? foreach ($menu_items as $link => $text): ?>
    <a class="item" href=<?= $link; ?>><?= $text; ?></a>
  <? endforeach; ?>
</div>