Skip to content

Commit

Permalink
arrow indication of which page the user is on #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymond committed Oct 15, 2014
1 parent 19b2be5 commit 33ff968
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 18 deletions.
24 changes: 23 additions & 1 deletion website/static/styles/WebhookInbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,29 @@ a img {
text-align: right;
}

.header .links > a {
.header .links ul { list-style: none;}
.header .links ul li {
display: inline-block;
position: relative;
}

.header .links ul li > .arrow{
position: absolute;
width: 0px;
height: 0px;
top: -35px;
display: none;
margin-left: 5px;
left: 50%;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid black;
}

.header .links ul li.active > .arrow{
display: inline-block;
}
.header .links ul li > a {
color: #9599a1;
text-shadow: 1px 1px 2px #000;
margin-left: 35px;
Expand Down
24 changes: 23 additions & 1 deletion website/static/styles/WebhookInboxViewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,29 @@ a img {
text-align: right;
}

.header .links > a {
.header .links ul { list-style: none;}
.header .links ul li {
display: inline-block;
position: relative;
}

.header .links ul li > .arrow{
position: absolute;
width: 0px;
height: 0px;
top: -35px;
display: none;
margin-left: 5px;
left: 50%;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid black;
}

.header .links ul li.active > .arrow{
display: inline-block;
}
.header .links ul li > a {
color: #9599a1;
text-shadow: 1px 1px 2px #000;
margin-left: 35px;
Expand Down
2 changes: 1 addition & 1 deletion website/templates/website/about.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "website/l2_base.html" %}

{% block nav_about %}active{% endblock %}
{% block title_suffix %} - About{% endblock %}

{% block content %}
Expand Down
2 changes: 1 addition & 1 deletion website/templates/website/contact.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "website/l2_base.html" %}

{% block nav_contact %}active{% endblock %}
{% block title_suffix %} - Contact Us{% endblock %}

{% block content %}
Expand Down
13 changes: 2 additions & 11 deletions website/templates/website/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,8 @@
<base href="/" />
{% endblock %}

{% block header %}
<div class="header container fixed-height">
<div class="row">
<div class="links">
<a href="/docs/api.html">API</a>
<a href="/about/">About</a>
<a href="/contact/">Contact</a>
</div>
</div>
</div>
{% endblock %}
{% block header_class %}{% endblock %}
{% block header_log %}{% endblock %}

{% block content_home %}
<div class="description container fixed-height">
Expand Down
10 changes: 7 additions & 3 deletions website/templates/website/l2_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@
{% block header %}
<div class="header container {% block header_class %}header80 fixed-height{% endblock %}">
<div class="row">
{% block header_log %}
<div class="logo">
<a href="/"><img src="/static/images/logo.png" /></a>
</div>
{% endblock %}
<div class="links">
<a href="/docs/api.html">API</a>
<a href="/about/">About</a>
<a href="/contact/">Contact</a>
<ul>
<li class="{% block nav_api %}{% endblock %}"><span class="arrow"></span><a href="/docs/api.html">API</a></li>
<li class="{% block nav_about %}{% endblock %}"><span class="arrow"></span><a href="/about/">About</a></li>
<li class="{% block nav_contact %}{% endblock %}"><span class="arrow"></span><a href="/contact/">Contact</a></li>
</ul>
</div>
</div>
</div>
Expand Down
7 changes: 7 additions & 0 deletions website/templates/website/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div class="links">
<ul>
<li class="{% block nav_api %}{% endblock %}"><span class="arrow"></span><a href="/docs/api.html">API</a></li>
<li class="{% block nav_about %}{% endblock %}"><span class="arrow"></span><a href="/about/">About</a></li>
<li class="{% block nav_contact %}{% endblock %}"><span class="arrow"></span><a href="/contact/">Contact</a></li>
</ul>
</div>

0 comments on commit 33ff968

Please sign in to comment.