vue-editify 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
 - package/examples/App.vue +62 -53
 - package/examples/main.ts +4 -4
 - package/lib/components/button/button.vue.d.ts +11 -11
 - package/lib/components/checkbox/checkbox.vue.d.ts +8 -8
 - package/lib/components/colors/colors.vue.d.ts +4 -4
 - package/lib/components/icon/icon.vue.d.ts +1 -1
 - package/lib/components/insertImage/insertImage.vue.d.ts +9 -9
 - package/lib/components/insertLink/insertLink.vue.d.ts +2 -2
 - package/lib/components/insertTable/insertTable.vue.d.ts +2 -2
 - package/lib/components/insertVideo/insertVideo.vue.d.ts +9 -9
 - package/lib/components/layer/layer.vue.d.ts +9 -9
 - package/lib/components/menu/menu.vue.d.ts +4 -4
 - package/lib/components/toolbar/toolbar.vue.d.ts +9 -9
 - package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
 - package/lib/components/triangle/triangle.vue.d.ts +4 -4
 - package/lib/editify/editify.vue.d.ts +88 -70
 - package/lib/editify/props.d.ts +11 -3
 - package/lib/editify.es.js +65 -46
 - package/lib/editify.umd.js +1 -1
 - package/lib/index.d.ts +1 -1
 - package/lib/style.css +1 -1
 - package/package.json +45 -45
 - package/src/components/button/button.less +145 -145
 - package/src/components/button/button.vue +197 -197
 - package/src/components/button/props.ts +95 -95
 - package/src/components/checkbox/checkbox.less +84 -84
 - package/src/components/checkbox/checkbox.vue +68 -68
 - package/src/components/checkbox/props.ts +49 -49
 - package/src/components/colors/colors.less +75 -75
 - package/src/components/colors/colors.vue +36 -36
 - package/src/components/colors/props.ts +29 -29
 - package/src/components/icon/icon.less +14 -14
 - package/src/components/icon/icon.vue +12 -12
 - package/src/components/icon/props.ts +11 -11
 - package/src/components/insertImage/insertImage.less +135 -135
 - package/src/components/insertImage/insertImage.vue +146 -146
 - package/src/components/insertImage/props.ts +43 -43
 - package/src/components/insertLink/insertLink.less +64 -64
 - package/src/components/insertLink/insertLink.vue +58 -58
 - package/src/components/insertLink/props.ts +16 -16
 - package/src/components/insertTable/insertTable.less +54 -54
 - package/src/components/insertTable/insertTable.vue +85 -85
 - package/src/components/insertTable/props.ts +27 -27
 - package/src/components/insertVideo/insertVideo.less +135 -135
 - package/src/components/insertVideo/insertVideo.vue +146 -146
 - package/src/components/insertVideo/props.ts +43 -43
 - package/src/components/layer/layer.less +49 -49
 - package/src/components/layer/layer.vue +598 -598
 - package/src/components/layer/props.ts +71 -71
 - package/src/components/menu/menu.less +63 -63
 - package/src/components/menu/menu.vue +1569 -1569
 - package/src/components/menu/props.ts +17 -17
 - package/src/components/toolbar/props.ts +35 -35
 - package/src/components/toolbar/toolbar.less +89 -89
 - package/src/components/toolbar/toolbar.vue +1101 -1101
 - package/src/components/tooltip/props.ts +21 -21
 - package/src/components/tooltip/tooltip.less +23 -23
 - package/src/components/tooltip/tooltip.vue +37 -37
 - package/src/components/triangle/props.ts +26 -26
 - package/src/components/triangle/triangle.less +79 -79
 - package/src/components/triangle/triangle.vue +65 -65
 - package/src/core/function.ts +1144 -1144
 - package/src/core/rule.ts +259 -259
 - package/src/core/tool.ts +1137 -1137
 - package/src/css/base.less +30 -30
 - package/src/css/hljs.less +54 -54
 - package/src/editify/editify.less +404 -403
 - package/src/editify/editify.vue +803 -792
 - package/src/editify/props.ts +156 -146
 - package/src/hljs/index.ts +197 -197
 - package/src/icon/iconfont.css +219 -219
 - package/src/index.ts +32 -32
 - package/src/locale/en_US.ts +88 -88
 - package/src/locale/index.ts +12 -12
 - package/src/locale/zh_CN.ts +88 -88
 - package/tsconfig.json +27 -27
 - package/tsconfig.node.json +11 -11
 - package/vite-env.d.ts +1 -1
 - package/vite.config.ts +42 -42
 
    
        package/src/editify/editify.less
    CHANGED
    
    | 
         @@ -1,403 +1,404 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            .editify {
         
     | 
| 
       2 
     | 
    
         
            -
            	display: flex;
         
     | 
| 
       3 
     | 
    
         
            -
            	justify-content: flex-start;
         
     | 
| 
       4 
     | 
    
         
            -
            	flex-direction: column;
         
     | 
| 
       5 
     | 
    
         
            -
            	width: 100%;
         
     | 
| 
       6 
     | 
    
         
            -
            	height: 100%;
         
     | 
| 
       7 
     | 
    
         
            -
            	position: relative;
         
     | 
| 
       8 
     | 
    
         
            -
            	box-sizing: border-box;
         
     | 
| 
       9 
     | 
    
         
            -
            	-webkit-tap-highlight-color: transparent;
         
     | 
| 
       10 
     | 
    
         
            -
            	outline: none;
         
     | 
| 
       11 
     | 
    
         
            -
            	font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Roboto, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
         
     | 
| 
       12 
     | 
    
         
            -
            	line-height: 1.5;
         
     | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
            	*,
         
     | 
| 
       15 
     | 
    
         
            -
            	*::before,
         
     | 
| 
       16 
     | 
    
         
            -
            	*::after {
         
     | 
| 
       17 
     | 
    
         
            -
            		box-sizing: border-box;
         
     | 
| 
       18 
     | 
    
         
            -
            		-webkit-tap-highlight-color: transparent;
         
     | 
| 
       19 
     | 
    
         
            -
            		outline: none;
         
     | 
| 
       20 
     | 
    
         
            -
            	}
         
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
            	&.fullscreen {
         
     | 
| 
       23 
     | 
    
         
            -
            		position: fixed;
         
     | 
| 
       24 
     | 
    
         
            -
            		z-index: 1000;
         
     | 
| 
       25 
     | 
    
         
            -
            		left: 0;
         
     | 
| 
       26 
     | 
    
         
            -
            		top: 0;
         
     | 
| 
       27 
     | 
    
         
            -
            		width: 100vw !important;
         
     | 
| 
       28 
     | 
    
         
            -
            		height: 100vh !important;
         
     | 
| 
       29 
     | 
    
         
            -
            		background: @background;
         
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
            		.editify-body {
         
     | 
| 
       32 
     | 
    
         
            -
            			border-radius: 0;
         
     | 
| 
       33 
     | 
    
         
            -
            		}
         
     | 
| 
       34 
     | 
    
         
            -
            	}
         
     | 
| 
       35 
     | 
    
         
            -
             
     | 
| 
       36 
     | 
    
         
            -
            	&.autoheight {
         
     | 
| 
       37 
     | 
    
         
            -
            		height: auto;
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
            		.editify-body {
         
     | 
| 
       40 
     | 
    
         
            -
            			height: auto;
         
     | 
| 
       41 
     | 
    
         
            -
            			flex: none;
         
     | 
| 
       42 
     | 
    
         
            -
            		}
         
     | 
| 
       43 
     | 
    
         
            -
            	}
         
     | 
| 
       44 
     | 
    
         
            -
            }
         
     | 
| 
       45 
     | 
    
         
            -
             
     | 
| 
       46 
     | 
    
         
            -
            .editify-body {
         
     | 
| 
       47 
     | 
    
         
            -
            	display: block;
         
     | 
| 
       48 
     | 
    
         
            -
            	width: 100%;
         
     | 
| 
       49 
     | 
    
         
            -
            	height: 0;
         
     | 
| 
       50 
     | 
    
         
            -
            	flex: 1;
         
     | 
| 
       51 
     | 
    
         
            -
            	position: relative;
         
     | 
| 
       52 
     | 
    
         
            -
            	background-color: @background;
         
     | 
| 
       53 
     | 
    
         
            -
            	padding: 1px;
         
     | 
| 
       54 
     | 
    
         
            -
            	border-radius: 4px;
         
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
            	&.border {
         
     | 
| 
       57 
     | 
    
         
            -
            		border: 1px solid @border-color;
         
     | 
| 
       58 
     | 
    
         
            -
            		transition: all 500ms;
         
     | 
| 
       59 
     | 
    
         
            -
             
     | 
| 
       60 
     | 
    
         
            -
            		&.menu_inner {
         
     | 
| 
       61 
     | 
    
         
            -
            			border-top: none;
         
     | 
| 
       62 
     | 
    
         
            -
            			border-radius: 0 0 4px 4px;
         
     | 
| 
       63 
     | 
    
         
            -
            		}
         
     | 
| 
       64 
     | 
    
         
            -
            	}
         
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
            	&.menu_inner {
         
     | 
| 
       67 
     | 
    
         
            -
            		padding-top: 21px;
         
     | 
| 
       68 
     | 
    
         
            -
             
     | 
| 
       69 
     | 
    
         
            -
            		.editify-source {
         
     | 
| 
       70 
     | 
    
         
            -
            			top: 21px;
         
     | 
| 
       71 
     | 
    
         
            -
            			height: calc(100% - 21px);
         
     | 
| 
       72 
     | 
    
         
            -
            		}
         
     | 
| 
       73 
     | 
    
         
            -
            	}
         
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
            	//编辑器样式
         
     | 
| 
       76 
     | 
    
         
            -
            	.editify-content {
         
     | 
| 
       77 
     | 
    
         
            -
            		display: block;
         
     | 
| 
       78 
     | 
    
         
            -
            		position: relative;
         
     | 
| 
       79 
     | 
    
         
            -
            		overflow-x: hidden;
         
     | 
| 
       80 
     | 
    
         
            -
            		overflow-y: auto;
         
     | 
| 
       81 
     | 
    
         
            -
            		width: 100%;
         
     | 
| 
       82 
     | 
    
         
            -
            		height: 100%;
         
     | 
| 
       83 
     | 
    
         
            -
            		border-radius: inherit;
         
     | 
| 
       84 
     | 
    
         
            -
            		padding: 6px 10px;
         
     | 
| 
       85 
     | 
    
         
            -
            		line-height: 1.5;
         
     | 
| 
       86 
     | 
    
         
            -
            		color: @font-color-dark;
         
     | 
| 
       87 
     | 
    
         
            -
            		font-size: @font-size;
         
     | 
| 
       88 
     | 
    
         
            -
            		position: relative;
         
     | 
| 
       89 
     | 
    
         
            -
            		line-height: 1.5;
         
     | 
| 
       90 
     | 
    
         
            -
             
     | 
| 
       91 
     | 
    
         
            -
            		//显示占位符
         
     | 
| 
       92 
     | 
    
         
            -
            		&.placeholder::before {
         
     | 
| 
       93 
     | 
    
         
            -
            			position: absolute;
         
     | 
| 
       94 
     | 
    
         
            -
            			top: 0;
         
     | 
| 
       95 
     | 
    
         
            -
            			left: 0;
         
     | 
| 
       96 
     | 
    
         
            -
            			display: block;
         
     | 
| 
       97 
     | 
    
         
            -
            			width: 100%;
         
     | 
| 
       98 
     | 
    
         
            -
            			content: attr(data-editify-placeholder);
         
     | 
| 
       99 
     | 
    
         
            -
            			font-size: inherit;
         
     | 
| 
       100 
     | 
    
         
            -
            			font-family: inherit;
         
     | 
| 
       101 
     | 
    
         
            -
            			color: @font-color-disabled;
         
     | 
| 
       102 
     | 
    
         
            -
            			line-height: inherit;
         
     | 
| 
       103 
     | 
    
         
            -
            			padding: 6px 10px;
         
     | 
| 
       104 
     | 
    
         
            -
            			cursor: text;
         
     | 
| 
       105 
     | 
    
         
            -
            			touch-action: none;
         
     | 
| 
       106 
     | 
    
         
            -
            			user-select: none;
         
     | 
| 
       107 
     | 
    
         
            -
            		}
         
     | 
| 
       108 
     | 
    
         
            -
             
     | 
| 
       109 
     | 
    
         
            -
            		//段落样式和标题
         
     | 
| 
       110 
     | 
    
         
            -
            		:deep(p),
         
     | 
| 
       111 
     | 
    
         
            -
            		:deep(h1),
         
     | 
| 
       112 
     | 
    
         
            -
            		:deep(h2),
         
     | 
| 
       113 
     | 
    
         
            -
            		:deep(h3),
         
     | 
| 
       114 
     | 
    
         
            -
            		:deep(h4),
         
     | 
| 
       115 
     | 
    
         
            -
            		:deep(h5),
         
     | 
| 
       116 
     | 
    
         
            -
            		:deep(h6) {
         
     | 
| 
       117 
     | 
    
         
            -
            			display: block;
         
     | 
| 
       118 
     | 
    
         
            -
            			width: 100%;
         
     | 
| 
       119 
     | 
    
         
            -
            			margin: 0 0 15px 0;
         
     | 
| 
       120 
     | 
    
         
            -
            			padding: 0;
         
     | 
| 
       121 
     | 
    
         
            -
            		}
         
     | 
| 
       122 
     | 
    
         
            -
            		:deep(h1) {
         
     | 
| 
       123 
     | 
    
         
            -
            			font-size: 32px;
         
     | 
| 
       124 
     | 
    
         
            -
            		}
         
     | 
| 
       125 
     | 
    
         
            -
            		:deep(h2) {
         
     | 
| 
       126 
     | 
    
         
            -
            			font-size: 28px;
         
     | 
| 
       127 
     | 
    
         
            -
            		}
         
     | 
| 
       128 
     | 
    
         
            -
            		:deep(h3) {
         
     | 
| 
       129 
     | 
    
         
            -
            			font-size: 24px;
         
     | 
| 
       130 
     | 
    
         
            -
            		}
         
     | 
| 
       131 
     | 
    
         
            -
            		:deep(h4) {
         
     | 
| 
       132 
     | 
    
         
            -
            			font-size: 20px;
         
     | 
| 
       133 
     | 
    
         
            -
            		}
         
     | 
| 
       134 
     | 
    
         
            -
            		:deep(h5) {
         
     | 
| 
       135 
     | 
    
         
            -
            			font-size: 18px;
         
     | 
| 
       136 
     | 
    
         
            -
            		}
         
     | 
| 
       137 
     | 
    
         
            -
            		:deep(h6) {
         
     | 
| 
       138 
     | 
    
         
            -
            			font-size: 16px;
         
     | 
| 
       139 
     | 
    
         
            -
            		}
         
     | 
| 
       140 
     | 
    
         
            -
            		//有序列表样式
         
     | 
| 
       141 
     | 
    
         
            -
            		:deep(div[data-editify-list='ol']) {
         
     | 
| 
       142 
     | 
    
         
            -
            			margin-bottom: 15px;
         
     | 
| 
       143 
     | 
    
         
            -
             
     | 
| 
       144 
     | 
    
         
            -
            			&::before {
         
     | 
| 
       145 
     | 
    
         
            -
            				content: attr(data-editify-value) '.';
         
     | 
| 
       146 
     | 
    
         
            -
            				margin-right: 10px;
         
     | 
| 
       147 
     | 
    
         
            -
            			}
         
     | 
| 
       148 
     | 
    
         
            -
            		}
         
     | 
| 
       149 
     | 
    
         
            -
            		//无序列表样式
         
     | 
| 
       150 
     | 
    
         
            -
            		:deep(div[data-editify-list='ul']) {
         
     | 
| 
       151 
     | 
    
         
            -
            			margin-bottom: 15px;
         
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
     | 
    
         
            -
            			&::before {
         
     | 
| 
       154 
     | 
    
         
            -
            				content: '\2022';
         
     | 
| 
       155 
     | 
    
         
            -
            				margin-right: 10px;
         
     | 
| 
       156 
     | 
    
         
            -
            			}
         
     | 
| 
       157 
     | 
    
         
            -
            		}
         
     | 
| 
       158 
     | 
    
         
            -
            		//代码样式
         
     | 
| 
       159 
     | 
    
         
            -
            		:deep(span[data-editify-code]) {
         
     | 
| 
       160 
     | 
    
         
            -
            			display: inline-block;
         
     | 
| 
       161 
     | 
    
         
            -
            			padding: 3px 6px;
         
     | 
| 
       162 
     | 
    
         
            -
            			margin: 0 4px;
         
     | 
| 
       163 
     | 
    
         
            -
            			border-radius: 4px;
         
     | 
| 
       164 
     | 
    
         
            -
            			line-height: 1;
         
     | 
| 
       165 
     | 
    
         
            -
            			font-family: Consolas, monospace, Monaco, Andale Mono, Ubuntu Mono;
         
     | 
| 
       166 
     | 
    
         
            -
            			background-color: @pre-background;
         
     | 
| 
       167 
     | 
    
         
            -
            			color: @font-color;
         
     | 
| 
       168 
     | 
    
         
            -
            			border: 1px solid @border-color;
         
     | 
| 
       169 
     | 
    
         
            -
            			text-indent: initial;
         
     | 
| 
       170 
     | 
    
         
            -
            			font-size: @font-size;
         
     | 
| 
       171 
     | 
    
         
            -
            			font-weight: normal;
         
     | 
| 
       172 
     | 
    
         
            -
            		}
         
     | 
| 
       173 
     | 
    
         
            -
            		//链接样式
         
     | 
| 
       174 
     | 
    
         
            -
            		:deep(a) {
         
     | 
| 
       175 
     | 
    
         
            -
            			color: @font-color-link;
         
     | 
| 
       176 
     | 
    
         
            -
            			transition: all 200ms;
         
     | 
| 
       177 
     | 
    
         
            -
            			text-decoration: none;
         
     | 
| 
       178 
     | 
    
         
            -
            			cursor: text;
         
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
            			&:hover {
         
     | 
| 
       181 
     | 
    
         
            -
            				color: @font-color-link-dark;
         
     | 
| 
       182 
     | 
    
         
            -
            				text-decoration: underline;
         
     | 
| 
       183 
     | 
    
         
            -
            			}
         
     | 
| 
       184 
     | 
    
         
            -
            		}
         
     | 
| 
       185 
     | 
    
         
            -
            		//表格样式
         
     | 
| 
       186 
     | 
    
         
            -
            		:deep(table) {
         
     | 
| 
       187 
     | 
    
         
            -
            			width: 100%;
         
     | 
| 
       188 
     | 
    
         
            -
            			border: 1px solid @border-color;
         
     | 
| 
       189 
     | 
    
         
            -
            			margin: 0;
         
     | 
| 
       190 
     | 
    
         
            -
            			padding: 0;
         
     | 
| 
       191 
     | 
    
         
            -
            			border-collapse: collapse;
         
     | 
| 
       192 
     | 
    
         
            -
            			margin-bottom: 15px;
         
     | 
| 
       193 
     | 
    
         
            -
            			background-color: @background;
         
     | 
| 
       194 
     | 
    
         
            -
            			color: @font-color-dark;
         
     | 
| 
       195 
     | 
    
         
            -
            			font-size: @font-size;
         
     | 
| 
       196 
     | 
    
         
            -
             
     | 
| 
       197 
     | 
    
         
            -
            			* {
         
     | 
| 
       198 
     | 
    
         
            -
            				margin: 0 !important;
         
     | 
| 
       199 
     | 
    
         
            -
            			}
         
     | 
| 
       200 
     | 
    
         
            -
             
     | 
| 
       201 
     | 
    
         
            -
            			tbody {
         
     | 
| 
       202 
     | 
    
         
            -
            				margin: 0;
         
     | 
| 
       203 
     | 
    
         
            -
            				padding: 0;
         
     | 
| 
       204 
     | 
    
         
            -
             
     | 
| 
       205 
     | 
    
         
            -
            				tr {
         
     | 
| 
       206 
     | 
    
         
            -
            					margin: 0;
         
     | 
| 
       207 
     | 
    
         
            -
            					padding: 0;
         
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
            					&:first-child {
         
     | 
| 
       210 
     | 
    
         
            -
            						background-color: @background-darker;
         
     | 
| 
       211 
     | 
    
         
            -
             
     | 
| 
       212 
     | 
    
         
            -
            						td {
         
     | 
| 
       213 
     | 
    
         
            -
            							font-weight: bold;
         
     | 
| 
       214 
     | 
    
         
            -
            							position: relative;
         
     | 
| 
       215 
     | 
    
         
            -
            						}
         
     | 
| 
       216 
     | 
    
         
            -
            					}
         
     | 
| 
       217 
     | 
    
         
            -
             
     | 
| 
       218 
     | 
    
         
            -
            					td {
         
     | 
| 
       219 
     | 
    
         
            -
            						margin: 0;
         
     | 
| 
       220 
     | 
    
         
            -
            						border: 1px solid @border-color;
         
     | 
| 
       221 
     | 
    
         
            -
            						padding: 6px 10px;
         
     | 
| 
       222 
     | 
    
         
            -
            						position: relative;
         
     | 
| 
       223 
     | 
    
         
            -
             
     | 
| 
       224 
     | 
    
         
            -
            						&:not(:last-child)::after {
         
     | 
| 
       225 
     | 
    
         
            -
            							position: absolute;
         
     | 
| 
       226 
     | 
    
         
            -
            							right: -5px;
         
     | 
| 
       227 
     | 
    
         
            -
            							top: 0;
         
     | 
| 
       228 
     | 
    
         
            -
            							width: 10px;
         
     | 
| 
       229 
     | 
    
         
            -
            							height: 100%;
         
     | 
| 
       230 
     | 
    
         
            -
            							content: '';
         
     | 
| 
       231 
     | 
    
         
            -
            							z-index: 1;
         
     | 
| 
       232 
     | 
    
         
            -
            							cursor: col-resize;
         
     | 
| 
       233 
     | 
    
         
            -
            							user-select: none;
         
     | 
| 
       234 
     | 
    
         
            -
            						}
         
     | 
| 
       235 
     | 
    
         
            -
            					}
         
     | 
| 
       236 
     | 
    
         
            -
            				}
         
     | 
| 
       237 
     | 
    
         
            -
            			}
         
     | 
| 
       238 
     | 
    
         
            -
            		}
         
     | 
| 
       239 
     | 
    
         
            -
            		//代码块样式
         
     | 
| 
       240 
     | 
    
         
            -
            		:deep(pre) {
         
     | 
| 
       241 
     | 
    
         
            -
            			display: block;
         
     | 
| 
       242 
     | 
    
         
            -
            			padding: 6px 10px;
         
     | 
| 
       243 
     | 
    
         
            -
            			margin: 0 0 15px;
         
     | 
| 
       244 
     | 
    
         
            -
            			font-family: Consolas, monospace, Monaco, Andale Mono, Ubuntu Mono;
         
     | 
| 
       245 
     | 
    
         
            -
            			line-height: 1.5;
         
     | 
| 
       246 
     | 
    
         
            -
            			font-size: @font-size;
         
     | 
| 
       247 
     | 
    
         
            -
            			color: @font-color-dark;
         
     | 
| 
       248 
     | 
    
         
            -
            			background-color: @pre-background;
         
     | 
| 
       249 
     | 
    
         
            -
            			border: 1px solid @border-color;
         
     | 
| 
       250 
     | 
    
         
            -
            			border-radius: 4px;
         
     | 
| 
       251 
     | 
    
         
            -
            			overflow: auto;
         
     | 
| 
       252 
     | 
    
         
            -
            			position: relative;
         
     | 
| 
       253 
     | 
    
         
            -
            		}
         
     | 
| 
       254 
     | 
    
         
            -
            		//图片样式
         
     | 
| 
       255 
     | 
    
         
            -
            		:deep(img) {
         
     | 
| 
       256 
     | 
    
         
            -
            			position: relative;
         
     | 
| 
       257 
     | 
    
         
            -
            			display: inline-block;
         
     | 
| 
       258 
     | 
    
         
            -
            			width: 30%;
         
     | 
| 
       259 
     | 
    
         
            -
            			height: auto;
         
     | 
| 
       260 
     | 
    
         
            -
            			border-radius: 2px;
         
     | 
| 
       261 
     | 
    
         
            -
            			vertical-align: text-bottom;
         
     | 
| 
       262 
     | 
    
         
            -
            			margin: 0 2px;
         
     | 
| 
       263 
     | 
    
         
            -
            			max-width: 100%;
         
     | 
| 
       264 
     | 
    
         
            -
            		}
         
     | 
| 
       265 
     | 
    
         
            -
            		//视频样式
         
     | 
| 
       266 
     | 
    
         
            -
            		:deep(video) {
         
     | 
| 
       267 
     | 
    
         
            -
            			position: relative;
         
     | 
| 
       268 
     | 
    
         
            -
            			display: inline-block;
         
     | 
| 
       269 
     | 
    
         
            -
            			width: 30%;
         
     | 
| 
       270 
     | 
    
         
            -
            			border-radius: 2px;
         
     | 
| 
       271 
     | 
    
         
            -
            			vertical-align: text-bottom;
         
     | 
| 
       272 
     | 
    
         
            -
            			background-color: #000;
         
     | 
| 
       273 
     | 
    
         
            -
            			object-fit: contain;
         
     | 
| 
       274 
     | 
    
         
            -
            			margin: 0 2px;
         
     | 
| 
       275 
     | 
    
         
            -
            			max-width: 100%;
         
     | 
| 
       276 
     | 
    
         
            -
            		}
         
     | 
| 
       277 
     | 
    
         
            -
            		//引用样式
         
     | 
| 
       278 
     | 
    
         
            -
            		:deep(blockquote) {
         
     | 
| 
       279 
     | 
    
         
            -
            			display: block;
         
     | 
| 
       280 
     | 
    
         
            -
            			border-left: 8px solid @background-darker;
         
     | 
| 
       281 
     | 
    
         
            -
            			padding: 6px 10px 6px 20px;
         
     | 
| 
       282 
     | 
    
         
            -
            			margin: 0 0 15px;
         
     | 
| 
       283 
     | 
    
         
            -
            			line-height: 1.5;
         
     | 
| 
       284 
     | 
    
         
            -
            			font-size: @font-size;
         
     | 
| 
       285 
     | 
    
         
            -
            			color: @font-color-light;
         
     | 
| 
       286 
     | 
    
         
            -
            			border-radius: 0;
         
     | 
| 
       287 
     | 
    
         
            -
            		}
         
     | 
| 
       288 
     | 
    
         
            -
            		//任务列表样式
         
     | 
| 
       289 
     | 
    
         
            -
            		:deep(div[data-editify-task]) {
         
     | 
| 
       290 
     | 
    
         
            -
            			margin-bottom: 15px;
         
     | 
| 
       291 
     | 
    
         
            -
            			position: relative;
         
     | 
| 
       292 
     | 
    
         
            -
            			padding-left: 26px;
         
     | 
| 
       293 
     | 
    
         
            -
            			font-size: @font-size;
         
     | 
| 
       294 
     | 
    
         
            -
            			color: @font-color-dark;
         
     | 
| 
       295 
     | 
    
         
            -
            			transition: all 200ms;
         
     | 
| 
       296 
     | 
    
         
            -
             
     | 
| 
       297 
     | 
    
         
            -
            			&::before {
         
     | 
| 
       298 
     | 
    
         
            -
            				display: block;
         
     | 
| 
       299 
     | 
    
         
            -
            				width: 16px;
         
     | 
| 
       300 
     | 
    
         
            -
            				height: 16px;
         
     | 
| 
       301 
     | 
    
         
            -
            				border-radius: 2px;
         
     | 
| 
       302 
     | 
    
         
            -
            				border:  
     | 
| 
       303 
     | 
    
         
            -
            				transition: all 200ms;
         
     | 
| 
       304 
     | 
    
         
            -
            				box-sizing: border-box;
         
     | 
| 
       305 
     | 
    
         
            -
            				user-select: none;
         
     | 
| 
       306 
     | 
    
         
            -
            				content: '';
         
     | 
| 
       307 
     | 
    
         
            -
            				position: absolute;
         
     | 
| 
       308 
     | 
    
         
            -
            				left: 0;
         
     | 
| 
       309 
     | 
    
         
            -
            				top:  
     | 
| 
       310 
     | 
    
         
            -
            				 
     | 
| 
       311 
     | 
    
         
            -
            				 
     | 
| 
       312 
     | 
    
         
            -
             
     | 
| 
       313 
     | 
    
         
            -
             
     | 
| 
       314 
     | 
    
         
            -
             
     | 
| 
       315 
     | 
    
         
            -
             
     | 
| 
       316 
     | 
    
         
            -
            				 
     | 
| 
       317 
     | 
    
         
            -
            				 
     | 
| 
       318 
     | 
    
         
            -
            				 
     | 
| 
       319 
     | 
    
         
            -
            				 
     | 
| 
       320 
     | 
    
         
            -
            				 
     | 
| 
       321 
     | 
    
         
            -
            				 
     | 
| 
       322 
     | 
    
         
            -
            				 
     | 
| 
       323 
     | 
    
         
            -
            				 
     | 
| 
       324 
     | 
    
         
            -
            				border 
     | 
| 
       325 
     | 
    
         
            -
            				 
     | 
| 
       326 
     | 
    
         
            -
            				 
     | 
| 
       327 
     | 
    
         
            -
            				 
     | 
| 
       328 
     | 
    
         
            -
            				 
     | 
| 
       329 
     | 
    
         
            -
            				 
     | 
| 
       330 
     | 
    
         
            -
            				 
     | 
| 
       331 
     | 
    
         
            -
            				 
     | 
| 
       332 
     | 
    
         
            -
            				 
     | 
| 
       333 
     | 
    
         
            -
             
     | 
| 
       334 
     | 
    
         
            -
             
     | 
| 
       335 
     | 
    
         
            -
             
     | 
| 
       336 
     | 
    
         
            -
             
     | 
| 
       337 
     | 
    
         
            -
            				 
     | 
| 
       338 
     | 
    
         
            -
            				 
     | 
| 
       339 
     | 
    
         
            -
             
     | 
| 
       340 
     | 
    
         
            -
             
     | 
| 
       341 
     | 
    
         
            -
             
     | 
| 
       342 
     | 
    
         
            -
             
     | 
| 
       343 
     | 
    
         
            -
             
     | 
| 
       344 
     | 
    
         
            -
             
     | 
| 
       345 
     | 
    
         
            -
            		 
     | 
| 
       346 
     | 
    
         
            -
             
     | 
| 
       347 
     | 
    
         
            -
            			 
     | 
| 
       348 
     | 
    
         
            -
             
     | 
| 
       349 
     | 
    
         
            -
             
     | 
| 
       350 
     | 
    
         
            -
            			 
     | 
| 
       351 
     | 
    
         
            -
             
     | 
| 
       352 
     | 
    
         
            -
             
     | 
| 
       353 
     | 
    
         
            -
             
     | 
| 
       354 
     | 
    
         
            -
             
     | 
| 
       355 
     | 
    
         
            -
             
     | 
| 
       356 
     | 
    
         
            -
             
     | 
| 
       357 
     | 
    
         
            -
             
     | 
| 
       358 
     | 
    
         
            -
             
     | 
| 
       359 
     | 
    
         
            -
             
     | 
| 
       360 
     | 
    
         
            -
             
     | 
| 
       361 
     | 
    
         
            -
             
     | 
| 
       362 
     | 
    
         
            -
             
     | 
| 
       363 
     | 
    
         
            -
            	 
     | 
| 
       364 
     | 
    
         
            -
             
     | 
| 
       365 
     | 
    
         
            -
            		 
     | 
| 
       366 
     | 
    
         
            -
            		 
     | 
| 
       367 
     | 
    
         
            -
            		 
     | 
| 
       368 
     | 
    
         
            -
            		 
     | 
| 
       369 
     | 
    
         
            -
            		 
     | 
| 
       370 
     | 
    
         
            -
            		 
     | 
| 
       371 
     | 
    
         
            -
            		 
     | 
| 
       372 
     | 
    
         
            -
            		 
     | 
| 
       373 
     | 
    
         
            -
            		 
     | 
| 
       374 
     | 
    
         
            -
            		overflow- 
     | 
| 
       375 
     | 
    
         
            -
            		 
     | 
| 
       376 
     | 
    
         
            -
            		 
     | 
| 
       377 
     | 
    
         
            -
            		 
     | 
| 
       378 
     | 
    
         
            -
            		 
     | 
| 
       379 
     | 
    
         
            -
            		 
     | 
| 
       380 
     | 
    
         
            -
            		border 
     | 
| 
       381 
     | 
    
         
            -
            		 
     | 
| 
       382 
     | 
    
         
            -
             
     | 
| 
       383 
     | 
    
         
            -
            }
         
     | 
| 
       384 
     | 
    
         
            -
             
     | 
| 
       385 
     | 
    
         
            -
             
     | 
| 
       386 
     | 
    
         
            -
             
     | 
| 
       387 
     | 
    
         
            -
            	 
     | 
| 
       388 
     | 
    
         
            -
            	 
     | 
| 
       389 
     | 
    
         
            -
            	 
     | 
| 
       390 
     | 
    
         
            -
            	 
     | 
| 
       391 
     | 
    
         
            -
            	 
     | 
| 
       392 
     | 
    
         
            -
             
     | 
| 
       393 
     | 
    
         
            -
             
     | 
| 
       394 
     | 
    
         
            -
             
     | 
| 
       395 
     | 
    
         
            -
            		 
     | 
| 
       396 
     | 
    
         
            -
            		 
     | 
| 
       397 
     | 
    
         
            -
             
     | 
| 
       398 
     | 
    
         
            -
             
     | 
| 
       399 
     | 
    
         
            -
             
     | 
| 
       400 
     | 
    
         
            -
            	 
     | 
| 
       401 
     | 
    
         
            -
             
     | 
| 
       402 
     | 
    
         
            -
             
     | 
| 
       403 
     | 
    
         
            -
            }
         
     | 
| 
      
 1 
     | 
    
         
            +
            .editify {
         
     | 
| 
      
 2 
     | 
    
         
            +
            	display: flex;
         
     | 
| 
      
 3 
     | 
    
         
            +
            	justify-content: flex-start;
         
     | 
| 
      
 4 
     | 
    
         
            +
            	flex-direction: column;
         
     | 
| 
      
 5 
     | 
    
         
            +
            	width: 100%;
         
     | 
| 
      
 6 
     | 
    
         
            +
            	height: 100%;
         
     | 
| 
      
 7 
     | 
    
         
            +
            	position: relative;
         
     | 
| 
      
 8 
     | 
    
         
            +
            	box-sizing: border-box;
         
     | 
| 
      
 9 
     | 
    
         
            +
            	-webkit-tap-highlight-color: transparent;
         
     | 
| 
      
 10 
     | 
    
         
            +
            	outline: none;
         
     | 
| 
      
 11 
     | 
    
         
            +
            	font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, Roboto, 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
         
     | 
| 
      
 12 
     | 
    
         
            +
            	line-height: 1.5;
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            	*,
         
     | 
| 
      
 15 
     | 
    
         
            +
            	*::before,
         
     | 
| 
      
 16 
     | 
    
         
            +
            	*::after {
         
     | 
| 
      
 17 
     | 
    
         
            +
            		box-sizing: border-box;
         
     | 
| 
      
 18 
     | 
    
         
            +
            		-webkit-tap-highlight-color: transparent;
         
     | 
| 
      
 19 
     | 
    
         
            +
            		outline: none;
         
     | 
| 
      
 20 
     | 
    
         
            +
            	}
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            	&.fullscreen {
         
     | 
| 
      
 23 
     | 
    
         
            +
            		position: fixed;
         
     | 
| 
      
 24 
     | 
    
         
            +
            		z-index: 1000;
         
     | 
| 
      
 25 
     | 
    
         
            +
            		left: 0;
         
     | 
| 
      
 26 
     | 
    
         
            +
            		top: 0;
         
     | 
| 
      
 27 
     | 
    
         
            +
            		width: 100vw !important;
         
     | 
| 
      
 28 
     | 
    
         
            +
            		height: 100vh !important;
         
     | 
| 
      
 29 
     | 
    
         
            +
            		background: @background;
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            		.editify-body {
         
     | 
| 
      
 32 
     | 
    
         
            +
            			border-radius: 0;
         
     | 
| 
      
 33 
     | 
    
         
            +
            		}
         
     | 
| 
      
 34 
     | 
    
         
            +
            	}
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
            	&.autoheight {
         
     | 
| 
      
 37 
     | 
    
         
            +
            		height: auto;
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            		.editify-body {
         
     | 
| 
      
 40 
     | 
    
         
            +
            			height: auto;
         
     | 
| 
      
 41 
     | 
    
         
            +
            			flex: none;
         
     | 
| 
      
 42 
     | 
    
         
            +
            		}
         
     | 
| 
      
 43 
     | 
    
         
            +
            	}
         
     | 
| 
      
 44 
     | 
    
         
            +
            }
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
            .editify-body {
         
     | 
| 
      
 47 
     | 
    
         
            +
            	display: block;
         
     | 
| 
      
 48 
     | 
    
         
            +
            	width: 100%;
         
     | 
| 
      
 49 
     | 
    
         
            +
            	height: 0;
         
     | 
| 
      
 50 
     | 
    
         
            +
            	flex: 1;
         
     | 
| 
      
 51 
     | 
    
         
            +
            	position: relative;
         
     | 
| 
      
 52 
     | 
    
         
            +
            	background-color: @background;
         
     | 
| 
      
 53 
     | 
    
         
            +
            	padding: 1px;
         
     | 
| 
      
 54 
     | 
    
         
            +
            	border-radius: 4px;
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
            	&.border {
         
     | 
| 
      
 57 
     | 
    
         
            +
            		border: 1px solid @border-color;
         
     | 
| 
      
 58 
     | 
    
         
            +
            		transition: all 500ms;
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
            		&.menu_inner {
         
     | 
| 
      
 61 
     | 
    
         
            +
            			border-top: none;
         
     | 
| 
      
 62 
     | 
    
         
            +
            			border-radius: 0 0 4px 4px;
         
     | 
| 
      
 63 
     | 
    
         
            +
            		}
         
     | 
| 
      
 64 
     | 
    
         
            +
            	}
         
     | 
| 
      
 65 
     | 
    
         
            +
             
     | 
| 
      
 66 
     | 
    
         
            +
            	&.menu_inner {
         
     | 
| 
      
 67 
     | 
    
         
            +
            		padding-top: 21px;
         
     | 
| 
      
 68 
     | 
    
         
            +
             
     | 
| 
      
 69 
     | 
    
         
            +
            		.editify-source {
         
     | 
| 
      
 70 
     | 
    
         
            +
            			top: 21px;
         
     | 
| 
      
 71 
     | 
    
         
            +
            			height: calc(100% - 21px);
         
     | 
| 
      
 72 
     | 
    
         
            +
            		}
         
     | 
| 
      
 73 
     | 
    
         
            +
            	}
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
            	//编辑器样式
         
     | 
| 
      
 76 
     | 
    
         
            +
            	.editify-content {
         
     | 
| 
      
 77 
     | 
    
         
            +
            		display: block;
         
     | 
| 
      
 78 
     | 
    
         
            +
            		position: relative;
         
     | 
| 
      
 79 
     | 
    
         
            +
            		overflow-x: hidden;
         
     | 
| 
      
 80 
     | 
    
         
            +
            		overflow-y: auto;
         
     | 
| 
      
 81 
     | 
    
         
            +
            		width: 100%;
         
     | 
| 
      
 82 
     | 
    
         
            +
            		height: 100%;
         
     | 
| 
      
 83 
     | 
    
         
            +
            		border-radius: inherit;
         
     | 
| 
      
 84 
     | 
    
         
            +
            		padding: 6px 10px;
         
     | 
| 
      
 85 
     | 
    
         
            +
            		line-height: 1.5;
         
     | 
| 
      
 86 
     | 
    
         
            +
            		color: @font-color-dark;
         
     | 
| 
      
 87 
     | 
    
         
            +
            		font-size: @font-size;
         
     | 
| 
      
 88 
     | 
    
         
            +
            		position: relative;
         
     | 
| 
      
 89 
     | 
    
         
            +
            		line-height: 1.5;
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
            		//显示占位符
         
     | 
| 
      
 92 
     | 
    
         
            +
            		&.placeholder::before {
         
     | 
| 
      
 93 
     | 
    
         
            +
            			position: absolute;
         
     | 
| 
      
 94 
     | 
    
         
            +
            			top: 0;
         
     | 
| 
      
 95 
     | 
    
         
            +
            			left: 0;
         
     | 
| 
      
 96 
     | 
    
         
            +
            			display: block;
         
     | 
| 
      
 97 
     | 
    
         
            +
            			width: 100%;
         
     | 
| 
      
 98 
     | 
    
         
            +
            			content: attr(data-editify-placeholder);
         
     | 
| 
      
 99 
     | 
    
         
            +
            			font-size: inherit;
         
     | 
| 
      
 100 
     | 
    
         
            +
            			font-family: inherit;
         
     | 
| 
      
 101 
     | 
    
         
            +
            			color: @font-color-disabled;
         
     | 
| 
      
 102 
     | 
    
         
            +
            			line-height: inherit;
         
     | 
| 
      
 103 
     | 
    
         
            +
            			padding: 6px 10px;
         
     | 
| 
      
 104 
     | 
    
         
            +
            			cursor: text;
         
     | 
| 
      
 105 
     | 
    
         
            +
            			touch-action: none;
         
     | 
| 
      
 106 
     | 
    
         
            +
            			user-select: none;
         
     | 
| 
      
 107 
     | 
    
         
            +
            		}
         
     | 
| 
      
 108 
     | 
    
         
            +
             
     | 
| 
      
 109 
     | 
    
         
            +
            		//段落样式和标题
         
     | 
| 
      
 110 
     | 
    
         
            +
            		:deep(p),
         
     | 
| 
      
 111 
     | 
    
         
            +
            		:deep(h1),
         
     | 
| 
      
 112 
     | 
    
         
            +
            		:deep(h2),
         
     | 
| 
      
 113 
     | 
    
         
            +
            		:deep(h3),
         
     | 
| 
      
 114 
     | 
    
         
            +
            		:deep(h4),
         
     | 
| 
      
 115 
     | 
    
         
            +
            		:deep(h5),
         
     | 
| 
      
 116 
     | 
    
         
            +
            		:deep(h6) {
         
     | 
| 
      
 117 
     | 
    
         
            +
            			display: block;
         
     | 
| 
      
 118 
     | 
    
         
            +
            			width: 100%;
         
     | 
| 
      
 119 
     | 
    
         
            +
            			margin: 0 0 15px 0;
         
     | 
| 
      
 120 
     | 
    
         
            +
            			padding: 0;
         
     | 
| 
      
 121 
     | 
    
         
            +
            		}
         
     | 
| 
      
 122 
     | 
    
         
            +
            		:deep(h1) {
         
     | 
| 
      
 123 
     | 
    
         
            +
            			font-size: 32px;
         
     | 
| 
      
 124 
     | 
    
         
            +
            		}
         
     | 
| 
      
 125 
     | 
    
         
            +
            		:deep(h2) {
         
     | 
| 
      
 126 
     | 
    
         
            +
            			font-size: 28px;
         
     | 
| 
      
 127 
     | 
    
         
            +
            		}
         
     | 
| 
      
 128 
     | 
    
         
            +
            		:deep(h3) {
         
     | 
| 
      
 129 
     | 
    
         
            +
            			font-size: 24px;
         
     | 
| 
      
 130 
     | 
    
         
            +
            		}
         
     | 
| 
      
 131 
     | 
    
         
            +
            		:deep(h4) {
         
     | 
| 
      
 132 
     | 
    
         
            +
            			font-size: 20px;
         
     | 
| 
      
 133 
     | 
    
         
            +
            		}
         
     | 
| 
      
 134 
     | 
    
         
            +
            		:deep(h5) {
         
     | 
| 
      
 135 
     | 
    
         
            +
            			font-size: 18px;
         
     | 
| 
      
 136 
     | 
    
         
            +
            		}
         
     | 
| 
      
 137 
     | 
    
         
            +
            		:deep(h6) {
         
     | 
| 
      
 138 
     | 
    
         
            +
            			font-size: 16px;
         
     | 
| 
      
 139 
     | 
    
         
            +
            		}
         
     | 
| 
      
 140 
     | 
    
         
            +
            		//有序列表样式
         
     | 
| 
      
 141 
     | 
    
         
            +
            		:deep(div[data-editify-list='ol']) {
         
     | 
| 
      
 142 
     | 
    
         
            +
            			margin-bottom: 15px;
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
            			&::before {
         
     | 
| 
      
 145 
     | 
    
         
            +
            				content: attr(data-editify-value) '.';
         
     | 
| 
      
 146 
     | 
    
         
            +
            				margin-right: 10px;
         
     | 
| 
      
 147 
     | 
    
         
            +
            			}
         
     | 
| 
      
 148 
     | 
    
         
            +
            		}
         
     | 
| 
      
 149 
     | 
    
         
            +
            		//无序列表样式
         
     | 
| 
      
 150 
     | 
    
         
            +
            		:deep(div[data-editify-list='ul']) {
         
     | 
| 
      
 151 
     | 
    
         
            +
            			margin-bottom: 15px;
         
     | 
| 
      
 152 
     | 
    
         
            +
             
     | 
| 
      
 153 
     | 
    
         
            +
            			&::before {
         
     | 
| 
      
 154 
     | 
    
         
            +
            				content: '\2022';
         
     | 
| 
      
 155 
     | 
    
         
            +
            				margin-right: 10px;
         
     | 
| 
      
 156 
     | 
    
         
            +
            			}
         
     | 
| 
      
 157 
     | 
    
         
            +
            		}
         
     | 
| 
      
 158 
     | 
    
         
            +
            		//代码样式
         
     | 
| 
      
 159 
     | 
    
         
            +
            		:deep(span[data-editify-code]) {
         
     | 
| 
      
 160 
     | 
    
         
            +
            			display: inline-block;
         
     | 
| 
      
 161 
     | 
    
         
            +
            			padding: 3px 6px;
         
     | 
| 
      
 162 
     | 
    
         
            +
            			margin: 0 4px;
         
     | 
| 
      
 163 
     | 
    
         
            +
            			border-radius: 4px;
         
     | 
| 
      
 164 
     | 
    
         
            +
            			line-height: 1;
         
     | 
| 
      
 165 
     | 
    
         
            +
            			font-family: Consolas, monospace, Monaco, Andale Mono, Ubuntu Mono;
         
     | 
| 
      
 166 
     | 
    
         
            +
            			background-color: @pre-background;
         
     | 
| 
      
 167 
     | 
    
         
            +
            			color: @font-color;
         
     | 
| 
      
 168 
     | 
    
         
            +
            			border: 1px solid @border-color;
         
     | 
| 
      
 169 
     | 
    
         
            +
            			text-indent: initial;
         
     | 
| 
      
 170 
     | 
    
         
            +
            			font-size: @font-size;
         
     | 
| 
      
 171 
     | 
    
         
            +
            			font-weight: normal;
         
     | 
| 
      
 172 
     | 
    
         
            +
            		}
         
     | 
| 
      
 173 
     | 
    
         
            +
            		//链接样式
         
     | 
| 
      
 174 
     | 
    
         
            +
            		:deep(a) {
         
     | 
| 
      
 175 
     | 
    
         
            +
            			color: @font-color-link;
         
     | 
| 
      
 176 
     | 
    
         
            +
            			transition: all 200ms;
         
     | 
| 
      
 177 
     | 
    
         
            +
            			text-decoration: none;
         
     | 
| 
      
 178 
     | 
    
         
            +
            			cursor: text;
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
            			&:hover {
         
     | 
| 
      
 181 
     | 
    
         
            +
            				color: @font-color-link-dark;
         
     | 
| 
      
 182 
     | 
    
         
            +
            				text-decoration: underline;
         
     | 
| 
      
 183 
     | 
    
         
            +
            			}
         
     | 
| 
      
 184 
     | 
    
         
            +
            		}
         
     | 
| 
      
 185 
     | 
    
         
            +
            		//表格样式
         
     | 
| 
      
 186 
     | 
    
         
            +
            		:deep(table) {
         
     | 
| 
      
 187 
     | 
    
         
            +
            			width: 100%;
         
     | 
| 
      
 188 
     | 
    
         
            +
            			border: 1px solid @border-color;
         
     | 
| 
      
 189 
     | 
    
         
            +
            			margin: 0;
         
     | 
| 
      
 190 
     | 
    
         
            +
            			padding: 0;
         
     | 
| 
      
 191 
     | 
    
         
            +
            			border-collapse: collapse;
         
     | 
| 
      
 192 
     | 
    
         
            +
            			margin-bottom: 15px;
         
     | 
| 
      
 193 
     | 
    
         
            +
            			background-color: @background;
         
     | 
| 
      
 194 
     | 
    
         
            +
            			color: @font-color-dark;
         
     | 
| 
      
 195 
     | 
    
         
            +
            			font-size: @font-size;
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
            			* {
         
     | 
| 
      
 198 
     | 
    
         
            +
            				margin: 0 !important;
         
     | 
| 
      
 199 
     | 
    
         
            +
            			}
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
            			tbody {
         
     | 
| 
      
 202 
     | 
    
         
            +
            				margin: 0;
         
     | 
| 
      
 203 
     | 
    
         
            +
            				padding: 0;
         
     | 
| 
      
 204 
     | 
    
         
            +
             
     | 
| 
      
 205 
     | 
    
         
            +
            				tr {
         
     | 
| 
      
 206 
     | 
    
         
            +
            					margin: 0;
         
     | 
| 
      
 207 
     | 
    
         
            +
            					padding: 0;
         
     | 
| 
      
 208 
     | 
    
         
            +
             
     | 
| 
      
 209 
     | 
    
         
            +
            					&:first-child {
         
     | 
| 
      
 210 
     | 
    
         
            +
            						background-color: @background-darker;
         
     | 
| 
      
 211 
     | 
    
         
            +
             
     | 
| 
      
 212 
     | 
    
         
            +
            						td {
         
     | 
| 
      
 213 
     | 
    
         
            +
            							font-weight: bold;
         
     | 
| 
      
 214 
     | 
    
         
            +
            							position: relative;
         
     | 
| 
      
 215 
     | 
    
         
            +
            						}
         
     | 
| 
      
 216 
     | 
    
         
            +
            					}
         
     | 
| 
      
 217 
     | 
    
         
            +
             
     | 
| 
      
 218 
     | 
    
         
            +
            					td {
         
     | 
| 
      
 219 
     | 
    
         
            +
            						margin: 0;
         
     | 
| 
      
 220 
     | 
    
         
            +
            						border: 1px solid @border-color;
         
     | 
| 
      
 221 
     | 
    
         
            +
            						padding: 6px 10px;
         
     | 
| 
      
 222 
     | 
    
         
            +
            						position: relative;
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
            						&:not(:last-child)::after {
         
     | 
| 
      
 225 
     | 
    
         
            +
            							position: absolute;
         
     | 
| 
      
 226 
     | 
    
         
            +
            							right: -5px;
         
     | 
| 
      
 227 
     | 
    
         
            +
            							top: 0;
         
     | 
| 
      
 228 
     | 
    
         
            +
            							width: 10px;
         
     | 
| 
      
 229 
     | 
    
         
            +
            							height: 100%;
         
     | 
| 
      
 230 
     | 
    
         
            +
            							content: '';
         
     | 
| 
      
 231 
     | 
    
         
            +
            							z-index: 1;
         
     | 
| 
      
 232 
     | 
    
         
            +
            							cursor: col-resize;
         
     | 
| 
      
 233 
     | 
    
         
            +
            							user-select: none;
         
     | 
| 
      
 234 
     | 
    
         
            +
            						}
         
     | 
| 
      
 235 
     | 
    
         
            +
            					}
         
     | 
| 
      
 236 
     | 
    
         
            +
            				}
         
     | 
| 
      
 237 
     | 
    
         
            +
            			}
         
     | 
| 
      
 238 
     | 
    
         
            +
            		}
         
     | 
| 
      
 239 
     | 
    
         
            +
            		//代码块样式
         
     | 
| 
      
 240 
     | 
    
         
            +
            		:deep(pre) {
         
     | 
| 
      
 241 
     | 
    
         
            +
            			display: block;
         
     | 
| 
      
 242 
     | 
    
         
            +
            			padding: 6px 10px;
         
     | 
| 
      
 243 
     | 
    
         
            +
            			margin: 0 0 15px;
         
     | 
| 
      
 244 
     | 
    
         
            +
            			font-family: Consolas, monospace, Monaco, Andale Mono, Ubuntu Mono;
         
     | 
| 
      
 245 
     | 
    
         
            +
            			line-height: 1.5;
         
     | 
| 
      
 246 
     | 
    
         
            +
            			font-size: @font-size;
         
     | 
| 
      
 247 
     | 
    
         
            +
            			color: @font-color-dark;
         
     | 
| 
      
 248 
     | 
    
         
            +
            			background-color: @pre-background;
         
     | 
| 
      
 249 
     | 
    
         
            +
            			border: 1px solid @border-color;
         
     | 
| 
      
 250 
     | 
    
         
            +
            			border-radius: 4px;
         
     | 
| 
      
 251 
     | 
    
         
            +
            			overflow: auto;
         
     | 
| 
      
 252 
     | 
    
         
            +
            			position: relative;
         
     | 
| 
      
 253 
     | 
    
         
            +
            		}
         
     | 
| 
      
 254 
     | 
    
         
            +
            		//图片样式
         
     | 
| 
      
 255 
     | 
    
         
            +
            		:deep(img) {
         
     | 
| 
      
 256 
     | 
    
         
            +
            			position: relative;
         
     | 
| 
      
 257 
     | 
    
         
            +
            			display: inline-block;
         
     | 
| 
      
 258 
     | 
    
         
            +
            			width: 30%;
         
     | 
| 
      
 259 
     | 
    
         
            +
            			height: auto;
         
     | 
| 
      
 260 
     | 
    
         
            +
            			border-radius: 2px;
         
     | 
| 
      
 261 
     | 
    
         
            +
            			vertical-align: text-bottom;
         
     | 
| 
      
 262 
     | 
    
         
            +
            			margin: 0 2px;
         
     | 
| 
      
 263 
     | 
    
         
            +
            			max-width: 100%;
         
     | 
| 
      
 264 
     | 
    
         
            +
            		}
         
     | 
| 
      
 265 
     | 
    
         
            +
            		//视频样式
         
     | 
| 
      
 266 
     | 
    
         
            +
            		:deep(video) {
         
     | 
| 
      
 267 
     | 
    
         
            +
            			position: relative;
         
     | 
| 
      
 268 
     | 
    
         
            +
            			display: inline-block;
         
     | 
| 
      
 269 
     | 
    
         
            +
            			width: 30%;
         
     | 
| 
      
 270 
     | 
    
         
            +
            			border-radius: 2px;
         
     | 
| 
      
 271 
     | 
    
         
            +
            			vertical-align: text-bottom;
         
     | 
| 
      
 272 
     | 
    
         
            +
            			background-color: #000;
         
     | 
| 
      
 273 
     | 
    
         
            +
            			object-fit: contain;
         
     | 
| 
      
 274 
     | 
    
         
            +
            			margin: 0 2px;
         
     | 
| 
      
 275 
     | 
    
         
            +
            			max-width: 100%;
         
     | 
| 
      
 276 
     | 
    
         
            +
            		}
         
     | 
| 
      
 277 
     | 
    
         
            +
            		//引用样式
         
     | 
| 
      
 278 
     | 
    
         
            +
            		:deep(blockquote) {
         
     | 
| 
      
 279 
     | 
    
         
            +
            			display: block;
         
     | 
| 
      
 280 
     | 
    
         
            +
            			border-left: 8px solid @background-darker;
         
     | 
| 
      
 281 
     | 
    
         
            +
            			padding: 6px 10px 6px 20px;
         
     | 
| 
      
 282 
     | 
    
         
            +
            			margin: 0 0 15px;
         
     | 
| 
      
 283 
     | 
    
         
            +
            			line-height: 1.5;
         
     | 
| 
      
 284 
     | 
    
         
            +
            			font-size: @font-size;
         
     | 
| 
      
 285 
     | 
    
         
            +
            			color: @font-color-light;
         
     | 
| 
      
 286 
     | 
    
         
            +
            			border-radius: 0;
         
     | 
| 
      
 287 
     | 
    
         
            +
            		}
         
     | 
| 
      
 288 
     | 
    
         
            +
            		//任务列表样式
         
     | 
| 
      
 289 
     | 
    
         
            +
            		:deep(div[data-editify-task]) {
         
     | 
| 
      
 290 
     | 
    
         
            +
            			margin-bottom: 15px;
         
     | 
| 
      
 291 
     | 
    
         
            +
            			position: relative;
         
     | 
| 
      
 292 
     | 
    
         
            +
            			padding-left: 26px;
         
     | 
| 
      
 293 
     | 
    
         
            +
            			font-size: @font-size;
         
     | 
| 
      
 294 
     | 
    
         
            +
            			color: @font-color-dark;
         
     | 
| 
      
 295 
     | 
    
         
            +
            			transition: all 200ms;
         
     | 
| 
      
 296 
     | 
    
         
            +
             
     | 
| 
      
 297 
     | 
    
         
            +
            			&::before {
         
     | 
| 
      
 298 
     | 
    
         
            +
            				display: block;
         
     | 
| 
      
 299 
     | 
    
         
            +
            				width: 16px;
         
     | 
| 
      
 300 
     | 
    
         
            +
            				height: 16px;
         
     | 
| 
      
 301 
     | 
    
         
            +
            				border-radius: 2px;
         
     | 
| 
      
 302 
     | 
    
         
            +
            				border: 1px solid @font-color-light;
         
     | 
| 
      
 303 
     | 
    
         
            +
            				transition: all 200ms;
         
     | 
| 
      
 304 
     | 
    
         
            +
            				box-sizing: border-box;
         
     | 
| 
      
 305 
     | 
    
         
            +
            				user-select: none;
         
     | 
| 
      
 306 
     | 
    
         
            +
            				content: '';
         
     | 
| 
      
 307 
     | 
    
         
            +
            				position: absolute;
         
     | 
| 
      
 308 
     | 
    
         
            +
            				left: 0;
         
     | 
| 
      
 309 
     | 
    
         
            +
            				top: 50%;
         
     | 
| 
      
 310 
     | 
    
         
            +
            				transform: translateY(-50%);
         
     | 
| 
      
 311 
     | 
    
         
            +
            				z-index: 1;
         
     | 
| 
      
 312 
     | 
    
         
            +
            				cursor: pointer;
         
     | 
| 
      
 313 
     | 
    
         
            +
            			}
         
     | 
| 
      
 314 
     | 
    
         
            +
             
     | 
| 
      
 315 
     | 
    
         
            +
            			&::after {
         
     | 
| 
      
 316 
     | 
    
         
            +
            				display: inline-block;
         
     | 
| 
      
 317 
     | 
    
         
            +
            				width: 10px;
         
     | 
| 
      
 318 
     | 
    
         
            +
            				height: 6px;
         
     | 
| 
      
 319 
     | 
    
         
            +
            				position: absolute;
         
     | 
| 
      
 320 
     | 
    
         
            +
            				content: '';
         
     | 
| 
      
 321 
     | 
    
         
            +
            				left: 3px;
         
     | 
| 
      
 322 
     | 
    
         
            +
            				top: 50%;
         
     | 
| 
      
 323 
     | 
    
         
            +
            				margin-top: -2px;
         
     | 
| 
      
 324 
     | 
    
         
            +
            				border: 1px solid @font-color-light;
         
     | 
| 
      
 325 
     | 
    
         
            +
            				border-top: none;
         
     | 
| 
      
 326 
     | 
    
         
            +
            				border-right: none;
         
     | 
| 
      
 327 
     | 
    
         
            +
            				transform: translateY(-50%) rotate(-45deg);
         
     | 
| 
      
 328 
     | 
    
         
            +
            				transform-origin: center;
         
     | 
| 
      
 329 
     | 
    
         
            +
            				box-sizing: border-box;
         
     | 
| 
      
 330 
     | 
    
         
            +
            				z-index: 2;
         
     | 
| 
      
 331 
     | 
    
         
            +
            				cursor: pointer;
         
     | 
| 
      
 332 
     | 
    
         
            +
            				opacity: 0;
         
     | 
| 
      
 333 
     | 
    
         
            +
            				transition: all 200ms;
         
     | 
| 
      
 334 
     | 
    
         
            +
            			}
         
     | 
| 
      
 335 
     | 
    
         
            +
             
     | 
| 
      
 336 
     | 
    
         
            +
            			&[data-editify-task='checked'] {
         
     | 
| 
      
 337 
     | 
    
         
            +
            				text-decoration: line-through;
         
     | 
| 
      
 338 
     | 
    
         
            +
            				color: @font-color-light;
         
     | 
| 
      
 339 
     | 
    
         
            +
            				&::after {
         
     | 
| 
      
 340 
     | 
    
         
            +
            					opacity: 1;
         
     | 
| 
      
 341 
     | 
    
         
            +
            				}
         
     | 
| 
      
 342 
     | 
    
         
            +
            			}
         
     | 
| 
      
 343 
     | 
    
         
            +
            		}
         
     | 
| 
      
 344 
     | 
    
         
            +
             
     | 
| 
      
 345 
     | 
    
         
            +
            		//禁用样式
         
     | 
| 
      
 346 
     | 
    
         
            +
            		&.disabled {
         
     | 
| 
      
 347 
     | 
    
         
            +
            			cursor: auto !important;
         
     | 
| 
      
 348 
     | 
    
         
            +
            			&.placeholder::before {
         
     | 
| 
      
 349 
     | 
    
         
            +
            				cursor: auto;
         
     | 
| 
      
 350 
     | 
    
         
            +
            			}
         
     | 
| 
      
 351 
     | 
    
         
            +
            			:deep(a) {
         
     | 
| 
      
 352 
     | 
    
         
            +
            				cursor: pointer;
         
     | 
| 
      
 353 
     | 
    
         
            +
            			}
         
     | 
| 
      
 354 
     | 
    
         
            +
             
     | 
| 
      
 355 
     | 
    
         
            +
            			:deep(table) {
         
     | 
| 
      
 356 
     | 
    
         
            +
            				td:not(:last-child)::after {
         
     | 
| 
      
 357 
     | 
    
         
            +
            					cursor: auto;
         
     | 
| 
      
 358 
     | 
    
         
            +
            				}
         
     | 
| 
      
 359 
     | 
    
         
            +
            			}
         
     | 
| 
      
 360 
     | 
    
         
            +
            		}
         
     | 
| 
      
 361 
     | 
    
         
            +
            	}
         
     | 
| 
      
 362 
     | 
    
         
            +
             
     | 
| 
      
 363 
     | 
    
         
            +
            	//代码视图
         
     | 
| 
      
 364 
     | 
    
         
            +
            	.editify-source {
         
     | 
| 
      
 365 
     | 
    
         
            +
            		display: block;
         
     | 
| 
      
 366 
     | 
    
         
            +
            		width: 100%;
         
     | 
| 
      
 367 
     | 
    
         
            +
            		height: 100%;
         
     | 
| 
      
 368 
     | 
    
         
            +
            		position: absolute;
         
     | 
| 
      
 369 
     | 
    
         
            +
            		left: 0;
         
     | 
| 
      
 370 
     | 
    
         
            +
            		top: 0;
         
     | 
| 
      
 371 
     | 
    
         
            +
            		background-color: @reverse-background;
         
     | 
| 
      
 372 
     | 
    
         
            +
            		margin: 0;
         
     | 
| 
      
 373 
     | 
    
         
            +
            		padding: 6px 10px;
         
     | 
| 
      
 374 
     | 
    
         
            +
            		overflow-x: hidden;
         
     | 
| 
      
 375 
     | 
    
         
            +
            		overflow-y: auto;
         
     | 
| 
      
 376 
     | 
    
         
            +
            		font-size: @font-size;
         
     | 
| 
      
 377 
     | 
    
         
            +
            		color: @reverse-color;
         
     | 
| 
      
 378 
     | 
    
         
            +
            		font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;
         
     | 
| 
      
 379 
     | 
    
         
            +
            		resize: none;
         
     | 
| 
      
 380 
     | 
    
         
            +
            		border: none;
         
     | 
| 
      
 381 
     | 
    
         
            +
            		border-radius: inherit;
         
     | 
| 
      
 382 
     | 
    
         
            +
            		z-index: 1;
         
     | 
| 
      
 383 
     | 
    
         
            +
            	}
         
     | 
| 
      
 384 
     | 
    
         
            +
            }
         
     | 
| 
      
 385 
     | 
    
         
            +
             
     | 
| 
      
 386 
     | 
    
         
            +
            .editify-footer {
         
     | 
| 
      
 387 
     | 
    
         
            +
            	display: flex;
         
     | 
| 
      
 388 
     | 
    
         
            +
            	justify-content: end;
         
     | 
| 
      
 389 
     | 
    
         
            +
            	align-items: center;
         
     | 
| 
      
 390 
     | 
    
         
            +
            	width: 100%;
         
     | 
| 
      
 391 
     | 
    
         
            +
            	padding: 10px;
         
     | 
| 
      
 392 
     | 
    
         
            +
            	position: relative;
         
     | 
| 
      
 393 
     | 
    
         
            +
             
     | 
| 
      
 394 
     | 
    
         
            +
            	.editify-footer-words {
         
     | 
| 
      
 395 
     | 
    
         
            +
            		font-size: @font-size;
         
     | 
| 
      
 396 
     | 
    
         
            +
            		color: @font-color-light;
         
     | 
| 
      
 397 
     | 
    
         
            +
            		line-height: 1;
         
     | 
| 
      
 398 
     | 
    
         
            +
            	}
         
     | 
| 
      
 399 
     | 
    
         
            +
             
     | 
| 
      
 400 
     | 
    
         
            +
            	//全屏模式下并且不是代码视图下,显示一个上边框
         
     | 
| 
      
 401 
     | 
    
         
            +
            	&.fullscreen {
         
     | 
| 
      
 402 
     | 
    
         
            +
            		border-top: 1px solid @border-color;
         
     | 
| 
      
 403 
     | 
    
         
            +
            	}
         
     | 
| 
      
 404 
     | 
    
         
            +
            }
         
     |