From e14946fcb9a82380be00d4dc25e25a8ec684b778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Mon, 11 Dec 2017 13:55:29 +0100 Subject: [PATCH] Adapt CSS to Ace --- src/app/static/index.css | 4 ++++ src/app/static/module-webide.css | 4 ++++ src/app/templates/index.html | 9 +++++---- src/app/ui_modules/webide.py | 3 +++ 4 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 src/app/static/index.css create mode 100644 src/app/static/module-webide.css diff --git a/src/app/static/index.css b/src/app/static/index.css new file mode 100644 index 0000000..e4934d4 --- /dev/null +++ b/src/app/static/index.css @@ -0,0 +1,4 @@ +.tfw-container { + min-height: 100%; + height: 100%; +} \ No newline at end of file diff --git a/src/app/static/module-webide.css b/src/app/static/module-webide.css new file mode 100644 index 0000000..7938185 --- /dev/null +++ b/src/app/static/module-webide.css @@ -0,0 +1,4 @@ +#anchor_webide { + position: relative; + height: 100%; +} diff --git a/src/app/templates/index.html b/src/app/templates/index.html index a898b48..930b73b 100644 --- a/src/app/templates/index.html +++ b/src/app/templates/index.html @@ -6,12 +6,13 @@ +

Tutorial framework Demo

-
+
-
+
{% module Login('anchor_login') %}
-
+
{% module WebIDE('anchor_webide') %}
-
+
{% module Logger('anchor_logger') %}
diff --git a/src/app/ui_modules/webide.py b/src/app/ui_modules/webide.py index 011c427..e0d0123 100644 --- a/src/app/ui_modules/webide.py +++ b/src/app/ui_modules/webide.py @@ -4,3 +4,6 @@ from tornado.web import UIModule class WebIDE(UIModule): def render(self, anchor_id, *args, **kwargs): return self.render_string('module-webide.html', anchor_id=anchor_id, **kwargs) + + def css_files(self): + return ['module-webide.css']