common.css 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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 {
  11. display: flex;
  12. flex-direction: column;
  13. align-items: center;
  14. }
  15. #attachmentPreview img {
  16. max-width: 100%;
  17. height: auto;
  18. margin-bottom: 20px;
  19. }
  20. #attachmentPreview .pdfPreview {
  21. width: 100%;
  22. height: 100vh;
  23. margin-bottom: 20px;
  24. }
  25. #dropzone {
  26. text-align: center;
  27. position: fixed;
  28. top: 0;
  29. left: 0;
  30. width: 100%;
  31. height: 100%;
  32. z-index: 1000;
  33. opacity: 0.6;
  34. background-color: #9cf;
  35. 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");
  36. background-repeat: no-repeat;
  37. background-position: center;
  38. background-size: 25vh;
  39. outline: 2px dashed #28f;
  40. outline-offset: -50px;
  41. }
  42. #filewrap {
  43. transition: background-color 0.75s ease-out;
  44. }
  45. #deletelink {
  46. float: right;
  47. margin-left: 5px;
  48. }
  49. #qrcodemodalClose {
  50. float: right;
  51. }
  52. #qrcode-display {
  53. width: 200px;
  54. margin: auto;
  55. }
  56. #pastelink {
  57. display: inline;
  58. }
  59. #pastelink > a, #plaintext > a {
  60. word-wrap: break-word;
  61. }
  62. #message {
  63. height: 70dvh;
  64. }
  65. @media ((max-width: 450px) and (max-height: 950px)) {
  66. #message {
  67. height: 55dvh;
  68. }
  69. }
  70. #message, .replymessage {
  71. font-family: monospace;
  72. resize: vertical;
  73. }
  74. .comment {
  75. border-left: 1px solid #ccc;
  76. transition: background-color 0.75s ease-out;
  77. }
  78. .commentdata {
  79. white-space: pre-wrap;
  80. }
  81. .dragAndDropFile {
  82. color: #777;
  83. font-size: 1em;
  84. display: inline;
  85. white-space: normal;
  86. }
  87. .highlight {
  88. background-color: #fd8;
  89. transition: background-color 0.2s ease-in;
  90. }