diff --git a/static/css/style.css b/static/css/style.css index 8e6cddd..1c1c166 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -41,10 +41,7 @@ body { .paste-option { float:right; } - -#paste-content { - background-color:white; -} + select { width: 135px; @@ -63,6 +60,11 @@ ul, ol { margin: 0; } +li { + margin-left: -4px; +} + + p { margin: 0 0 20px; } @@ -85,6 +87,11 @@ p { list-style-type: none; } +#paste-content { + background-color: white; +} + + form textarea { overflow-y:auto; } @@ -93,6 +100,10 @@ button.btn, input[type="submit"].btn { margin-left: 5px; } +.submit-form { + display: none; +} + .well { padding-bottom: 40px; padding-right: 17px; @@ -141,8 +152,8 @@ ol.linenums span:first-child { li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9 { - list-style-type: decimal; - background:inherit; + list-style-type: decimal; + background: inherit; } #clip-container div:hover, diff --git a/static/css/sunburst.css b/static/css/sunburst.css new file mode 100644 index 0000000..9f6228a --- /dev/null +++ b/static/css/sunburst.css @@ -0,0 +1,118 @@ +/* + * Derived from einaros's Sons of Obsidian theme at + * http://studiostyl.es/schemes/son-of-obsidian by + * Alex Ford of CodeTunnel: + * http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme + */ + +.str +{ + color: #EC7600; +} +.kwd +{ + color: #93C763; +} +.com +{ + color: #66747B; +} +.typ +{ + color: #678CB1; +} +.lit +{ + color: #FACD22; +} +.pun +{ + color: #F1F2F3; +} +.pln +{ + color: #F1F2F3; +} +.tag +{ + color: #8AC763; +} +.atn +{ + color: #E0E2E4; +} +.atv +{ + color: #EC7600; +} +.dec +{ + color: purple; +} +pre.prettyprint +{ + border: 0px solid #888; +} +ol.linenums +{ + margin-top: 0; + margin-bottom: 0; +} +.prettyprint { + background: #000; +} +li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9 +{ + color: #555; + list-style-type: decimal; +} +li.L1, li.L3, li.L5, li.L7, li.L9 { + background: #111; +} +@media print +{ + .str + { + color: #060; + } + .kwd + { + color: #006; + font-weight: bold; + } + .com + { + color: #600; + font-style: italic; + } + .typ + { + color: #404; + font-weight: bold; + } + .lit + { + color: #044; + } + .pun + { + color: #440; + } + .pln + { + color: #000; + } + .tag + { + color: #006; + font-weight: bold; + } + .atn + { + color: #404; + } + .atv + { + color: #060; + } +} \ No newline at end of file diff --git a/static/js/behavior.js b/static/js/behavior.js index 5fda7aa..097e7cf 100644 --- a/static/js/behavior.js +++ b/static/js/behavior.js @@ -55,10 +55,12 @@ zerobin = { { if (localStorage.getItem(i).split(';')[0].split(' ')[0] == zerobin.get_date()){ var display_date = localStorage.getItem(i).split(';')[0].split(' ')[1]; + var on_at = 'at '; }else{ var display_date = zerobin.get_date(); + var on_at = 'on '; } - pastes = pastes + '
  • ' + display_date + '
  • '; + pastes = pastes + '
  • ' + on_at + display_date + '
  • '; } if (!pastes){ return 'Your previous pastes will be saved in your browser localStorage.'; @@ -167,5 +169,37 @@ $('#content').live('keyup change', function(){ /* Display previous pastes */ $('.previous-pastes .items').html(zerobin.get_pastes()); + + + +/* clone a paste */ +$('.btn-clone').click(function(e){ + e.preventDefault(); + content_clone = '' ; + $("#paste-content li").each(function(index) { + content_clone = content_clone + $(this).text() + '\n'; + }); + $('.submit-form').show(); + $('.paste-form').hide(); + $('#content').val(content_clone); + $('#content').resize(); + +}); + +}); + + + + + + + + + + + + + + + -}); \ No newline at end of file diff --git a/views/base.tpl b/views/base.tpl index 1eb3ae0..d6e6d04 100644 --- a/views/base.tpl +++ b/views/base.tpl @@ -9,7 +9,7 @@ pastebin featuring burn after reading, an history and a clipboard"> - + diff --git a/views/home.tpl b/views/home.tpl index 36da4a5..ca70732 100644 --- a/views/home.tpl +++ b/views/home.tpl @@ -1,5 +1,4 @@
    -

    -

    - -
    + %rebase base \ No newline at end of file diff --git a/views/paste.tpl b/views/paste.tpl index 69f9fbf..e85bea6 100644 --- a/views/paste.tpl +++ b/views/paste.tpl @@ -44,4 +44,27 @@ + + + +
    +

    + + + +

    +

    + +

    +
    +
    + + %rebase base \ No newline at end of file