forked from Gitlink/forgeplus-react
200 lines
4.8 KiB
SCSS
200 lines
4.8 KiB
SCSS
.quill_editor_for_react_area {
|
|
|
|
// background: #fff;
|
|
// margin: 0 15px;
|
|
.ql-editing {
|
|
left: 0 !important;
|
|
}
|
|
|
|
.ql-editor {
|
|
img {
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="12px"]::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="12px"]::before {
|
|
content: '12px';
|
|
font-size: 12px;
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
|
|
content: '14px';
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="16px"]::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="16px"]::before {
|
|
content: '16px';
|
|
font-size: 16px;
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="18px"]::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="18px"]::before {
|
|
content: '18px';
|
|
font-size: 18px;
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="20px"]::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="20px"]::before {
|
|
content: '20px';
|
|
font-size: 20px;
|
|
}
|
|
|
|
//默认的样式
|
|
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
|
|
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
|
|
content: '14px';
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=SimSun]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=SimSun]::before {
|
|
content: "宋体";
|
|
font-family: "SimSun";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=SimHei]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=SimHei]::before {
|
|
content: "黑体";
|
|
font-family: "SimHei";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Microsoft-YaHei]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Microsoft-YaHei]::before {
|
|
content: "微软雅黑";
|
|
font-family: "Microsoft YaHei";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=KaiTi]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=KaiTi]::before {
|
|
content: "楷体";
|
|
font-family: "KaiTi";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=FangSong]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=FangSong]::before {
|
|
content: "仿宋";
|
|
font-family: "FangSong";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Arial]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Arial]::before {
|
|
content: "Arial";
|
|
font-family: "Arial";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=Times-New-Roman]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=Times-New-Roman]::before {
|
|
content: "Times New Roman";
|
|
font-family: "Times New Roman";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=sans-serif]::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=sans-serif]::before {
|
|
content: "sans-serif";
|
|
font-family: "sans-serif";
|
|
}
|
|
|
|
.ql-font-SimSun {
|
|
font-family: "SimSun";
|
|
}
|
|
|
|
.ql-font-SimHei {
|
|
font-family: "SimHei";
|
|
}
|
|
|
|
.ql-font-Microsoft-YaHei {
|
|
font-family: "Microsoft YaHei";
|
|
}
|
|
|
|
.ql-font-KaiTi {
|
|
font-family: "KaiTi";
|
|
}
|
|
|
|
.ql-font-FangSong {
|
|
font-family: "FangSong";
|
|
}
|
|
|
|
.ql-font-Arial {
|
|
font-family: "Arial";
|
|
}
|
|
|
|
.ql-font-Times-New-Roman {
|
|
font-family: "Times New Roman";
|
|
}
|
|
|
|
.ql-font-sans-serif {
|
|
font-family: "sans-serif";
|
|
}
|
|
|
|
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
|
|
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
|
|
content: "微软雅黑";
|
|
font-family: "Microsoft YaHei";
|
|
}
|
|
|
|
// 填空图标
|
|
.ql-snow .ql-fill {
|
|
display: inline-block;
|
|
position: relative;
|
|
color: #05101A;
|
|
// font-size: 18px;
|
|
vertical-align: top;
|
|
|
|
&::before {
|
|
position: absolute;
|
|
left: 50%;
|
|
top: -1px;
|
|
content: '\e691';
|
|
font-family: 'iconfont';
|
|
margin-left: -7px;
|
|
}
|
|
}
|
|
|
|
//块点不动
|
|
.ql-toolbar .ql-formats .ql-code-block svg {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
.fill-tip {
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
display: inline-block;
|
|
padding: 5px;
|
|
border: 1px solid #eaeaea;
|
|
border-radius: 5px;
|
|
box-sizing: border-box;
|
|
line-height: 16px;
|
|
color: #666;
|
|
position: relative;
|
|
justify-content: center;
|
|
margin-left: 10px;
|
|
|
|
&::before {
|
|
content: ' ';
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 6px solid transparent;
|
|
border-bottom: 6px solid transparent;
|
|
border-right: 6px solid #fff;
|
|
position: absolute;
|
|
left: -6px;
|
|
top: 6px;
|
|
z-index: 10;
|
|
}
|
|
|
|
&::after {
|
|
content: ' ';
|
|
width: 0;
|
|
height: 0;
|
|
border-top: 6px solid transparent;
|
|
border-bottom: 6px solid transparent;
|
|
border-right: 6px solid #cccbcb;
|
|
position: absolute;
|
|
left: -7px;
|
|
top: 6px;
|
|
}
|
|
} |