Skip to content

Commit

Permalink
fix: adapt for new block toggle styles
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Dec 26, 2021
1 parent 3fd3d14 commit 1427d05
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
19 changes: 19 additions & 0 deletions bullet_threading.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
border-left-width: var(--ls-block-bullet-threading-width);
}

.block-children-container {
position: relative;
}

.block-children-left-border {
z-index: 10;
position: absolute;
height: 100%;
width: 4px;
padding-right: 0px;
background-color: transparent;
left: -1px;
transition: background-color 0.2s;
}

.block-children-left-border:hover {
background-color: var(--ls-block-bullet-active-color);
}

.block-content-wrapper {
position: relative;
}
Expand Down
20 changes: 20 additions & 0 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,26 @@ a.title h1.title {
border-left-width: var(--ls-block-bullet-threading-width);
}

.block-children-container {
position: relative;
}

.block-children-left-border {
border-radius: 2px;
z-index: 10;
position: absolute;
height: 100%;
width: 4px;
padding-right: 0px;
background-color: transparent;
left: -1px;
transition: background-color 0.2s;
}

.block-children-left-border:hover {
background-color: var(--ls-block-bullet-active-color);
}

.block-content-wrapper {
position: relative;
}
Expand Down
20 changes: 20 additions & 0 deletions src/bullet_threading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,29 @@
}

.block-children {
border-left-color: var(--ls-guideline-color);
border-left-width: var(--ls-block-bullet-threading-width);
}

.block-children-container {
position: relative;
}

.block-children-left-border {
z-index: 10;
position: absolute;
height: 100%;
width: 4px;
padding-right: 0px;
background-color: transparent;
left: -1px;
transition: background-color 0.2s;
}

.block-children-left-border:hover {
background-color: var(--ls-block-bullet-active-color);
}

.block-content-wrapper {
position: relative;
}
Expand Down

0 comments on commit 1427d05

Please sign in to comment.