index.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. body[data-page=repo-add],
  2. body[data-page=import] {
  3. .cp__header .add-graph-btn {
  4. display: none;
  5. }
  6. }
  7. .cp__onboarding {
  8. &-setups {
  9. z-index: 1;
  10. overflow: hidden;
  11. border-radius: 20px;
  12. .as-flex-center {
  13. display: flex;
  14. align-items: center;
  15. justify-content: center;
  16. }
  17. .inner-card {
  18. padding-top: 55px;
  19. > h1 {
  20. font-size: 30px;
  21. strong {
  22. color: var(--ls-active-primary-color);
  23. display: inline-block;
  24. padding-right: 4px;
  25. font-weight: normal;
  26. &:first-child {
  27. display: block;
  28. text-align: center;
  29. padding-bottom: 15px;
  30. }
  31. }
  32. }
  33. > h2 {
  34. font-size: 14px;
  35. margin-top: 20px;
  36. margin-bottom: 40px;
  37. padding: 0 30px;
  38. text-align: center;
  39. }
  40. > article {
  41. border-radius: 20px;
  42. flex: 1;
  43. > section {
  44. flex: 1;
  45. &.a {
  46. background-color: var(--ls-tertiary-background-color);
  47. display: flex;
  48. flex-direction: column;
  49. align-items: center;
  50. padding-top: 75px;
  51. padding-bottom: 100px;
  52. border-radius: 20px 20px 0 0;
  53. min-width: 50%;
  54. > strong {
  55. font-size: 28px;
  56. padding-bottom: 15px;
  57. font-weight: 600;
  58. }
  59. > small {
  60. font-size: 18px;
  61. line-height: 30px;
  62. padding: 0 40px;
  63. text-align: center;
  64. }
  65. > .choose {
  66. padding-top: 48px;
  67. width: 100%;
  68. cursor: pointer;
  69. &:active {
  70. opacity: .8;
  71. }
  72. i {
  73. width: 180px;
  74. height: 120px;
  75. background-image: url("../img/folder-logo.png");
  76. background-size: contain;
  77. }
  78. .control {
  79. padding: 20px 20px 0 20px;
  80. width: 100%;
  81. }
  82. }
  83. }
  84. &.b {
  85. display: none;
  86. padding: 50px 40px;
  87. > p {
  88. width: 100%;
  89. &:first-child {
  90. i {
  91. width: 42px;
  92. }
  93. strong {
  94. font-size: 19px;
  95. line-height: 1.5em;
  96. }
  97. }
  98. }
  99. ul {
  100. margin: 0;
  101. padding-top: 20px;
  102. width: 100%;
  103. > li {
  104. list-style: none;
  105. margin-bottom: 8px;
  106. height: 40px;
  107. display: flex;
  108. &.hr {
  109. height: 1px;
  110. border-bottom: 1px solid var(--ls-border-color);
  111. margin: 20px 0px;
  112. opacity: 0.6;
  113. }
  114. > i {
  115. width: 48px;
  116. background-image: url(../img/folder.png);
  117. background-size: contain;
  118. background-repeat: no-repeat;
  119. background-position-y: 2px;
  120. position: relative;
  121. right: -2px;
  122. &.is-file {
  123. background-image: url("../img/file-edn.png");
  124. background-size: 50%;
  125. background-position-x: center;
  126. }
  127. > .ti, .tie {
  128. opacity: .25;
  129. color: black;
  130. }
  131. }
  132. > span {
  133. flex: 1;
  134. padding-left: 15px;
  135. display: flex;
  136. flex-direction: column;
  137. strong {
  138. font-size: 11px;
  139. }
  140. }
  141. }
  142. }
  143. }
  144. }
  145. &.importer {
  146. background-color: var(--ls-tertiary-background-color);
  147. position: relative;
  148. > section {
  149. flex: unset;
  150. padding: 0 30px;
  151. h1 {
  152. font-size: 26px;
  153. font-weight: 500;
  154. }
  155. h2 {
  156. font-size: 14px;
  157. padding-top: 15px;
  158. padding-bottom: 15px;
  159. }
  160. &.d {
  161. width: 100%;
  162. padding: 20px 0;
  163. > label {
  164. width: unset;
  165. height: 80px;
  166. flex: 1;
  167. margin-bottom: 10px;
  168. > span {
  169. &:first-child {
  170. padding: 16px;
  171. i {
  172. height: 30px;
  173. width: 30px;
  174. display: flex;
  175. align-items: center;
  176. justify-content: center;
  177. }
  178. }
  179. }
  180. strong {
  181. font-size: 18px;
  182. }
  183. small {
  184. font-size: 11px;
  185. }
  186. }
  187. }
  188. }
  189. }
  190. }
  191. @screen lg {
  192. background-color: unset;
  193. > h1 {
  194. font-size: 36px;
  195. strong {
  196. &:first-child {
  197. display: inline-block;
  198. }
  199. }
  200. }
  201. > h2 {
  202. font-size: 20px;
  203. padding: 0;
  204. }
  205. > article {
  206. max-width: 100vw;
  207. flex: unset;
  208. > section {
  209. &.a {
  210. > small {
  211. padding: 0 95px;
  212. }
  213. > .choose {
  214. .control {
  215. padding: 30px 70px 0 70px;
  216. }
  217. }
  218. }
  219. &.b {
  220. display: flex;
  221. }
  222. }
  223. &.importer {
  224. > section {
  225. padding: 0;
  226. h1 {
  227. font-size: 28px;
  228. }
  229. h2 {
  230. font-size: 19px;
  231. line-height: 3em;
  232. padding: unset;
  233. }
  234. &.e {
  235. position: absolute;
  236. bottom: -50px;
  237. right: 15px;
  238. a.button {
  239. padding: 4px 10px;
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }
  246. }
  247. label.action-input {
  248. transition: none;
  249. color: var(--ls-active-primary-color);
  250. background-color: var(--ls-quaternary-background-color);
  251. height: 68px;
  252. width: 100%;
  253. opacity: .8;
  254. user-select: none;
  255. border-radius: 12px;
  256. overflow: hidden;
  257. cursor: pointer;
  258. small {
  259. font-size: 11px;
  260. }
  261. &:hover {
  262. opacity: 1;
  263. }
  264. &:active {
  265. opacity: .5;
  266. }
  267. &[disabled] {
  268. pointer-events: none;
  269. }
  270. }
  271. @screen lg {
  272. justify-content: center;
  273. align-items: center;
  274. }
  275. }
  276. &-quick-tour {
  277. &.shepherd-element, .shepherd-arrow:before {
  278. background-color: var(--ls-quaternary-background-color);
  279. font-size: 14px;
  280. }
  281. &.shepherd-element {
  282. max-width: 320px;
  283. border-radius: 8px;
  284. box-shadow: none;
  285. &[data-shepherd-step-id=nav-journal-page] {
  286. .shepherd-arrow {
  287. left: 30px !important;
  288. }
  289. }
  290. }
  291. .shepherd-content {
  292. display: flex;
  293. flex-direction: column;
  294. -webkit-font-smoothing: antialiased;
  295. }
  296. .shepherd-text {
  297. font-size: 14px;
  298. color: var(--ls-secondary-text-color);
  299. flex: 1;
  300. padding: 8px 10px;
  301. position: relative;
  302. h2 {
  303. font-size: 18px;
  304. line-height: 28px;
  305. font-weight: 700;
  306. padding-top: 5px;
  307. padding-bottom: 5px;
  308. }
  309. p {
  310. color: var(--ls-secondary-text-color);
  311. }
  312. .steps {
  313. position: absolute;
  314. bottom: -28px;
  315. left: 10px;
  316. font-size: 12px;
  317. strong {
  318. opacity: .5;
  319. font-size: 11px;
  320. }
  321. ul {
  322. display: flex;
  323. list-style: none;
  324. align-items: center;
  325. margin: 0;
  326. padding-left: 1px;
  327. padding-top: 2px;
  328. li {
  329. padding: 0;
  330. width: 5px;
  331. height: 5px;
  332. margin: 0 5px 0 0;
  333. background-color: rgba(0, 0, 0, .2);
  334. border-radius: 100%;
  335. font-size: 0;
  336. &.active {
  337. background-color: var(--ls-primary-text-color);
  338. }
  339. }
  340. }
  341. }
  342. }
  343. .shepherd-footer {
  344. button {
  345. background-color: var(--lx-bg-override, var(--lx-accent-09, var(--ls-button-background)));
  346. padding: 4px 8px;
  347. border-radius: 6px;
  348. overflow: hidden;
  349. color: white;
  350. font-size: 13px;
  351. font-weight: 500;
  352. &.back {
  353. background-color: rgba(0, 0, 0, .3);
  354. }
  355. &.bg-gray {
  356. @apply bg-gray-400;
  357. }
  358. }
  359. button:hover {
  360. background-color: var(--lx-bg-override, var(--lx-accent-10, var(--ls-button-background)));
  361. }
  362. }
  363. }
  364. &-skip-quick-tour {
  365. -webkit-font-smoothing: antialiased;
  366. position: fixed;
  367. bottom: 20px;
  368. left: 50%;
  369. transform: translateX(-60px);
  370. z-index: 10001;
  371. background-color: #4B5563;
  372. padding: 12px 20px;
  373. border-radius: 8px;
  374. color: white;
  375. box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  376. font-weight: 700;
  377. .ti, .tie {
  378. padding-right: 6px;
  379. font-size: 18px;
  380. position: relative;
  381. top: 2px;
  382. font-weight: normal;
  383. }
  384. &:hover {
  385. opacity: .8;
  386. }
  387. &:active {
  388. opacity: 1;
  389. }
  390. }
  391. }
  392. .shepherd-modal-overlay-container.shepherd-modal-is-visible {
  393. transition: none;
  394. opacity: .4;
  395. }
  396. .shepherd-target {
  397. &.nav-content-item {
  398. background-color: rgba(0, 0, 0, .4);
  399. padding-left: 15px;
  400. padding-right: 15px;
  401. }
  402. .nav-content-item-inner {
  403. background-color: var(--ls-secondary-background-color);
  404. overflow: hidden;
  405. .header {
  406. padding: 4px 10px !important;
  407. }
  408. .bd {
  409. ul a {
  410. padding: 2px 8px !important;
  411. }
  412. }
  413. }
  414. &.page-title {
  415. background-color: rgba(0, 0, 0, .4);
  416. > h1 {
  417. background-color: var(--ls-primary-background-color);
  418. border-radius: 12px;
  419. }
  420. }
  421. &.cp__sidebar-help-btn {
  422. background-color: rgba(0, 0, 0, .4);
  423. z-index: 9;
  424. > .inner {
  425. opacity: 1;
  426. }
  427. }
  428. &.cp__header-left-menu {
  429. background-color: rgba(0, 0, 0, .4);
  430. border-radius: 0;
  431. opacity: 1 !important;
  432. transition: none;
  433. &:hover {
  434. background-color: rgba(0, 0, 0, .4);
  435. }
  436. > .inner {
  437. border-radius: 100%;
  438. background-color: var(--ls-primary-background-color);
  439. }
  440. }
  441. }
  442. .shepherd-element {
  443. &[data-popper-placement^=right] > .shepherd-arrow {
  444. left: -4px;
  445. }
  446. &[data-popper-placement^=top] > .shepherd-arrow {
  447. bottom: -4px !important;
  448. }
  449. &[data-popper-placement^=left] > .shepherd-arrow {
  450. right: -4px !important;
  451. }
  452. &[data-popper-placement^=bottom] > .shepherd-arrow {
  453. top: -4px !important;
  454. }
  455. }
  456. .shepherd-arrow, .shepherd-arrow:before {
  457. width: 8px;
  458. height: 8px;
  459. }
  460. html[data-theme=light] {
  461. .cp__onboarding {
  462. &-quick-tour {
  463. &.shepherd-element, .shepherd-arrow:before {
  464. background-color: #E8E5DE;
  465. }
  466. }
  467. }
  468. }
  469. html.is-native-android,
  470. html.is-native-ipad,
  471. html.is-native-iphone,
  472. html.is-native-iphone-without-notch {
  473. .cp__onboarding {
  474. &-setups {
  475. width: 100%;
  476. height: 100%;
  477. overflow-y: auto;
  478. .inner-card {
  479. padding-top: 30px;
  480. min-height: 100%;
  481. width: 100%;
  482. > h2 {
  483. margin-bottom: 25px;
  484. }
  485. > article {
  486. > section {
  487. &.a {
  488. padding-top: 25px;
  489. small {
  490. text-align: left;
  491. padding: 0 40px;
  492. }
  493. .mobile-intro {
  494. margin-top: 10px;
  495. line-height: 1.5rem;
  496. font-size: 1rem;
  497. }
  498. > .choose {
  499. padding-top: 25px;
  500. }
  501. }
  502. }
  503. }
  504. @screen lg {
  505. > article {
  506. width: 1040px;
  507. height: 510px;
  508. }
  509. }
  510. }
  511. }
  512. }
  513. }
  514. html.is-native-android {
  515. .cp__onboarding-setups {
  516. position: absolute;
  517. top: 0;
  518. left: 0;
  519. }
  520. }