mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-07-24 02:36:55 +08:00
- 拖拽/缩放开始时插入全屏透明遮罩盖住 iframe,结束时移除,避免事件被 iframe 吞掉 - 修正拖拽标题时 z-index 竞态导致遮罩被浮窗盖住的问题 - 将 body 内边距从 scss 抽取为 bodyStyle 透传,复用方按需自定义
43 lines
749 B
SCSS
43 lines
749 B
SCSS
@use "common/var" as *;
|
|
|
|
.m-editor-float-box {
|
|
position: absolute;
|
|
background-color: #fff;
|
|
z-index: 100;
|
|
border: 1px solid $border-color;
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
|
|
.m-editor-float-box-title {
|
|
text-align: center;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
padding: 5px;
|
|
cursor: move;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-bottom: 1px solid $border-color;
|
|
}
|
|
|
|
.m-editor-float-box-body {
|
|
overflow: auto;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.m-editor-floating-box-moveable {
|
|
opacity: 0;
|
|
}
|
|
|
|
.m-editor-float-box-drag-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
}
|