]> BookStack Code Mirror - bookstack/commitdiff
Adding a video { width: 100%; } (#4204)
authorSnowCode <redacted>
Thu, 27 Apr 2023 14:58:35 +0000 (16:58 +0200)
committerGitHub <redacted>
Thu, 27 Apr 2023 14:58:35 +0000 (15:58 +0100)
* Adding a video { width: 100%; }

This is to prevent that videos included in pages don't exceed the page border

* Reverting precedent commit

* Adding a video { max-width: 100% } instead

resources/sass/_pages.scss

index d58be2fe3504bc027d79cb98696af5ff58764509..a88d58f99dcbbc6c0c6252e22cb6ab2a9e33aebc 100755 (executable)
@@ -182,6 +182,10 @@ body.tox-fullscreen, body.markdown-fullscreen {
   .cm-editor {
     margin-bottom: 1.375em;
   }
+
+  video {
+    max-width: 100%;
+  }
 }
 
 // Page content pointers
@@ -452,4 +456,4 @@ body.tox-fullscreen, body.markdown-fullscreen {
   @media (prefers-contrast: more) {
     opacity: 1;
   }
-}
\ No newline at end of file
+}