Skip to content

Commit

Permalink
style(core): dprint
Browse files Browse the repository at this point in the history
  • Loading branch information
NWYLZW committed Jun 5, 2024
1 parent ad8007b commit bb87691
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions packages/core/src/creator/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,17 @@
position: absolute;
width: var(--cursor-width);
height: calc(var(--line-height) - 2px);
margin-top: calc(var(--shikitor-cursor-t, 0px) + -1 * var(--shikitor-scroll-t, 0px) + 1px);
margin-left: calc(var(--shikitor-cursor-l, 0px) + -1 * var(--shikitor-scroll-l, 0px));
margin-top: calc(
var(--shikitor-cursor-t, 0px) + -1 * var(--shikitor-scroll-t, 0px) + 1px
);
margin-left: calc(
var(--shikitor-cursor-l, 0px) + -1 * var(--shikitor-scroll-l, 0px)
);
z-index: 10;
pointer-events: none;
&--ch { --cursor-width: 1ch }
&--ch {
--cursor-width: 1ch;
}
&#{&}--visible::after {
visibility: visible;
}
Expand All @@ -156,13 +162,11 @@
bottom: 0;
right: 0;
margin-top: calc(
var(--shikitor-cursor-t, 0px)
+ -1 * var(--shikitor-scroll-t, 0px)
- 14px
var(--shikitor-cursor-t, 0px) + -1 * var(--shikitor-scroll-t, 0px) -
14px
);
margin-left: calc(
var(--shikitor-cursor-l, 0px)
+ -1 * var(--shikitor-scroll-l, 0px)
var(--shikitor-cursor-l, 0px) + -1 * var(--shikitor-scroll-l, 0px)
);

width: 0;
Expand Down

0 comments on commit bb87691

Please sign in to comment.