feat: 为输入框添加拖动对齐辅助线,优化排版定位体验
This commit is contained in:
@@ -355,3 +355,31 @@ html, body {
|
||||
.context-menu-item:active {
|
||||
background: #e8e8e8;
|
||||
}
|
||||
|
||||
/* 拖拽辅助线 */
|
||||
.guide-line {
|
||||
position: absolute;
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.guide-horizontal {
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: #4a90e2;
|
||||
box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
|
||||
}
|
||||
|
||||
.guide-vertical {
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
background: #4a90e2;
|
||||
box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
|
||||
}
|
||||
|
||||
.guide-line.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user