Browse Source

"Sign Up" link in top nav.

pull/291/head
Pēteris Caune 5 years ago
parent
commit
0d2736059d
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 39 additions and 0 deletions
  1. +29
    -0
      static/css/base.css
  2. +10
    -0
      templates/base.html

+ 29
- 0
static/css/base.css View File

@ -61,6 +61,35 @@ body {
font-size: small;
}
#nav-sign-up {
padding: 21px 0 21px 15px;
}
#nav-sign-up:hover {
border: 0;
}
#nav-sign-up:focus, #nav-sign-up:active {
outline: none;
}
#nav-sign-up span {
display: inline-block;
color: #1ea65a;
font-weight: bold;
border: 1px solid #1ea65a;
border-radius: 5px;
padding: 8px 16px;
transition: all 0.2s ease;
}
#nav-sign-up:hover span {
color: #fff;
background: #22bc66;
border-color: #22bc66;
}
.page-checks .container-fluid, .page-details .container-fluid {
/* Fluid below 1320px, but max width capped to 1320px ... */
max-width: 1320px;


+ 10
- 0
templates/base.html View File

@ -151,6 +151,16 @@
{% elif page != "login" %}
<li><a href="{% url 'hc-login' %}">Sign In</a></li>
{% endif %}
{% if registration_open %}
{% if page == "welcome" or page == "login" %}
<li>
<a id="nav-sign-up" href="#" data-toggle="modal" data-target="#signup-modal">
<span>Sign Up</span>
</a>
</li>
{% endif %}
{% endif %}
</ul>
</div>


Loading…
Cancel
Save