diff --git a/lib/document_handler.js b/lib/document_handler.js index 78ae674..8be4033 100644 --- a/lib/document_handler.js +++ b/lib/document_handler.js @@ -38,6 +38,7 @@ DocumentHandler.prototype.handleGetRaw = async function(key, res, skipExpire){ return; } winston.verbose('retrieved raw document', { key: key }); + res.setHeader('content-type', 'text/plain'); res.status(200).end(data); }; diff --git a/static/application.css b/static/application.css index 28087e3..acb5844 100644 --- a/static/application.css +++ b/static/application.css @@ -1,7 +1,18 @@ +body, html { + margin: 0; + padding: 0; + width: 100%; + height: 100%; +} + body { background: #002B36; +} + +.text-container { padding: 20px 50px; - margin: 0px; + width: calc(100% - 100px); + height: calc(100% - 40px); } /* textarea */ @@ -10,7 +21,7 @@ textarea { background: transparent; border: 0px; color: #fff; - padding: 0px; + padding: 0; width: 100%; height: 100%; font-family: monospace; @@ -22,11 +33,11 @@ textarea { /* the line numbers */ #linenos { - color: #7d7d7d; + color: #7d7d7d; z-index: -1000; position: absolute; top: 20px; - left: 0px; + left: 0; width: 30px; /* 30 to get 20 away from box */ font-size: 13px; font-family: monospace; @@ -36,17 +47,18 @@ textarea { /* code box when locked */ #box { - padding: 0px; - margin: 0px; + padding: 0; + margin: 0; width: 100%; - border: 0px; + border: 0; outline: none; font-size: 13px; - overflow: inherit; + overflow: inherit; + margin-bottom: 20px; } #box code { - padding: 0px; + padding: 0; background: transparent !important; /* don't hide hastebox */ } @@ -54,8 +66,8 @@ textarea { #key { position: fixed; - top: 0px; - right: 0px; + top: 0; + right: 0; z-index: +1000; /* watch out */ } @@ -67,8 +79,8 @@ textarea { #box2 { background: #08323c; - font-size: 0px; - padding: 0px 5px; + font-size: 0; + padding: 0 5px; } #box1 a.logo, #box1 a.logo:visited { @@ -104,11 +116,11 @@ textarea { height: 5px; width: 10px; background: url(hover-dropdown-tip.png); - bottom: 0px; + bottom: 0; position: absolute; margin: auto; - left: 0px; - right: 0px; + left: 0; + right: 0; } #box3, #messages li { @@ -152,7 +164,7 @@ textarea { #messages { position:fixed; - top:0px; + top:0; right:138px; margin:0; padding:0; @@ -169,3 +181,6 @@ textarea { background:rgba(102,8,0,0.8); } +#linenos { + user-select: none; +} \ No newline at end of file diff --git a/static/index.html b/static/index.html index 6e4bed0..4faf3bc 100644 --- a/static/index.html +++ b/static/index.html @@ -1,16 +1,17 @@ + hastebin - - - + + + + + - - - -
- +
@@ -63,7 +62,7 @@
- - - - +
+ + +
\ No newline at end of file