Skip to content

Commit

Permalink
fix: bullet positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Nov 10, 2021
1 parent 4594820 commit fd8ad71
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
7 changes: 0 additions & 7 deletions bullet_threading.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

/* Block bullet path should only show in a nested block */
.ls-block {
/* Fix for headings like h1, h2 etc */
/* Basic "curve" */
/* Fix multi-line blocks with children */
}
Expand All @@ -35,17 +34,11 @@
position: relative;
height: 26px !important;
}
.ls-block > .items-baseline {
align-items: initial;
}
.ls-block:not(:focus-within) .bullet {
background-color: var(--ls-block-bullet-color);
transform: scale(1);
box-shadow: none;
}
.ls-block:not(:focus-within) > .items-baseline {
align-items: baseline;
}
.ls-block .ls-block > div > div.items-center::before {
pointer-events: none;
content: "";
Expand Down
2 changes: 1 addition & 1 deletion src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ a:hover > .bullet-container .bullet {
}

.block-control .rotating-arrow {
display: inline-block;
display: block;
border-radius: 50%;
background-color: var(--ls-primary-background-color);
width: 1rem;
Expand Down
9 changes: 0 additions & 9 deletions src/bullet_threading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,12 @@
height: 26px !important;
}

/* Fix for headings like h1, h2 etc */
> .items-baseline {
align-items: initial;
}

&:not(:focus-within) .bullet {
background-color: var(--ls-block-bullet-color);
transform: scale(1);
box-shadow: none;
}

&:not(:focus-within) > .items-baseline {
align-items: baseline;
}

/* Basic "curve" */
.ls-block > div > div.items-center::before {
pointer-events: none;
Expand Down

0 comments on commit fd8ad71

Please sign in to comment.