scinote-web/app/assets/stylesheets/navigation/breadcrumbs.scss

60 lines
1.1 KiB
SCSS
Raw Normal View History

.sci--layout-navigation-breadcrumbs {
--max-breadcrumbs-link-width: 11.25rem;
align-items: center;
display: flex;
flex-wrap: nowrap;
2023-08-31 21:50:35 +08:00
padding-left: 1rem;
}
.breadcrumbs-container {
@include font-small;
align-items: center;
display: flex;
flex-wrap: nowrap;
max-width: calc(100vw - var(--left-navigation-width) - 3rem);
overflow: hidden;
width: calc(100vw - var(--left-navigation-width) - 3rem);
.delimiter {
@include font-button;
color: var(--sn-grey);
font-weight: bold;
padding: 0 .5em;
}
}
.breadcrumbs-item {
align-items: center;
display: inline-flex;
flex-wrap: nowrap;
.breadcrumbs-link {
2023-05-24 17:34:59 +08:00
@include font-small;
color: var(--sn-blue);
display: inline-block;
white-space: nowrap;
&.shortened {
max-width: var(--max-breadcrumbs-link-width);
overflow: hidden;
text-overflow: ellipsis;
}
2023-06-23 17:39:54 +08:00
&.plain-text {
color: var(--sn-grey);
}
}
&:hover {
text-decoration: none;
}
&:last-child .breadcrumbs-link {
color: var(--sn-grey);
}
}
.breadcrumbs-collapsed-container .breadcrumbs-item .breadcrumbs-link {
color: var(--sn-blue);
}