_provider.scss 7.3 KB

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