common.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /**
  2. * PrivateBin
  3. *
  4. * Common cascading style sheets for all templates.
  5. *
  6. * @link https://github.com/PrivateBin/PrivateBin
  7. * @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
  8. * @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
  9. */
  10. #attachmentPreview img {
  11. max-width: 100%;
  12. height: auto;
  13. margin-bottom: 20px;
  14. }
  15. #attachmentPreview .pdfPreview {
  16. width: 100%;
  17. height: 100vh;
  18. margin-bottom: 20px;
  19. }
  20. #dropzone {
  21. text-align: center;
  22. position: fixed;
  23. top: 0;
  24. left: 0;
  25. width: 100%;
  26. height: 100%;
  27. z-index: 1000;
  28. opacity: 0.6;
  29. background-color: #9cf;
  30. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E");
  31. background-repeat: no-repeat;
  32. background-position: center;
  33. background-size: 25vh;
  34. outline: 2px dashed #28f;
  35. outline-offset: -50px;
  36. }
  37. #filewrap {
  38. transition: background-color 0.75s ease-out;
  39. }
  40. #deletelink {
  41. float: right;
  42. margin-left: 5px;
  43. }
  44. #qrcodemodalClose {
  45. float: right;
  46. }
  47. #qrcode-display {
  48. width: 200px;
  49. height: 200px;
  50. margin: auto;
  51. }
  52. #pastelink {
  53. display: inline;
  54. }
  55. #pastelink > a, #plaintext > a {
  56. word-wrap: break-word;
  57. }
  58. #message {
  59. height: 70dvh;
  60. }
  61. @media ((max-width: 450px) and (max-height: 950px)) {
  62. #message {
  63. height: 55dvh;
  64. }
  65. }
  66. #message, .replymessage {
  67. font-family: monospace;
  68. resize: vertical;
  69. }
  70. .comment {
  71. border-left: 1px solid #ccc;
  72. transition: background-color 0.75s ease-out;
  73. }
  74. .commentdata {
  75. white-space: pre-wrap;
  76. }
  77. .dragAndDropFile {
  78. color: #777;
  79. font-size: 1em;
  80. display: inline;
  81. white-space: normal;
  82. }
  83. .highlight {
  84. background-color: #fd8;
  85. transition: background-color 0.2s ease-in;
  86. }