attachments.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .slide {
  2. /* swipebox slide background gradient of black to blue, so that back SVG images are visible */
  3. background: rgb(2,0,36);
  4. background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 14%, rgba(0,212,255,1) 100%);
  5. }
  6. .attachment-upload {
  7. text-align: center;
  8. font-weight: bold;
  9. }
  10. .attachments-gallery {
  11. display: flex;
  12. flex-wrap: wrap;
  13. }
  14. .attachments-gallery .attachment-item {
  15. width: 31.33%;
  16. margin: 10px 1% 0;
  17. text-align: center;
  18. border-radius: 3px;
  19. overflow: auto;
  20. background: #ededed;
  21. min-height: 120px;
  22. }
  23. .attachments-gallery .attachment-item:hover {
  24. background: #e0e0e0;
  25. }
  26. .attachments-gallery .attachment-item.add-attachment {
  27. display: flex;
  28. align-items: center;
  29. }
  30. .attachments-gallery .attachment-item.add-attachment a {
  31. display: block;
  32. margin: auto;
  33. }
  34. .attachments-gallery .attachment-item .attachment-thumbnail {
  35. height: 80px;
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. position: relative;
  40. }
  41. .attachments-gallery .attachment-item .attachment-thumbnail .attachment-thumbnail-img {
  42. max-height: 100%;
  43. max-width: 100%;
  44. }
  45. .attachments-gallery .attachment-item .attachment-thumbnail .attachment-thumbnail-ext {
  46. text-transform: uppercase;
  47. font-size: 1.6em;
  48. }
  49. .attachments-gallery .attachment-item .attachment-details {
  50. font-size: 0.75em;
  51. margin: 3px;
  52. }
  53. .attachments-gallery .attachment-item .attachment-details .attachment-details-actions a {
  54. display: block;
  55. }
  56. .attachments-gallery .attachment-item .attachment-details .attachment-details-actions a.attachment-details-menu {
  57. padding-top: 10px;
  58. }
  59. .attachment-image-preview {
  60. max-width: 100px;
  61. display: block;
  62. box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  63. }
  64. .preview-clipboard-image {
  65. width: 280px;
  66. max-width: 100%;
  67. height: 200px;
  68. display: block;
  69. border: 1px solid #000;
  70. box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  71. }
  72. #viewer-overlay{
  73. width: 100%;
  74. height: 100vh;
  75. position: fixed;
  76. top: 48px; /* height of the navbar */
  77. left: 0;
  78. z-index: 9999 !important;
  79. background: rgba(13,13,13,0.9);
  80. }
  81. #viewer-container {
  82. position: relative;
  83. width: 100%;
  84. height: 100%;
  85. }
  86. #viewer-close {
  87. color:white;
  88. cursor: pointer;
  89. font-size: 4em;
  90. top: 0;
  91. right: 16px;
  92. position: absolute;
  93. padding: 20 20;
  94. }
  95. #viewer-container{
  96. text-align: center;
  97. }
  98. #pdf-viewer {
  99. margin-top: 4vh;
  100. width: 100%;
  101. height: 100vh;
  102. }
  103. .pdf-preview-error{
  104. margin-top: 20vh;
  105. display: block;
  106. font-size: 2em;
  107. color: white;
  108. }
  109. @media screen and (max-width: 800px) {
  110. .attachments-gallery .attachment-item {
  111. width: 48%;
  112. }
  113. .attachments-gallery .attachment-item .attachment-thumbnail {
  114. height: 130px;
  115. }
  116. .attachments-gallery .attachment-item .attachment-details {
  117. font-size: 1.1em;
  118. }
  119. }
  120. @media screen and (max-width: 360px) {
  121. #pdf-viewer {
  122. margin-top: 5vh;
  123. width: 100%;
  124. }
  125. .attachments-gallery .attachment-item {
  126. width: 100%;
  127. }
  128. .attachments-gallery .attachment-item .attachment-thumbnail {
  129. height: 200px;
  130. }
  131. }