From 9891afec4d6fe3611af75904b906623284ce1eaf Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Wed, 17 Feb 2021 12:18:48 +0100 Subject: [PATCH] =?UTF-8?q?Oprava=20struktury=20a=20styl=C5=AF=20p=C5=99ij?= =?UTF-8?q?=C3=ADmac=C3=ADho=20testu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/main.scss | 2 +- static/bc_test/webit.css | 6 +---- templates/base.html | 2 ++ templates/bc_test.html | 52 ++++++++++++++++++++-------------------- 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index 169e2fe..1389223 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -124,7 +124,7 @@ main { h1, h2, h3, h4, h5, h6 { font-weight: bold; - margin: 1em 0; + margin: 2em 0 1em 0; } h1 { font-size: 2em } h2 { font-size: 1.6em } diff --git a/static/bc_test/webit.css b/static/bc_test/webit.css index 3d64068..a480004 100644 --- a/static/bc_test/webit.css +++ b/static/bc_test/webit.css @@ -1,7 +1,3 @@ -#testit { - max-width: 800px; - margin: auto -} #testit header { border: thin black solid; padding: 1em; @@ -105,4 +101,4 @@ text-align: left; margin-left: 10%; } -} \ No newline at end of file +} diff --git a/templates/base.html b/templates/base.html index 1ff697e..d3ce38f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,6 +10,7 @@ {%- endblock title -%} + {% block styles %}{% endblock styles %} @@ -32,5 +33,6 @@

Magdalény Rettigové 4, 116 39, Praha 1

Praha UK PedF KITTV, {{ now() | date(format="%Y") }}

+ {% block javascript%}{% endblock %} diff --git a/templates/bc_test.html b/templates/bc_test.html index 3b0f295..b81259f 100644 --- a/templates/bc_test.html +++ b/templates/bc_test.html @@ -1,32 +1,32 @@ {% extends "base.html" %} -{% block extra %} -{{ macro::breadcrumbs(page=page) }} -{% endblock %} - -{% block content %} - -
- - -
-

{{ page.title }}

-
-
Test sestává z 10 testových otázek po dvou bodech a 4 úloh po pěti bodech. Po odeslání se zvýrazní - správně a chybně zodpovězené otázky a vypíše procentuální úspěšnost řešení. -
-
-
-
- -
+{% block styles %} + +{% endblock styles %} - -
- - - +{% block extra %} + {{ macro::breadcrumbs(page=page) }} +{% endblock extra %} +{% block content %} +
+
+

{{ page.title }}

+
+
Test sestává z 10 testových otázek po dvou bodech a 4 úloh po pěti bodech. Po odeslání se zvýrazní + správně a chybně zodpovězené otázky a vypíše procentuální úspěšnost řešení. +
+
+
+
+ +
+
-{% endblock content %} \ No newline at end of file +{% endblock content %} + +{% block javascript %} + + +{% endblock javascript %}