public.scss 4.6 KB

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