Commit 0499872b authored by Mathis Dedial's avatar Mathis Dedial
Browse files

Fix isse #1

parent c31133c3
Pipeline #2689 skipped with stage
......@@ -24,3 +24,15 @@ $(document).ready(function() {
// TODO: ...
});
});
// center modals in viewport
var messages = document.getElementsByClassName('message');
for(var i = 0; i < messages.length; i++) {
messages[i].style.left = (window.innerWidth - messages[i].offsetWidth) / 2 + 'px';
}
window.setTimeout(function() {
for(var i = 0; i < messages.length; i++) {
messages[i].style.display = 'none';
}
}, 2000);
......@@ -67,7 +67,7 @@ section .container {
.top-section {
/* Make sure that content doesn't disappear behind the top bar */
margin-top: 106px;
margin-top: 72px;
}
.burger {
......@@ -91,3 +91,18 @@ section .container {
flex-shrink: 0; /* don't shrink */
flex-basis: 15%;
}
.messages {
position: fixed;
z-index: 4;
}
.message {
position: fixed;
z-index: 4;
background-color: white;
padding: 1em;
border: 1px solid #1F2D54;
border-radius: 5px;
top: 300px;
}
......@@ -35,6 +35,7 @@
{% with messages = get_flashed_messages() %}
{% for message in messages %}
<div class="message">
<hr class="star-dark">
<h4>{{ message }}</h4>
</div>
{% endfor %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment