Skip to content

Commit

Permalink
feat: adjust block highlight position
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 28, 2021
1 parent 694a894 commit 7c67286
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
30 changes: 18 additions & 12 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,27 @@ a:hover > .bullet-container .bullet {
transform: scale(1);
}

.block-content::after {
content: '';
display: block;
position: absolute;
width: 4px;
height: 12px;
top: 6px;
bottom: 0;
left: -0.5em;
}
.block-content {
& > span > span > [id] {
position: relative;
}

.block-content:hover::after {
background: var(--ct-primary-color);
& > span > span > [id]::before {
content: '';
display: block;
position: absolute;
width: 4px;
height: 40%;
top: 30%;
left: -8px;
}

&:hover > span > span > [id]::before {
background: var(--ct-primary-color);
}
}


/*************************
* Editing block threading
*************************/
Expand Down
2 changes: 1 addition & 1 deletion src/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ a.title h1.title {

.ls-block :is(h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5) {
font-family: var(--ct-page-title-font-family);
font-weight: 500;
font-weight: var(--ct-page-title-font-weight);
}

.ls-block .block-ref :is(h1, h2, h3, h4, h5) {
Expand Down
1 change: 0 additions & 1 deletion src/_miscs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ samp {
padding: var(--ct-inline-code-padding) !important;
background: var(--ls-tertiary-background-color);
color: var(--ct-inline-code-color);
vertical-align: text-bottom;
margin-right: 2px;
}

Expand Down

0 comments on commit 7c67286

Please sign in to comment.