attachments.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. .attachment-upload {
  2. text-align: center;
  3. font-weight: bold;
  4. }
  5. .attachment-gallery {
  6. display: flex;
  7. flex-direction: column;
  8. }
  9. .attachment-item {
  10. display: flex;
  11. flex-direction: row;
  12. align-items: center;
  13. margin-top: 16px;
  14. }
  15. .attachment-item:hover {
  16. background: #e0e0e0;
  17. }
  18. .attachment-thumbnail-container {
  19. display: block;
  20. width: 150px;
  21. min-width: 150px;
  22. max-height: 150px;
  23. padding-right: 16px;
  24. }
  25. .attachment-thumbnail {
  26. max-width: 150px;
  27. max-height: 150px;
  28. min-height: 2em;
  29. cursor: pointer;
  30. }
  31. .attachment-thumbnail-text {
  32. min-height: 2em;
  33. display: flex;
  34. align-items: center;
  35. justify-content: center;
  36. font-size: 2em;
  37. cursor: pointer;
  38. border: 1px solid #ccc;
  39. border-radius: 5px;
  40. }
  41. .attachment-details-container {
  42. display: block;
  43. flex-grow: 1;
  44. }
  45. .attachment-details {
  46. display: flex;
  47. justify-content: space-between;
  48. margin-right: 25px; /* Make sure the icons are not to far to the right */
  49. }
  50. .attachment-actions {
  51. display: flex;
  52. flex-direction: row;
  53. align-items: center;
  54. }
  55. .add-attachment {
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. border: 1px dashed #555;
  60. border-radius: 5px;
  61. padding: 10px;
  62. cursor: pointer;
  63. margin-top: 16px;
  64. }
  65. .icon {
  66. font-size: 1.5em;
  67. cursor: pointer;
  68. margin-left: 10px;
  69. }
  70. .icon:hover {
  71. color: #666;
  72. }
  73. #viewer-overlay {
  74. width: 100%;
  75. height: 100vh;
  76. position: fixed;
  77. top: 48px; /* height of the navbar */
  78. left: 0;
  79. z-index: 9999 !important;
  80. background: rgba(13,13,13,0.95);
  81. }
  82. #viewer-container {
  83. display: flex;
  84. flex-direction: row;
  85. justify-content: space-between;
  86. height: 100%;
  87. }
  88. #viewer-top-bar {
  89. display: flex;
  90. flex-direction: row;
  91. justify-content: space-between;
  92. width: 100%;
  93. padding: 16px;
  94. }
  95. #attachment-name {
  96. color: white;
  97. font-size: 1.5em;
  98. max-width: calc(100% - 50px); /* Make sure the name does not overlap the close button */
  99. }
  100. #viewer-close {
  101. color:white;
  102. cursor: pointer;
  103. font-size: 4em;
  104. top: 0;
  105. right: 8px;
  106. position: absolute;
  107. }
  108. .attachment-arrow {
  109. font-size: 4em;
  110. color:white;
  111. cursor: pointer;
  112. align-self: center;
  113. margin: 0 20px;
  114. }
  115. #image-viewer {
  116. background:
  117. repeating-conic-gradient(#808080 0% 25%, transparent 0% 50%)
  118. 50% / 20px 20px; /* Checkerboard background for transparent images */
  119. max-width: 100%;
  120. }
  121. #pdf-viewer {
  122. width: 40vw;
  123. height: 100vh;
  124. }
  125. #txt-viewer{
  126. background-color: white;
  127. width: 40vw;
  128. height: 100vh;
  129. }
  130. .pdf-preview-error {
  131. margin-top: 20vh;
  132. display: block;
  133. font-size: 2em;
  134. color: white;
  135. }
  136. @media screen and (max-width: 1600px) {
  137. #pdf-viewer {
  138. width: 60vw;
  139. }
  140. }
  141. @media screen and (max-width: 800px) {
  142. #viewer-container {
  143. display: block;
  144. }
  145. .attachment-arrow{
  146. position: absolute;
  147. bottom: 2.2em;
  148. font-size: 1.6em;
  149. padding: 16px;
  150. }
  151. #prev-attachment{
  152. left: 0;
  153. }
  154. #next-attachment{
  155. right: 0;
  156. }
  157. #pdf-viewer {
  158. width: 100%;
  159. height: calc(100vh - 155px); /* Full height - height of top and bottom bars */
  160. }
  161. #txt-viewer {
  162. width: 100%;
  163. height: calc(100vh - 155px); /* Full height - height of top and bottom bars */
  164. }
  165. #audio-viewer {
  166. margin-top: 20%;
  167. width: 100%;
  168. }
  169. .attachment-thumbnail-container {
  170. width: 100px;
  171. min-width: 100px;
  172. }
  173. .attachment-thumbnail {
  174. max-width: 100px;
  175. }
  176. .attachment-details {
  177. flex-direction: column;
  178. margin-right: 0px;
  179. }
  180. .attachment-actions {
  181. flex-direction: row;
  182. margin-top: 10px;
  183. }
  184. }