Skip to content

Commit

Permalink
Add css for messaging bug and bg image to login
Browse files Browse the repository at this point in the history
  • Loading branch information
clash99 committed Apr 28, 2016
1 parent 28a9a1b commit 73ccf1e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
22 changes: 20 additions & 2 deletions cadasta/core/static/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -456,18 +456,31 @@ img.org-logo, img#org-logo {
height: 120px;
}

/* =Narrow form
/* =Registration area & narrow form
-------------------------------------------------------------- */

.tinted-bg { // photo for login and register forms
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: 1;
background: linear-gradient(rgba(44, 74, 165, 0.55), rgba(44, 74, 165, 0.55)), url("/static/img/land.jpg");
background-size: cover;
}

.form-narrow {
margin: 0 auto;
max-width: 400px;
max-width: 500px;
background: #fff;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
padding: 30px 40px;
margin-top: 30px;
z-index: 100;
position: relative;
h1 {
text-align: center;
margin: 4px auto 24px;
Expand Down Expand Up @@ -518,6 +531,11 @@ img.org-logo, img#org-logo {
background-color: fuchsia;
}

#messages { // success messages on top of map
position: relative;
z-index: 100;
}

/* =Footer
-------------------------------------------------------------- */

Expand Down
Binary file added cadasta/core/static/img/land.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion cadasta/templates/allauth/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1>{% trans "Sign in to your account" %}</h1>
{% render_field form.password class+="form-control input-lg" placeholder="" %}
</div>

<div class="small">
<div class="small pull-right">
<a href="{% url 'account_reset_password' %}">
{% trans "Forgotten password?" %}
</a>
Expand Down Expand Up @@ -77,4 +77,6 @@ <h1>{% trans "Sign in to your account" %}</h1>
</p>
</form>

<div class="tinted-bg"></div>

{% endblock %}

0 comments on commit 73ccf1e

Please sign in to comment.