diff options
-rw-r--r-- | static/small.css | 2 | ||||
-rw-r--r-- | static/style.css | 16 | ||||
-rw-r--r-- | templates/layout.html | 1 | ||||
-rw-r--r-- | templates/new_paste.html | 6 |
4 files changed, 14 insertions, 11 deletions
diff --git a/static/small.css b/static/small.css index af50a92..caa5783 100644 --- a/static/small.css +++ b/static/small.css @@ -3,4 +3,4 @@ pre { line-height: 1.8em; } -.page { margin: 50px auto; width: 100%; } +.page { margin: 20px auto; width: 100%; } diff --git a/static/style.css b/static/style.css index d58599a..8d43349 100644 --- a/static/style.css +++ b/static/style.css @@ -1,22 +1,22 @@ body { margin: 0; padding: 0; } body, input { font-size: 16px; font-family: 'Helvetica Neue', sans-serif; } -.page { margin: 50px auto; width: 800px; } +.page { margin: 10px auto; max-width: 800px; } h1 { margin: 0; font-weight: normal; color: #c00; } a { color: black; } a:hover { color: #c00; } -.nav { margin: 0 0 20px 0; list-style: none; padding: 0; } +.nav { margin: 0 0 15px 0; font-size: 14px; list-style: none; padding: 0 10px; } .nav li { display: inline; } .nav li + li:before { content: " // "; } -h2 { font-weight: normal; margin: 0; } -dl { overflow: auto; font-size: 14px; } -dl dt { font-weight: bold; width: 90px; float: left; +h2 { font-weight: normal; color: #999; margin-bottom: 10px; padding: 0 10px} +dl { overflow: auto; font-size: 14px; padding: 0 10px} +dl dt { font-weight: bold; min-width: 70px; float: left; padding-right: 15px; clear: left; } dl dd { float: left; margin: 0; padding: 0; } -pre, textarea { font-family: 'Consolas', monospace; font-size: 18px; - background: #eee; padding: 0; margin: 0; line-height: 2em; +pre, textarea { font-family: 'Consolas', monospace; font-size: 16px; + background: #f4f4f4; padding: 10px; margin: 0; line-height: 1.6em; word-break: break-word; white-space: pre-wrap;} textarea { border: none; width: 100%; } -.code, .flash { background: #eee; padding: 20px; } +.code, .flash { background: #f4f4f4; padding: 0; } .pagination strong, .pagination span.ellipsis, .pagination a { border: 1px solid #d00; padding: 2px 6px; text-decoration: none; } diff --git a/templates/layout.html b/templates/layout.html index 64298f2..106ca8c 100644 --- a/templates/layout.html +++ b/templates/layout.html @@ -15,7 +15,6 @@ href="{{ url_for('static', filename='small.css') }}" /> </script> #} <div class=page> - <h1>Flask Pastebin</h1> <ul class=nav> <li><a href="{{ url_for('new_paste') }}">New Paste</a> {# diff --git a/templates/new_paste.html b/templates/new_paste.html index 658acfb..c7c623d 100644 --- a/templates/new_paste.html +++ b/templates/new_paste.html @@ -1,7 +1,11 @@ {% extends "layout.html" %} {% block title %}New Paste{% endblock %} {% block body %} - <h2>New Paste</h2> +<h2>New Paste + {%- if parent %} + - Reply to #{{ parent.id }} + {%- endif %} +</h2> <form action="" method=post> <div class=code><textarea name=code cols=60 rows=12>{{ parent.code }}</textarea></div> <p><input type=submit value="New Paste"> |