public.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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 .text-preview {
  54. display: inline-block;
  55. position: relative;
  56. text-align: start;
  57. white-space: pre-wrap;
  58. overflow-y: scroll;
  59. height: auto;
  60. min-height: 200px;
  61. max-height: 800px;
  62. }
  63. #imgframe .ellipsis {
  64. font-size: 1.2em;
  65. }
  66. #imgframe .viewer__file {
  67. height: 100%;
  68. width: 100%;
  69. }
  70. #imgframe .plyr {
  71. top: 0px !important;
  72. max-height: 100%;
  73. }
  74. .app-files_sharing #app-content footer {
  75. position: sticky !important;
  76. }
  77. /* fix multiselect bar offset on shared page */
  78. thead {
  79. inset-inline-start: 0 !important;
  80. }
  81. #data-upload-form {
  82. position: relative;
  83. inset-inline-end: 0;
  84. height: 32px;
  85. overflow: hidden;
  86. padding: 0;
  87. float: right;
  88. display: inline;
  89. margin: 0;
  90. }
  91. /* keep long file names in one line to not overflow download button on mobile */
  92. .directDownload #downloadFile {
  93. white-space: nowrap;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. max-width: 90%;
  97. display: inline-block;
  98. margin-inline: auto;
  99. margin-top: 16px;
  100. }
  101. .download-size {
  102. opacity: .5;
  103. }
  104. /* header buttons */
  105. #details {
  106. display: inline-flex;
  107. }
  108. #details button,
  109. #details input,
  110. #details .button {
  111. margin: 0 5px;
  112. line-height: normal;
  113. }
  114. #details button:hover,
  115. #details input:hover,
  116. #details .button:hover {
  117. /* No */
  118. border-color: rgba(0,0,0,0.3) !important;
  119. }
  120. #public-upload .avatardiv {
  121. margin: 0 auto;
  122. }
  123. .emptycontent {
  124. &.has-note {
  125. margin-top: 5vh;
  126. }
  127. }
  128. #public-upload .emptycontent h2 {
  129. margin: 10px 0 5px 0;
  130. }
  131. #public-upload .emptycontent h2+p {
  132. margin-bottom: 30px;
  133. }
  134. #public-upload .emptycontent .icon-folder {
  135. height: 16px;
  136. width: 16px;
  137. background-size: 16px;
  138. display: inline-block;
  139. vertical-align: text-top;
  140. margin-bottom: 0;
  141. margin-inline-end: 5px;
  142. opacity: 1;
  143. }
  144. #public-upload .emptycontent #displayavatar .icon-folder {
  145. height: 48px;
  146. width: 48px;
  147. background-size: 48px;
  148. }
  149. #public-upload .emptycontent .button {
  150. display: inline-block;
  151. height: auto;
  152. width: auto;
  153. background-size: 16px;
  154. background-position: 16px;
  155. opacity: .7;
  156. font-size: 20px;
  157. line-height: initial;
  158. margin: 20px;
  159. padding: 10px 20px;
  160. padding-inline-start: 42px;
  161. }
  162. #public-upload .emptycontent ul {
  163. width: 230px;
  164. margin: 5px auto 5vh;
  165. text-align: start;
  166. }
  167. #public-upload .emptycontent li {
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. white-space: nowrap;
  171. padding: 7px 0;
  172. }
  173. #public-upload .emptycontent li img {
  174. margin-inline-end: 5px;
  175. position: relative;
  176. top: 2px;
  177. }
  178. #drop-upload-progress-indicator span.icon-loading-small {
  179. padding-inline-start: 18px;
  180. margin-inline-end: 7px;
  181. }
  182. #drop-uploaded-files li #drop-upload-name {
  183. float: left;
  184. max-width: 180px;
  185. text-overflow: ellipsis;
  186. white-space: nowrap;
  187. overflow: hidden;
  188. }
  189. #drop-uploaded-files li #drop-upload-status {
  190. float: right;
  191. }
  192. .disclaimer,
  193. .note {
  194. margin: 0 auto 30px;
  195. max-width: 400px;
  196. text-align: start;
  197. }
  198. #note-content {
  199. padding: 5px;
  200. display:inline-block;
  201. width: 350px;
  202. .content {
  203. overflow: auto;
  204. max-height: 200px;
  205. }
  206. }
  207. #show-terms-dialog {
  208. cursor: pointer;
  209. font-weight: bold;
  210. }