From 6a96278cd5d6e2d970eb8febfadf2676baad4541 Mon Sep 17 00:00:00 2001 From: Palanikannan1437 <73993394+Palanikannan1437@users.noreply.github.com> Date: Mon, 30 Oct 2023 10:00:31 +0530 Subject: [PATCH] added styles for embedding --- web/styles/editor.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/web/styles/editor.css b/web/styles/editor.css index 85d881eeb..d39cd10b7 100644 --- a/web/styles/editor.css +++ b/web/styles/editor.css @@ -229,3 +229,23 @@ ul[data-type="taskList"] li[data-checked="true"] > div > p { .ProseMirror table * .is-empty::before { opacity: 0; } + +/* iframe */ +.iframe-wrapper { + position: relative; + padding-bottom: 56.25%; + height: 0; + overflow: hidden; + width: 100%; + height: auto; +} +.iframe-wrapper.ProseMirror-selectednode { + outline: 3px solid #68cef8; +} +.iframe-wrapper iframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +}