1
0

public.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. @charset "UTF-8";
  2. /**
  3. * @copyright Copyright (c) 2018, John Molakvoæ (skjnldsv@protonmail.com)
  4. *
  5. * @author John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
  6. *
  7. * @license GNU AGPL version 3 or any later version
  8. *
  9. * This program is free software: you can redistribute it and/or modify
  10. * it under the terms of the GNU Affero General Public License as
  11. * published by the Free Software Foundation, either version 3 of the
  12. * License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU Affero General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Affero General Public License
  20. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  21. *
  22. */
  23. #preview {
  24. text-align: center;
  25. }
  26. #preview .notCreatable {
  27. display: none;
  28. }
  29. #noPreview {
  30. display: none;
  31. padding-top: 80px;
  32. }
  33. #imgframe {
  34. height: 75%;
  35. padding-bottom: 32px;
  36. padding-top: 32px;
  37. width: 80%;
  38. margin: 0 auto;
  39. }
  40. #imgframe #viewer {
  41. height: 100%;
  42. width: 100%;
  43. }
  44. #imgframe img {
  45. max-height: calc(100vh - var(--header-height) - 65px - 200px - 16px) !important;
  46. max-width: 100% !important;
  47. width: unset !important;
  48. }
  49. #imgframe :not(#viewer) img {
  50. min-width: 100px;
  51. }
  52. #imgframe video {
  53. max-height: calc(100vh - var(--header-height) - 65px - 200px - 16px);
  54. }
  55. #imgframe audio {
  56. display: block;
  57. margin-left: auto;
  58. margin-right: auto;
  59. }
  60. #imgframe #viewer[data-handler=audios] {
  61. margin-top: 400px;
  62. }
  63. #imgframe .plyr {
  64. top: 0px !important;
  65. }
  66. #imgframe .text-preview {
  67. display: inline-block;
  68. position: relative;
  69. text-align: left;
  70. white-space: pre-wrap;
  71. overflow-y: scroll;
  72. height: auto;
  73. min-height: 200px;
  74. max-height: 800px;
  75. }
  76. #imgframe .ellipsis {
  77. font-size: 1.2em;
  78. }
  79. #imgframe .viewer__file {
  80. height: 100%;
  81. width: 100%;
  82. }
  83. #imgframe .plyr {
  84. max-height: 100%;
  85. }
  86. .app-files_sharing #app-content footer {
  87. position: sticky !important;
  88. }
  89. /* fix multiselect bar offset on shared page */
  90. thead {
  91. left: 0 !important;
  92. }
  93. #data-upload-form {
  94. position: relative;
  95. right: 0;
  96. height: 32px;
  97. overflow: hidden;
  98. padding: 0;
  99. float: right;
  100. display: inline;
  101. margin: 0;
  102. }
  103. /* keep long file names in one line to not overflow download button on mobile */
  104. .directDownload #downloadFile {
  105. white-space: nowrap;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. max-width: 90%;
  109. display: inline-block;
  110. margin-left: auto;
  111. margin-right: auto;
  112. margin-top: 16px;
  113. }
  114. .download-size {
  115. opacity: 0.5;
  116. }
  117. /* header buttons */
  118. #details {
  119. display: inline-flex;
  120. }
  121. #details button,
  122. #details input,
  123. #details .button {
  124. margin: 0 5px;
  125. line-height: normal;
  126. }
  127. #details button:hover,
  128. #details input:hover,
  129. #details .button:hover {
  130. /* No */
  131. border-color: rgba(0, 0, 0, 0.3) !important;
  132. }
  133. #public-upload .avatardiv {
  134. margin: 0 auto;
  135. }
  136. .emptycontent.has-note {
  137. margin-top: 5vh;
  138. }
  139. #public-upload .emptycontent h2 {
  140. margin: 10px 0 5px 0;
  141. }
  142. #public-upload .emptycontent h2 + p {
  143. margin-bottom: 30px;
  144. }
  145. #public-upload .emptycontent .icon-folder {
  146. height: 16px;
  147. width: 16px;
  148. background-size: 16px;
  149. display: inline-block;
  150. vertical-align: text-top;
  151. margin-bottom: 0;
  152. margin-right: 5px;
  153. opacity: 1;
  154. }
  155. #public-upload .emptycontent #displayavatar .icon-folder {
  156. height: 48px;
  157. width: 48px;
  158. background-size: 48px;
  159. }
  160. #public-upload .emptycontent .button {
  161. display: inline-block;
  162. height: auto;
  163. width: auto;
  164. background-size: 16px;
  165. background-position: 16px;
  166. opacity: 0.7;
  167. font-size: 20px;
  168. line-height: initial;
  169. margin: 20px;
  170. padding: 10px 20px;
  171. padding-left: 42px;
  172. }
  173. #public-upload .emptycontent ul {
  174. width: 230px;
  175. margin: 5px auto 5vh;
  176. text-align: left;
  177. }
  178. #public-upload .emptycontent li {
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. white-space: nowrap;
  182. padding: 7px 0;
  183. }
  184. #public-upload .emptycontent li img {
  185. margin-right: 5px;
  186. position: relative;
  187. top: 2px;
  188. }
  189. #drop-upload-progress-indicator span.icon-loading-small {
  190. padding-left: 18px;
  191. margin-right: 7px;
  192. }
  193. #drop-uploaded-files li #drop-upload-name {
  194. float: left;
  195. max-width: 180px;
  196. text-overflow: ellipsis;
  197. white-space: nowrap;
  198. overflow: hidden;
  199. }
  200. #drop-uploaded-files li #drop-upload-status {
  201. float: right;
  202. }
  203. .disclaimer,
  204. .note {
  205. margin: 0 auto 30px;
  206. max-width: 400px;
  207. text-align: left;
  208. }
  209. #note-content {
  210. padding: 5px;
  211. display: inline-block;
  212. width: 350px;
  213. }
  214. #note-content .content {
  215. overflow: auto;
  216. max-height: 200px;
  217. }
  218. #show-terms-dialog {
  219. cursor: pointer;
  220. font-weight: bold;
  221. }
  222. @media only screen and (min-width: 1025px) {
  223. #body-public .header-right #header-actions-menu > ul > li#download {
  224. display: none;
  225. }
  226. }
  227. @media only screen and (max-width: 1024px) {
  228. #body-public .header-right #header-primary-action {
  229. display: none;
  230. }
  231. }
  232. /*# sourceMappingURL=public.css.map */