You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
2.8 KiB
Plaintext

// 面包屑容器样式
.bread-crumb {
// display: flex;
align-items: center;
overflow-x: auto;
overflow-y: hidden;
height: auto;
max-width: 100%;
margin: 8px 0;
padding: 0 12px;
background-color: transparent;
flex-wrap: nowrap;
justify-content: flex-start;
box-sizing: border-box;
}
// 面包屑容器滚动条样式
.bread-crumb::-webkit-scrollbar {
height: 4px;
}
.bread-crumb::-webkit-scrollbar-track {
background-color: #f1f1f1;
border-radius: 2px;
}
.bread-crumb::-webkit-scrollbar-thumb {
background-color: #c1c1c1;
border-radius: 2px;
}
.bread-crumb::-webkit-scrollbar-thumb:hover {
background-color: #a1a1a1;
}
// 面包屑导航容器
.ant-breadcrumb {
display: flex !important;
flex-wrap: nowrap !important;
align-items: center;
gap: 8px;
margin: 0;
padding: 0;
}
// 面包屑项基础样式
.breadcrumb-item {
height: 32px;
padding: 0 12px;
border-radius: 16px;
background-color: #fff;
border: 1px solid #E8E8E8;
margin-right: 8px;
display: flex;
align-items: center;
transition: all 0.3s ease;
cursor: pointer;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 180px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
box-sizing: border-box;
// 移除默认的分隔符
.ant-breadcrumb-separator {
display: none !important;
}
// 链接样式
.ant-breadcrumb-link {
display: flex;
align-items: center;
height: 100%;
color: #808080 !important;
background: transparent !important;
padding: 0;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
// 悬停效果
&:hover {
border-color: #0056FF;
// transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 86, 255, 0.1);
}
}
// 面包屑项选中状态样式
.breadcrumb-item-active {
background-color: #ECF2FF;
border-color: #0056FF;
.ant-breadcrumb-link {
color: #0056FF !important;
font-weight: 500;
}
}
// 面包屑项内容容器
.breadcrumb-item-content {
display: flex;
align-items: center;
height: 100%;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
}
// 面包屑项文本样式
.breadcrumb-item-text {
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
}
// 关闭图标样式
.breadcrumb-close-icon {
font-size: 14px;
color: #7D9CD8;
margin-left: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: color 0.3s ease;
flex-shrink: 0;
&:hover {
color: #0056FF;
}
}
// 确保所有面包屑链接样式一致
.ant-breadcrumb-link {
color: #808080 !important;
transition: color 0.3s ease;
}
.ant-breadcrumb-link:hover {
color: #0056FF !important;
}
.ant-breadcrumb-item-active .ant-breadcrumb-link {
color: #0056FF !important;
}