common.css 2.0 KB

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