Skip to content

Commit

Permalink
Tweak messages layout and SCSS variables
Browse files Browse the repository at this point in the history
  • Loading branch information
madprime committed Feb 22, 2019
1 parent 1ba5b23 commit 6c7828d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
13 changes: 8 additions & 5 deletions open_humans/templates/base-bs4.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
{% endif %}
<div class="dropdown-divider"></div>
<a class="dropdown-item logout-link" href="{% url 'account_logout' %}">
Log out</a>
Log out</a>
</div>
</li>
{% else %}
Expand Down Expand Up @@ -114,12 +114,15 @@
{% endif %}
{% block messages_block %}
{% if messages %}
<div class="mt-2">
{% for message in messages %}
<div class="alert {% if message.tags %}
alert-{% ifequal message.tags 'error' %}danger{% else %}{{ message.tags }}{% endifequal %}
{% endif %}">
{{ message }}</div>
<div class="alert {% if message.tags %}
alert-{% ifequal message.tags 'error' %}danger{% else %}{{ message.tags }}{% endifequal %}
{% endif %}">
{{ message }}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock messages_block %}

Expand Down
3 changes: 1 addition & 2 deletions open_humans/templates/partials/activity-permissions-bs4.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@
Username
{% endif %}
</div>
</div>

</div>
10 changes: 5 additions & 5 deletions static/css/oh-proj-theming.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions static/js/main-bs4.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ $(function () {
parsleyForm('form');

$('.logout-link').click(function (e) {
console.log("Clicked logout link");
e.preventDefault();

$.post($(this).attr('href'), function () {
Expand Down
14 changes: 7 additions & 7 deletions static/scss/oh-proj-theming.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ body.oh-proj-template > main > div.container {
}

.navbar.navbar-open-humans {
background-color: #fff;
background-color: white;
border-radius: 0px;
border: 0px;
border-bottom: 1px solid $oh-teal-light;
Expand Down Expand Up @@ -198,7 +198,7 @@ body.oh-proj-template > main > div.container {
/* Button styles */

.btn-default {
background-color: #fff;
background-color: white;
border: 2px solid $oh-teal-dark;
color: $oh-teal-dark;

Expand All @@ -210,7 +210,7 @@ body.oh-proj-template > main > div.container {
}

.btn-primary-hollow {
background-color: #fff;
background-color: white;
border: 2px solid $oh-orange;
color: $oh-teal-dark;

Expand All @@ -224,12 +224,12 @@ body.oh-proj-template > main > div.container {
.btn-primary {
background-color: $oh-orange;
border: 2px solid $oh-orange;
color: #fff;
color: white;

&:hover, &:focus {
background-color: #f7763e;
border-color: #f7763e;
color: #fff;
background-color: $oh-orange-dark;
border-color: $oh-orange-dark;
color: white;
}
}

Expand Down

0 comments on commit 6c7828d

Please sign in to comment.