Skip to content

Commit

Permalink
fix: update some details
Browse files Browse the repository at this point in the history
- right side bar now has background color
- tweak hovering block style
  • Loading branch information
pengx17 committed Aug 2, 2021
1 parent bcfa416 commit f971483
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
14 changes: 10 additions & 4 deletions src/_blocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,20 @@ a:hover > .bullet-container .bullet {
display: block;
position: absolute;
width: 4px;
height: 12px;
top: calc(50% - 6px);
left: -6px;
height: 10px;
top: calc(50% - 5px);
left: -8px;
transform: scaleY(0.5);
transition: all 0.2s;
opacity: 0;
background: var(--ct-primary-color);
border-radius: 2px;
}
}

&:hover > span > span > :first-child::before {
background: var(--ct-primary-color);
opacity: 1;
transform: scaleY(1);
}
}

Expand Down
5 changes: 0 additions & 5 deletions src/_views.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

.cp__right-sidebar .sidebar-item {
margin: var(--ct-sidebar-padding) 0;
background: transparent;
box-shadow: none;
}

Expand All @@ -57,10 +56,6 @@
padding-right: 1rem;
}

.sidebar-item.color-level .color-level {
background: var(--color-level-1);
}

/* Right sidebar title */
.sidebar-item .ml-1:not(.text-sm) {
font-size: 1.2em;
Expand Down

0 comments on commit f971483

Please sign in to comment.