public.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. // Header note prior 31
  125. #notemenu .icon-comment-white.menutoggle {
  126. filter: var(--background-invert-if-dark);
  127. }
  128. #public-upload .avatardiv {
  129. margin: 0 auto;
  130. }
  131. .emptycontent {
  132. &.has-note {
  133. margin-top: 5vh;
  134. }
  135. }
  136. #public-upload .emptycontent h2 {
  137. margin: 10px 0 5px 0;
  138. }
  139. #public-upload .emptycontent h2+p {
  140. margin-bottom: 30px;
  141. }
  142. #public-upload .emptycontent .icon-folder {
  143. height: 16px;
  144. width: 16px;
  145. background-size: 16px;
  146. display: inline-block;
  147. vertical-align: text-top;
  148. margin-bottom: 0;
  149. margin-right: 5px;
  150. opacity: 1;
  151. }
  152. #public-upload .emptycontent #displayavatar .icon-folder {
  153. height: 48px;
  154. width: 48px;
  155. background-size: 48px;
  156. }
  157. #public-upload .emptycontent .button {
  158. display: inline-block;
  159. height: auto;
  160. width: auto;
  161. background-size: 16px;
  162. background-position: 16px;
  163. opacity: .7;
  164. font-size: 20px;
  165. line-height: initial;
  166. margin: 20px;
  167. padding: 10px 20px;
  168. padding-left: 42px;
  169. }
  170. #public-upload .emptycontent ul {
  171. width: 230px;
  172. margin: 5px auto 5vh;
  173. text-align: left;
  174. }
  175. #public-upload .emptycontent li {
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. white-space: nowrap;
  179. padding: 7px 0;
  180. }
  181. #public-upload .emptycontent li img {
  182. margin-right: 5px;
  183. position: relative;
  184. top: 2px;
  185. }
  186. #drop-upload-progress-indicator span.icon-loading-small {
  187. padding-left: 18px;
  188. margin-right: 7px;
  189. }
  190. #drop-uploaded-files li #drop-upload-name {
  191. float: left;
  192. max-width: 180px;
  193. text-overflow: ellipsis;
  194. white-space: nowrap;
  195. overflow: hidden;
  196. }
  197. #drop-uploaded-files li #drop-upload-status {
  198. float: right;
  199. }
  200. .disclaimer,
  201. .note {
  202. margin: 0 auto 30px;
  203. max-width: 400px;
  204. text-align: left;
  205. }
  206. #note-content {
  207. padding: 5px;
  208. display:inline-block;
  209. width: 350px;
  210. .content {
  211. overflow: auto;
  212. max-height: 200px;
  213. }
  214. }
  215. #show-terms-dialog {
  216. cursor: pointer;
  217. font-weight: bold;
  218. }
  219. // hide the download entry on the menu
  220. // on public share when NOT on mobile
  221. @media only screen and (min-width: variables.$breakpoint-mobile + 1) {
  222. #body-public {
  223. .header-right {
  224. #header-actions-menu {
  225. > ul > li#download {
  226. display: none;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. // hide the primary on public share on mobile
  233. @media only screen and (max-width: variables.$breakpoint-mobile) {
  234. #body-public {
  235. .header-right {
  236. #header-primary-action {
  237. display: none;
  238. }
  239. }
  240. }
  241. }