.code-mirror-wrap {
|
font-size : 14px;
|
line-height : 25px;
|
position: relative;
|
.anticon-fullscreen {
|
position: absolute;
|
z-index: 10;
|
right: 10px;
|
top: 5px;
|
font-size: 18px;
|
opacity: 0.7;
|
color: #1890ff;
|
cursor: pointer;
|
transition: opacity 0.3s;
|
}
|
.anticon-fullscreen:hover {
|
opacity: 1;
|
}
|
.anticon-fullscreen-exit {
|
position: fixed;
|
z-index: 11;
|
right: 10px;
|
top: 5px;
|
font-size: 20px;
|
opacity: 0.7;
|
color: #1890ff;
|
cursor: pointer;
|
transition: opacity 0.3s;
|
}
|
.anticon-fullscreen-exit:hover {
|
opacity: 1;
|
}
|
.anticon-font-size {
|
position: fixed;
|
z-index: 11;
|
right: 10px;
|
top: 40px;
|
font-size: 20px;
|
opacity: 0.7;
|
color: #1890ff;
|
cursor: pointer;
|
transition: opacity 0.3s;
|
}
|
.anticon-font-size:hover {
|
opacity: 1;
|
}
|
.code-mirror-area {
|
border-radius: 4px;
|
border: 1px solid #d9d9d9;
|
.CodeMirror {
|
border-radius: 4px;
|
min-height: 100px;
|
}
|
.CodeMirror-fullscreen.CodeMirror {
|
border-radius: 0;
|
position: fixed;
|
z-index: 10;
|
}
|
.CodeMirror-linenumber {
|
font-size: 14px;
|
}
|
|
// 重置模态框滚动条
|
.CodeMirror-vscrollbar::-webkit-scrollbar {
|
width: 7px;
|
}
|
.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {
|
border-radius: 4px;
|
box-shadow: inset 0 0 5px #bfbfbf;
|
background: #bfbfbf;
|
}
|
.CodeMirror-vscrollbar::-webkit-scrollbar-track {
|
box-shadow: inset 0 0 5px #f5f5f5;
|
border-radius: 4px;
|
border: 1px solid rgba(255, 255, 255, 0.93);
|
background: #f5f5f5;
|
}
|
}
|
}
|