style.scss 6.0 KB

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