Skip to content

Commit

Permalink
Fix: Visible calendar items when selected
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelinmegdanov committed Feb 13, 2025
1 parent 2d17afc commit 7074e13
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/routes/Calendar/List/Item/Item.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
flex-direction: column;
background-color: var(--overlay-color);
border-radius: var(--border-radius);
border: 0.15rem solid transparent;
transition: border-color 0.1s ease-out;

.heading {
flex: none;
Expand Down Expand Up @@ -82,14 +80,29 @@
}
}

&::before {
border: 0.15rem solid transparent;
border-radius: var(--border-radius);
box-sizing: border-box;
content: "";
width: 100%;
height: 100%;
position: absolute;
pointer-events: none;
z-index: 1;
transition: border-color 0.1s ease-out;
}

&.today {
.heading {
background-color: var(--primary-accent-color);
}
}

&.active {
border-color: var(--primary-foreground-color);
&::before {
border-color: var(--primary-foreground-color);
}
}

&:not(.active):hover {
Expand Down

0 comments on commit 7074e13

Please sign in to comment.