Commit d3955af2 authored by liujiangnan's avatar liujiangnan

feat: 块调整还不完善,先记一版

parent 6455e64c
......@@ -519,19 +519,20 @@ html, body {
display: block !important;
position: absolute !important;
height: 100% !important;
width: 8px !important;
width: 1px !important;
top: 0 !important;
cursor: ew-resize !important;
z-index: 3 !important;
background: transparent !important;
}
.wavesurfer-handle-start {
left: 0 !important;
background-color: rgba(0, 255, 0, 0.8) !important;
}
.wavesurfer-handle-end {
right: 0 !important;
background-color: rgba(255, 0, 0, 0.8) !important;
}
/* 波形图的进度条样式 */
......@@ -563,6 +564,21 @@ html, body {
background-color: rgba(255, 165, 0, 0.4) !important;
}
.wavesurfer-region[data-id^="group-"] .wavesurfer-handle {
display: block !important;
width: 1px !important;
height: 100% !important;
cursor: ew-resize !important;
}
.wavesurfer-region[data-id^="group-"] .wavesurfer-handle-start {
background-color: rgba(0, 255, 0, 0.8) !important;
}
.wavesurfer-region[data-id^="group-"] .wavesurfer-handle-end {
background-color: rgba(255, 0, 0, 0.8) !important;
}
/* 锁定状态下的标记样式 */
.wavesurfer-region[data-id$="-start"] {
background-color: rgba(0, 255, 0, 0.8) !important;
......@@ -576,14 +592,39 @@ html, body {
z-index: 5 !important;
}
/* 锁定状态下隐藏非当前页面的区间 */
/* 锁定状态下的组区间样式 */
.page-locked .wavesurfer-region[data-id^="group-"] {
display: block !important;
background-color: rgba(255, 165, 0, 0.3) !important;
border: 1px solid rgba(255, 165, 0, 0.5) !important;
}
/* 锁定状态下禁用区间拖动 */
.page-locked .wavesurfer-region .wavesurfer-handle {
display: none !important;
/* 锁定状态下允许组区间显示手柄 */
.page-locked .wavesurfer-region[data-id^="group-"] .wavesurfer-handle {
display: block !important;
width: 1px !important;
height: 100% !important;
cursor: ew-resize !important;
}
.page-locked .wavesurfer-region[data-id^="group-"] .wavesurfer-handle-start {
background-color: rgba(0, 255, 0, 0.8) !important;
}
.page-locked .wavesurfer-region[data-id^="group-"] .wavesurfer-handle-end {
background-color: rgba(255, 0, 0, 0.8) !important;
}
#waveform ::part(region-handle-start) {
background-color: rgba(0, 255, 0, 0.8) !important;
width: 1px !important;
height: 100% !important;
cursor: ew-resize !important;
}
#waveform ::part(region-handle-end) {
background-color: rgba(255, 0, 0, 0.8) !important;
width: 1px !important;
height: 100% !important;
cursor: ew-resize !important;
}
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment