paste.tpl 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. % link = setdefault("link", "") or ""
  2. % disabled = setdefault("disabled", "") and 'disabled="true"'
  3. % download = setdefault("download", "") or ""
  4. % download_disabled = "" if download else 'disabled="true"'
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <style>
  9. html {
  10. --scrollbarBG: #333333;
  11. --thumbBG: #080808;
  12. }
  13. body {
  14. background-color: #080808;
  15. color: #cccccc;
  16. }
  17. </style>
  18. <title>Paste</title>
  19. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  20. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
  21. <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>
  22. <link rel="stylesheet" href="https://shandan.one/css/responsive-visibility-collapse.css"/>
  23. </head>
  24. <body align="center" style="text-align: center">
  25. <div class="pure-g">
  26. % include('button-style')
  27. <div class="pure-u-1">
  28. <div class="pure-button-group" role="action" style="padding: 1em 0 0;">
  29. <button class="button-resize pure-button" type="submit" form="new"> New </button>
  30. <button class="button-resize pure-button" type="submit" form="copy"> Edit as New </button>
  31. <button class="button-resize pure-button" type="submit" form="paste" {{!disabled}}> Paste </button>
  32. <button class="button-resize pure-button" type="submit" form="download" {{!download_disabled}}> Download </button>
  33. </div>
  34. </div>
  35. <div class="pure-u-1">
  36. <div class="pure-button" style="margin: 1em 0 1em; background: #4f8f4f;">
  37. <a href="{{!link}}" style="color: floralwhite;">{{ link }}</a>
  38. </div>
  39. </div>
  40. <div class="pure-u-1">
  41. {{!form}}
  42. <form id="download" method="get" action="{{ download }}">
  43. <input name="raw" type="text" hidden="true" value="true" />
  44. </form>
  45. </div>
  46. </div>
  47. </body>
  48. </html>