mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-27 03:26:21 +08:00
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.
30 lines
435 B
SCSS
Vendored
30 lines
435 B
SCSS
Vendored
.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;
|
|
}
|
|
}
|
|
}
|