public.scss 3.4 KB

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