file_sync.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608
  1. .cp__file-sync {
  2. &-indicator {
  3. a.cloud {
  4. position: relative;
  5. opacity: 1 !important;
  6. cursor: pointer;
  7. &:active {
  8. opacity: .5 !important;
  9. }
  10. .ti {
  11. opacity: .5;
  12. }
  13. &:hover .ti {
  14. opacity: .9;
  15. }
  16. &.on {
  17. &:after {
  18. content: " ";
  19. position: absolute;
  20. bottom: 10px;
  21. right: 8px;
  22. width: 7px;
  23. height: 7px;
  24. background-color: var(--ls-color-file-sync-pending);
  25. border-radius: 100%;
  26. opacity: 1;
  27. }
  28. &.syncing {
  29. &:after {
  30. background-color: var(--ls-color-file-sync-pending);
  31. }
  32. }
  33. &.queuing {
  34. &:after {
  35. background-color: var(--ls-color-file-sync-pending);
  36. }
  37. }
  38. &.idle {
  39. &:after {
  40. background-color: var(--ls-color-file-sync-idle);
  41. }
  42. }
  43. }
  44. }
  45. .debug-status {
  46. position: absolute;
  47. top: 0;
  48. right: 0;
  49. background: #bd0000;
  50. color: white;
  51. font-size: 14px;
  52. padding: 5px 8px;
  53. }
  54. .dropdown-wrapper {
  55. width: 90vw;
  56. position: fixed;
  57. right: 5vw;
  58. .head-ctls {
  59. position: absolute;
  60. right: 10px;
  61. transform: translateY(8px);
  62. }
  63. .cp__file-sync-indicator-progress-pane {
  64. }
  65. @screen md {
  66. width: 400px;
  67. position: absolute;
  68. right: -10px;
  69. }
  70. > .py-1 {
  71. padding: 0;
  72. }
  73. .menu-link {
  74. white-space: normal;
  75. word-break: break-all;
  76. font-size: 13px;
  77. padding: 6px 20px;
  78. > div.flex > div {
  79. margin: 0 !important;
  80. flex: 1;
  81. }
  82. &.is-first-placeholder {
  83. padding: 0 !important;
  84. user-select: none;
  85. pointer-events: none;
  86. margin-top: 5px;
  87. &:hover {
  88. background-color: unset !important;
  89. }
  90. }
  91. i.ti {
  92. transform: translate(0);
  93. margin-right: 5px;
  94. }
  95. }
  96. .files-history.is-first, .file-item.is-first {
  97. margin-top: 40px;
  98. position: relative;
  99. &:before {
  100. margin-top: -30px;
  101. margin-left: -15px;
  102. margin-right: -15px;
  103. content: "Recently Synced";
  104. display: flex;
  105. font-weight: 600;
  106. font-size: 11px;
  107. text-transform: uppercase;
  108. opacity: .4;
  109. padding: 2px 10px 6px;
  110. }
  111. }
  112. .file-item.is-first {
  113. margin-top: 5px;
  114. padding: 0 6px;
  115. &:before {
  116. margin: 0;
  117. content: "Upcoming Sync";
  118. }
  119. }
  120. }
  121. .menu-links-outer {
  122. @apply py-0;
  123. }
  124. .menu-links-wrapper {
  125. padding: 4px 0;
  126. max-height: calc(70vh - 120px) !important;
  127. overflow-y: auto;
  128. .title-wrap {
  129. flex: 1;
  130. }
  131. }
  132. &.is-enabled-progress-pane {
  133. .head-ctls {
  134. display: none;
  135. }
  136. .menu-links-outer {
  137. &.is-list-active {
  138. .menu-links-wrapper, .head-ctls {
  139. display: block !important;
  140. }
  141. .menu-links-wrapper {
  142. overflow-y: auto;
  143. }
  144. }
  145. }
  146. .menu-links-wrapper {
  147. @apply p-0 hidden overflow-hidden;
  148. > .menu-link:last-child {
  149. padding-bottom: 16px;
  150. }
  151. }
  152. }
  153. }
  154. &-indicator-progress-pane {
  155. @apply px-4 pt-4 pb-3 w-full overflow-hidden;
  156. -webkit-font-smoothing: antialiased;
  157. background-color: var(--ls-quaternary-background-color);
  158. .ti {
  159. @apply translate-y-0;
  160. }
  161. > .a {
  162. @apply flex justify-between text-gray-200;
  163. > .al {
  164. @apply flex text-base flex-1 w-0.5 items-center space-x-2 font-semibold;
  165. > strong {
  166. @apply flex items-center justify-center font-extralight text-gray-800;
  167. background-color: var(--ls-color-file-sync-pending);
  168. border-radius: 4px;
  169. height: 24px;
  170. width: 24px;
  171. &.is-no-active {
  172. background-color: var(--ls-color-file-sync-idle);
  173. }
  174. }
  175. > span {
  176. @apply w-full overflow-hidden overflow-ellipsis pr-2;
  177. }
  178. }
  179. > .ar {
  180. @apply relative;
  181. top: -4px;
  182. }
  183. }
  184. > .b {
  185. @apply flex items-center justify-between pt-2 pb-3 text-sm;
  186. .bl {
  187. @apply flex items-center leading-none pt-2;
  188. }
  189. }
  190. > .c {
  191. @apply flex items-center text-gray-200 relative;
  192. top: -3px;
  193. .cl {
  194. @apply text-sm leading-6 flex flex-1 items-center overflow-hidden;
  195. }
  196. .progress-bar {
  197. @apply flex flex-1 items-center overflow-hidden relative;
  198. height: 7px;
  199. top: 1px;
  200. border-radius: 4px;
  201. background-color: var(--ls-secondary-background-color);
  202. i {
  203. transition: width .5s;
  204. height: 100%;
  205. width: 0;
  206. border-radius: 4px;
  207. background-color: var(--ls-link-text-color);
  208. }
  209. }
  210. }
  211. }
  212. &-indicator-progress-pie {
  213. width: 16px;
  214. height: 16px;
  215. border-radius: 50%;
  216. display: inline-block;
  217. margin-right: 2px;
  218. margin-bottom: -1px;
  219. }
  220. &-page-histories {
  221. @apply flex;
  222. width: unset;
  223. height: 85vh;
  224. margin: 20px -32px -32px -32px;
  225. overflow: hidden;
  226. border-top: 1px solid var(--ls-tertiary-border-color);
  227. @screen md {
  228. width: 90vw;
  229. }
  230. > h1 {
  231. white-space: nowrap;
  232. overflow: hidden;
  233. text-overflow: ellipsis;
  234. width: 90%;
  235. }
  236. &-left {
  237. @apply flex h-full;
  238. visibility: hidden;
  239. flex-basis: 100%;
  240. .version-list {
  241. @apply list-none m-0 h-full;
  242. overflow-y: auto;
  243. flex-basis: 30%;
  244. border-right: 1px solid var(--ls-tertiary-border-color);
  245. &-item {
  246. .item-link {
  247. @apply py-2 px-3;
  248. border-bottom: 1px solid var(--ls-tertiary-border-color);
  249. transition: background-color .3s;
  250. &:hover, &.active {
  251. background-color: var(--ls-tertiary-background-color);
  252. }
  253. &:active {
  254. opacity: .8;
  255. }
  256. > strong {
  257. display: block;
  258. white-space: nowrap;
  259. overflow: hidden;
  260. text-overflow: ellipsis;
  261. }
  262. }
  263. }
  264. }
  265. > article {
  266. @apply flex-1 overflow-hidden h-full;
  267. /* fix inner content overflow */
  268. width: 0;
  269. .raw-content-editor, .extensions__code {
  270. height: 99.9%;
  271. }
  272. .extensions__code-lang {
  273. display: none;
  274. }
  275. .code-editor {
  276. margin-top: 0;
  277. }
  278. }
  279. @screen md {
  280. flex-basis: 60%;
  281. }
  282. }
  283. &-right {
  284. @apply flex-1 h-full hidden pt-4;
  285. visibility: hidden;
  286. border-left: 1px solid var(--ls-secondary-border-color);
  287. padding-left: 30px;
  288. padding-bottom: 50px;
  289. overflow-y: auto;
  290. @screen md {
  291. display: block;
  292. }
  293. }
  294. &.is-list-ready {
  295. .cp__file-sync-page-histories {
  296. &-left, &-right {
  297. visibility: visible;
  298. }
  299. }
  300. .ready-loading {
  301. display: none;
  302. }
  303. }
  304. }
  305. &-welcome-logseq-sync, &-unavailable-logseq-sync {
  306. > .head-bg {
  307. @apply flex m-auto mb-10 w-auto sm:w-[500px];
  308. background-image: url("../img/file-sync-welcome-backer-dark.png");
  309. background-size: contain;
  310. background-repeat: no-repeat;
  311. background-position: center;
  312. padding-top: 86px;
  313. max-width: 90vw;
  314. > strong {
  315. @apply block bg-gray-200 rounded text-gray-700 text-[10px] font-semibold px-2 py-0.5 opacity-40
  316. m-auto translate-y-8;
  317. }
  318. }
  319. > h1, > h2 {
  320. @apply flex justify-center text-center;
  321. }
  322. > h2 {
  323. @apply text-sm opacity-80 pt-3;
  324. }
  325. }
  326. &-unavailable-logseq-sync {
  327. > .head-bg {
  328. background-image: url("../img/file-sync-unavailale-nonbacker-dark.png");
  329. }
  330. }
  331. &-related-normal-modal {
  332. .icon-wrap {
  333. @apply rounded flex justify-center items-center;
  334. width: 48px;
  335. height: 48px;
  336. background-color: var(--ls-quaternary-background-color);
  337. > .ti {
  338. font-size: 34px;
  339. opacity: .9;
  340. }
  341. }
  342. > .folder-tip {
  343. @apply mt-5 py-4 rounded-md;
  344. -webkit-font-smoothing: antialiased;
  345. background-color: var(--ls-quaternary-background-color);
  346. .ti {
  347. font-weight: 400;
  348. font-size: 20px;
  349. }
  350. h3, h3 > span {
  351. @apply dark:text-white flex items-center space-x-2 font-semibold opacity-95;
  352. }
  353. h4 {
  354. @apply text-sm opacity-50 pt-1;
  355. }
  356. .out-icloud {
  357. @apply w-full;
  358. button {
  359. @apply w-full border-none rounded-t-none translate-y-4;
  360. }
  361. }
  362. }
  363. > .input-hints {
  364. @apply flex-nowrap md:flex-wrap;
  365. background-color: var(--ls-primary-background-color);
  366. .strength-item {
  367. @apply flex items-center leading-none opacity-60 mr-2;
  368. .ti {
  369. @apply scale-75;
  370. }
  371. &.included {
  372. @apply text-green-700 font-bold;
  373. .ti {
  374. @apply scale-90 font-bold;
  375. }
  376. }
  377. }
  378. }
  379. > .input-pw-strength {
  380. > .indicator {
  381. @apply space-x-1.5;
  382. > i {
  383. @apply flex-1 bg-gray-200 overflow-hidden cursor-help opacity-90;
  384. font-size: 0;
  385. height: 5px;
  386. border-radius: 2px;
  387. &.active:first-child {
  388. @apply bg-red-500;
  389. }
  390. &.active:nth-child(2) {
  391. @apply bg-yellow-300;
  392. }
  393. &.active:nth-child(3) {
  394. @apply bg-blue-400;
  395. }
  396. &.active:last-child {
  397. @apply bg-green-500;
  398. }
  399. }
  400. }
  401. }
  402. > .cloud-tip {
  403. background-color: var(--ls-tertiary-background-color);
  404. > ul {
  405. > li.it {
  406. @apply flex flex-1 border-l-2 justify-center items-center flex-col py-4;
  407. border-color: var(--ls-quaternary-background-color);
  408. &:first-child {
  409. @apply border-l-0;
  410. }
  411. h1 {
  412. @apply text-5xl relative;
  413. sup {
  414. @apply absolute text-lg font-semibold right-0 translate-x-8 opacity-60;
  415. }
  416. }
  417. h2 {
  418. @apply text-xs opacity-80 pt-2;
  419. }
  420. }
  421. }
  422. }
  423. .init-remote-pw-tips {
  424. > div {
  425. background-color: var(--ls-tertiary-background-color);
  426. padding: 6px 10px;
  427. font-size: 14px;
  428. border-radius: 4px;
  429. p > span {
  430. opacity: .6;
  431. }
  432. }
  433. }
  434. }
  435. }
  436. div[label=modal-page-histories] {
  437. .panel-content {
  438. overflow: hidden;
  439. }
  440. }
  441. html[data-theme='light'] {
  442. .cp__file-sync {
  443. &-welcome-logseq-sync {
  444. > .head-bg {
  445. background-image: url("../img/file-sync-welcome-backer-light.png");
  446. }
  447. }
  448. &-unavailable-logseq-sync {
  449. > .head-bg {
  450. background-image: url("../img/file-sync-unavailale-nonbacker-light.png");
  451. }
  452. }
  453. &-related-normal-modal {
  454. .icon-wrap {
  455. background-color: #908E8B;
  456. .ti {
  457. color: whitesmoke;
  458. }
  459. }
  460. > .folder-tip {
  461. background-color: var(--ls-tertiary-background-color);
  462. }
  463. > .input-hints {
  464. background-color: #e1e1e1;
  465. }
  466. }
  467. &-indicator-progress-pane {
  468. background-color: var(--ls-tertiary-background-color);
  469. > .a, > .c {
  470. @apply text-gray-700;
  471. }
  472. .progress-bar {
  473. background-color: var(--ls-quaternary-background-color);
  474. }
  475. }
  476. }
  477. }
  478. html:not(.is-electron) {
  479. .cp__file-sync {
  480. &-indicator {
  481. a.cloud .ti {
  482. opacity: .9;
  483. }
  484. }
  485. }
  486. }