public.scss 4.1 KB

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