Skip to content

Commit 47ce7f4

Browse files
committed
fix(new-marker): Use CSS of upcoming element marker for new notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent c6e957d commit 47ce7f4

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/styles/styles.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,19 @@ svg {
8383

8484
// "New since last open" indicator — primary-colored bar on the inline-start edge
8585
&.notification--new {
86-
box-shadow: inset 3px 0 0 var(--color-primary-element);
87-
background: color-mix(in srgb, var(--color-primary-element) 5%, transparent);
86+
position: relative;
87+
background-color: color-mix(in srgb, var(--color-primary-element) 16%, transparent) !important;
88+
89+
&::before {
90+
content: '';
91+
position: absolute;
92+
inset-block: calc(var(--default-grid-baseline, 4px) * 2);
93+
inset-inline-start: 0;
94+
width: 3px;
95+
background-color: var(--color-primary-element);
96+
border-radius: 999px;
97+
animation: nc-nav-stripe-in var(--animation-quick, 200ms) ease-out;
98+
}
8899
}
89100

90101
.notification-heading {

0 commit comments

Comments
 (0)