Skip to content

Commit

Permalink
$mol_book2: ellipsis hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Oct 6, 2023
1 parent 9826464 commit be57aa6
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions book2/book2.view.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,29 @@
content: '';
position: absolute;
top: 1.5rem;
width: 1px;
width: 3px;
height: 1rem;
background: var(--mol_theme_focus);
background: linear-gradient(
to bottom,
var(--mol_theme_focus) 0%,
var(--mol_theme_focus) 15%,
transparent 15%,
transparent 45%,
var(--mol_theme_focus) 45%,
var(--mol_theme_focus) 55%,
transparent 55%,
transparent 85%,
var(--mol_theme_focus) 85%,
var(--mol_theme_focus) 100%
);
border-radius: var(--mol_gap_round);
opacity: .5;
}
[mol_book2] > *:not(:first-of-type):before {
left: -1px;
left: -2px;
}
[mol_book2] > *:not(:last-of-type)::after {
right: -1px;
right: -2px;
}

:where([mol_book2]) > * {
Expand Down

0 comments on commit be57aa6

Please sign in to comment.