app.css 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772
  1. @reference "./tailwind.css";
  2. @font-face {
  3. font-family: 'Inter';
  4. src: url('/assets/fonts/Inter-Variable.ttf');
  5. font-display: swap;
  6. }
  7. @font-face {
  8. font-family: 'Archivo';
  9. src: url('/assets/fonts/Archivo-Variable.ttf');
  10. font-display: swap;
  11. }
  12. @font-face {
  13. font-family: 'Mona Sans';
  14. src: url('/assets/fonts/Mona-Sans.woff2');
  15. font-display: swap;
  16. }
  17. @font-face {
  18. font-family: 'InstrumentSerif';
  19. src: url('/assets/fonts/InstrumentSerif-Regular.ttf');
  20. font-display: swap;
  21. }
  22. @font-face {
  23. font-family: 'Vazirmatn';
  24. src: url('/assets/fonts/Vazirmatn-Variable.ttf');
  25. font-display: swap;
  26. }
  27. html {
  28. word-break: break-word;
  29. }
  30. code {
  31. /* white-space-collapse: preserve !important; */
  32. overflow-x: auto;
  33. width: auto;
  34. }
  35. .editor-selection {
  36. background: rgba(180, 213, 255, 0.5);
  37. border-radius: 2px;
  38. }
  39. .font-secondary {
  40. font-family: 'InstrumentSerif', sans-serif;
  41. }
  42. .marked a {
  43. @apply underline;
  44. }
  45. math {
  46. margin-top: 1rem;
  47. }
  48. .hljs {
  49. @apply rounded-lg;
  50. }
  51. input::placeholder {
  52. direction: auto;
  53. }
  54. textarea::placeholder {
  55. direction: auto;
  56. }
  57. .input-prose {
  58. @apply prose dark:prose-invert prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-0.5 whitespace-pre-line;
  59. }
  60. .input-prose-sm {
  61. @apply prose dark:prose-invert prose-headings:font-medium prose-h1:text-2xl prose-h2:text-xl prose-h3:text-lg prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-1 prose-img:my-1 prose-headings:my-2 prose-pre:my-0 prose-table:my-1 prose-blockquote:my-0 prose-ul:my-1 prose-ol:my-1 prose-li:my-1 whitespace-pre-line text-sm;
  62. }
  63. .markdown-prose {
  64. @apply prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-4 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
  65. }
  66. .markdown-prose-sm {
  67. @apply text-sm prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-2 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
  68. }
  69. .markdown-prose-xs {
  70. @apply text-xs prose dark:prose-invert prose-blockquote:border-s-gray-100 prose-blockquote:dark:border-gray-800 prose-blockquote:border-s-2 prose-blockquote:not-italic prose-blockquote:font-normal prose-headings:font-semibold prose-hr:my-0.5 prose-hr:border-gray-50 prose-hr:dark:border-gray-850 prose-p:my-0 prose-img:my-1 prose-headings:my-1 prose-pre:my-0 prose-table:my-0 prose-blockquote:my-0 prose-ul:-my-0 prose-ol:-my-0 prose-li:-my-0 whitespace-pre-line;
  71. }
  72. .markdown a {
  73. @apply underline;
  74. }
  75. .font-primary {
  76. font-family: 'Archivo', 'Vazirmatn', sans-serif;
  77. }
  78. .drag-region {
  79. -webkit-app-region: drag;
  80. }
  81. .drag-region a,
  82. .drag-region button {
  83. -webkit-app-region: no-drag;
  84. }
  85. .no-drag-region {
  86. -webkit-app-region: no-drag;
  87. }
  88. li p {
  89. display: inline;
  90. }
  91. ::-webkit-scrollbar-thumb {
  92. --tw-border-opacity: 1;
  93. background-color: rgba(215, 215, 215, 0.6);
  94. border-color: rgba(255, 255, 255, var(--tw-border-opacity));
  95. border-radius: 9999px;
  96. border-width: 1px;
  97. }
  98. /* Dark theme scrollbar styles */
  99. .dark ::-webkit-scrollbar-thumb {
  100. background-color: rgba(67, 67, 67, 0.6); /* Darker color for dark theme */
  101. border-color: rgba(0, 0, 0, var(--tw-border-opacity));
  102. }
  103. ::-webkit-scrollbar {
  104. height: 0.8rem;
  105. width: 0.8rem;
  106. }
  107. ::-webkit-scrollbar-track {
  108. background-color: transparent;
  109. border-radius: 9999px;
  110. }
  111. select {
  112. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  113. background-position: right 0rem center;
  114. background-repeat: no-repeat;
  115. background-size: 1.5em 1.5em;
  116. -webkit-print-color-adjust: exact;
  117. print-color-adjust: exact;
  118. /* padding-right: 2.5rem; */
  119. /* for Firefox */
  120. -moz-appearance: none;
  121. /* for Chrome */
  122. -webkit-appearance: none;
  123. }
  124. @keyframes shimmer {
  125. 0% {
  126. background-position: 200% 0;
  127. }
  128. 100% {
  129. background-position: -200% 0;
  130. }
  131. }
  132. .shimmer {
  133. background: linear-gradient(90deg, #9a9b9e 25%, #2a2929 50%, #9a9b9e 75%);
  134. background-size: 200% 100%;
  135. background-clip: text;
  136. -webkit-background-clip: text;
  137. -webkit-text-fill-color: transparent;
  138. animation: shimmer 4s linear infinite;
  139. color: #818286; /* Fallback color */
  140. }
  141. :global(.dark) .shimmer {
  142. background: linear-gradient(90deg, #818286 25%, #eae5e5 50%, #818286 75%);
  143. background-size: 200% 100%;
  144. background-clip: text;
  145. -webkit-background-clip: text;
  146. -webkit-text-fill-color: transparent;
  147. animation: shimmer 4s linear infinite;
  148. color: #a1a3a7; /* Darker fallback color for dark mode */
  149. }
  150. @keyframes smoothFadeIn {
  151. 0% {
  152. opacity: 0;
  153. transform: translateY(-10px);
  154. }
  155. 100% {
  156. opacity: 1;
  157. transform: translateY(0);
  158. }
  159. }
  160. .status-description {
  161. animation: smoothFadeIn 0.2s forwards;
  162. }
  163. .katex-mathml {
  164. display: none;
  165. }
  166. .scrollbar-hidden:active::-webkit-scrollbar-thumb,
  167. .scrollbar-hidden:focus::-webkit-scrollbar-thumb,
  168. .scrollbar-hidden:hover::-webkit-scrollbar-thumb {
  169. visibility: visible;
  170. }
  171. .scrollbar-hidden::-webkit-scrollbar-thumb {
  172. visibility: hidden;
  173. }
  174. .scrollbar-hidden::-webkit-scrollbar-corner {
  175. display: none;
  176. }
  177. .scrollbar-none::-webkit-scrollbar {
  178. display: none; /* for Chrome, Safari and Opera */
  179. }
  180. .scrollbar-none::-webkit-scrollbar-corner {
  181. display: none;
  182. }
  183. .scrollbar-none {
  184. -ms-overflow-style: none; /* IE and Edge */
  185. scrollbar-width: none; /* Firefox */
  186. }
  187. input::-webkit-outer-spin-button,
  188. input::-webkit-inner-spin-button {
  189. /* display: none; <- Crashes Chrome on hover */
  190. -webkit-appearance: none;
  191. margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
  192. }
  193. input[type='number'] {
  194. -moz-appearance: textfield; /* Firefox */
  195. }
  196. .katex-display {
  197. @apply overflow-y-hidden overflow-x-auto max-w-full;
  198. }
  199. .katex-display::-webkit-scrollbar {
  200. height: 0.4rem;
  201. width: 0.4rem;
  202. }
  203. .katex-display:active::-webkit-scrollbar-thumb,
  204. .katex-display:focus::-webkit-scrollbar-thumb,
  205. .katex-display:hover::-webkit-scrollbar-thumb {
  206. visibility: visible;
  207. }
  208. .katex-display::-webkit-scrollbar-thumb {
  209. visibility: hidden;
  210. }
  211. .katex-display::-webkit-scrollbar-corner {
  212. display: none;
  213. }
  214. .cm-editor {
  215. height: 100%;
  216. width: 100%;
  217. }
  218. .cm-scroller:active::-webkit-scrollbar-thumb,
  219. .cm-scroller:focus::-webkit-scrollbar-thumb,
  220. .cm-scroller:hover::-webkit-scrollbar-thumb {
  221. visibility: visible;
  222. }
  223. .cm-scroller::-webkit-scrollbar-thumb {
  224. visibility: hidden;
  225. }
  226. .cm-scroller::-webkit-scrollbar-corner {
  227. display: none;
  228. }
  229. .cm-editor.cm-focused {
  230. outline: none;
  231. }
  232. .cm-gutters {
  233. @apply !bg-white dark:!bg-black !border-none;
  234. }
  235. .cm-editor {
  236. @apply bg-white dark:bg-black;
  237. }
  238. .tippy-box[data-theme~='dark'] {
  239. @apply rounded-lg bg-gray-950 text-xs border border-gray-900 shadow-xl;
  240. }
  241. .password {
  242. -webkit-text-security: disc;
  243. }
  244. .codespan {
  245. color: #eb5757;
  246. border-width: 0px;
  247. padding: 3px 8px;
  248. font-size: 0.8em;
  249. font-weight: 600;
  250. @apply rounded-md dark:bg-gray-800 bg-gray-100 mx-0.5;
  251. }
  252. .svelte-flow {
  253. background-color: transparent !important;
  254. }
  255. .svelte-flow__edge > path {
  256. stroke-width: 0.5;
  257. }
  258. .svelte-flow__edge.animated > path {
  259. stroke-width: 2;
  260. @apply stroke-gray-600 dark:stroke-gray-500;
  261. }
  262. .bg-gray-950-90 {
  263. background-color: rgba(var(--color-gray-950, #0d0d0d), 0.9);
  264. }
  265. .ProseMirror {
  266. @apply h-full min-h-fit max-h-full whitespace-pre-wrap;
  267. }
  268. .ProseMirror:focus {
  269. outline: none;
  270. }
  271. .ProseMirror p.is-editor-empty:first-child::before {
  272. content: attr(data-placeholder);
  273. float: left;
  274. /* Below color is from tailwind, and has the proper contrast
  275. text-gray-600 from: https://tailwindcss.com/docs/color */
  276. color: #676767;
  277. pointer-events: none;
  278. @apply line-clamp-1 absolute;
  279. }
  280. .tiptap ul[data-type='taskList'] {
  281. list-style: none;
  282. margin-left: 0;
  283. padding: 0;
  284. li {
  285. align-items: start;
  286. display: flex;
  287. > label {
  288. flex: 0 0 auto;
  289. margin-right: 0.5rem;
  290. margin-top: 0.2rem;
  291. user-select: none;
  292. display: flex;
  293. }
  294. > div {
  295. flex: 1 1 auto;
  296. align-items: center;
  297. }
  298. }
  299. /* checked data-checked="true" */
  300. li[data-checked='true'] {
  301. > div {
  302. opacity: 0.5;
  303. text-decoration: line-through;
  304. }
  305. }
  306. input[type='checkbox'] {
  307. cursor: pointer;
  308. }
  309. ul[data-type='taskList'] {
  310. margin: 0;
  311. }
  312. /* Reset nested regular ul elements to default styling */
  313. ul:not([data-type='taskList']) {
  314. list-style: disc;
  315. padding-left: 1rem;
  316. li {
  317. align-items: initial;
  318. display: list-item;
  319. label {
  320. flex: initial;
  321. margin-right: initial;
  322. margin-top: initial;
  323. user-select: initial;
  324. display: initial;
  325. }
  326. div {
  327. flex: initial;
  328. align-items: initial;
  329. }
  330. }
  331. }
  332. }
  333. .mention {
  334. border-radius: 0.4rem;
  335. box-decoration-break: clone;
  336. padding: 0.1rem 0.3rem;
  337. @apply text-sky-800 dark:text-sky-200 bg-sky-300/15 dark:bg-sky-500/15;
  338. }
  339. .mention::after {
  340. content: '\200B';
  341. }
  342. .tiptap .suggestion {
  343. border-radius: 0.4rem;
  344. box-decoration-break: clone;
  345. padding: 0.1rem 0.3rem;
  346. @apply text-sky-800 dark:text-sky-200 bg-sky-300/15 dark:bg-sky-500/15;
  347. }
  348. .tiptap .suggestion::after {
  349. content: '\200B';
  350. }
  351. .tiptap .suggestion.is-empty::after {
  352. content: '\00A0';
  353. border-bottom: 1px dotted rgba(31, 41, 55, 0.12);
  354. }
  355. .input-prose .tiptap ul[data-type='taskList'] {
  356. list-style: none;
  357. margin-left: 0;
  358. padding: 0;
  359. li {
  360. align-items: start;
  361. display: flex;
  362. > label {
  363. flex: 0 0 auto;
  364. margin-right: 0.5rem;
  365. margin-top: 0.4rem;
  366. user-select: none;
  367. display: flex;
  368. }
  369. > div {
  370. flex: 1 1 auto;
  371. align-items: center;
  372. }
  373. }
  374. /* checked data-checked="true" */
  375. li[data-checked='true'] {
  376. > div {
  377. opacity: 0.5;
  378. text-decoration: line-through;
  379. }
  380. }
  381. input[type='checkbox'] {
  382. cursor: pointer;
  383. }
  384. ul[data-type='taskList'] {
  385. margin: 0;
  386. }
  387. /* Reset nested regular ul elements to default styling */
  388. ul:not([data-type='taskList']) {
  389. list-style: disc;
  390. padding-left: 1rem;
  391. li {
  392. align-items: initial;
  393. display: list-item;
  394. label {
  395. flex: initial;
  396. margin-right: initial;
  397. margin-top: initial;
  398. user-select: initial;
  399. display: initial;
  400. }
  401. div {
  402. flex: initial;
  403. align-items: initial;
  404. }
  405. }
  406. }
  407. }
  408. @media (prefers-color-scheme: dark) {
  409. .ProseMirror p.is-editor-empty:first-child::before {
  410. color: #757575;
  411. }
  412. }
  413. .ai-autocompletion::after {
  414. color: #a0a0a0;
  415. content: attr(data-suggestion);
  416. pointer-events: none;
  417. }
  418. .tiptap pre > code {
  419. border-radius: 0.4rem;
  420. font-size: 0.85rem;
  421. padding: 0.25em 0.3em;
  422. @apply dark:bg-gray-800 bg-gray-50;
  423. }
  424. .tiptap pre {
  425. border-radius: 0.5rem;
  426. font-family: 'JetBrainsMono', monospace;
  427. margin: 1.5rem 0;
  428. padding: 0.75rem 1rem;
  429. @apply dark:bg-gray-800 bg-gray-50;
  430. }
  431. .tiptap p code {
  432. color: #eb5757;
  433. border-width: 0px;
  434. padding: 3px 8px;
  435. font-size: 0.8em;
  436. font-weight: 600;
  437. @apply rounded-md dark:bg-gray-800 bg-gray-50 mx-0.5;
  438. }
  439. /* Code styling */
  440. .hljs-comment,
  441. .hljs-quote {
  442. color: #616161;
  443. }
  444. .hljs-variable,
  445. .hljs-template-variable,
  446. .hljs-attribute,
  447. .hljs-tag,
  448. .hljs-regexp,
  449. .hljs-link,
  450. .hljs-name,
  451. .hljs-selector-id,
  452. .hljs-selector-class {
  453. color: #f98181;
  454. }
  455. .hljs-number,
  456. .hljs-meta,
  457. .hljs-built_in,
  458. .hljs-builtin-name,
  459. .hljs-literal,
  460. .hljs-type,
  461. .hljs-params {
  462. color: #fbbc88;
  463. }
  464. .hljs-string,
  465. .hljs-symbol,
  466. .hljs-bullet {
  467. color: #b9f18d;
  468. }
  469. .hljs-title,
  470. .hljs-section {
  471. color: #faf594;
  472. }
  473. .hljs-keyword,
  474. .hljs-selector-tag {
  475. color: #70cff8;
  476. }
  477. .hljs-emphasis {
  478. font-style: italic;
  479. }
  480. .hljs-strong {
  481. font-weight: 700;
  482. }
  483. /* Table styling for tiptap editors */
  484. .tiptap table {
  485. @apply w-full text-sm text-left text-gray-500 dark:text-gray-400 max-w-full;
  486. }
  487. .tiptap thead {
  488. @apply text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-850 dark:text-gray-400 border-none;
  489. }
  490. .tiptap th,
  491. .tiptap td {
  492. @apply px-3 py-1.5 border border-gray-100 dark:border-gray-850;
  493. }
  494. .tiptap th {
  495. @apply cursor-pointer text-left text-xs text-gray-700 dark:text-gray-400 font-semibold uppercase bg-gray-50 dark:bg-gray-850;
  496. }
  497. .tiptap td {
  498. @apply text-gray-900 dark:text-white w-max;
  499. }
  500. .tiptap tr {
  501. @apply bg-white dark:bg-gray-900 dark:border-gray-850 text-xs;
  502. }
  503. .tippy-box[data-theme~='transparent'] {
  504. @apply bg-transparent p-0 m-0;
  505. }
  506. /* this is a rough fix for the first cursor position when the first paragraph is empty */
  507. .ProseMirror > .ProseMirror-yjs-cursor:first-child {
  508. margin-top: 16px;
  509. }
  510. /* This gives the remote user caret. The colors are automatically overwritten*/
  511. .ProseMirror-yjs-cursor {
  512. position: relative;
  513. margin-left: -1px;
  514. margin-right: -1px;
  515. border-left: 1px solid black;
  516. border-right: 1px solid black;
  517. border-color: orange;
  518. word-break: normal;
  519. pointer-events: none;
  520. }
  521. /* This renders the username above the caret */
  522. .ProseMirror-yjs-cursor > div {
  523. position: absolute;
  524. top: -1.05em;
  525. left: -1px;
  526. font-size: 13px;
  527. background-color: rgb(250, 129, 0);
  528. user-select: none;
  529. color: white;
  530. padding-left: 2px;
  531. padding-right: 2px;
  532. white-space: nowrap;
  533. }
  534. body {
  535. background: #fff;
  536. color: #000;
  537. }
  538. .dark body {
  539. background: #171717;
  540. color: #eee;
  541. }
  542. /* Position the handle relative to each LI */
  543. .pm-li--with-handle {
  544. position: relative;
  545. margin-left: 12px; /* make space for the handle */
  546. }
  547. .tiptap ul[data-type='taskList'] .pm-list-drag-handle {
  548. margin-left: 0px;
  549. }
  550. /* The drag handle itself */
  551. .pm-list-drag-handle {
  552. position: absolute;
  553. left: -36px; /* pull into the left gutter */
  554. top: 1px;
  555. width: 18px;
  556. height: 18px;
  557. display: inline-flex;
  558. align-items: center;
  559. justify-content: center;
  560. font-size: 12px;
  561. line-height: 1;
  562. border-radius: 4px;
  563. cursor: grab;
  564. user-select: none;
  565. opacity: 0.35;
  566. transition:
  567. opacity 120ms ease,
  568. background 120ms ease;
  569. }
  570. .tiptap ul[data-type='taskList'] .pm-list-drag-handle {
  571. left: -16px; /* pull into the left gutter more to avoid the checkbox */
  572. }
  573. .pm-list-drag-handle:active {
  574. cursor: grabbing;
  575. }
  576. .pm-li--with-handle:hover > .pm-list-drag-handle {
  577. opacity: 1;
  578. }
  579. .pm-list-drag-handle:hover {
  580. background: rgba(0, 0, 0, 0.06);
  581. }
  582. :root {
  583. --pm-accent: color-mix(in oklab, Highlight 70%, transparent);
  584. --pm-fill-target: color-mix(in oklab, Highlight 26%, transparent);
  585. --pm-fill-ancestor: color-mix(in oklab, Highlight 16%, transparent);
  586. }
  587. .pm-li-drop-before,
  588. .pm-li-drop-after,
  589. .pm-li-drop-into,
  590. .pm-li-drop-outdent {
  591. position: relative;
  592. }
  593. /* BEFORE/AFTER lines */
  594. .pm-li-drop-before::before,
  595. .pm-li-drop-after::after {
  596. content: '';
  597. position: absolute;
  598. left: 0;
  599. right: 0;
  600. height: 3px;
  601. background: var(--pm-accent);
  602. pointer-events: none;
  603. }
  604. .pm-li-drop-before::before {
  605. top: -2px;
  606. }
  607. .pm-li-drop-after::after {
  608. bottom: -2px;
  609. }
  610. .pm-li-drop-before,
  611. .pm-li-drop-after,
  612. .pm-li-drop-into,
  613. .pm-li-drop-outdent {
  614. background: var(--pm-fill-target);
  615. border-radius: 6px;
  616. }
  617. .pm-li-drop-outdent::before {
  618. content: '';
  619. position: absolute;
  620. inset-block: 0;
  621. inset-inline-start: 0;
  622. width: 3px;
  623. background: color-mix(in oklab, Highlight 35%, transparent);
  624. }
  625. .pm-li--with-handle:has(.pm-li-drop-before),
  626. .pm-li--with-handle:has(.pm-li-drop-after),
  627. .pm-li--with-handle:has(.pm-li-drop-into),
  628. .pm-li--with-handle:has(.pm-li-drop-outdent) {
  629. background: var(--pm-fill-ancestor);
  630. border-radius: 6px;
  631. }
  632. .pm-li-drop-before,
  633. .pm-li-drop-after,
  634. .pm-li-drop-into,
  635. .pm-li-drop-outdent {
  636. position: relative;
  637. z-index: 0;
  638. }