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

Fix isse #1

parent c31133c3
Pipeline #2689 skipped with stage
...@@ -23,4 +23,16 @@ $(document).ready(function() { ...@@ -23,4 +23,16 @@ $(document).ready(function() {
$("form").submit(function(event) { $("form").submit(function(event) {
// TODO: ... // TODO: ...
}); });
}); });
\ No newline at end of file
// 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 { ...@@ -67,7 +67,7 @@ section .container {
.top-section { .top-section {
/* Make sure that content doesn't disappear behind the top bar */ /* Make sure that content doesn't disappear behind the top bar */
margin-top: 106px; margin-top: 72px;
} }
.burger { .burger {
...@@ -91,3 +91,18 @@ section .container { ...@@ -91,3 +91,18 @@ section .container {
flex-shrink: 0; /* don't shrink */ flex-shrink: 0; /* don't shrink */
flex-basis: 15%; 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 @@ ...@@ -35,6 +35,7 @@
{% with messages = get_flashed_messages() %} {% with messages = get_flashed_messages() %}
{% for message in messages %} {% for message in messages %}
<div class="message"> <div class="message">
<hr class="star-dark">
<h4>{{ message }}</h4> <h4>{{ message }}</h4>
</div> </div>
{% endfor %} {% 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