mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 13:44:03 +08:00
c3367c329c
The current breadcrumb separators are ">" characters that are added as pseudo-elements. These become part of the clickable area for the links, which causes mis-clicks. This PR does two things: - Replace the pseudo-element with a DIcon. - Make sure the separator is not clickable.
31 lines
435 B
SCSS
31 lines
435 B
SCSS
.d-breadcrumbs {
|
|
display: flex;
|
|
margin: var(--space-2) 0 var(--space-4) 0;
|
|
|
|
&__item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
&__link,
|
|
&__link:visited {
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
li {
|
|
.separator {
|
|
margin-right: var(--space-1);
|
|
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
}
|
|
|
|
li:last-child {
|
|
.separator {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|