attachments.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. .attachment-gallery {
  11. display: flex;
  12. flex-direction: column;
  13. }
  14. .attachment-item {
  15. display: flex;
  16. flex-direction: row;
  17. align-items: center;
  18. margin-top: 16px;
  19. }
  20. .attachment-item:hover {
  21. background: #e0e0e0;
  22. }
  23. .attachment-thumbnail-container {
  24. display: block;
  25. width: 150px;
  26. min-width: 150px;
  27. max-height: 150px;
  28. padding-right: 16px;
  29. }
  30. .attachment-thumbnail {
  31. max-width: 150px;
  32. max-height: 150px;
  33. min-height: 2em;
  34. cursor: pointer;
  35. }
  36. .attachment-thumbnail-text {
  37. min-height: 2em;
  38. display: flex;
  39. align-items: center;
  40. justify-content: center;
  41. font-size: 2em;
  42. cursor: pointer;
  43. border: 1px solid #ccc;
  44. border-radius: 5px;
  45. }
  46. .attachment-details-container {
  47. display: block;
  48. flex-grow: 1;
  49. }
  50. .attachment-details {
  51. display: flex;
  52. justify-content: space-between;
  53. margin-right: 25px; /* Make sure the icons are not to far to the right */
  54. }
  55. .attachment-actions {
  56. display: flex;
  57. flex-direction: row;
  58. align-items: center;
  59. }
  60. .add-attachment {
  61. display: flex;
  62. align-items: center;
  63. justify-content: center;
  64. border: 1px dashed #555;
  65. border-radius: 5px;
  66. padding: 10px;
  67. cursor: pointer;
  68. margin-top: 16px;
  69. }
  70. .icon {
  71. font-size: 1.5em;
  72. cursor: pointer;
  73. margin-left: 10px;
  74. }
  75. .icon:hover {
  76. color: #666;
  77. }
  78. #viewer-overlay {
  79. width: 100%;
  80. height: 100vh;
  81. position: fixed;
  82. top: 48px; /* height of the navbar */
  83. left: 0;
  84. z-index: 9999 !important;
  85. background: rgba(13,13,13,0.9);
  86. }
  87. #viewer-container {
  88. position: relative;
  89. width: 100%;
  90. height: 100%;
  91. }
  92. #viewer-close {
  93. color:white;
  94. cursor: pointer;
  95. font-size: 4em;
  96. top: 0;
  97. right: 16px;
  98. position: absolute;
  99. padding: 20 20;
  100. }
  101. #viewer-container {
  102. text-align: center;
  103. }
  104. #pdf-viewer {
  105. width: 40vw;
  106. height: 100vh;
  107. }
  108. .pdf-preview-error {
  109. margin-top: 20vh;
  110. display: block;
  111. font-size: 2em;
  112. color: white;
  113. }
  114. @media screen and (max-width: 1600px) {
  115. #pdf-viewer {
  116. width: 60vw;
  117. }
  118. }
  119. @media screen and (max-width: 800px) {
  120. #pdf-viewer {
  121. width: 100vh;
  122. }
  123. .attachment-thumbnail-container {
  124. width: 100px;
  125. min-width: 100px;
  126. }
  127. .attachment-thumbnail {
  128. max-width: 100px;
  129. }
  130. .attachment-details {
  131. flex-direction: column;
  132. margin-right: 0px;
  133. }
  134. .attachment-actions {
  135. flex-direction: row;
  136. margin-top: 10px;
  137. }
  138. }