Skip to content

Commit 1cdb16c

Browse files
committed
Migrate to use :deep selector instead of deprecated ::v-deep
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 0518177 commit 1cdb16c

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

src/components/Editor/ContentContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default {
6868
}
6969
7070
.ie {
71-
.editor__content::v-deep(.ProseMirror) {
71+
.editor__content:deep(.ProseMirror) {
7272
padding-top: 50px;
7373
}
7474
}

src/components/Editor/GuestNameDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102
align-items: center;
103103
padding: 6px;
104104
105-
&::v-deep(img) {
105+
&:deep(img) {
106106
margin: 0 !important;
107107
}
108108

src/components/Editor/Wrapper.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ export default {
130130
overflow: hidden;
131131
position: absolute;
132132
133-
&.show-color-annotations::v-deep(.author-annotation) {
133+
&.show-color-annotations:deep(.author-annotation) {
134134
padding-top: 2px;
135135
padding-bottom: 2px;
136136
}
137137
138-
&:not(.show-color-annotations)::v-deep(.author-annotation),
139-
&:not(.show-color-annotations)::v-deep(.image) {
138+
&:not(.show-color-annotations):deep(.author-annotation),
139+
&:not(.show-color-annotations):deep(.image) {
140140
background-color: transparent !important;
141141
}
142142

src/components/HelpModal.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export default {
203203
</script>
204204

205205
<style lang="scss" scoped>
206-
::v-deep(.modal-wrapper) {
206+
:deep(.modal-wrapper) {
207207
.modal-container {
208208
padding: 30px 40px 20px;
209209
user-select: text;

src/nodes/Callout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ export default {
8686
8787
.callout__content {
8888
margin-left: 1em;
89-
&::v-deep(p) {
89+
&:deep(p) {
9090
&:last-child {
9191
margin-bottom: 0;
9292
}
9393
}
9494
}
9595
9696
.callout__icon {
97-
&, ::v-deep(svg) {
97+
&, :deep(svg) {
9898
color: var(--callout-border);
9999
}
100100
}

src/views/DirectEditing.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ export default {
138138
position: fixed;
139139
overflow: hidden;
140140
141-
&::v-deep(.text-editor) {
141+
&:deep(.text-editor) {
142142
height: 100%;
143143
top: 0;
144144
}
145-
&::v-deep(.text-editor__wrapper div.ProseMirror) {
145+
&:deep(.text-editor__wrapper div.ProseMirror) {
146146
margin-top: 0;
147147
}
148148
}

src/views/RichWorkspace.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,42 +252,42 @@ export default {
252252
color: var(--color-text-maxcontrast);
253253
}
254254
255-
#rich-workspace::v-deep(div[contenteditable=false]){
255+
#rich-workspace:deep(div[contenteditable=false]){
256256
width: 100%;
257257
padding: 0px;
258258
background-color: var(--color-main-background);
259259
opacity: 1;
260260
border: none;
261261
}
262262
263-
#rich-workspace::v-deep(.text-editor) {
263+
#rich-workspace:deep(.text-editor) {
264264
height: 100%;
265265
position: unset !important;
266266
top: auto !important;
267267
}
268268
269-
#rich-workspace::v-deep(.text-editor__wrapper) {
269+
#rich-workspace:deep(.text-editor__wrapper) {
270270
position: unset !important;
271271
overflow: visible;
272272
}
273273
274-
#rich-workspace::v-deep(.text-editor__main) {
274+
#rich-workspace:deep(.text-editor__main) {
275275
overflow: visible !important;
276276
}
277277
278-
#rich-workspace::v-deep(.content-wrapper) {
278+
#rich-workspace:deep(.content-wrapper) {
279279
overflow: scroll !important;
280280
max-height: calc(40vh - 50px);
281281
padding-left: 10px;
282282
padding-bottom: 60px; /* ensure menububble fits below */
283283
}
284284
285-
#rich-workspace::v-deep(.text-editor__wrapper .ProseMirror) {
285+
#rich-workspace:deep(.text-editor__wrapper .ProseMirror) {
286286
padding: 0px;
287287
margin: 0;
288288
}
289289
290-
#rich-workspace::v-deep(.editor__content) {
290+
#rich-workspace:deep(.editor__content) {
291291
margin: 0;
292292
}
293293
@@ -324,7 +324,7 @@ export default {
324324
}
325325
326326
html.ie {
327-
#rich-workspace::v-deep {
327+
#rich-workspace:deep() {
328328
.text-editor {
329329
position: initial;
330330
}

0 commit comments

Comments
 (0)