Skip to content

Commit 6c7828d

Browse files
committed
Tweak messages layout and SCSS variables
1 parent 1ba5b23 commit 6c7828d

File tree

5 files changed

+22
-19
lines changed

5 files changed

+22
-19
lines changed

open_humans/templates/base-bs4.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
{% endif %}
7777
<div class="dropdown-divider"></div>
7878
<a class="dropdown-item logout-link" href="{% url 'account_logout' %}">
79-
Log out</a>
79+
Log out</a>
8080
</div>
8181
</li>
8282
{% else %}
@@ -114,12 +114,15 @@
114114
{% endif %}
115115
{% block messages_block %}
116116
{% if messages %}
117+
<div class="mt-2">
117118
{% for message in messages %}
118-
<div class="alert {% if message.tags %}
119-
alert-{% ifequal message.tags 'error' %}danger{% else %}{{ message.tags }}{% endifequal %}
120-
{% endif %}">
121-
{{ message }}</div>
119+
<div class="alert {% if message.tags %}
120+
alert-{% ifequal message.tags 'error' %}danger{% else %}{{ message.tags }}{% endifequal %}
121+
{% endif %}">
122+
{{ message }}
123+
</div>
122124
{% endfor %}
125+
</div>
123126
{% endif %}
124127
{% endblock messages_block %}
125128

open_humans/templates/partials/activity-permissions-bs4.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
Username
1212
{% endif %}
1313
</div>
14-
</div>
15-
14+
</div>

static/css/oh-proj-theming.css

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/js/main-bs4.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ $(function () {
7777
parsleyForm('form');
7878

7979
$('.logout-link').click(function (e) {
80+
console.log("Clicked logout link");
8081
e.preventDefault();
8182

8283
$.post($(this).attr('href'), function () {

static/scss/oh-proj-theming.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ body.oh-proj-template > main > div.container {
162162
}
163163

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

200200
.btn-default {
201-
background-color: #fff;
201+
background-color: white;
202202
border: 2px solid $oh-teal-dark;
203203
color: $oh-teal-dark;
204204

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

212212
.btn-primary-hollow {
213-
background-color: #fff;
213+
background-color: white;
214214
border: 2px solid $oh-orange;
215215
color: $oh-teal-dark;
216216

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

229229
&:hover, &:focus {
230-
background-color: #f7763e;
231-
border-color: #f7763e;
232-
color: #fff;
230+
background-color: $oh-orange-dark;
231+
border-color: $oh-orange-dark;
232+
color: white;
233233
}
234234
}
235235

0 commit comments

Comments
 (0)