.breadcrumbs { padding: var(--Space-x4) 0 var(--Space-x3); margin: 0 auto; width: 100%; color: var(--Text-Interactive-Secondary); } .breadcrumbs.transparent { background-color: transparent; } .breadcrumbs.surfaceSecondaryDefault { background-color: var(--Surface-Secondary-Default); } .breadcrumbs.surfacePrimaryOnSurfaceDefault { background-color: var(--Surface-Primary-On-Surface-Default); } .breadcrumbs.backgroundPrimary { background-color: var(--Background-Primary); } .breadcrumbs .list { display: flex; gap: var(--Space-x025); padding-inline-start: 0; margin: 0 auto; } .breadcrumbs.contentWidth .list { max-width: var(--max-width-content); } .breadcrumbs.headerWidth .list { max-width: min(var(--max-width-page), calc(100% - var(--max-width-spacing))); } .breadcrumbs.pageWidth .list { max-width: var(--max-width-page); } .list .listItem:last-of-type { flex: 1; max-width: 100%; min-width: 0; } .listItem { align-items: center; display: flex; gap: var(--Space-x025); flex-shrink: 0; flex-grow: 0; } .listItem > a { display: flex; } .listItem > svg { flex-shrink: 0; } .button { border: none; background: transparent; height: 100%; /* this increases the width of the button for tapping */ padding: 0 5px; margin: 0 -5px; color: var(--Text-Interactive-Default); &.button:not(.lastBreadcrumb) { cursor: pointer; &:hover { color: var(--Text-Interactive-Default-Hover); text-decoration: underline; } } } .link { color: var(--Text-Interactive-Secondary); &:hover { color: var(--Text-Interactive-Secondary-Hover); text-decoration: underline; } } .dialog { background-color: var(--Surface-Primary-Default); padding: var(--Space-x1); display: flex; flex-direction: column; gap: var(--Space-x05); border-radius: var(--Corner-radius-md); min-width: 169px; outline: none; box-shadow: 0 0 4px 2px rgb(0 0 0 / 10%); } .dialogLink { display: block; border-radius: var(--Corner-radius-md); padding: var(--Space-x1); color: var(--Text-Default); &:hover, &:focus { background-color: var(--Surface-Primary-Hover); } } .lastBreadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } .tooltip { background-color: var(--Surface-UI-Fill-Intense); padding: var(--Space-x05) var(--Space-x1); border-radius: var(--Corner-radius-sm); color: var(--Text-Inverted); outline: none; } @media screen and (max-width: 767px) { .desktop { display: none; } .breadcrumbs.isThemedMobile { background-color: var(--Surface-Brand-Primary-1-Default); color: var(--Text-Brand-OnPrimary-1-Default); .link, .button { color: var(--Text-Brand-OnPrimary-1-Default); &:not(.lastBreadcrumb):hover { color: var(--Text-Brand-OnPrimary-1-Hover); text-decoration: underline; } } } } @media screen and (min-width: 768px) { .mobile { display: none; } .desktop { display: flex; } .breadcrumbs.isThemedDesktop { background-color: var(--Surface-Brand-Primary-1-Default); color: var(--Text-Brand-OnPrimary-1-Default); .link, .button { color: var(--Text-Brand-OnPrimary-1-Default); &:not(.lastBreadcrumb):hover { color: var(--Text-Brand-OnPrimary-1-Hover); text-decoration: underline; } } } }