Skip to content

Commit

Permalink
Removed fixed navbar. It was a plague!
Browse files Browse the repository at this point in the history
  • Loading branch information
Borderliner committed Aug 17, 2016
1 parent 8d78cf7 commit f86bcea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
</div>
<div class="content">
<div>
<ul class="nav fixed">
<ul class="nav">
<li><a class="logo" href="javascript:void(0);" onclick="meshki.openNav()">Meshki</a></li>
<li><a href="https://github.com/Borderliner/Meshki/releases">News</a></li>
<li><a href="https://github.com/Borderliner/Meshki">GitHub</a></li>
Expand All @@ -70,6 +70,7 @@
</div>
</li>
<li class="nav-right hide-on-tablet"><input type="text" name="" placeholder="Search..."></li>
<li class="nav-right hide-on-tablet"><button class="success">GO!</button></li>
</ul>
</div>
<div class="container">
Expand Down
17 changes: 6 additions & 11 deletions src/css/navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ ul.nav {
z-index: 1;
}

/* Fixed navbar's attributes */
ul.nav.fixed {
position: fixed;
}

/* Elements in the navbar start from the left side */
ul.nav li {
float: left;
Expand Down Expand Up @@ -68,12 +63,17 @@ ul.nav li > a:hover {

/* Send the elements to the right side with nav-right */
ul.nav li.nav-right {
position: inherit;
position: relative;
top: 7px;
right: 16px;
float: right !important;
}

ul.nav a.button,
ul.nav button {
margin: 0px 5px 0px 5px !important;
}

/* Navigation Dropdown Button */
li.nav-dropdown {
display: inline-block;
Expand All @@ -89,11 +89,6 @@ ul.nav .nav-dropdown-content {
z-index: 1;
}

/* If the navbar is a fixed one, so is it's position */
ul.nav.fixed .nav-dropdown-content {
position: fixed;
}

/* Each link in dropdown's content */
.nav-dropdown-content a {
display: block;
Expand Down

0 comments on commit f86bcea

Please sign in to comment.