fix truncation at bottom of editor

This commit is contained in:
Matthew Scragg 2014-09-26 17:17:58 -05:00
父節點 67bf9eab35
當前提交 82f2de5efa
共有 2 個檔案被更改,包括 9 行新增6 行删除

查看文件

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

查看文件

@ -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;