Skip to content

Commit e4f5512

Browse files
committed
fix: 修复fullscreen样式会污染全局的问题
1 parent 7ca72cd commit e4f5512

File tree

2 files changed

+22
-24
lines changed

2 files changed

+22
-24
lines changed

packages/theme-saas/src/fluent-editor/index.less

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,7 @@
252252
@apply w-0;
253253
@apply h-0;
254254
}
255-
}
256255

257-
#editor {
258256
.ql-tooltip {
259257
a.ql-preview,
260258
a.ql-remove {
@@ -271,12 +269,13 @@
271269
@apply ~'ml-1.5';
272270
}
273271
}
274-
}
275-
.fullscreen {
276-
@apply fixed;
277-
@apply top-0;
278-
@apply left-0;
279-
@apply w-full;
280-
@apply h-full;
281-
@apply bg-white;
272+
273+
&.fullscreen {
274+
@apply fixed;
275+
@apply top-0;
276+
@apply left-0;
277+
@apply w-full;
278+
@apply h-full;
279+
@apply bg-white;
280+
}
282281
}

packages/theme/src/fluent-editor/index.less

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
border-radius: 4px;
1313

1414
.ql-toolbar.ql-snow {
15-
padding: 8px 16px 4px 16px;
15+
padding: 8px 16px 4px;
1616
border: none;
1717

1818
svg {
@@ -47,7 +47,6 @@
4747
}
4848

4949
.ql-picker-label {
50-
padding: 0;
5150
border: none;
5251
padding: 0 28px 0 8px;
5352

@@ -178,7 +177,7 @@
178177

179178
.ql-align.ql-picker {
180179
.ql-picker-label {
181-
padding: 4px 6px 0 6px;
180+
padding: 4px 6px 0;
182181
}
183182
}
184183

@@ -219,6 +218,7 @@
219218
fill: #0072e8;
220219
}
221220
}
221+
222222
&.ql-fullscreen {
223223
svg {
224224
width: 12px;
@@ -247,10 +247,11 @@
247247
}
248248

249249
.ql-editor {
250-
padding: 8px 0 86px 0;
250+
padding: 8px 0 86px;
251251
margin: 0 16px;
252252
border-top: 1px solid #ddd;
253253
}
254+
254255
.ql-tooltip {
255256
a.ql-preview,
256257
a.ql-remove {
@@ -297,9 +298,7 @@
297298
width: 0;
298299
height: 0;
299300
}
300-
}
301301

302-
#editor {
303302
.ql-tooltip {
304303
a.ql-preview,
305304
a.ql-remove {
@@ -316,13 +315,13 @@
316315
margin-left: 6px;
317316
}
318317
}
319-
}
320318

321-
.fullscreen {
322-
position: fixed;
323-
top: 0;
324-
left: 0;
325-
width: 100%;
326-
height: 100%;
327-
background: #fff;
319+
&.fullscreen {
320+
position: fixed;
321+
top: 0;
322+
left: 0;
323+
width: 100%;
324+
height: 100%;
325+
background: #fff;
326+
}
328327
}

0 commit comments

Comments
 (0)