mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-07 16:09:57 +08:00
Style the breadcrumbs [SCI-8087]
This commit is contained in:
parent
31b979cde9
commit
501279372c
2 changed files with 25 additions and 2 deletions
24
app/assets/stylesheets/navigation/breadcrumbs.scss
Normal file
24
app/assets/stylesheets/navigation/breadcrumbs.scss
Normal file
|
@ -0,0 +1,24 @@
|
|||
.sci--layout-navigation-breadcrumbs {
|
||||
--max-breadcrumbs-link-width: 180px;
|
||||
padding: 14px 24px 8px;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
column-gap: 14px;
|
||||
|
||||
.breadcrumbs-link {
|
||||
color: var(--sn-blue);
|
||||
max-width: var(--max-breadcrumbs-link-width);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
&:last-child {
|
||||
color: var(--sn-grey);
|
||||
}
|
||||
}
|
||||
|
||||
.delimiter {
|
||||
color: var(--sn-grey);
|
||||
}
|
||||
}
|
|
@ -57,8 +57,7 @@
|
|||
<span style="display: none;" data-hook="body-js"></span>
|
||||
<span style="display: none;" data-hook="application-body-html"></span>
|
||||
|
||||
|
||||
<div class="sci--layout" data-breadcrumbs-collapsed="true" data-navigator-collapsed="<%= !content_for?(:sidebar_title) %>">
|
||||
<div class="sci--layout" data-breadcrumbs-collapsed="<%= !@breadcrumbs_items&.length %>" data-navigator-collapsed="<%= !content_for?(:sidebar_title) %>">
|
||||
<div class="sci--layout-navigation-top" >
|
||||
<%= render "shared/navigation/top" %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue