美化processbar
This commit is contained in:
@@ -168,49 +168,53 @@
|
||||
display: flex;
|
||||
flex-direction: row; /* 使子框横向排列 */
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
gap: 2px; /* 进度条之间的间距 */
|
||||
}
|
||||
|
||||
.progress-title {
|
||||
height: 60px;
|
||||
text-align: center;
|
||||
line-height: 60px;
|
||||
margin-right: 2px;
|
||||
border: 1px solid #ddd;
|
||||
transition: background-color 0.3s ease;
|
||||
height: 8px; /* 更细的进度条 */
|
||||
flex: 1; /* 均匀分配宽度 */
|
||||
border-radius: 4px; /* 圆角设计,更扁平化 */
|
||||
transition: all 0.3s ease; /* 平滑过渡效果 */
|
||||
position: relative;
|
||||
|
||||
/* 新增以下属性实现文字溢出省略 */
|
||||
white-space: nowrap; /* 防止文字换行 */
|
||||
overflow: hidden; /* 隐藏溢出内容 */
|
||||
text-overflow: ellipsis; /* 溢出部分显示为省略号 */
|
||||
cursor: pointer;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,0.1); /* 轻微阴影,增加层次感 */
|
||||
overflow: visible; /* 允许文字溢出 */
|
||||
}
|
||||
|
||||
/* 颜色方案:已学习为蓝色,当前学习为绿色,未学习为白色 */
|
||||
.blue {
|
||||
background-color: #007bff; /* 蓝色 - 已学习 */
|
||||
}
|
||||
|
||||
.green {
|
||||
background-color: green;
|
||||
color: white;
|
||||
background-color: #28a745; /* 绿色 - 当前学习 */
|
||||
}
|
||||
|
||||
.white {
|
||||
background-color: white;
|
||||
color: black;
|
||||
background-color: #e9ecef; /* 浅灰色 - 未学习,比纯白色更美观 */
|
||||
}
|
||||
|
||||
.progress-box > .progress-title:last-child {
|
||||
margin-bottom: 0; /* 防止最后一个子框出现多余的间距 */
|
||||
/* 进度条悬停效果 */
|
||||
.progress-title:hover {
|
||||
transform: translateY(-1px); /* 轻微上浮效果 */
|
||||
box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 增强阴影 */
|
||||
}
|
||||
|
||||
/* 进度条详细信息的样式 */
|
||||
#progress-detail {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
display: none;
|
||||
padding: 10px;
|
||||
background-color: rgba(0, 0, 0, 0.7);
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
color: white;
|
||||
border-radius: 5px;
|
||||
border-radius: 6px;
|
||||
max-width: 200px;
|
||||
font-size: 14px;
|
||||
z-index: 1000;
|
||||
pointer-events: none; /* 防止干扰鼠标事件 */
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 增强阴影 */
|
||||
}
|
||||
|
||||
.button {
|
||||
|
||||
Reference in New Issue
Block a user