public.scss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. @use 'variables';
  2. $footer-height: 65px;
  3. $footer-padding-height: 16px;
  4. $download-button-section-height: 200px;
  5. #preview {
  6. text-align: center;
  7. }
  8. #preview .notCreatable {
  9. display: none;
  10. }
  11. #noPreview {
  12. display:none;
  13. padding-top:80px;
  14. }
  15. #imgframe {
  16. height:75%;
  17. padding-bottom:32px;
  18. padding-top:32px;
  19. width:80%;
  20. margin:0 auto;
  21. }
  22. #imgframe #viewer {
  23. height: 100%;
  24. width: 100%;
  25. }
  26. #imgframe img {
  27. max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height}) !important;
  28. max-width: 100% !important;
  29. width: unset !important;
  30. }
  31. #imgframe :not(#viewer) img {
  32. min-width: 100px;
  33. }
  34. #imgframe video {
  35. max-height: calc(100vh - var(--header-height) - #{$footer-height} - #{$download-button-section-height} - #{$footer-padding-height});
  36. }
  37. #imgframe .plyr:fullscreen video {
  38. max-height: unset;
  39. }
  40. #imgframe audio {
  41. display: block;
  42. margin-left: auto;
  43. margin-right: auto;
  44. }
  45. #imgframe #viewer[data-handler=audios] {
  46. // for speed settings
  47. margin-top: 400px;
  48. }
  49. #imgframe .plyr {
  50. top: 0px !important;
  51. }
  52. #imgframe .text-preview {
  53. display: inline-block;
  54. position: relative;
  55. text-align: left;
  56. white-space: pre-wrap;
  57. overflow-y: scroll;
  58. height: auto;
  59. min-height: 200px;
  60. max-height: 800px;
  61. }
  62. #imgframe .ellipsis {
  63. font-size: 1.2em;
  64. }
  65. #imgframe .viewer__file {
  66. height: 100%;
  67. width: 100%;
  68. }
  69. #imgframe .plyr {
  70. max-height: 100%;
  71. }
  72. .app-files_sharing #app-content footer {
  73. position: sticky !important;
  74. }
  75. /* fix multiselect bar offset on shared page */
  76. thead {
  77. left: 0 !important;
  78. }
  79. #data-upload-form {
  80. position: relative;
  81. right: 0;
  82. height: 32px;
  83. overflow: hidden;
  84. padding: 0;
  85. float: right;
  86. display: inline;
  87. margin: 0;
  88. }
  89. /* keep long file names in one line to not overflow download button on mobile */
  90. .directDownload #downloadFile {
  91. white-space: nowrap;
  92. overflow: hidden;
  93. text-overflow: ellipsis;
  94. max-width: 90%;
  95. display: inline-block;
  96. margin-left: auto;
  97. margin-right: auto;
  98. margin-top: 16px;
  99. }
  100. .download-size {
  101. opacity: .5;
  102. }
  103. /* header buttons */
  104. #details {
  105. display: inline-flex;
  106. }
  107. #details button,
  108. #details input,
  109. #details .button {
  110. margin: 0 5px;
  111. line-height: normal;
  112. }
  113. #details button:hover,
  114. #details input:hover,
  115. #details .button:hover {
  116. /* No */
  117. border-color: rgba(0,0,0,0.3) !important;
  118. }
  119. #public-upload .avatardiv {
  120. margin: 0 auto;
  121. }
  122. .emptycontent {
  123. &.has-note {
  124. margin-top: 5vh;
  125. }
  126. }
  127. #public-upload .emptycontent h2 {
  128. margin: 10px 0 5px 0;
  129. }
  130. #public-upload .emptycontent h2+p {
  131. margin-bottom: 30px;
  132. }
  133. #public-upload .emptycontent .icon-folder {
  134. height: 16px;
  135. width: 16px;
  136. background-size: 16px;
  137. display: inline-block;
  138. vertical-align: text-top;
  139. margin-bottom: 0;
  140. margin-right: 5px;
  141. opacity: 1;
  142. }
  143. #public-upload .emptycontent #displayavatar .icon-folder {
  144. height: 48px;
  145. width: 48px;
  146. background-size: 48px;
  147. }
  148. #public-upload .emptycontent .button {
  149. display: inline-block;
  150. height: auto;
  151. width: auto;
  152. background-size: 16px;
  153. background-position: 16px;
  154. opacity: .7;
  155. font-size: 20px;
  156. line-height: initial;
  157. margin: 20px;
  158. padding: 10px 20px;
  159. padding-left: 42px;
  160. }
  161. #public-upload .emptycontent ul {
  162. width: 230px;
  163. margin: 5px auto 5vh;
  164. text-align: left;
  165. }
  166. #public-upload .emptycontent li {
  167. overflow: hidden;
  168. text-overflow: ellipsis;
  169. white-space: nowrap;
  170. padding: 7px 0;
  171. }
  172. #public-upload .emptycontent li img {
  173. margin-right: 5px;
  174. position: relative;
  175. top: 2px;
  176. }
  177. #drop-upload-progress-indicator span.icon-loading-small {
  178. padding-left: 18px;
  179. margin-right: 7px;
  180. }
  181. #drop-uploaded-files li #drop-upload-name {
  182. float: left;
  183. max-width: 180px;
  184. text-overflow: ellipsis;
  185. white-space: nowrap;
  186. overflow: hidden;
  187. }
  188. #drop-uploaded-files li #drop-upload-status {
  189. float: right;
  190. }
  191. .disclaimer,
  192. .note {
  193. margin: 0 auto 30px;
  194. max-width: 400px;
  195. text-align: left;
  196. }
  197. #note-content {
  198. padding: 5px;
  199. display:inline-block;
  200. width: 350px;
  201. .content {
  202. overflow: auto;
  203. max-height: 200px;
  204. }
  205. }
  206. #show-terms-dialog {
  207. cursor: pointer;
  208. font-weight: bold;
  209. }
  210. // hide the download entry on the menu
  211. // on public share when NOT on mobile
  212. @media only screen and (min-width: variables.$breakpoint-mobile + 1) {
  213. #body-public {
  214. .header-right {
  215. #header-actions-menu {
  216. > ul > li#download {
  217. display: none;
  218. }
  219. }
  220. }
  221. }
  222. }
  223. // hide the primary on public share on mobile
  224. @media only screen and (max-width: variables.$breakpoint-mobile) {
  225. #body-public {
  226. .header-right {
  227. #header-primary-action {
  228. display: none;
  229. }
  230. }
  231. }
  232. }