Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
Fix bug with pre_solve template
Browse files Browse the repository at this point in the history
  • Loading branch information
evgfilim1 committed Aug 26, 2018
1 parent 694d1a1 commit 0926016
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 21 deletions.
19 changes: 3 additions & 16 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,22 +51,9 @@ p.pre-solve {
padding-bottom: 0.75rem;
}

#fullscreen {
width: 100%;
height: auto;
bottom: 0;
top: 0;
left: 0;
position: absolute;
}

#fullscreen-content {
position: relative;
float: left;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
#centered-container {
/*width: 100vw;*/
height: 100vh;
}

#remaining-text {
Expand Down
1 change: 1 addition & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
</div>
{% block content %}{% endblock %}
</div>
{% block body %}{% endblock %}
<footer>
<div class="container mt-5">
<p class="text-muted">Copyright © Югорский физико-математический лицей, 2002–2018</p>
Expand Down
14 changes: 9 additions & 5 deletions templates/pre_solve.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{% extends 'base.html' %}
{% block content %}
<div id="fullscreen">
<div id="fullscreen-content">
<p class="pre-solve">Если ты готов начать тест, нажми на кнопку ниже</p>
<a href="{{ url_for('solve') }}" class="btn btn-outline-success pre-solve">Продолжить</a>
{% block body %}
<div class="d-flex align-items-center justify-content-center" id="centered-container">
<div class="text-center">
<a href="{{ url_for('solve') }}" class="btn btn-outline-success pre-solve">Нажми сюда, чтобы начать тест</a>
</div>
</div>
{% endblock %}
{% block scripts %}
<script>
$('body').css('padding-top', 0);
</script>
{% endblock %}

1 comment on commit 0926016

@evgfilim1
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIXES! FIXES! FIXES!

Please sign in to comment.