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']