Skip to content

Commit

Permalink
fix: threading in the first block of the embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Apr 1, 2022
1 parent 3b9f657 commit 986e791
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/bullet_threading.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
:root {
--ls-block-bullet-active-color: var(--ls-link-text-color);
--ls-block-bullet-threading-width: var(--ls-block-bullet-threading-width-overwrite, 1px);
--ls-block-bullet-threading-width: var(
--ls-block-bullet-threading-width-overwrite,
1px
);
}

.block-control {
Expand Down Expand Up @@ -127,9 +130,20 @@
}
}

// A dirty fix for removing threading for the root blocks in embedded
:is(.embed-block > div, .embed-page)
> div
> div
> div
> div.ls-block
> div
> div.items-center::before {
border-color: transparent !important;
}

// Fix https://github.com/pengx17/logseq-plugin-bullet-threading/issues/1
@media (max-width: 640px) {
.ls-block[haschild=true] > div > .block-content-wrapper::before {
.ls-block[haschild="true"] > div > .block-content-wrapper::before {
left: -11px;
}
}
Expand Down

0 comments on commit 986e791

Please sign in to comment.