zhou zhou
4 小时以前 46d872c1a5b77aa8799de4a64888a0a24a1422d6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
$box-radius: calc(var(--custom-radius) / 3 + 2px);
 
// 全屏容器 z-index 调整
.w-e-full-screen-container {
  z-index: 100 !important;
}
 
/* 编辑器容器 */
.editor-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid var(--art-gray-300);
  border-radius: $box-radius !important;
 
  .w-e-bar {
    border-radius: $box-radius $box-radius 0 0 !important;
  }
 
  .menu-item {
    display: flex;
    flex-direction: row;
    align-items: center;
 
    i {
      margin-right: 5px;
    }
  }
 
  /* 工具栏 */
  .editor-toolbar {
    border-bottom: 1px solid var(--default-border);
  }
 
  /* 下拉选择框配置 */
  .w-e-select-list {
    min-width: 140px;
    padding: 5px 10px 10px;
    border: none;
    border-radius: $box-radius;
  }
 
  /* 下拉选择框元素配置 */
  .w-e-select-list ul li {
    margin-top: 5px;
    font-size: 15px !important;
    border-radius: $box-radius;
  }
 
  /* 下拉选择框 正文文字大小调整 */
  .w-e-select-list ul li:last-of-type {
    font-size: 16px !important;
  }
 
  /* 下拉选择框 hover 样式调整 */
  .w-e-select-list ul li:hover {
    background-color: var(--art-gray-200);
  }
 
  :root {
    /* 激活颜色 */
    --w-e-toolbar-active-bg-color: var(--art-gray-200);
 
    /* toolbar 图标和文字颜色 */
    --w-e-toolbar-color: #000;
 
    /* 表格选中时候的边框颜色 */
    --w-e-textarea-selected-border-color: #ddd;
 
    /* 表格头背景颜色 */
    --w-e-textarea-slight-bg-color: var(--art-gray-200);
  }
 
  /* 工具栏按钮样式 */
  .w-e-bar-item svg {
    fill: var(--art-gray-800);
  }
 
  .w-e-bar-item button {
    color: var(--art-gray-800);
    border-radius: $box-radius;
  }
 
  /* 工具栏 hover 按钮背景颜色 */
  .w-e-bar-item button:hover {
    background-color: var(--art-gray-200);
  }
 
  /* 工具栏分割线 */
  .w-e-bar-divider {
    height: 20px;
    margin-top: 10px;
    background-color: #ccc;
  }
 
  /* 工具栏菜单 */
  .w-e-bar-item-group .w-e-bar-item-menus-container {
    min-width: 120px;
    padding: 10px 0;
    border: none;
    border-radius: $box-radius;
 
    .w-e-bar-item {
      button {
        width: 100%;
        margin: 0 5px;
      }
    }
  }
 
  /* 代码块 */
  .w-e-text-container [data-slate-editor] pre > code {
    padding: 0.6rem 1rem;
    background-color: var(--art-gray-50);
    border-radius: $box-radius;
  }
 
  /* 弹出框 */
  .w-e-drop-panel {
    border: 0;
    border-radius: $box-radius;
  }
 
  a {
    color: #318ef4;
  }
 
  .w-e-text-container {
    [data-slate-editor] {
      h1,
      h2,
      h3,
      h4,
      h5,
      h6 {
        margin: 0.8em 0 0.4em;
        font-weight: 700;
        line-height: 1.35;
      }
 
      h1 {
        font-size: 2em;
      }
 
      h2 {
        font-size: 1.5em;
      }
 
      h3 {
        font-size: 1.25em;
      }
 
      h4 {
        font-size: 1.125em;
      }
 
      h5 {
        font-size: 1em;
      }
 
      h6 {
        font-size: 0.875em;
      }
 
      ul,
      ol {
        padding-left: 1.5em;
        margin: 0.8em 0;
      }
 
      ul {
        list-style: disc;
      }
 
      ol {
        list-style: decimal;
      }
 
      li {
        margin: 0.25em 0;
      }
 
      ul ul {
        list-style: circle;
      }
 
      ul ul ul {
        list-style: square;
      }
    }
 
    strong,
    b {
      font-weight: 700;
    }
 
    i,
    em {
      font-style: italic;
    }
  }
 
  /* 表格样式优化 */
  .w-e-text-container [data-slate-editor] .table-container th {
    border-right: none;
  }
 
  .w-e-text-container [data-slate-editor] .table-container th:last-of-type {
    border-right: 1px solid #ccc !important;
  }
 
  /* 引用 */
  .w-e-text-container [data-slate-editor] blockquote {
    background-color: var(--art-gray-200);
    border-left: 4px solid var(--art-gray-300);
  }
 
  /* 输入区域弹出 bar  */
  .w-e-hover-bar {
    border-radius: $box-radius;
  }
 
  /* 超链接弹窗 */
  .w-e-modal {
    border: none;
    border-radius: $box-radius;
  }
 
  /* 图片样式调整 */
  .w-e-text-container [data-slate-editor] .w-e-selected-image-container {
    overflow: inherit;
 
    &:hover {
      border: 0;
    }
 
    img {
      border: 1px solid transparent;
      transition: border 0.3s;
 
      &:hover {
        border: 1px solid #318ef4 !important;
      }
    }
 
    .w-e-image-dragger {
      width: 12px;
      height: 12px;
      background-color: #318ef4;
      border: 2px solid #fff;
      border-radius: $box-radius;
    }
 
    .left-top {
      top: -6px;
      left: -6px;
    }
 
    .right-top {
      top: -6px;
      right: -6px;
    }
 
    .left-bottom {
      bottom: -6px;
      left: -6px;
    }
 
    .right-bottom {
      right: -6px;
      bottom: -6px;
    }
  }
}