diff --git a/realms/__init__.py b/realms/__init__.py index a76f12e..1a1213e 100644 --- a/realms/__init__.py +++ b/realms/__init__.py @@ -152,14 +152,17 @@ for status_code in httplib.responses: if status_code >= 400: app.register_error_handler(status_code, error_handler) + @app.before_request def init_g(): g.assets = dict(css=['main.css'], js=['main.js']) + @app.template_filter('datetime') def _jinja2_filter_datetime(ts): return time.strftime('%b %d, %Y %I:%M %p', time.localtime(ts)) + @app.errorhandler(404) def page_not_found(e): return render_template('errors/404.html'), 404 diff --git a/realms/static/css/style.css b/realms/static/css/style.css index 3460f8f..8211565 100644 --- a/realms/static/css/style.css +++ b/realms/static/css/style.css @@ -172,12 +172,12 @@ a.label { .entry-markdown { left: 0; - border-right: #edece4 2px solid; + border-right: #ddd 2px solid; } .entry-preview { right: 0; - border-left: #edece4 2px solid; + border-left: #ddd 2px solid; } .entry-preview-content { @@ -204,10 +204,6 @@ a.label { line-height: 1.3em; } -.ace_content { - padding: 40px 3px; -} - .floatingheader { position: absolute; top: 0; @@ -221,6 +217,10 @@ a.label { background-color: #eee; } +#editor { + margin-top: 40px; +} + @media (max-width:1000px) { .ace_content { padding: 3px;