aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorofshellohicy <ofshellohicy@gmail.com>2014-07-18 14:50:32 +0800
committerofshellohicy <ofshellohicy@gmail.com>2014-07-18 14:50:32 +0800
commit35d68cc0769f2f3c8fb0d63f85fc780b856a8209 (patch)
tree33821cc31b3fee53c20edd3da69784beea78d7f6 /static
parentrst -> txt (diff)
downloadstackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.tar.gz
stackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.tar.bz2
stackbin-35d68cc0769f2f3c8fb0d63f85fc780b856a8209.zip
remove useless feature
Diffstat (limited to 'static')
-rw-r--r--static/pastebin.js16
-rw-r--r--static/small.css4
-rw-r--r--static/style.css9
3 files changed, 10 insertions, 19 deletions
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($('<span></span>').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; }
bgstack15