Skip to content

Commit 438409e

Browse files
committed
feat: make active card background slide with indicator instead of fade
1 parent 5271e18 commit 438409e

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

public/css/style.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,11 @@ cap-widget {
599599

600600
.nav-indicator {
601601
position: absolute;
602-
left: 0;
603-
width: 3px;
604-
background: var(--accent-1);
605-
border-radius: 0 4px 4px 0;
602+
left: 12px;
603+
width: calc(100% - 24px);
604+
background: rgba(238, 129, 50, 0.12);
605+
border-radius: var(--radius-sm);
606+
border-left: 3px solid var(--accent-1);
606607
transition: top var(--transition), height var(--transition), opacity var(--transition);
607608
pointer-events: none;
608609
z-index: 1;
@@ -627,9 +628,11 @@ cap-widget {
627628
font-size: 0.9rem;
628629
font-weight: 500;
629630
cursor: pointer;
630-
transition: all var(--transition);
631+
transition: color var(--transition);
631632
text-decoration: none;
632633
margin-bottom: 2px;
634+
position: relative;
635+
z-index: 2;
633636
}
634637

635638
.nav-item:hover {
@@ -639,7 +642,6 @@ cap-widget {
639642

640643
.nav-item.active {
641644
color: var(--accent-1);
642-
background: rgba(238, 129, 50, 0.12);
643645
}
644646

645647
.nav-item svg {

0 commit comments

Comments
 (0)