Adapt CSS to Ace

This commit is contained in:
Bálint Bokros 2017-12-11 13:55:29 +01:00
parent cb625bf116
commit e14946fcb9
4 changed files with 16 additions and 4 deletions

4
src/app/static/index.css Normal file
View File

@ -0,0 +1,4 @@
.tfw-container {
min-height: 100%;
height: 100%;
}

View File

@ -0,0 +1,4 @@
#anchor_webide {
position: relative;
height: 100%;
}

View File

@ -6,12 +6,13 @@
<link rel="stylesheet" href="{{ static_url('vendor/css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ static_url('vendor/css/highlight/github.min.css')}}">
<link rel="stylesheet" href="{{ static_url('index.css')}}">
</head>
<body>
<div class="jumbotron text-center">
<h1>Tutorial framework Demo</h1>
</div>
<div id="container">
<div id="container" class="container-fluid tfw-container">
<!--div class="row">
{% for aid in ('a', 'b', 'c') %}
<div class="col-sm m-3 p-3">
@ -25,13 +26,13 @@
{% end %}
</div-->
<div class="row">
<div class="col-sm m-3 p-3" id="anchor_login">
<div class="col-sm col-md col-lg m-3 p-3" id="anchor_login">
{% module Login('anchor_login') %}
</div>
<div class="col-sm m-3 p-3">
<div class="col-sm-6 col-md-6 col-lg-6 m-3 p-3">
{% module WebIDE('anchor_webide') %}
</div>
<div class="col-sm m-3 p-3">
<div class="col-sm col-md col-lg m-3 p-3">
{% module Logger('anchor_logger') %}
</div>
</div>

View File

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