mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-09-14 08:18:37 +00:00
98 lines
2.2 KiB
SCSS
98 lines
2.2 KiB
SCSS
.breadcrumbs {
|
|
list-style: none;
|
|
display: inline-block;
|
|
margin-top: 3px;
|
|
li {
|
|
float: left;
|
|
a {
|
|
color: $base-font-color;
|
|
display: flex;
|
|
align-items: center;
|
|
background: $breadcrumb-navigation-bg-color;
|
|
text-decoration: none;
|
|
position: relative;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
padding: 0 10px 0 5px;
|
|
text-align: center;
|
|
margin-right: 23px;
|
|
font-size: 14px;
|
|
img {
|
|
@include size(20px);
|
|
// filter:grayscale(100%);
|
|
}
|
|
span {
|
|
margin-left: 4px;
|
|
}
|
|
}
|
|
&:nth-child(even) {
|
|
margin-left: -8px;
|
|
a {
|
|
background-color: $breadcrumb-navigation-bg-color;
|
|
&:before {
|
|
border-color: $breadcrumb-navigation-bg-color;
|
|
border-left-color: transparent;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
}
|
|
&:after {
|
|
border-left-color: $breadcrumb-navigation-bg-color;
|
|
}
|
|
}
|
|
}
|
|
&:first-child {
|
|
a {
|
|
padding-left: 10px;
|
|
@include border-radius(4px 0 0 4px);
|
|
&:before {
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
&:last-child::not(first-child) {
|
|
a {
|
|
padding-right: 15px;
|
|
@include border-radius(0 4px 4px 0);
|
|
&:after {
|
|
border: none;
|
|
}
|
|
}
|
|
}
|
|
a {
|
|
&:before,
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
border: 0 solid $breadcrumb-navigation-bg-color;
|
|
border-width: 15px 6.666px;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
&:before {
|
|
left: -12px;
|
|
border-left-color: transparent;
|
|
}
|
|
&:after {
|
|
left: 100%;
|
|
border-color: transparent;
|
|
border-left-color: $breadcrumb-navigation-bg-color;
|
|
}
|
|
&:hover {
|
|
background-color: $breadcrumb-navigation-bg-color-active;
|
|
color: $breadcrumb-navigation-text-color-active;
|
|
img {
|
|
filter: grayscale(0%);
|
|
}
|
|
&:before {
|
|
border-color: $breadcrumb-navigation-bg-color-active;
|
|
border-left-color: transparent;
|
|
}
|
|
&:after {
|
|
border-left-color: $breadcrumb-navigation-bg-color-active;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|