improvement(breadcrumb): simplification du style

This commit is contained in:
Kazhnuz 2023-10-13 08:54:41 +02:00
parent 9a64b33133
commit 34bd1310f7

View file

@ -1,44 +1,21 @@
/* ------------------ BREADCRUMB ------------------- */
ul.breadcrumb, ol.breadcrumb, .breadcrumb { ul.breadcrumb, ol.breadcrumb, .breadcrumb {
padding-top: 0em; @include shape-style($button_large);
background-color:transparent; background-color: $color-background-alt;
margin: 0; &::before {
padding-bottom:$lineheight; background-color: $color-background-alt;
}
padding: $button_large/2;
margin: 0 0 $lineheight;
@include li-flex(); @include li-flex();
} }
.breadcrumb li.breadcrumb-item { .breadcrumb {
padding:0; li:not(:first-child)::before {
margin:0; content:"/";
&:not(:first-child) { padding: 0.3rem;
margin: 0 0 0 1rem !important;
}
&:before {
display:none;
} }
a, & > span { .active {
display:inline-block; font-weight: 600;
@include button($button-large);
@include button-fullcontrol($color-background-alt, accentuate($color-background-alt), get-color("dark2"));
margin:0 $button-group-margin 0 $button-group-margin;
outline-color: accentuate($color-background-alt)!important;
text-decoration: none;
&.active {
@include button-fullcontrol($color-secondary, $color-secondary, $color-font-light);
} }
}
&:not(:first-child) a, &:not(:first-child) > span {
border-top-left-radius: 0;
border-bottom-left-radius:0;
}
&:not(:last-child) a, &:not(:last-child) > span {
border-top-right-radius: 0;
border-bottom-right-radius:0;
}
} }