From 81a9aee3aa65a0bc7aa425e12ba22cb5e853df52 Mon Sep 17 00:00:00 2001 From: sudan Date: Mon, 25 Jan 2016 18:43:51 +0800 Subject: smaller font --- README | 27 --------------------------- README.md | 11 +++++++++++ static/small.css | 4 ++-- static/style.css | 4 ++-- 4 files changed, 15 insertions(+), 31 deletions(-) delete mode 100644 README create mode 100644 README.md diff --git a/README b/README deleted file mode 100644 index 3cdf917..0000000 --- a/README +++ /dev/null @@ -1,27 +0,0 @@ - - - // Flask-Pastebin // - - This application implements an example pastebin with Flask, - Flask-OAuth, Flask-SQLAlchemy, Flask-Script, as well as - Juggernaut to show off some realtime things. - - What can it do? - - * Facebook Connect - * Realtime push notifications with Juggernaut - * Shows simple pagination - - How to use it? - - 1. make a virtualenv - 2. ``pip install -r requirements.txt`` - 3. ``python manage.py initdb`` - 4. ``python manage.py runserver`` - - Also make sure to run juggernaut. - - How to install juggernaut? - - $ npm install -g juggernaut - diff --git a/README.md b/README.md new file mode 100644 index 0000000..f1bdbab --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +### Flask-Pastebin + +This is a fork of [mitsuhiko/pastebin](https://github.com/mitsuhiko/flask-pastebin) + +#### How to use + + 1. make a virtualenv + 2. `pip install -r requirements.txt` + 3. `cp config.cfg.tpl config.cfg` + 4. `python manage.py initdb` + 5. `python manage.py server` diff --git a/static/small.css b/static/small.css index caa5783..7bba2a3 100644 --- a/static/small.css +++ b/static/small.css @@ -1,6 +1,6 @@ pre { - font-size: 18px; - line-height: 1.8em; + font-size: 14px; + line-height: 1.6em; } .page { margin: 20px auto; width: 100%; } diff --git a/static/style.css b/static/style.css index 8d43349..a8fc27c 100644 --- a/static/style.css +++ b/static/style.css @@ -12,8 +12,8 @@ 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: 16px; - background: #f4f4f4; padding: 10px; margin: 0; line-height: 1.6em; +pre, textarea { font-family: 'Consolas', monospace; font-size: 14px; + background: #f4f4f4; padding: 10px; margin: 0; line-height: 1.4em; word-break: break-word; white-space: pre-wrap;} textarea { border: none; width: 100%; } .code, .flash { background: #f4f4f4; padding: 0; } -- cgit