Files
hsa/Html/apps/static/css/navbar.css
Caikecheng 2f9bc7df70 look
2025-10-16 14:13:56 +08:00

81 lines
1.5 KiB
CSS

/* 页眉导航栏 基础样式 */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
background-color: #ffffff;
padding: 10px 20px;
border-bottom: 1px solid #eee;
margin: 0;
}
/* 导航栏 Logo 样式 */
.navbar .logo h1 {
font-size: 20px;
font-weight: bold;
color: #1f2937;
margin: 0;
}
/* 导航链接样式 */
.navbar-links a {
color: #4b5563;
text-decoration: none;
margin: 0 15px;
font-size: 18px;
transition: color 0.3s;
}
.navbar-links a:hover {
color: #2575fc;
}
/* 头像容器样式 */
.navbar .avatar {
margin-left: 0;
}
.navbar .avatar img {
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
}
/* 下拉浮框 基础定位 */
.dropdown {
position: relative;
display: inline-block;
}
/* 下拉浮框 内容样式(默认隐藏) */
.dropdown-content {
display: none;
position: absolute;
right: 0;
background-color: white;
min-width: 160px;
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
border-radius: 6px;
z-index: 1;
padding: 8px 0;
font-size: 14px;
}
/* 下拉浮框 链接样式 */
.dropdown-content a {
color: #4b5563;
text-decoration: none;
padding: 8px 12px;
display: block;
transition: background-color 0.3s;
}
.dropdown-content a:hover {
background-color: #f3f4f6;
}
/* 下拉浮框 hover 显示 */
.dropdown:hover .dropdown-content {
display: block;
}