style.scss 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. @import '@uppy/core/src/_utils.scss';
  2. @import '@uppy/core/src/_variables.scss';
  3. @import './style/uppy-ProviderBrowser-viewType--grid';
  4. @import './style/uppy-ProviderBrowser-viewType--list';
  5. @import './style/uppy-ProviderBrowserItem-checkbox';
  6. @import './style/uppy-SearchProvider-input.scss';
  7. .uppy-DashboardContent-panelBody {
  8. display: flex;
  9. flex: 1;
  10. align-items: center;
  11. justify-content: center;
  12. [data-uppy-theme='dark'] & {
  13. background-color: $gray-900;
  14. }
  15. }
  16. .uppy-Provider-auth,
  17. .uppy-Provider-error,
  18. .uppy-Provider-loading,
  19. .uppy-Provider-empty {
  20. display: flex;
  21. flex: 1;
  22. flex-flow: column wrap;
  23. align-items: center;
  24. justify-content: center;
  25. color: $gray-500;
  26. }
  27. .uppy-Provider-empty {
  28. color: $gray-500;
  29. }
  30. .uppy-Provider-authIcon svg {
  31. width: 100px;
  32. height: 75px;
  33. }
  34. .uppy-Provider-authTitle {
  35. max-width: 500px;
  36. margin-bottom: 30px;
  37. padding: 0 15px;
  38. color: $gray-600;
  39. font-weight: 400;
  40. font-size: 17px;
  41. line-height: 1.4;
  42. text-align: center;
  43. .uppy-size--md & {
  44. font-size: 20px;
  45. }
  46. [data-uppy-theme='dark'] & {
  47. color: $gray-300;
  48. }
  49. }
  50. .uppy-Provider-btn-google {
  51. display: flex;
  52. align-items: center;
  53. padding: 8px 12px !important;
  54. background: #4285f4;
  55. &:hover {
  56. background-color: darken(#4285f4, 10%);
  57. }
  58. &:focus {
  59. outline: none;
  60. box-shadow: 0 0 0 3px rgba(#4285f4, 0.4);
  61. }
  62. svg {
  63. margin-right: 8px;
  64. }
  65. }
  66. .uppy-Provider-breadcrumbs {
  67. flex: 1;
  68. margin-bottom: 10px;
  69. color: $gray-700;
  70. font-size: 12px;
  71. text-align: start;
  72. .uppy-size--md & {
  73. margin-bottom: 0;
  74. }
  75. [data-uppy-theme='dark'] & {
  76. color: $gray-200;
  77. }
  78. }
  79. .uppy-Provider-breadcrumbsIcon {
  80. display: inline-block;
  81. color: $gray-700;
  82. line-height: 1;
  83. vertical-align: middle;
  84. margin-inline-end: 4px;
  85. }
  86. .uppy-Provider-breadcrumbsIcon svg {
  87. width: 13px;
  88. height: 13px;
  89. fill: $gray-700;
  90. }
  91. .uppy-Provider-breadcrumbs button {
  92. @include highlight-focus;
  93. display: inline-block;
  94. // for focus
  95. padding: 4px;
  96. line-height: inherit;
  97. border-radius: 3px;
  98. &:not(:last-of-type) {
  99. text-decoration: underline;
  100. }
  101. &:last-of-type {
  102. color: $gray-800;
  103. font-weight: 500;
  104. cursor: normal;
  105. pointer-events: none;
  106. }
  107. &:hover {
  108. cursor: pointer;
  109. }
  110. [data-uppy-theme='dark'] & {
  111. color: $gray-200;
  112. }
  113. }
  114. // ...uppy-Provider-breadcrumbs|
  115. .uppy-ProviderBrowser {
  116. display: flex;
  117. flex: 1;
  118. flex-direction: column;
  119. height: 100%;
  120. font-weight: 400;
  121. font-size: 14px;
  122. }
  123. .uppy-ProviderBrowser-user {
  124. margin: 0 8px 0 0;
  125. color: $gray-800;
  126. font-weight: 500;
  127. [data-uppy-theme='dark'] & {
  128. color: $gray-200;
  129. }
  130. }
  131. .uppy-ProviderBrowser-user::after {
  132. position: relative;
  133. color: $gray-500;
  134. font-weight: normal;
  135. content: '\00B7';
  136. inset-inline-start: 4px;
  137. }
  138. .uppy-ProviderBrowser-header {
  139. position: relative;
  140. z-index: $zIndex-2;
  141. border-bottom: 1px solid $gray-200;
  142. [data-uppy-theme='dark'] & {
  143. border-bottom: 1px solid $gray-800;
  144. }
  145. }
  146. .uppy-ProviderBrowser-headerBar {
  147. z-index: $zIndex-2;
  148. padding: 7px 15px;
  149. color: $gray-600;
  150. font-size: 12px;
  151. line-height: 1.4;
  152. background-color: $gray-50;
  153. .uppy-size--md & {
  154. display: flex;
  155. align-items: center;
  156. }
  157. [data-uppy-theme='dark'] & {
  158. background-color: $gray-900;
  159. }
  160. }
  161. .uppy-ProviderBrowser-headerBar--simple {
  162. display: block;
  163. justify-content: center;
  164. text-align: center;
  165. }
  166. .uppy-ProviderBrowser-headerBar--simple .uppy-Provider-breadcrumbsWrap {
  167. display: inline-block;
  168. flex: none;
  169. vertical-align: middle;
  170. }
  171. // Search
  172. .uppy-ProviderBrowser-searchFilter {
  173. position: relative;
  174. display: flex;
  175. align-items: center;
  176. width: 100%;
  177. height: 30px;
  178. padding-left: 8px;
  179. padding-right: 8px;
  180. margin-top: 15px;
  181. margin-bottom: 15px;
  182. }
  183. .uppy-ProviderBrowser-searchFilterInput {
  184. z-index: $zIndex-2;
  185. width: 100%;
  186. height: 30px;
  187. font-size: 13px;
  188. font-family: $font-family-base;
  189. line-height: 1.4;
  190. background-color: $gray-200;
  191. border: 0;
  192. border-radius: 4px;
  193. outline: 0;
  194. padding-inline-start: 30px;
  195. padding-inline-end: 30px;
  196. color: $gray-800;
  197. &::-webkit-search-cancel-button {
  198. display: none;
  199. }
  200. [data-uppy-theme='dark'] & {
  201. color: $gray-200;
  202. background-color: $gray-900;
  203. }
  204. }
  205. .uppy-ProviderBrowser-searchFilterInput:focus {
  206. background-color: $gray-300;
  207. border: 0;
  208. [data-uppy-theme='dark'] & {
  209. background-color: $gray-800;
  210. }
  211. }
  212. .uppy-ProviderBrowser-searchFilterIcon {
  213. position: absolute;
  214. z-index: $zIndex-3;
  215. width: 12px;
  216. height: 12px;
  217. color: $gray-600;
  218. inset-inline-start: 16px;
  219. }
  220. .uppy-ProviderBrowser-searchFilterInput::placeholder {
  221. color: $gray-500;
  222. opacity: 1;
  223. }
  224. .uppy-ProviderBrowser-searchFilterReset {
  225. @include blue-border-focus;
  226. border-radius: 3px;
  227. position: absolute;
  228. z-index: $zIndex-3;
  229. width: 22px;
  230. height: 22px;
  231. padding: 6px;
  232. color: $gray-500;
  233. cursor: pointer;
  234. inset-inline-end: 16px;
  235. &:hover {
  236. color: $gray-600;
  237. }
  238. svg {
  239. vertical-align: text-top;
  240. }
  241. }
  242. .uppy-ProviderBrowser-userLogout {
  243. @include highlight-focus;
  244. // for focus
  245. padding: 4px;
  246. color: $blue;
  247. line-height: inherit;
  248. border-radius: 3px;
  249. cursor: pointer;
  250. &:hover {
  251. text-decoration: underline;
  252. }
  253. [data-uppy-theme='dark'] & {
  254. color: $gray-200;
  255. }
  256. }
  257. .uppy-ProviderBrowser-body {
  258. position: relative;
  259. flex: 1;
  260. }
  261. .uppy-ProviderBrowser-list {
  262. position: absolute;
  263. top: 0;
  264. right: 0;
  265. bottom: 0;
  266. left: 0;
  267. display: block;
  268. flex: 1;
  269. width: 100%;
  270. height: 100%;
  271. margin: 0;
  272. padding: 0;
  273. overflow-x: hidden;
  274. overflow-y: auto;
  275. list-style: none;
  276. background-color: $white;
  277. border-spacing: 0;
  278. -webkit-overflow-scrolling: touch;
  279. [data-uppy-theme='dark'] & {
  280. background-color: $gray-900;
  281. }
  282. &:focus {
  283. outline: none;
  284. }
  285. }
  286. .uppy-ProviderBrowserItem-inner {
  287. font-weight: 500;
  288. font-size: 13px;
  289. cursor: pointer;
  290. }
  291. .uppy-ProviderBrowser-footer {
  292. display: flex;
  293. align-items: center;
  294. justify-content: space-between;
  295. padding: 15px;
  296. background-color: $white;
  297. border-top: 1px solid $gray-200;
  298. & button {
  299. margin-inline-end: 8px;
  300. }
  301. [data-uppy-theme='dark'] & {
  302. background-color: $gray-900;
  303. border-top: 1px solid $gray-800;
  304. }
  305. }
  306. .uppy-ProviderBrowser-footer-buttons {
  307. flex-shrink: 0;
  308. }
  309. .uppy-ProviderBrowser-footer-error {
  310. color: $red;
  311. line-height: 18px;
  312. }
  313. @media (max-width: 426px) {
  314. .uppy-ProviderBrowser-footer {
  315. flex-direction: column-reverse;
  316. align-items: stretch;
  317. }
  318. .uppy-ProviderBrowser-footer-error {
  319. padding-bottom: 10px;
  320. }
  321. }
  322. /* https://stackoverflow.com/a/33082658/6519037 */
  323. .picker-dialog-bg {
  324. z-index: 20000 !important;
  325. }
  326. .picker-dialog {
  327. z-index: 20001 !important;
  328. }