diff options
| author | farbod <zamanifarbod2@gmail.com> | 2022-03-01 16:30:00 +0100 |
|---|---|---|
| committer | farbod <zamanifarbod2@gmail.com> | 2022-03-01 16:30:00 +0100 |
| commit | 2dbad56e28af6eaeaf190cf3c5532a7f7eacd076 (patch) | |
| tree | 519fee17b21d1cbb0ec5e9d960f75bcc6763abb5 /resources/assets | |
| parent | 8a86838edd77735b924953d9f526a4eea0c3f864 (diff) | |
intel. breadcrumbs, fixes #727issue-727
Diffstat (limited to 'resources/assets')
| -rwxr-xr-x | resources/assets/stylesheets/scss/courseware.scss | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/resources/assets/stylesheets/scss/courseware.scss b/resources/assets/stylesheets/scss/courseware.scss index 8143c18..d30d612 100755 --- a/resources/assets/stylesheets/scss/courseware.scss +++ b/resources/assets/stylesheets/scss/courseware.scss @@ -290,11 +290,19 @@ $consum_ribbon_width: calc(100% - 58px); list-style: none; padding-left: 0; - li+li:before { - padding: 0 0.25em; - content: '/'; - background-repeat: no-repeat; - background-position: center; + &.current-only { + li:not(.cw-ribbon-breadcrumb-item-current) { + display: none; + } + } + + &:not(.current-only) { + li+li:before { + padding: 0 0.25em; + content: '/'; + background-repeat: no-repeat; + background-position: center; + } } .cw-ribbon-breadcrumb-item { @@ -304,7 +312,9 @@ $consum_ribbon_width: calc(100% - 58px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - max-width: 12em; + &.short { + display: none; + } } a { |
