1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Move from cherrypy to paste

This commit is contained in:
ksamuel 2020-08-12 17:26:21 +02:00
parent aaf8e647d6
commit 3308e6d74f
4 changed files with 28 additions and 34 deletions

View File

@ -10,7 +10,7 @@
be pasted in it. The idea is that one can (probably...) not be legally entitled be pasted in it. The idea is that one can (probably...) not be legally entitled
to `moderate the pastebin content`_ as they have no way to decrypt it. to `moderate the pastebin content`_ as they have no way to decrypt it.
It's an Python implementation of the `zerobin project`_, created by sebsauvage, under the `WTF licence`_. It's an Python implementation of the `zerobin project`_, created by sebsauvage, under the `WTFPL licence`_.
For now tested with IE9, and the last opera, safari, chrome and FF. For now tested with IE9, and the last opera, safari, chrome and FF.

View File

@ -1,6 +1,6 @@
CherryPy==8.9.0
clize==4.1.1 clize==4.1.1
lockfile==0.12.2 lockfile==0.12.2
sigtools==2.0.2 sigtools==2.0.2
bottle==0.12.18 bottle==0.12.18
Beaker==1.11.0 Beaker==1.11.0
Paste==3.4.3

View File

@ -36,7 +36,7 @@ def runserver(
compressed_static=None, compressed_static=None,
version=False, version=False,
paste_id_length=None, paste_id_length=None,
server="cherrypy", server="paste",
): ):
if version: if version:
print("0bin V%s" % settings.VERSION) print("0bin V%s" % settings.VERSION)

View File

@ -51,8 +51,8 @@ body {
} }
.blk-space { .blk-space {
height: 20px; height: 20px;
display: block; display: block;
} }
.sidebar-nav { .sidebar-nav {
@ -68,7 +68,7 @@ ol {
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
a { a {
color: #2ea1d7; color: #2ea1d7;
} }
@ -115,24 +115,23 @@ blockquote {
} }
.footer li { .footer li {
list-style-type: none; list-style-type: none;
display: inline; display: inline;
} }
.footer li span{ .footer li span {
color: #2ea1d7; color: #2ea1d7;
} }
.footer li span:hover{ .footer li span:hover {
color: #1888bc; color: #1888bc;
text-decoration: underline; text-decoration: underline;
cursor: pointer; cursor: pointer;
} }
.footer li:not(:last-child):after { .footer li:not(:last-child):after {
content:' -'; content: ' -';
} }
/* Home */ /* Home */
@ -208,19 +207,19 @@ li.L9 {
pre.prettyprint { pre.prettyprint {
width: 100%; width: 100%;
min-height: 100px; min-height: 100px;
} }
/* Specify class=linenums on a pre to get line numbering */ /* Specify class=linenums on a pre to get line numbering */
ol.linenums { ol.linenums {
margin: 0 0 0 55px; margin: 0 0 0 55px;
/* IE indents via margin-left */ /* IE indents via margin-left */
} }
pre { pre {
white-space: pre-wrap; white-space: pre-wrap;
overflow: visible; overflow: visible;
} }
/* Common css */ /* Common css */
.form-control, .form-control,
@ -385,11 +384,6 @@ canvas {
display: none; display: none;
} }
.topnav .bi-list {
width: 2em;
height: 2em;
}
/* Styling the sub menu */ /* Styling the sub menu */
nav { nav {
float: right; float: right;
@ -421,15 +415,15 @@ nav ul li a:hover {
position: relative; position: relative;
} }
.submenu ul { .submenu ul {
display: none; display: none;
position: absolute; position: absolute;
margin: 8px 0 0px 9px; margin: 6px 0 0px 9px;
width: -webkit-fill-available; width: fill-available;
z-index: 9999; z-index: 999;
border: 1px solid #666; border: 1px solid #666;
border-radius: 3px; border-radius: 3px;
padding: 0; padding: 0;
} }
.submenu li { .submenu li {