nex_docus/frontend/src/components/MainLayout/AppHeader.css

130 lines
2.0 KiB
CSS

.app-header {
background: #fff;
padding: 0 24px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
height: 64px;
border-bottom: 1px solid #f0f0f0;
}
/* 左侧区域 */
.header-left {
display: flex;
align-items: center;
gap: 16px;
}
/* Logo 区域 */
.header-logo {
display: flex;
align-items: center;
justify-content: center;
width: 168px;
transition: width 0.2s;
}
.logo-small {
width: 40px;
height: 40px;
border-radius: 8px;
transition: all 0.2s;
}
.logo-full {
height: 32px;
width: auto;
transition: all 0.2s;
}
.trigger {
font-size: 18px;
cursor: pointer;
transition: color 0.3s;
padding: 8px;
border-radius: 4px;
color: rgba(0, 0, 0, 0.65);
display: flex;
align-items: center;
}
.trigger:hover {
color: #b8178d;
background: rgba(184, 23, 141, 0.06);
}
/* 右侧区域 */
.header-right {
display: flex;
align-items: center;
gap: 16px;
}
.header-search {
border-radius: 16px;
}
.header-actions {
display: flex;
align-items: center;
}
.header-icon {
font-size: 16px;
color: rgba(0, 0, 0, 0.65);
cursor: pointer;
transition: all 0.3s;
padding: 8px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
}
.header-icon:hover {
color: #b8178d;
background: rgba(184, 23, 141, 0.06);
}
.header-link {
font-size: 14px;
color: rgba(0, 0, 0, 0.65);
cursor: pointer;
transition: all 0.3s;
padding: 6px 12px;
border-radius: 4px;
display: flex;
align-items: center;
gap: 4px;
}
.header-link:hover {
color: #b8178d;
background: rgba(184, 23, 141, 0.06);
}
.user-info {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
transition: all 0.3s;
}
.user-info:hover {
background: rgba(184, 23, 141, 0.06);
}
.username {
font-size: 14px;
color: rgba(0, 0, 0, 0.88);
font-weight: 500;
}
.ml-1 {
margin-left: 4px;
}