login btn on datacenterlight pages

This commit is contained in:
Arvind Tiwari 2017-09-07 20:24:19 +05:30
parent a0451fc8ea
commit d643e6a5b1
2 changed files with 32 additions and 0 deletions

View file

@ -175,6 +175,31 @@ button, input, optgroup, select, textarea {
.navbar-default .btn-link {
box-shadow: none;
}
.navbar-default .navbar-nav>li>.topnav_login {
/* color: #179; */
font-weight: 400;
background: rgba(0,0,0,0.03);
border-radius: 5px;
padding-top: 10px;
padding-bottom: 10px;
top: 5px;
}
.navbar-default .navbar-nav>li>.topnav_login:hover,
.navbar-default .navbar-nav>li>.topnav_login:focus {
background: rgba(0,0,0,0.02);
}
.navbar-transparent .navbar-nav>li>.topnav_login {
background: rgba(0,0,0,0.2);
border-radius: 5px;
padding-top: 10px;
padding-bottom: 10px;
top: 5px;
color: #fff;
}
.navbar-transparent .navbar-nav>li>.topnav_login:hover,
.navbar-transparent .navbar-nav>li>.topnav_login:focus {
background: rgba(0,0,0,0.1);
}
.navbar-brand {
padding: 10px 15px;

View file

@ -34,6 +34,13 @@
<a class="on-hover-border" href="{% change_lang 'de' %}">Deutsch&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> {% else %}
<a class="on-hover-border" href="{% change_lang 'en-us' %}">English&nbsp;&nbsp;<i class="fa fa-globe" aria-hidden="true"></i></a> {% endif %}
</li>
{% if not request.user.is_authenticated %}
<li>
<a class="topnav_login" href="{% url 'hosting:login' %}">{% trans "Login" %} <span class="fa fa-sign-in"></span></a>
</li>
{% endif %}
{% if request.path == '/en-us/datacenterlight/' or request.path == '/de/datacenterlight/' %}
{% endif %}
{% comment %}
<!-- to be used when more than one option for language -->
<li class="nav-language">