_provider.scss 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. .uppy-Provider-auth, .uppy-Provider-error, .uppy-Provider-loading {
  2. display: flex;
  3. align-items: center;
  4. justify-content: center;
  5. flex-flow: column wrap;
  6. height: 100%;
  7. }
  8. .uppy-Provider-authTitle {
  9. font-size: 22px;
  10. line-height: 1.35;
  11. font-weight: 300;
  12. margin-bottom: 30px;
  13. padding: 0 15px;
  14. max-width: 500px;
  15. text-align: center;
  16. }
  17. .uppy-Provider-authBtn {
  18. @include reset-button;
  19. border-radius: 6px;
  20. background-color: $color-cornflower-blue;
  21. color: $color-white;
  22. font-size: 20px;
  23. font-weight: 400;
  24. padding: 12px 46px;
  25. transition: background-color 0.3s;
  26. text-decoration: none;
  27. margin-bottom: 20px;
  28. cursor: pointer;
  29. &:hover {
  30. background-color: darken($color-cornflower-blue, 10%);
  31. color: $color-white;
  32. }
  33. }
  34. .uppy-Provider-breadcrumbs button {
  35. @include reset-button;
  36. cursor: pointer;
  37. font-size: 14px;
  38. }
  39. .uppy-Provider-breadcrumbs button:hover {
  40. text-decoration: underline;
  41. }
  42. .uppy-Provider-breadcrumbs button:focus {
  43. outline: 1px dotted #aaa;
  44. }
  45. .uppy-Provider-breadcrumbs li {
  46. display: inline-block;
  47. margin: 0;
  48. }
  49. // .uppy-Provider-breadcrumbs li:not(:last-child):after {
  50. // content: ' /';
  51. // }
  52. .uppy-Provider-breadcrumbs li ~ li:before {
  53. content: '/';
  54. padding: 0 10px;
  55. }
  56. .uppy-ProviderBrowser {
  57. display: flex;
  58. flex-direction: column;
  59. font-size: 13px;
  60. font-weight: 400;
  61. height: 100%;
  62. }
  63. .uppy-ProviderBrowser-user {
  64. margin: 16px 0;
  65. }
  66. .uppy-ProviderBrowser-header {
  67. z-index: $zIndex-2;
  68. border-bottom: 1px solid lighten($color-asphalt-gray, 60%);
  69. position: relative;
  70. }
  71. ::-webkit-input-placeholder {
  72. color: rgba(119,119,119,0.75);
  73. }
  74. ::-moz-placeholder {
  75. color: rgba(119,119,119,0.75);
  76. }
  77. :-ms-input-placeholder {
  78. color: rgba(119,119,119,0.75);
  79. }
  80. .uppy-ProviderBrowser-headerBar {
  81. height: 50px;
  82. line-height: 50px;
  83. display: flex;
  84. align-items: center;
  85. padding-left: 16px;
  86. background-color: lighten($color-gray, 40%);
  87. z-index: $zIndex-2;
  88. }
  89. .uppy-ProviderBrowser-search {
  90. height: 50px;
  91. position: absolute;
  92. top: 0;
  93. left: 0;
  94. width: 100%;
  95. z-index: $zIndex-3;
  96. background-color: lighten($color-gray, 40%);
  97. transform: translate(0, -50px);
  98. transition: all .2s;
  99. display: flex;
  100. align-items: center;
  101. }
  102. .uppy-ProviderBrowser-search:not([aria-hidden=true]) {
  103. transform: translate(0, 0);
  104. }
  105. .uppy-ProviderBrowser-search input {
  106. flex: 1;
  107. background-color: transparent;
  108. outline: 0;
  109. font-size: 15px;
  110. font-weight: 400;
  111. line-height: 50px;
  112. border: 0;
  113. padding: 0 16px;
  114. }
  115. .uppy-ProviderBrowser-searchToggle {
  116. @include reset-button();
  117. width: 15px;
  118. cursor: pointer;
  119. color: $color-gray;
  120. transition: all .2s;
  121. &:hover { color: $color-black;
  122. }
  123. }
  124. .uppy-ProviderBrowser-searchClose {
  125. @include reset-button();
  126. cursor: pointer;
  127. width: 12px;
  128. color: $color-gray;
  129. transition: all .2s;
  130. position: relative;
  131. right: 16px;
  132. &:hover { color: $color-black; }
  133. }
  134. .uppy-ProviderBrowser-userLogout {
  135. @include reset-button();
  136. margin-right: 16px;
  137. cursor: pointer;
  138. &:hover { text-decoration: underline; }
  139. }
  140. .uppy-Provider-breadcrumbs {
  141. flex: 1;
  142. color: $color-black;
  143. font-size: 12px;
  144. list-style-type: none;
  145. padding: 0;
  146. margin: 0;
  147. margin-left: 16px;
  148. }
  149. .uppy-ProviderBrowser-breadcrumbs span {
  150. font-size: 16px;
  151. margin-left: 32px;
  152. }
  153. .uppy-ProviderBrowser-breadcrumbs span.active {
  154. color: $color-asphalt-gray;
  155. flex: 1;
  156. font-weight: 500;
  157. }
  158. .uppy-ProviderBrowser-body {
  159. flex: 1;
  160. position: relative;
  161. }
  162. .uppy-ProviderBrowser-list {
  163. flex: 1;
  164. position: relative;
  165. display: block;
  166. width: 100%;
  167. height: 100%;
  168. background-color: $color-white;
  169. border-spacing: 0;
  170. overflow-x: hidden;
  171. overflow-y: auto;
  172. position: absolute;
  173. top: 0;
  174. bottom: 0;
  175. left: 0;
  176. right: 0;
  177. list-style: none;
  178. margin: 0;
  179. padding: 0;
  180. }
  181. .uppy-ProviderBrowserItem-inner {
  182. @include reset-button();
  183. cursor: pointer;
  184. font-weight: 600;
  185. }
  186. // ***
  187. // View type: list
  188. // ***
  189. .uppy-ProviderBrowser-viewType--list {
  190. .uppy-ProviderBrowser-list {
  191. padding-top: 6px;
  192. }
  193. .uppy-ProviderBrowserItem {
  194. padding: 10px 14px;
  195. }
  196. .uppy-ProviderBrowserItem-inner img {
  197. vertical-align: text-top;
  198. margin-right: 3px;
  199. }
  200. .uppy-ProviderBrowserItem-checkbox label:before {
  201. border-color: rgba($color-asphalt-gray, 0.3);
  202. }
  203. .uppy-ProviderBrowserItem-checkbox input:checked + label:before {
  204. border-color: $color-cornflower-blue;
  205. }
  206. }
  207. // ***
  208. // View type: grid
  209. // ***
  210. .uppy-ProviderBrowser-viewType--grid {
  211. .uppy-ProviderBrowser-list {
  212. display: flex;
  213. flex-direction: row;
  214. flex-wrap: wrap;
  215. justify-content: space-between;
  216. padding: 3px;
  217. }
  218. .uppy-ProviderBrowser-list:after {
  219. content: '';
  220. flex: auto;
  221. }
  222. .uppy-ProviderBrowserItem {
  223. display: inline-block;
  224. width: 33.3333%;
  225. position: relative;
  226. padding: 3px;
  227. opacity: 0.9;
  228. }
  229. .uppy-ProviderBrowserItem--selected {
  230. opacity: 1;
  231. }
  232. .uppy-ProviderBrowserItem-inner {
  233. width: 100%;
  234. height: 100%;
  235. }
  236. .uppy-ProviderBrowserItem img {
  237. width: 100%;
  238. height: 100%;
  239. vertical-align: middle;
  240. }
  241. .uppy-ProviderBrowserItem-checkbox {
  242. position: absolute;
  243. top: 8px;
  244. right: 10px;
  245. margin-right: 0;
  246. }
  247. .uppy-ProviderBrowserItem-checkbox label:before {
  248. background-color: $color-cornflower-blue;
  249. }
  250. // Hide checkbox when unchecked in grid view
  251. .uppy-ProviderBrowserItem-checkbox input + label {
  252. opacity: 0;
  253. }
  254. // Unhide the checkbox on the checked state
  255. .uppy-ProviderBrowserItem-checkbox input:checked + label {
  256. opacity: 1;
  257. }
  258. }
  259. .uppy-Dashboard--wide .uppy-ProviderBrowser-viewType--grid .uppy-ProviderBrowserItem {
  260. width: 20%;
  261. }
  262. .uppy-ProviderBrowserItem-checkbox input {
  263. opacity: 0;
  264. }
  265. // https://medium.com/claritydesignsystem/pure-css-accessible-checkboxes-and-radios-buttons-54063e759bb3
  266. .uppy-ProviderBrowserItem-checkbox {
  267. position: relative;
  268. display: inline-block;
  269. top: -3px;
  270. margin-right: 25px;
  271. }
  272. .uppy-ProviderBrowserItem-checkbox label {
  273. display: block;
  274. }
  275. .uppy-ProviderBrowserItem-checkbox label::before,
  276. .uppy-ProviderBrowserItem-checkbox label::after {
  277. position: absolute;
  278. cursor: pointer;
  279. }
  280. // Outer circle
  281. .uppy-ProviderBrowserItem-checkbox label:before {
  282. content: "";
  283. display: inline-block;
  284. height: 20px;
  285. width: 20px;
  286. top: 0;
  287. border: 1px solid $color-cornflower-blue;
  288. background-color: $color-white;
  289. border-radius: 50%;
  290. }
  291. // Inner checkbox
  292. .uppy-ProviderBrowserItem-checkbox label:after {
  293. content: '';
  294. display: inline-block;
  295. height: 5px;
  296. width: 8px;
  297. left: 6px;
  298. top: 7px;
  299. border-left: 2px solid $color-white;
  300. border-bottom: 2px solid $color-white;
  301. transform: rotate(-45deg);
  302. }
  303. // Hide the checkmark by default
  304. .uppy-ProviderBrowserItem-checkbox input + label::after {
  305. content: none;
  306. }
  307. // Unhide the checkmark on the checked state
  308. .uppy-ProviderBrowserItem-checkbox input:checked + label::after {
  309. content: '';
  310. }
  311. .uppy-ProviderBrowserItem-checkbox input:checked + label::before {
  312. background-color: $color-cornflower-blue;
  313. }
  314. // Adding focus styles on the outer-box of the fake checkbox*/
  315. .uppy-ProviderBrowserItem-checkbox input:focus + label::before {
  316. outline: rgb(59, 153, 252) auto 5px;
  317. }
  318. .uppy-ProviderBrowser-doneBtn {
  319. position: absolute;
  320. bottom: 16px;
  321. right: 16px;
  322. z-index: $zIndex-3;
  323. width: 50px;
  324. height: 50px;
  325. .uppy-Dashboard--wide & {
  326. width: 60px;
  327. height: 60px;
  328. }
  329. }
  330. .uppy-ProviderBrowser-doneBtn .UppyIcon {
  331. width: 30px;
  332. height: 30px;
  333. }