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.

164 lines
3.2 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// 面包屑容器样式
.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: 8px;
// 使用rgba格式设置带透明度的背景色最后一个参数0.13表示13%的透明度
background-color: rgba(186, 186, 186, 0.13);
// 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: rgba(94, 121, 246, 0.13);
// border-color: #0056FF;
.ant-breadcrumb-link {
color: #0056FF !important;
font-weight: 500;
}
}
// 面包屑文本选中状态样式 - 对应第252行代码中的条件样式
.breadcrumb-item-text-active {
color: #0056FF !important;
font-weight: 500;
}
// 面包屑项内容容器
.breadcrumb-item-content {
display: flex;
align-items: center;
height: 100%;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
gap: 20px;
}
// 面包屑项文本样式
.breadcrumb-item-text {
font-weight: 500;
font-size: 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex: 1;
.breadcrumb-item-text-active {
color: #0056FF !important;
}
}
// 关闭图标样式
.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;
}