From 1123a187c012df06381b415798db4b2c18a4016d Mon Sep 17 00:00:00 2001 From: sudan Date: Thu, 21 Jan 2016 10:13:35 +0800 Subject: style --- static/small.css | 2 +- static/style.css | 16 ++++++++-------- templates/layout.html | 1 - 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') }}" /> #}
-

Flask Pastebin