diff --git a/src/webviews/apps/home/components/stepped-section.ts b/src/webviews/apps/home/components/stepped-section.ts index 2fb416d..5d722c9 100644 --- a/src/webviews/apps/home/components/stepped-section.ts +++ b/src/webviews/apps/home/components/stepped-section.ts @@ -19,9 +19,18 @@ const template = html``; const styles = css` @@ -56,23 +65,14 @@ const styles = css` outline-offset: 0.2rem; } - .checkbox { + .checkline { position: relative; grid-column: 1; grid-row: 1 / span 2; color: var(--vscode-textLink-foreground); } - /* - .checkbox code-icon { - border-radius: 50%; - } - .heading:hover ~ .checkbox code-icon { - background-color: var(--vscode-textLink-foreground); - } - */ - - :host(:not(:last-of-type)) .checkbox:after { + :host(:not(:last-of-type)) .checkline:after { content: ''; position: absolute; border-left: 0.1rem solid currentColor; @@ -84,6 +84,26 @@ const styles = css` opacity: 0.3; } + .checkbox { + cursor: pointer; + } + .checkbox code-icon { + pointer-events: none; + } + + .heading:hover ~ .checkline .check-icon, + .checkbox:hover .check-icon { + display: none; + } + + .check-hover-icon { + display: none; + } + .heading:hover ~ .checkline .check-hover-icon, + .checkbox:hover .check-hover-icon { + display: unset; + } + .content { margin-top: 1rem; }