Add a placeholder logo and favicon so it's apparent where they'll show up, add a light text colour to the less variables, and add more realistic default styling for the nav

This commit is contained in:
Kevin MacMartin 2015-12-12 01:33:28 -05:00
parent 558a966a99
commit bdd3452749
6 changed files with 43 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 477 B

BIN
public/img/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

View file

@ -1,3 +1,39 @@
nav { nav.navbar {
background-color: @c_base;
z-index: 1; z-index: 1;
.navbar-logo {
top: 25px;
left: 15px;
width: 150px;
height: 150px;
background-image: url('/img/logo.png');
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
}
#navbar {
box-shadow: none;
border: none;
ul.nav {
li {
a {
color: @c_text_light;
font-weight: bold;
text-decoration: none;
}
&:hover a { color: @c_text; }
&.active a { color: @c_text; }
&.active a, &.active:hover a, &:hover a, &:focus a { background-color: transparent; }
}
}
}
.navbar-toggle {
border: none;
&, &:hover, &:focus { background-color: transparent; }
}
} }

View file

@ -4,6 +4,8 @@
| |
*/ */
@c_text: #111; // text colour // Colours
@c_base: #0088cc; // base colour @c_text: #111; // text
@c_accent: #f5f5f5; // accent colour @c_text_light: #fff; // light text
@c_base: #0088cc; // base
@c_accent: #f5f5f5; // accent

View file

@ -7,26 +7,13 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#">Hypothetical Creations</a> <div class="navbar-logo"></div>
</div> </div>
<div id="navbar" class="navbar-collapse collapse"> <div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li> <li class="active"><a href="#">Home</a></li>
<li><a href="#">About</a></li> <li><a href="#">About</a></li>
<li><a href="#">Contact</a></li> <li><a href="#">Contact</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu">
<li class="dropdown-header">Section A</li>
<li><a href="#">Dropdown Option A1</a></li>
<li><a href="#">Dropdown Option A2</a></li>
<li><a href="#">Dropdown Option A3</a></li>
<li role="separator" class="divider"></li>
<li class="dropdown-header">Section B</li>
<li><a href="#">Dropdown Option B1</a></li>
<li><a href="#">Dropdown Option B2</a></li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>