public.scss 3.5 KB

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