From 35d68cc0769f2f3c8fb0d63f85fc780b856a8209 Mon Sep 17 00:00:00 2001 From: ofshellohicy Date: Fri, 18 Jul 2014 14:50:32 +0800 Subject: remove useless feature --- static/pastebin.js | 16 +--------------- static/small.css | 4 ++++ static/style.css | 9 +++++---- 3 files changed, 10 insertions(+), 19 deletions(-) create mode 100644 static/small.css (limited to 'static') diff --git a/static/pastebin.js b/static/pastebin.js index 8507726..4412595 100644 --- a/static/pastebin.js +++ b/static/pastebin.js @@ -1,11 +1,8 @@ (function() { var global = this; - var jug = new Juggernaut(); - var lib = global.pastebin = { urlRoot : '/', - jug : jug, autoHideFlashes : function() { var flashes = $('p.flash:visible').hide(); @@ -38,19 +35,8 @@ if (reply.author) msg.append($('').text(' ' + reply.author)) lib.flash(msg); - }, - - subscribePaste : function(pasteID) { - jug.subscribe('paste-replies:' + pasteID, function(data) { - lib.onNewReply(data, 'paste'); - }); - }, - - subscribeUser : function(userID) { - jug.subscribe('user-replies:' + userID, function(data) { - lib.onNewReply(data, 'user'); - }); } + }; diff --git a/static/small.css b/static/small.css new file mode 100644 index 0000000..4ed0712 --- /dev/null +++ b/static/small.css @@ -0,0 +1,4 @@ +pre { + font-size: 18px; + line-height: 1.8em; +} diff --git a/static/style.css b/static/style.css index 7b19c76..7905a59 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,6 @@ body { margin: 0; padding: 0; } body, input { font-size: 16px; font-family: 'Helvetica Neue', sans-serif; } -.page { margin: 50px auto; width: 740px; } +.page { margin: 50px auto; width: 100%; } h1 { margin: 0; font-weight: normal; color: #c00; } a { color: black; } a:hover { color: #c00; } @@ -13,9 +13,10 @@ dl dt { font-weight: bold; width: 90px; float: left; clear: left; } dl dd { float: left; margin: 0; padding: 0; } pre, textarea { font-family: 'Consolas', monospace; font-size: 14px; - background: #eee; padding: 0; margin: 0; } -textarea { border: none; width: 720px; } -.code, .flash { background: #eee; margin: 10px -30px; padding: 10px 30px; } + background: #eee; padding: 0; margin: 0; + word-break: break-word; white-space: pre-wrap;} +textarea { border: none; width: 100%; } +.code, .flash { background: #eee; padding: 20px; } .pagination strong, .pagination span.ellipsis, .pagination a { border: 1px solid #d00; padding: 2px 6px; text-decoration: none; } -- cgit From bbc403b4534d4e93b446959791466c9d55239afc Mon Sep 17 00:00:00 2001 From: ofshellohicy Date: Wed, 10 Sep 2014 11:42:21 +0800 Subject: misc updates --- static/small.css | 2 ++ static/style.css | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'static') diff --git a/static/small.css b/static/small.css index 4ed0712..af50a92 100644 --- a/static/small.css +++ b/static/small.css @@ -2,3 +2,5 @@ pre { font-size: 18px; line-height: 1.8em; } + +.page { margin: 50px auto; width: 100%; } diff --git a/static/style.css b/static/style.css index 7905a59..d58599a 100644 --- a/static/style.css +++ b/static/style.css @@ -1,6 +1,6 @@ body { margin: 0; padding: 0; } body, input { font-size: 16px; font-family: 'Helvetica Neue', sans-serif; } -.page { margin: 50px auto; width: 100%; } +.page { margin: 50px auto; width: 800px; } h1 { margin: 0; font-weight: normal; color: #c00; } a { color: black; } a:hover { color: #c00; } @@ -12,8 +12,8 @@ dl { overflow: auto; font-size: 14px; } dl dt { font-weight: bold; width: 90px; float: left; clear: left; } dl dd { float: left; margin: 0; padding: 0; } -pre, textarea { font-family: 'Consolas', monospace; font-size: 14px; - background: #eee; padding: 0; margin: 0; +pre, textarea { font-family: 'Consolas', monospace; font-size: 18px; + background: #eee; padding: 0; margin: 0; line-height: 2em; word-break: break-word; white-space: pre-wrap;} textarea { border: none; width: 100%; } .code, .flash { background: #eee; padding: 20px; } -- cgit