upload.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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-left: 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-left: 3px;
  38. }
  39. .uploadprogresswrapper > input[type='button'] {
  40. height: 36px;
  41. margin-left: 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-right: 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. left: -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-top-left-radius: 0;
  90. border-bottom-left-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-left: 0;
  119. padding-right: 0;
  120. }
  121. .oc-dialog .fileexists th input[type='checkbox'] {
  122. margin-right: 3px;
  123. }
  124. .oc-dialog .fileexists th:first-child {
  125. width: 225px;
  126. }
  127. .oc-dialog .fileexists th label {
  128. font-weight: normal;
  129. color: var(--color-main-text);
  130. }
  131. .oc-dialog .fileexists th .count {
  132. margin-left: 3px;
  133. }
  134. .oc-dialog .fileexists .conflicts .template {
  135. display: none;
  136. }
  137. .oc-dialog .fileexists .conflict {
  138. width: 100%;
  139. height: 85px;
  140. }
  141. .oc-dialog .fileexists .conflict .filename {
  142. color:#777;
  143. word-break: break-all;
  144. clear: left;
  145. }
  146. .oc-dialog .fileexists .icon {
  147. width: 64px;
  148. height: 64px;
  149. margin: 0px 5px 5px 5px;
  150. background-repeat: no-repeat;
  151. background-size: 64px 64px;
  152. float: left;
  153. }
  154. .oc-dialog .fileexists .original,
  155. .oc-dialog .fileexists .replacement {
  156. float: left;
  157. width: 50%;
  158. }
  159. .oc-dialog .fileexists .conflicts {
  160. overflow-y: auto;
  161. max-height: 225px;
  162. }
  163. .oc-dialog .fileexists .conflict input[type='checkbox'] {
  164. float: left;
  165. }
  166. .oc-dialog .fileexists #allfileslabel {
  167. float:right;
  168. }
  169. .oc-dialog .fileexists #allfiles {
  170. vertical-align: bottom;
  171. position: relative;
  172. top: -3px;
  173. }
  174. .oc-dialog .fileexists #allfiles + span{
  175. vertical-align: bottom;
  176. }
  177. .oc-dialog .oc-dialog-buttonrow {
  178. width:100%;
  179. text-align:right;
  180. .cancel {
  181. float:left;
  182. }
  183. }
  184. .highlightUploaded {
  185. -webkit-animation: highlightAnimation 2s 1;
  186. -moz-animation: highlightAnimation 2s 1;
  187. -o-animation: highlightAnimation 2s 1;
  188. animation: highlightAnimation 2s 1;
  189. }
  190. @-webkit-keyframes highlightAnimation {
  191. 0% { background-color: rgba(255, 255, 140, 1); }
  192. 100% { background-color: rgba(0, 0, 0, 0); }
  193. }
  194. @-moz-keyframes highlightAnimation {
  195. 0% { background-color: rgba(255, 255, 140, 1); }
  196. 100% { background-color: rgba(0, 0, 0, 0); }
  197. }
  198. @-o-keyframes highlightAnimation {
  199. 0% { background-color: rgba(255, 255, 140, 1); }
  200. 100% { background-color: rgba(0, 0, 0, 0); }
  201. }
  202. @keyframes highlightAnimation {
  203. 0% { background-color: rgba(255, 255, 140, 1); }
  204. 100% { background-color: rgba(0, 0, 0, 0); }
  205. }