Skip to content

Commit

Permalink
fix: threading offset issue with Zoom issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 6, 2021
1 parent cccb756 commit 7632cb9
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 44 deletions.
7 changes: 6 additions & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ module.exports = {
npmPublish: false,
},
],
"@semantic-release/git",
[
"@semantic-release/git",
{
assets: ["CHANGELOG.md", "package.json", "yarn.lock", "custom.css"],
},
],
],
};
85 changes: 42 additions & 43 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
/* block reference */
.block-ref {
border-radius: 2px;
font-size: 0.95em;
background: var(--ct-block-reference-background);
}

.block-ref:hover {
background: var(--ct-block-reference-background-hover);
}

.block-ref:before {
content: "#";
color: var(--ls-active-primary-color);
font-size: 12px;
padding: 0 4px 0 0;
}

.block-ref .block-body {
display: inline-block;
}

.open-block-ref-link {
opacity: 1;
font-family: Asap;
font-weight: 600;
font-variant-numeric: tabular-nums;
}

/* vertical lines and bullets */
.block-children {
border-left: var(--ct-guideline-size) var(--ct-guideline-style)
Expand Down Expand Up @@ -45,40 +74,13 @@ a:hover > .bullet-container .bullet {
transform: scale(1);
}

/* Editing block threading */
/*************************
* Editing block threading
*************************/
.ls-block > div > div.items-center {
position: relative;
}

/* block reference */
.block-ref {
border-radius: 2px;
font-size: 0.95em;
background: var(--ct-block-reference-background);
}

.block-ref:hover {
background: var(--ct-block-reference-background-hover);
}

.block-ref:before {
content: "#";
color: var(--ls-active-primary-color);
font-size: 12px;
padding: 0 4px 0 0;
}

.block-ref .block-body {
display: inline-block;
}

.open-block-ref-link {
opacity: 1;
font-family: Asap;
font-weight: 600;
font-variant-numeric: tabular-nums;
}

div.items-center::before,
div.items-center::after,
.ls-block::before,
Expand Down Expand Up @@ -112,33 +114,31 @@ div.items-center::after,
.ls-block > div > div.items-center::after {
content: "";
height: calc(100% - 10px);
width: 2px;
top: -50%;
left: -2px;
position: absolute;
background-color: transparent;
border-left: 2px solid transparent;
}

.ls-block:focus-within > div > div.items-center::after {
background-color: var(--ct-page-reference-color);
}

.block-children:focus-within > .ls-block:not(:focus-within)::before {
background-color: var(--ct-page-reference-color);
border-color: var(--ct-page-reference-color);
}

.block-children > .ls-block::before {
content: "";
top: -10px;
bottom: 0;
width: 2px;
border-left: 2px solid transparent;
left: -2px;
position: absolute;
background-color: transparent;
}

.block-children:focus-within > .ls-block:not(:focus-within)::before {
border-color: var(--ct-page-reference-color);
}

.block-children:focus-within > .ls-block:focus-within ~ .ls-block::before {
background: transparent;
border-color: transparent;
}

.ls-block > div > .block-content-wrapper {
Expand All @@ -149,14 +149,13 @@ div.items-center::after,
content: "";
top: 1em;
bottom: 0;
width: 2px;
left: -17px;
position: absolute;
background-color: transparent;
border-left: 2px solid transparent;
}

.ls-block[haschild="true"]:focus-within > div > .block-content-wrapper::before {
background-color: var(--ct-page-reference-color);
border-color: var(--ct-page-reference-color);
}

.doc-mode div.items-center::before,
Expand Down

0 comments on commit 7632cb9

Please sign in to comment.