mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-12-29 03:00:18 +00:00
52 lines
1021 B
SCSS
52 lines
1021 B
SCSS
.m-editor-resizer {
|
|
border-left: 1px solid transparent;
|
|
border-right: 1px solid transparent;
|
|
width: 8px;
|
|
margin: 0 -5px;
|
|
height: 100%;
|
|
opacity: 0.9;
|
|
background: padding-box #d8dee8;
|
|
box-sizing: border-box;
|
|
cursor: col-resize;
|
|
z-index: 1;
|
|
|
|
&:hover {
|
|
border-color: #d8dee8;
|
|
}
|
|
|
|
.icon-container {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: opacity 0.4s;
|
|
width: 20px;
|
|
height: 120px;
|
|
line-height: 120px;
|
|
text-align: center;
|
|
background: #d8dee8;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
cursor: pointer;
|
|
&.position-left {
|
|
transform: translate(calc(-100% - 4px), -50%);
|
|
}
|
|
&.position-right {
|
|
transform: translate(calc(100% + 4px), -50%);
|
|
}
|
|
}
|
|
.icon {
|
|
color: #fff;
|
|
font-size: 18px;
|
|
}
|
|
}
|
|
|
|
.magic-editor-resizer:hover {
|
|
.icon-container {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
// border-left: 5px solid rgba(0,0,0,.5);
|
|
// border-right: 5px solid rgba(0,0,0,.5);
|
|
}
|