upload.scss 4.3 KB

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