strona-czynna/src/back/routes/common/breadcrumbs.css
2026-05-26 17:22:17 +02:00

64 lines
1.1 KiB
CSS

/* stylelint-disable no-descending-specificity */
.breadcrumbs {
--bg: var(--color-brand-accent);
display: flex;
--height: 2rem;
--padding: 0px 16px;
flex-flow: row wrap;
align-items: center;
row-gap: 8px;
a,
& > span {
display: inline-block;
line-height: var(--height);
font-size: 1rem;
}
& > span {
padding: var(--padding);
&:last-child:first-child {
/* only "home" */
display: none;
}
}
a {
text-decoration: none;
display: flex;
flex-flow: row nowrap;
color: var(--color-brand-text-on-accent);
span {
background-color: var(--bg);
padding: 0 8px;
}
.arrow-right,
.arrow-left {
width: 0;
height: 0;
}
.arrow-right {
border-top: calc(var(--height) / 2) solid transparent;
border-bottom: calc(var(--height) / 2) solid transparent;
border-left: calc(var(--height) / 2) solid var(--bg);
}
.arrow-left {
width: 0;
height: 0;
border-top: calc(var(--height) / 2) solid var(--bg);
border-bottom: calc(var(--height) / 2) solid var(--bg);
border-left: calc(var(--height) / 2) solid transparent;
}
&:hover {
filter: brightness(1.1);
}
}
}