upload.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. /*!
  2. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  3. * SPDX-FileCopyrightText: 2013-2016 ownCloud, Inc.
  4. * SPDX-License-Identifier: AGPL-3.0-only
  5. */
  6. #upload {
  7. box-sizing: border-box;
  8. height: 36px;
  9. width: 39px;
  10. padding: 0 !important; /* override default control bar button padding */
  11. margin-inline-start: 3px;
  12. overflow: hidden;
  13. vertical-align: top;
  14. position: relative;
  15. z-index: -20;
  16. }
  17. #upload .icon-upload {
  18. position: relative;
  19. display: block;
  20. width: 100%;
  21. height: 44px;
  22. width: 44px;
  23. margin: -5px -3px;
  24. cursor: pointer;
  25. z-index: 10;
  26. opacity: .65;
  27. }
  28. .file_upload_target { display:none; }
  29. .file_upload_form { display:inline; float:left; margin:0; padding:0; cursor:pointer; overflow:visible; }
  30. .uploadprogresswrapper, .uploadprogresswrapper * {
  31. box-sizing: border-box;
  32. }
  33. .uploadprogresswrapper {
  34. display: inline-block;
  35. vertical-align: top;
  36. height: 36px;
  37. margin-inline-start: 3px;
  38. }
  39. .uploadprogresswrapper > input[type='button'] {
  40. height: 36px;
  41. margin-inline-start: 3px;
  42. }
  43. #uploadprogressbar {
  44. border-color: var(--color-border-dark);
  45. border-radius: var(--border-radius-pill) 0 0 var(--border-radius-pill);
  46. border-inline-end: 0;
  47. position:relative;
  48. float: left;
  49. width: 200px;
  50. height: 44px;
  51. display:inline-block;
  52. text-align: center;
  53. .ui-progressbar-value {
  54. margin-top:.1em;
  55. }
  56. }
  57. #uploadprogressbar .ui-progressbar-value.ui-widget-header.ui-corner-left {
  58. height: calc(100% + 2px);
  59. top: -2px;
  60. inset-inline-start: -1px;
  61. position: absolute;
  62. overflow: hidden;
  63. background-color: var(--color-primary-element);
  64. }
  65. #uploadprogressbar .label {
  66. top: 8px;
  67. opacity: 1;
  68. overflow: hidden;
  69. white-space: nowrap;
  70. font-weight: normal;
  71. }
  72. #uploadprogressbar .label.inner {
  73. color: var(--color-primary-element-text);
  74. position: absolute;
  75. display: block;
  76. width: 200px;
  77. }
  78. #uploadprogressbar .label.outer {
  79. position: relative;
  80. color: var(--color-main-text);
  81. }
  82. #uploadprogressbar .desktop {
  83. display: block;
  84. }
  85. #uploadprogressbar .mobile {
  86. display: none;
  87. }
  88. #uploadprogressbar + .stop {
  89. border-start-start-radius: 0;
  90. border-end-start-radius: 0;
  91. }
  92. .oc-dialog .fileexists {
  93. -webkit-touch-callout: none;
  94. -webkit-user-select: none;
  95. -khtml-user-select: none;
  96. -moz-user-select: none;
  97. -ms-user-select: none;
  98. user-select: none;
  99. margin-bottom: 30px;
  100. }
  101. .oc-dialog .fileexists .conflict .filename,
  102. .oc-dialog .fileexists .conflict .mtime,
  103. .oc-dialog .fileexists .conflict .size {
  104. -webkit-touch-callout: initial;
  105. -webkit-user-select: initial;
  106. -khtml-user-select: initial;
  107. -moz-user-select: initial;
  108. -ms-user-select: initial;
  109. user-select: initial;
  110. }
  111. .oc-dialog .fileexists .conflict .message {
  112. color: #e9322d;
  113. }
  114. .oc-dialog .fileexists table {
  115. width: 100%;
  116. }
  117. .oc-dialog .fileexists th {
  118. padding-inline: 0;
  119. }
  120. .oc-dialog .fileexists th input[type='checkbox'] {
  121. margin-inline-end: 3px;
  122. }
  123. .oc-dialog .fileexists th:first-child {
  124. width: 225px;
  125. }
  126. .oc-dialog .fileexists th label {
  127. font-weight: normal;
  128. color: var(--color-main-text);
  129. }
  130. .oc-dialog .fileexists th .count {
  131. margin-inline-start: 3px;
  132. }
  133. .oc-dialog .fileexists .conflicts .template {
  134. display: none;
  135. }
  136. .oc-dialog .fileexists .conflict {
  137. width: 100%;
  138. height: 85px;
  139. }
  140. .oc-dialog .fileexists .conflict .filename {
  141. color:#777;
  142. word-break: break-all;
  143. clear: left;
  144. }
  145. .oc-dialog .fileexists .icon {
  146. width: 64px;
  147. height: 64px;
  148. margin: 0px 5px 5px 5px;
  149. background-repeat: no-repeat;
  150. background-size: 64px 64px;
  151. float: left;
  152. }
  153. .oc-dialog .fileexists .original,
  154. .oc-dialog .fileexists .replacement {
  155. float: left;
  156. width: 50%;
  157. }
  158. .oc-dialog .fileexists .conflicts {
  159. overflow-y: auto;
  160. max-height: 225px;
  161. }
  162. .oc-dialog .fileexists .conflict input[type='checkbox'] {
  163. float: left;
  164. }
  165. .oc-dialog .fileexists #allfileslabel {
  166. float:right;
  167. }
  168. .oc-dialog .fileexists #allfiles {
  169. vertical-align: bottom;
  170. position: relative;
  171. top: -3px;
  172. }
  173. .oc-dialog .fileexists #allfiles + span{
  174. vertical-align: bottom;
  175. }
  176. .oc-dialog .oc-dialog-buttonrow {
  177. width:100%;
  178. text-align:right;
  179. .cancel {
  180. float:left;
  181. }
  182. }
  183. .highlightUploaded {
  184. -webkit-animation: highlightAnimation 2s 1;
  185. -moz-animation: highlightAnimation 2s 1;
  186. -o-animation: highlightAnimation 2s 1;
  187. animation: highlightAnimation 2s 1;
  188. }
  189. @-webkit-keyframes highlightAnimation {
  190. 0% { background-color: rgba(255, 255, 140, 1); }
  191. 100% { background-color: rgba(0, 0, 0, 0); }
  192. }
  193. @-moz-keyframes highlightAnimation {
  194. 0% { background-color: rgba(255, 255, 140, 1); }
  195. 100% { background-color: rgba(0, 0, 0, 0); }
  196. }
  197. @-o-keyframes highlightAnimation {
  198. 0% { background-color: rgba(255, 255, 140, 1); }
  199. 100% { background-color: rgba(0, 0, 0, 0); }
  200. }
  201. @keyframes highlightAnimation {
  202. 0% { background-color: rgba(255, 255, 140, 1); }
  203. 100% { background-color: rgba(0, 0, 0, 0); }
  204. }