fix truncation at bottom of editor
This commit is contained in:
parent
67bf9eab35
commit
82f2de5efa
|
@ -152,14 +152,17 @@ for status_code in httplib.responses:
|
||||||
if status_code >= 400:
|
if status_code >= 400:
|
||||||
app.register_error_handler(status_code, error_handler)
|
app.register_error_handler(status_code, error_handler)
|
||||||
|
|
||||||
|
|
||||||
@app.before_request
|
@app.before_request
|
||||||
def init_g():
|
def init_g():
|
||||||
g.assets = dict(css=['main.css'], js=['main.js'])
|
g.assets = dict(css=['main.css'], js=['main.js'])
|
||||||
|
|
||||||
|
|
||||||
@app.template_filter('datetime')
|
@app.template_filter('datetime')
|
||||||
def _jinja2_filter_datetime(ts):
|
def _jinja2_filter_datetime(ts):
|
||||||
return time.strftime('%b %d, %Y %I:%M %p', time.localtime(ts))
|
return time.strftime('%b %d, %Y %I:%M %p', time.localtime(ts))
|
||||||
|
|
||||||
|
|
||||||
@app.errorhandler(404)
|
@app.errorhandler(404)
|
||||||
def page_not_found(e):
|
def page_not_found(e):
|
||||||
return render_template('errors/404.html'), 404
|
return render_template('errors/404.html'), 404
|
||||||
|
|
|
@ -172,12 +172,12 @@ a.label {
|
||||||
|
|
||||||
.entry-markdown {
|
.entry-markdown {
|
||||||
left: 0;
|
left: 0;
|
||||||
border-right: #edece4 2px solid;
|
border-right: #ddd 2px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-preview {
|
.entry-preview {
|
||||||
right: 0;
|
right: 0;
|
||||||
border-left: #edece4 2px solid;
|
border-left: #ddd 2px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
.entry-preview-content {
|
.entry-preview-content {
|
||||||
|
@ -204,10 +204,6 @@ a.label {
|
||||||
line-height: 1.3em;
|
line-height: 1.3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ace_content {
|
|
||||||
padding: 40px 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.floatingheader {
|
.floatingheader {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -221,6 +217,10 @@ a.label {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#editor {
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width:1000px) {
|
@media (max-width:1000px) {
|
||||||
.ace_content {
|
.ace_content {
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
|
|
Loading…
Reference in a new issue