0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/scss/components/_breadcrumb.scss

101 lines
1.9 KiB
SCSS

.breadcrumb {
@include unlist();
@include clearfix();
padding-top: 1.4em;
font-size: 0.85em;
line-height: 1.5em;
background: $color-teal;
li,
.breadcrumb-item {
display: block;
float: left;
position: relative;
text-decoration: none;
white-space: nowrap;
padding: 4px;
&:hover {
background: $color-teal-dark;
}
&.breadcrumb-dropdown {
padding: 0;
font-size: initial;
}
.t-default .u-btn-current {
color: inherit;
background: rgba(0, 91, 94, 0.6);
font-size: 1.15em;
border: 0;
line-height: 1.6;
}
}
li > a,
.breadcrumb-link {
color: $color-white;
display: block;
padding: calc(0.5em - 4px) 1em;
white-space: nowrap;
line-height: 1.6em;
&:hover {
background: $color-teal-dark;
color: $color-white;
.arrow_right_icon {
color: $color-teal;
}
}
.title {
display: inline-block;
max-width: 11.8em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
vertical-align: bottom;
}
}
.home_icon {
@include svg-icon(1em);
transform: scale(1.5) translate(0, 0.1em);
}
.arrow_right_icon {
@include svg-icon(1em);
color: $color-teal-dark;
transform: scale(1.75) translate(0.3em, 0.1em);
}
// Adjust padding and size of breadcrumbs when nested inside of headers
header & {
display: flex;
align-items: center;
height: $mobile-nav-indent;
padding-top: 0;
padding-inline-start: $mobile-nav-indent + 10px;
@include media-breakpoint-up(sm) {
padding-inline-start: 0;
height: auto;
}
}
@include media-breakpoint-up(sm) {
padding-top: 0;
background: $color-teal-darker;
.home_icon {
margin-inline-start: 1.25em;
}
.arrow_right_icon {
color: $color-teal;
}
}
}